aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2019-02-19 22:06:04 +0100
committerDavide Garberi <dade.garberi@gmail.com>2019-02-19 22:06:04 +0100
commitd255c64af23208f2342b9e541ac3dd185dcf159c (patch)
treebbf91093827ceadc99a9b4383b7fafc2d1d449a9
parent66ffd02602379c43055f0ed69f38e04641175e27 (diff)
Revert "z2_plus: Import backlight overlays from Marlin"
* Let's do this in the common device This reverts commit 5420468bf540a3721beeb165aee20065e03c5dde.
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml144
1 files changed, 33 insertions, 111 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 218ea5e..bb76aef 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -18,127 +18,49 @@
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>1</item>
- <item>2</item>
- <item>3</item>
- <item>4</item>
- <item>8</item>
- <item>12</item>
- <item>20</item>
- <item>33</item>
- <item>55</item>
- <item>90</item>
- <item>148</item>
- <item>245</item>
- <item>403</item>
- <item>665</item>
- <item>1097</item>
- <item>1808</item>
- <item>2981</item>
+ <item>1</item> <!-- pitch black -->
+ <item>11</item> <!-- dark indoor -->
+ <item>25</item> <!-- twilight -->
+ <item>50</item> <!-- dim indoor -->
+ <item>100</item> <!-- home -->
+ <item>200</item>
+ <item>300</item> <!-- office -->
+ <item>500</item> <!-- sunrise -->
+ <item>750</item>
+ <item>1000</item> <!-- overcast -->
<item>5000</item>
+ <item>10000</item> <!-- daylight -->
</integer-array>
- <!-- Array of desired screen brightness in nits corresponding to the lux values
- in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
- config_screenBrightnessMaximumNits, the display brightness is defined as the measured
- brightness of an all-white image.
- If this is defined then:
- - config_autoBrightnessLcdBacklightValues should not be defined
- - config_screenBrightnessNits must be defined
- - config_screenBrightnessBacklight must be defined
- This array should have size one greater than the size of the config_autoBrightnessLevels
- array. The brightness values must be non-negative and non-decreasing. This must be
- overridden in platform specific overlays -->
- <array name="config_autoBrightnessDisplayValuesNits">
- <item>10.45935</item>
- <item>29.25559</item>
- <item>34.240692</item>
- <item>37.514347</item>
- <item>40.018696</item>
- <item>46.885098</item>
- <item>51.626434</item>
- <item>58.610405</item>
- <item>66.890915</item>
- <item>77.61644</item>
- <item>90.221886</item>
- <item>105.80314</item>
- <item>126.073845</item>
- <item>154.16931</item>
- <item>191.83717</item>
- <item>240.74442</item>
- <item>294.84857</item>
- <item>348.05453</item>
- <item>394.98703</item>
- </array>
-
- <!-- An array describing the screen's backlight values corresponding to the brightness
- values in the config_screenBrightnessNits array.
- This array should be equal in size to config_screenBrightnessBacklight. -->
- <integer-array name="config_screenBrightnessBacklight">
- <item>0</item>
- <item>15</item>
- <item>30</item>
- <item>45</item>
- <item>60</item>
+ <!-- Array of output values for LCD backlight corresponding to the LUX values
+ in the config_autoBrightnessLevels array. This array should have size one greater
+ than the size of the config_autoBrightnessLevels array.
+ This must be overridden in platform specific overlays -->
+ <integer-array name="config_autoBrightnessLcdBacklightValues">
+ <item>7</item>
+ <item>12</item>
+ <item>17</item>
+ <item>29</item>
+ <item>35</item>
+ <item>47</item>
<item>75</item>
- <item>90</item>
- <item>105</item>
- <item>120</item>
- <item>135</item>
- <item>150</item>
- <item>165</item>
- <item>180</item>
- <item>195</item>
- <item>210</item>
- <item>225</item>
- <item>240</item>
+ <item>114</item>
+ <item>130</item>
+ <item>152</item>
+ <item>175</item>
+ <item>200</item>
<item>255</item>
</integer-array>
- <!-- An array of floats describing the screen brightness in nits corresponding to the backlight
- values in the config_screenBrightnessBacklight array. On OLED displays these values
- should be measured with an all white image while the display is in the fully on state.
- Note that this value should *not* reflect the maximum brightness value for any high
- brightness modes but only the maximum brightness value obtainable in a sustainable manner.
- This array should be equal in size to config_screenBrightnessBacklight -->
- <array name="config_screenBrightnessNits">
- <item>0</item>
- <item>26.11</item>
- <item>50.5</item>
- <item>74.17</item>
- <item>96.89</item>
- <item>118.3</item>
- <item>139.8</item>
- <item>162.9</item>
- <item>189.8</item>
- <item>217.4</item>
- <item>240.4</item>
- <item>265.3</item>
- <item>288.7</item>
- <item>316</item>
- <item>340.8</item>
- <item>357.9</item>
- <item>376.2</item>
- <item>392.9</item>
- </array>
-
<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->