summaryrefslogtreecommitdiffstats
path: root/overlay
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-07-18 17:22:18 -0700
committerMike Lockwood <lockwood@android.com>2011-07-18 17:24:04 -0700
commit8c60171e20a09cd22ce5087b7d49b919a6d34bd6 (patch)
tree3078e6c2b31687a4a44c17a31c54abc024cefb46 /overlay
parent22c777089fb008e6756fb775b7ce5ed3fa0b3a67 (diff)
downloaddevice_samsung_tuna-8c60171e20a09cd22ce5087b7d49b919a6d34bd6.zip
device_samsung_tuna-8c60171e20a09cd22ce5087b7d49b919a6d34bd6.tar.gz
device_samsung_tuna-8c60171e20a09cd22ce5087b7d49b919a6d34bd6.tar.bz2
Enable power manager ALS support
Note: the light sensor values on my device seem wrong (it's only reading 225 or 320 Lux in direct sunlight) The values in this change are calibrated to do the best we can with those values. This will need to change when the hardware gets better light sensor. Bug: 5043500 Change-Id: I69385e97687e35de6b01808465a60af0ddd8c951 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'overlay')
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml50
1 files changed, 50 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 365383a..901a4f3 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -25,8 +25,58 @@
This image contains an installer for the AFT file transfer tool. -->
<string translatable="false" name="config_isoImagePath">/system/etc/AftInstallerImage.iso</string>
+ <!-- Flag indicating whether we should enable the automatic brightness in Settings.
+ config_hardware_automatic_brightness_available is not set, so we will use software implementation -->
+ <bool name="config_automatic_brightness_available">true</bool>
+
<!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
autodetected from the Configuration. -->
<bool name="config_showNavigationBar">true</bool>
+ <!-- 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:
+
+ Zone 0: 0 <= LUX < array[0]
+ Zone 1: array[0] <= LUX < array[1]
+ ...
+ Zone N: array[N - 1] <= LUX < array[N]
+ Zone N + 1: array[N] <= LUX < infinity
+
+ Must be overridden in platform specific overlays -->
+ <integer-array name="config_autoBrightnessLevels">
+ <item>100</item>
+ <item>200</item>
+ </integer-array>
+
+ <!-- Array of output values for LCD backlight corresponding to the LUX values
+ in the config_autoBrightnessLevels array. This array should have size one greater
+ than the size of the config_autoBrightnessLevels array.
+ -->
+ <integer-array name="config_autoBrightnessLcdBacklightValues">
+ <item>35</item>
+ <item>55</item>
+ <item>250</item>
+ </integer-array>
+
+ <!-- Array of output values for button backlight corresponding to the LUX values
+ in the config_autoBrightnessLevels array. This array should have size one greater
+ than the size of the config_autoBrightnessLevels array.
+ -->
+ <integer-array name="config_autoBrightnessButtonBacklightValues">
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ </integer-array>
+
+ <!-- Array of output values for keyboard backlight corresponding to the LUX values
+ in the config_autoBrightnessLevels array. This array should have size one greater
+ than the size of the config_autoBrightnessLevels array.
+ Crespo has no keyboard so all values are zero.
+ -->
+ <integer-array name="config_autoBrightnessKeyboardBacklightValues">
+ <item>0</item>
+ <item>0</item>
+ <item>0</item>
+ </integer-array>
+
</resources>