summaryrefslogtreecommitdiffstats
path: root/overlay
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2011-11-01 19:59:11 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-01 19:59:11 -0700
commit2e0ab7265e3039fee787c2216e0c98d92ea0b49e (patch)
tree3728597fe0e21d5624eef9d209aa24f89958f76b /overlay
parent7e88d42adb9310bf560f00d2250f7c4c528f03d4 (diff)
downloaddevice_samsung_crespo-2e0ab7265e3039fee787c2216e0c98d92ea0b49e.zip
device_samsung_crespo-2e0ab7265e3039fee787c2216e0c98d92ea0b49e.tar.gz
device_samsung_crespo-2e0ab7265e3039fee787c2216e0c98d92ea0b49e.tar.bz2
sensors: Return a calculated lux value instead using the current 8 entry table
The light sensor now uses the lux to current formula in the datasheet, I = 10 * log(Ev) uA, and multiplies the result by 4 as an attempt to correct for the glass in front of the sensor. Also update the config_autoBrightnessLevels table so the auto brightness change occurs at the same adc values as before (or close for 7.26 and 94.5 lux). Change-Id: I5a54fda8eca26006671064b7db1e39ba0a5d7889
Diffstat (limited to 'overlay')
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index eb71bf5..0bfc868 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -44,11 +44,11 @@
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
- <item>100</item>
- <item>200</item>
- <item>400</item>
- <item>1000</item>
- <item>3000</item>
+ <item>7</item>
+ <item>94</item>
+ <item>208</item>
+ <item>458</item>
+ <item>2223</item>
</integer-array>
<!-- Array of output values for LCD backlight corresponding to the LUX values