Add display panel low power mode global setting & mapping to sys property.

This will help us run P/H experiments by controlling display panel low
power mode system property through P/H.

Bug: 72121774
Test: Compile, boot taimen.
Change-Id: Id4c95bcd5616e9749f9dcc9d9f4773ffdad3e994
This commit is contained in:
Ajay Dudani
2018-02-05 10:44:27 -08:00
parent cffb3604ae
commit bcfcd6c9bb
3 changed files with 13 additions and 0 deletions

View File

@@ -10332,6 +10332,15 @@ public final class Settings {
*/
public static final String FPS_DEVISOR = "fps_divisor";
/**
* Flag to enable or disable display panel low power mode (lpm)
* false -> Display panel power saving mode is disabled.
* true -> Display panel power saving mode is enabled.
*
* @hide
*/
public static final String DISPLAY_PANEL_LPM = "display_panel_lpm";
/**
* App standby (app idle) specific settings.
* This is encoded as a key=value list, separated by commas. Ex:

View File

@@ -17,9 +17,11 @@
package android.provider;
import static com.google.android.collect.Sets.newHashSet;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.is;
import static java.lang.reflect.Modifier.isFinal;
import static java.lang.reflect.Modifier.isPublic;
import static java.lang.reflect.Modifier.isStatic;
@@ -194,6 +196,7 @@ public class SettingsBackupTest {
Settings.Global.DEVICE_PROVISIONED,
Settings.Global.DEVICE_PROVISIONING_MOBILE_DATA_ENABLED,
Settings.Global.DISK_FREE_CHANGE_REPORTING_THRESHOLD,
Settings.Global.DISPLAY_PANEL_LPM,
Settings.Global.DISPLAY_SCALING_FORCE,
Settings.Global.DISPLAY_SIZE_FORCED,
Settings.Global.DNS_RESOLVER_MAX_SAMPLES,

View File

@@ -42,6 +42,7 @@ class GlobalSettingsToPropertiesMapper {
{Settings.Global.SYS_VDSO, "sys.vdso"},
{Settings.Global.FPS_DEVISOR, ThreadedRenderer.DEBUG_FPS_DIVISOR},
{Settings.Global.UID_CPUPOWER, "uid.cpupower"},
{Settings.Global.DISPLAY_PANEL_LPM, "sys.display_panel_lpm"},
};