summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-10-14 11:55:50 -0700
committerMike Lockwood <lockwood@android.com>2009-10-15 19:58:33 -0400
commit37a13208c93bbe00cf233baf1ebcd6e081972a27 (patch)
treeb9d79db2fdd18f64666c2e3c5791322c6a35320d /core
parent41c19db90e250e2b7cb438904f0e96a0ef455d6d (diff)
downloadframeworks_base-37a13208c93bbe00cf233baf1ebcd6e081972a27.zip
frameworks_base-37a13208c93bbe00cf233baf1ebcd6e081972a27.tar.gz
frameworks_base-37a13208c93bbe00cf233baf1ebcd6e081972a27.tar.bz2
Add separate configuration flag for hardware ALS support.
A new flag config_hardware_automatic_brightness_available indicates that the device has hardware support for automatic screen brightness management, while config_automatic_brightness_available now indicates that automatic brightness mode is available in general. If config_automatic_brightness_available is true but config_hardware_automatic_brightness_available is false, then automatic brightness mode support in PowerManager support will be used. Bug b/2015734 (Ambient light sensor support in power manager) Change-Id: I6cd888252043dd63df3c25a1d14c21a04a91ad28 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'core')
-rw-r--r--core/res/res/values/config.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index c87a11c..45fcaa59 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -67,7 +67,11 @@
the slider can be opened (for example, in a pocket or purse). -->
<bool name="config_bypass_keyguard_if_slider_open">true</bool>
- <!-- Flag indicating whether the device supports automatic brightness mode. -->
+ <!-- Flag indicating whether the device supports automatic brightness mode in hardware. -->
+ <bool name="config_hardware_automatic_brightness_available">false</bool>
+
+ <!-- Flag indicating whether the we should enable the automatic brightness in Settings.
+ Software implementation will be used if config_hardware_auto_brightness_available is not set -->
<bool name="config_automatic_brightness_available">false</bool>
<!-- XXXXXX END OF RESOURCES USING WRONG NAMING CONVENTION -->