Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04e7a9b0 authored by Marissa Wall's avatar Marissa Wall
Browse files

STOPSHIP: Roll forward: Add UidCpuPower global setting

This will help us run P/H experiments by controlling the
uid cpu power system property through P/H.

b/70517018
Test: adb shell settings put global sys_uidcpupower 1
      verify via getprop sys.uidcpupower

Change-Id: I8cf7365be885ef4910e37d3f993ba3079e15a37d
parent d0b86597
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -10314,6 +10314,16 @@ public final class Settings {
        */
        */
        public static final String SYS_VDSO = "sys_vdso";
        public static final String SYS_VDSO = "sys_vdso";


        /**
        * UidCpuPower global setting. This links the sys.uidcpupower system property.
        * The following values are supported:
        * 0 -> /proc/uid_cpupower/* are disabled
        * 1 -> /proc/uid_cpupower/* are enabled
        * Any other value defaults to enabled.
        * @hide
        */
        public static final String SYS_UIDCPUPOWER = "sys_uidcpupower";

        /**
        /**
         * An integer to reduce the FPS by this factor. Only for experiments. Need to reboot the
         * An integer to reduce the FPS by this factor. Only for experiments. Need to reboot the
         * device for this setting to take full effect.
         * device for this setting to take full effect.
+1 −0
Original line number Original line Diff line number Diff line
@@ -374,6 +374,7 @@ public class SettingsBackupTest {
                    Settings.Global.SYS_STORAGE_THRESHOLD_MAX_BYTES,
                    Settings.Global.SYS_STORAGE_THRESHOLD_MAX_BYTES,
                    Settings.Global.SYS_STORAGE_THRESHOLD_PERCENTAGE,
                    Settings.Global.SYS_STORAGE_THRESHOLD_PERCENTAGE,
                    Settings.Global.SYS_VDSO,
                    Settings.Global.SYS_VDSO,
                    Settings.Global.SYS_UIDCPUPOWER,
                    Settings.Global.FPS_DEVISOR,
                    Settings.Global.FPS_DEVISOR,
                    Settings.Global.TCP_DEFAULT_INIT_RWND,
                    Settings.Global.TCP_DEFAULT_INIT_RWND,
                    Settings.Global.TETHER_DUN_APN,
                    Settings.Global.TETHER_DUN_APN,
+1 −0
Original line number Original line Diff line number Diff line
@@ -42,6 +42,7 @@ class GlobalSettingsToPropertiesMapper {
        {Settings.Global.SYS_VDSO, "sys.vdso"},
        {Settings.Global.SYS_VDSO, "sys.vdso"},
        {Settings.Global.FPS_DEVISOR, ThreadedRenderer.DEBUG_FPS_DIVISOR},
        {Settings.Global.FPS_DEVISOR, ThreadedRenderer.DEBUG_FPS_DIVISOR},
        {Settings.Global.DISPLAY_PANEL_LPM, "sys.display_panel_lpm"},
        {Settings.Global.DISPLAY_PANEL_LPM, "sys.display_panel_lpm"},
        {Settings.Global.SYS_UIDCPUPOWER, "sys.uidcpupower"},
    };
    };