Increase the debounce 4 sec
In the low light environment, the lux value varies and cause the
brightness switch frequently. Increase the debounce time 4 seconds to
recover it.
Bug: 161658240
Test: full build and check the brightness behavior
Change-Id: I3dd1791e91e5dc0eaf484ff5e0b20eeb0164400f
(cherry picked from commit be18a6e5d16cd32e73368d2090d45f64a68719a8)
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index b086e68..771f270 100755
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -42,8 +42,8 @@
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">2000</integer>
- <integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
+ <integer name="config_autoBrightnessBrighteningLightDebounce">6000</integer>
+ <integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">true</bool>