summaryrefslogtreecommitdiffstats
path: root/overlay
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-12-07 19:44:22 -0800
committerTodd Poynor <toddpoynor@google.com>2011-12-07 19:48:08 -0800
commitab7980784c705e1eaac55c7493f38f7d6b176328 (patch)
treeb14819ec57c956941ebb210f51bab0dd7505a64f /overlay
parent745296f2fbd800b448ecaaae8090a84d7149c4e3 (diff)
downloaddevice_samsung_tuna-ab7980784c705e1eaac55c7493f38f7d6b176328.zip
device_samsung_tuna-ab7980784c705e1eaac55c7493f38f7d6b176328.tar.gz
device_samsung_tuna-ab7980784c705e1eaac55c7493f38f7d6b176328.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.xml48
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>