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
commitcb3628c41ba00d6a06ea7f3ce8f720990888f12f (patch)
tree75a70cbc303a32bfbbf9f8b232a663ccae2ccdf5 /overlay
parent32fd4e18785eb3f6028c16d9fc274e9c7478bebf (diff)
downloaddevice_samsung_tuna-cb3628c41ba00d6a06ea7f3ce8f720990888f12f.zip
device_samsung_tuna-cb3628c41ba00d6a06ea7f3ce8f720990888f12f.tar.gz
device_samsung_tuna-cb3628c41ba00d6a06ea7f3ce8f720990888f12f.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>