mirror of
https://github.com/AetherDroid/android_device_samsung_universal7570-common.git
synced 2025-09-04 23:47:47 -04:00
universal7870: overlay: update brightness
This commit is contained in:
parent
381351e089
commit
43de11b07f
1 changed files with 22 additions and 38 deletions
|
@ -22,36 +22,24 @@
|
|||
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
|
||||
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
||||
<bool name="config_automatic_brightness_available">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 control points as follows:
|
||||
(1-based arrays)
|
||||
Point 1: (0, value[1]): lux <= 0
|
||||
Point 2: (level[1], value[2]): 0 < lux <= level[1]
|
||||
Point 3: (level[2], value[3]): level[2] < lux <= level[3]
|
||||
|
||||
<!-- 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]
|
||||
...
|
||||
Point N+1: (level[N], value[N+1]): level[N] < lux
|
||||
The control points must be strictly increasing. Each control point
|
||||
corresponds to an entry in the brightness backlight values arrays.
|
||||
For example, if lux == level[1] (first element of the levels array)
|
||||
then the brightness will be determined by value[2] (second element
|
||||
of the brightness values array).
|
||||
Spline interpolation is used to determine the auto-brightness
|
||||
backlight values for lux levels between these control points.
|
||||
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>2</item>
|
||||
<item>7</item>
|
||||
<item>15</item>
|
||||
<item>50</item>
|
||||
<item>9</item>
|
||||
<item>30</item>
|
||||
<item>100</item>
|
||||
<item>200</item>
|
||||
<item>400</item>
|
||||
<item>1000</item>
|
||||
<item>2000</item>
|
||||
<item>3000</item>
|
||||
<item>5000</item>
|
||||
<item>325</item>
|
||||
<item>1250</item>
|
||||
<item>3500</item>
|
||||
<item>10000</item>
|
||||
<item>20000</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of output values for LCD backlight corresponding to the LUX values
|
||||
|
@ -59,19 +47,15 @@
|
|||
than the size of the config_autoBrightnessLevels array.
|
||||
This must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessLcdBacklightValues">
|
||||
<item>12</item> <!-- 0-2 -->
|
||||
<item>22</item> <!-- 3-7 -->
|
||||
<item>32</item> <!-- 5-15 -->
|
||||
<item>42</item> <!-- 15-50 -->
|
||||
<item>52</item> <!-- 50-100 -->
|
||||
<item>62</item> <!-- 100-200 -->
|
||||
<item>72</item> <!-- 200-400 -->
|
||||
<item>82</item> <!-- 400-1000 -->
|
||||
<item>96</item> <!-- 1000-2000 -->
|
||||
<item>134</item> <!-- 2000-3000 -->
|
||||
<item>178</item> <!-- 3000-5000 -->
|
||||
<item>225</item> <!-- 5000-10000 -->
|
||||
<item>255</item> <!-- 10000+ -->
|
||||
<!-- 9 --> <item>18</item>
|
||||
<!-- 30 --> <item>30</item>
|
||||
<!-- 100 --> <item>59</item>
|
||||
<!-- 325 --> <item>74</item>
|
||||
<!-- 1250 --> <item>92</item>
|
||||
<!-- 3500 --> <item>118</item>
|
||||
<!-- 10000 --> <item>155</item>
|
||||
<!-- 20000 --> <item>222</item>
|
||||
<item>255</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Screen brightness used to dim the screen when the user activity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue