diff options
author | Todd Poynor <toddpoynor@google.com> | 2011-12-07 19:44:22 -0800 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2011-12-07 19:48:08 -0800 |
commit | a6a276ea5683135c14f842b32ce9c30e899f4465 (patch) | |
tree | a61199c6c8c40091fff416781d3d459671d3b5c7 /overlay | |
parent | 9a0cc69665817af7f240ead024c1a359a8aa9160 (diff) | |
download | device_samsung_tuna-a6a276ea5683135c14f842b32ce9c30e899f4465.zip device_samsung_tuna-a6a276ea5683135c14f842b32ce9c30e899f4465.tar.gz device_samsung_tuna-a6a276ea5683135c14f842b32ce9c30e899f4465.tar.bz2 |
tuna: autobrightness: overhaul brightness table
Bump minimum from 16->19 since Prime ALS sensor reads minimum
for a wide range of low light levels.
Set second brightness bin just above minimum reading, to
minimize the range of light levels that use the lowest
brightness.
Recalculate ALS/brightness curve so can add more points
reasoably linearly (from Arve).
Add many more brightness bins, avoiding steep cliffs of
previous table.
Change-Id: I35be4e273d3379dc7db41657b6a968f32aa73a1f
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'overlay')
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 48 |
1 files changed, 38 insertions, 10 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index e32862c..e6cfdae 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -65,11 +65,25 @@ Must be overridden in platform specific overlays --> <integer-array name="config_autoBrightnessLevels"> - <item>7</item> - <item>107</item> - <item>244</item> - <item>440</item> - <item>4080</item> + <item>6</item> + <item>9</item> + <item>14</item> + <item>20</item> + <item>30</item> + <item>46</item> + <item>68</item> + <item>103</item> + <item>154</item> + <item>231</item> + <item>346</item> + <item>519</item> + <item>778</item> + <item>1168</item> + <item>1752</item> + <item>2627</item> + <item>3941</item> + <item>5912</item> + <item>8867</item> </integer-array> <!-- Array of output values for LCD backlight corresponding to the LUX values @@ -77,11 +91,25 @@ than the size of the config_autoBrightnessLevels array. --> <integer-array name="config_autoBrightnessLcdBacklightValues"> - <item>16</item> - <item>40</item> - <item>60</item> - <item>70</item> - <item>70</item> + <item>19</item> + <item>23</item> + <item>26</item> + <item>30</item> + <item>34</item> + <item>39</item> + <item>45</item> + <item>51</item> + <item>59</item> + <item>67</item> + <item>77</item> + <item>88</item> + <item>101</item> + <item>116</item> + <item>133</item> + <item>152</item> + <item>174</item> + <item>199</item> + <item>228</item> <item>250</item> </integer-array> |