Merge "Make DEBUG_FPS_DIVISOR updatable via setting for possible experiments"

This commit is contained in:
Makoto Onuki
2018-01-19 18:11:01 +00:00
committed by Android (Google) Code Review
3 changed files with 11 additions and 0 deletions

View File

@@ -9699,6 +9699,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:

View File

@@ -353,6 +353,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,

View File

@@ -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},
};