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

Commit 495665dc authored by Marissa Wall's avatar Marissa Wall
Browse files

STOPSHIP: 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: Will manually test it later through opt-in P/H experiment

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

        /**
        * Uid CpuPower global setting. This links the uid.cpupower 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 UID_CPUPOWER = "uid_cpupower";

        /**
         * An integer to reduce the FPS by this factor. Only for experiments. Need to reboot the
         * device for this setting to take full effect.
+1 −0
Original line number Diff line number Diff line
@@ -385,6 +385,7 @@ public class SettingsBackupTest {
                    Settings.Global.TZINFO_UPDATE_METADATA_URL,
                    Settings.Global.INSTALLED_INSTANT_APP_MIN_CACHE_PERIOD,
                    Settings.Global.INSTALLED_INSTANT_APP_MAX_CACHE_PERIOD,
                    Settings.Global.UID_CPUPOWER,
                    Settings.Global.UNINSTALLED_INSTANT_APP_MIN_CACHE_PERIOD,
                    Settings.Global.UNINSTALLED_INSTANT_APP_MAX_CACHE_PERIOD,
                    Settings.Global.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD,
+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ class GlobalSettingsToPropertiesMapper {
    //  {Settings.Global.SETTING_NAME, "system_property_name"},
        {Settings.Global.SYS_VDSO, "sys.vdso"},
        {Settings.Global.FPS_DEVISOR, ThreadedRenderer.DEBUG_FPS_DIVISOR},
        {Settings.Global.UID_CPUPOWER, "uid.cpupower"},
    };