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

Commit 3c9c998f authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Make DEBUG_FPS_DIVISOR updatable via setting for possible experiments

Bug: 70982379
Test: Manual test with "settings put global fps_divisor 4" and reboot

Change-Id: I61437ede907fc387257bf9c07dab46f0032d4e1b
parent 03863ba5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -9663,6 +9663,14 @@ public final class Settings {
        */
        public static final String SYS_VDSO = "sys_vdso";

        /**
         * An integer to reduce the FPS by this factor. Only for experiments. Need to reboot the
         * device for this setting to take full effect.
         *
         * @hide
         */
        public static final String FPS_DEVISOR = "fps_divisor";

        /**
         * App standby (app idle) specific settings.
         * This is encoded as a key=value list, separated by commas. Ex:
+1 −0
Original line number Diff line number Diff line
@@ -351,6 +351,7 @@ public class SettingsBackupTest {
                    Settings.Global.SYS_STORAGE_THRESHOLD_MAX_BYTES,
                    Settings.Global.SYS_STORAGE_THRESHOLD_PERCENTAGE,
                    Settings.Global.SYS_VDSO,
                    Settings.Global.FPS_DEVISOR,
                    Settings.Global.TCP_DEFAULT_INIT_RWND,
                    Settings.Global.TETHER_DUN_APN,
                    Settings.Global.TETHER_DUN_REQUIRED,
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.os.SystemProperties;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Slog;
import android.view.ThreadedRenderer;

import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.util.Preconditions;
@@ -39,6 +40,7 @@ class GlobalSettingsToPropertiesMapper {
    //  List mapping entries in the following format:
    //  {Settings.Global.SETTING_NAME, "system_property_name"},
        {Settings.Global.SYS_VDSO, "sys.vdso"},
        {Settings.Global.FPS_DEVISOR, ThreadedRenderer.DEBUG_FPS_DIVISOR},
    };