diff options
author | Arve Hjønnevåg <arve@android.com> | 2011-10-25 17:54:35 -0700 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2011-11-01 20:09:10 -0700 |
commit | dbc6da918cb77f4d96df97fd8f7c326f2783699a (patch) | |
tree | 72b193222661dd1e514967be0b8ec9f71ebe21ac /overlay/frameworks | |
parent | de47e22bfed40584093220c7e35351e0340864fe (diff) | |
download | device_samsung_tuna-dbc6da918cb77f4d96df97fd8f7c326f2783699a.zip device_samsung_tuna-dbc6da918cb77f4d96df97fd8f7c326f2783699a.tar.gz device_samsung_tuna-dbc6da918cb77f4d96df97fd8f7c326f2783699a.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.2 lux).
Change-Id: I121ce0f23dca093c9607ac9447b9263f48507a09
Diffstat (limited to 'overlay/frameworks')
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 10 |
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 55c3d45..5110ae8 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -64,11 +64,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>107</item> + <item>244</item> + <item>440</item> + <item>4080</item> </integer-array> <!-- Array of output values for LCD backlight corresponding to the LUX values |