aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Coucheron <arco68@gmail.com>2017-06-10 06:38:07 +0200
committerdoc HD <doc.divxm@gmail.com>2017-06-13 17:16:20 +0300
commit5fcb8e1676bd84230dc7d75361ce7b3fe002837a (patch)
tree15fdc25fa6ba8da79ad8b28664e41124f019f7f3
parent9fae89d5890a53b4b19b6ed12aff2b2aa06b6241 (diff)
overlay: Additional auto brightness tuning
Increase slow ramp rate from 40 to 80 Decrease bright light debounce from 4000ms to 2000ms Decrease dark light debounce from 8000ms to 4000ms Increase sensor rate from 250ms to 1000ms Set initial sensor rate to 250ms Decrease ambient light horizon from 10000ms to 5000ms Change-Id: Icb32f55ed079356fd79189c1b7b3c33f17668d33
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml19
1 files changed, 17 insertions, 2 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index a88e5bd..a41a3d6 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -163,13 +163,28 @@
config to 7. -->
<integer name="config_deviceHardwareWakeKeys">65</integer>
+ <!-- Slow brightness animation ramp rate in brightness units per second-->
+ <integer translatable="false" name="config_brightness_ramp_rate_slow">80</integer>
+
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
for debouncing the light sensor. Different constants are used to debounce the light sensor
when adapting to brighter or darker environments. This parameter controls how quickly
brightness changes occur in response to an observed change in light level that exceeds the
hysteresis threshold. -->
- <integer name="config_autoBrightnessBrighteningLightDebounce">0</integer>
- <integer name="config_autoBrightnessDarkeningLightDebounce">0</integer>
+ <integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
+ <integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
+
+ <!-- Light sensor event rate in milliseconds for automatic brightness control. -->
+ <integer name="config_autoBrightnessLightSensorRate">1000</integer>
+
+ <!-- Initial light sensor event rate in milliseconds for automatic brightness control. This is
+ used for obtaining the first light sample when the device stops dozing.
+
+ Set this to 0 to disable this feature. -->
+ <integer name="config_autoBrightnessInitialLightSensorRate">250</integer>
+
+ <!-- Period of time in which to consider light samples in milliseconds. -->
+ <integer name="config_autoBrightnessAmbientLightHorizon">5000</integer>
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
The N entries of this array define N 1 zones as follows: