summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorFilip Gruszczynski <gruszczy@google.com>2015-02-14 02:27:19 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-14 02:27:19 +0000
commitf1df1970db523f60d6ac7850fba93ae98a46163b (patch)
tree9cde04bfe418db39afe4727d20ab5c255d3e41f9 /core/res
parenta511eea83b0209729e4b42e219f233f818a6d9e7 (diff)
parent88a9a2a46eb77ea340175f5d272433f4de1b6f93 (diff)
downloadframeworks_base-f1df1970db523f60d6ac7850fba93ae98a46163b.zip
frameworks_base-f1df1970db523f60d6ac7850fba93ae98a46163b.tar.gz
frameworks_base-f1df1970db523f60d6ac7850fba93ae98a46163b.tar.bz2
am 88a9a2a4: Merge "Support for faster brightness response to light changes." into lmp-mr1-modular-dev
* commit '88a9a2a46eb77ea340175f5d272433f4de1b6f93': Support for faster brightness response to light changes.
Diffstat (limited to 'core/res')
-rwxr-xr-xcore/res/res/values/config.xml24
-rwxr-xr-xcore/res/res/values/symbols.xml4
2 files changed, 28 insertions, 0 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index f2d9de8..fdd2169 100755
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -861,10 +861,34 @@
<!-- Allow automatic adjusting of the screen brightness while dozing in low power state. -->
<bool name="config_allowAutoBrightnessWhileDozing">false</bool>
+ <!-- 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">4000</integer>
+ <integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
+
+ <!-- Light sensor event rate in milliseconds for automatic brightness control. -->
+ <integer name="config_autoBrightnessLightSensorRate">250</integer>
+
<!-- If we allow automatic adjustment of screen brightness while dozing, how many times we want
to reduce it to preserve the battery. Value of 100% means no scaling. -->
<fraction name="config_screenAutoBrightnessDozeScaleFactor">100%</fraction>
+ <!-- When the screen is turned on, the previous estimate of the ambient light level at the time
+ the screen was turned off is restored and is used to determine the initial screen
+ brightness.
+
+ If this flag is true, then the ambient light level estimate will be promptly recomputed
+ after the warm-up interface and the screen brightness will be adjusted immediately.
+
+ If this flag is false, then the ambient light level estimate will be adjusted more
+ gradually in the same manner that normally happens when the screen is on according to the
+ brightening or dimming debounce thresholds. As a result, it may take somewhat longer to
+ adapt to the environment. This mode may be better suited for watches. -->
+ <bool name="config_autoBrightnessResetAmbientLuxAfterWarmUp">true</bool>
+
<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index aabddcd..eec989e 100755
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -1569,6 +1569,7 @@
<java-symbol type="bool" name="config_useAttentionLight" />
<java-symbol type="bool" name="config_animateScreenLights" />
<java-symbol type="bool" name="config_automatic_brightness_available" />
+ <java-symbol type="bool" name="config_autoBrightnessResetAmbientLuxAfterWarmUp" />
<java-symbol type="bool" name="config_dozeAfterScreenOff" />
<java-symbol type="bool" name="config_enableActivityRecognitionHardwareOverlay" />
<java-symbol type="bool" name="config_enableFusedLocationOverlay" />
@@ -1624,6 +1625,9 @@
<java-symbol type="id" name="replace_message" />
<java-symbol type="fraction" name="config_dimBehindFadeDuration" />
<java-symbol type="fraction" name="config_screenAutoBrightnessDozeScaleFactor" />
+ <java-symbol type="integer" name="config_autoBrightnessBrighteningLightDebounce"/>
+ <java-symbol type="integer" name="config_autoBrightnessDarkeningLightDebounce"/>
+ <java-symbol type="integer" name="config_autoBrightnessLightSensorRate"/>
<java-symbol type="integer" name="config_carDockKeepsScreenOn" />
<java-symbol type="integer" name="config_criticalBatteryWarningLevel" />
<java-symbol type="integer" name="config_datause_notification_type" />