[3/3] cmsdk: add burnIn protection setting
Change-Id: I3b8007d75a8f17fe7c094e0309e4dbc8f7f9d8c7 Signed-off-by: Joey Rizzoli <joey@lineageos.org>
This commit is contained in:
committed by
Sam Mortimer
parent
ffe2bb69b3
commit
088ddf5aaf
@@ -1229,6 +1229,7 @@ package cyanogenmod.providers {
|
||||
field public static final java.lang.String STATUS_BAR_AM_PM = "status_bar_am_pm";
|
||||
field public static final java.lang.String STATUS_BAR_BATTERY_STYLE = "status_bar_battery_style";
|
||||
field public static final java.lang.String STATUS_BAR_BRIGHTNESS_CONTROL = "status_bar_brightness_control";
|
||||
field public static final java.lang.String SYSTEMUI_BURNIN_PROTECTION = "systemui_burnin_protection";
|
||||
field public static final java.lang.String STATUS_BAR_CLOCK = "status_bar_clock";
|
||||
field public static final java.lang.String STATUS_BAR_IME_SWITCHER = "status_bar_ime_switcher";
|
||||
field public static final java.lang.String STATUS_BAR_NOTIF_COUNT = "status_bar_notif_count";
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
<integer name="config_proximityCheckTimeout">250</integer>
|
||||
<bool name="config_proximityCheckOnWakeEnabledByDefault">false</bool>
|
||||
|
||||
<!-- BurnIn protection. This should be enabled on devices that have OLED displays -->
|
||||
<bool name="config_enableBurnInProtection">false</bool>
|
||||
|
||||
<!-- Default values for LiveDisplay -->
|
||||
<integer name="config_dayColorTemperature">6500</integer>
|
||||
<integer name="config_nightColorTemperature">4800</integer>
|
||||
|
||||
@@ -128,4 +128,7 @@
|
||||
<!-- Device keyhandlers -->
|
||||
<java-symbol type="array" name="config_deviceKeyHandlerLibs" />
|
||||
<java-symbol type="array" name="config_deviceKeyHandlerClasses" />
|
||||
|
||||
<!-- BurnIn protection -->
|
||||
<java-symbol type="bool" name="config_enableBurnInProtection" />
|
||||
</resources>
|
||||
|
||||
@@ -1604,6 +1604,17 @@ public final class CMSettings {
|
||||
public static final Validator STATUS_BAR_BRIGHTNESS_CONTROL_VALIDATOR =
|
||||
sBooleanValidator;
|
||||
|
||||
|
||||
/**
|
||||
* Whether to enable burnin protection
|
||||
0 = 0ff, 1 = on
|
||||
*/
|
||||
public static final String SYSTEMUI_BURNIN_PROTECTION = "systemui_burnin_protection";
|
||||
|
||||
/** @hide */
|
||||
public static final Validator SYSTEMUI_BURNIN_PROTECTION_VALIDATOR =
|
||||
sBooleanValidator;
|
||||
|
||||
/**
|
||||
* Whether or not volume button music controls should be enabled to seek media tracks
|
||||
* 0 = 0ff, 1 = on
|
||||
@@ -2136,6 +2147,7 @@ public final class CMSettings {
|
||||
VALIDATORS.put(QS_SHOW_BRIGHTNESS_SLIDER, QS_SHOW_BRIGHTNESS_SLIDER_VALIDATOR);
|
||||
VALIDATORS.put(STATUS_BAR_BRIGHTNESS_CONTROL,
|
||||
STATUS_BAR_BRIGHTNESS_CONTROL_VALIDATOR);
|
||||
VALIDATORS.put(SYSTEMUI_BURNIN_PROTECTION, SYSTEMUI_BURNIN_PROTECTION_VALIDATOR);
|
||||
VALIDATORS.put(VOLBTN_MUSIC_CONTROLS, VOLBTN_MUSIC_CONTROLS_VALIDATOR);
|
||||
VALIDATORS.put(USE_EDGE_SERVICE_FOR_GESTURES,
|
||||
USE_EDGE_SERVICE_FOR_GESTURES_VALIDATOR);
|
||||
|
||||
Reference in New Issue
Block a user