aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2018-08-16 13:39:50 +0200
committerDanny Baumann <dannybaumann@web.de>2018-08-16 13:39:50 +0200
commitd3c2f82d1280327cdd4a2ded3019910a912e6fca (patch)
tree18cee90e097084ff9d650634c2c7530d10d97fbc
parente3f5c9daf3912f4a7eaf849c8970bdaeff14090c (diff)
enchilada: Give light sensor some time to warm up
When being in dark environments, turning screen off, then moving to bright environments and turning screen on, sometimes it happens that the light sensor emits an initial light sample of 1 lux, which causes the automatic brightness controller to ramp down the brightness even though the ambient brightness is high. Avoid the controller using those samples by giving the light sensor some time to warm up. Change-Id: I81dcb41a25ff0c9f0cf3265da7054ac7ebcbcc34
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 47ded87..31c407f 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -83,4 +83,9 @@
<!-- Period of time in which to consider light samples in milliseconds. -->
<integer name="config_autoBrightnessAmbientLightHorizon">10000</integer>
+
+ <!-- Amount of time it takes for the light sensor to warm up in milliseconds.
+ For this time after the screen turns on, the Power Manager
+ will not debounce light sensor readings -->
+ <integer name="config_lightSensorWarmupTime">200</integer>
</resources>