sanders: Kang brightness overlays from marlin
Change-Id: I3b3fb2d389eebad6c7ef76ae78e16eeff06fe3ed Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
This commit is contained in:
@@ -23,78 +23,6 @@
|
||||
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
||||
<bool name="config_automatic_brightness_available">true</bool>
|
||||
|
||||
<!-- Minimum screen brightness setting allowed by the power manager.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<integer name="config_screenBrightnessSettingMinimum">1</integer>
|
||||
|
||||
<!-- Default screen brightness setting.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<integer name="config_screenBrightnessSettingDefault">88</integer>
|
||||
|
||||
<!-- 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]
|
||||
...
|
||||
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>6</item>
|
||||
<item>12</item>
|
||||
<item>25</item>
|
||||
<item>50</item>
|
||||
<item>80</item>
|
||||
<item>120</item>
|
||||
<item>175</item>
|
||||
<item>250</item>
|
||||
<item>350</item>
|
||||
<item>500</item>
|
||||
<item>750</item>
|
||||
<item>1000</item>
|
||||
<item>1400</item>
|
||||
<item>2000</item>
|
||||
<item>3500</item>
|
||||
<item>6000</item>
|
||||
<item>10000</item>
|
||||
<item>15000</item>
|
||||
<item>20000</item>
|
||||
<item>30000</item>
|
||||
<item>65535</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- 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>10</item>
|
||||
<item>13</item>
|
||||
<item>16</item>
|
||||
<item>22</item>
|
||||
<item>28</item>
|
||||
<item>34</item>
|
||||
<item>43</item>
|
||||
<item>52</item>
|
||||
<item>61</item>
|
||||
<item>72</item>
|
||||
<item>83</item>
|
||||
<item>94</item>
|
||||
<item>105</item>
|
||||
<item>117</item>
|
||||
<item>129</item>
|
||||
<item>141</item>
|
||||
<item>153</item>
|
||||
<item>166</item>
|
||||
<item>179</item>
|
||||
<item>192</item>
|
||||
<item>205</item>
|
||||
<item>218</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
||||
<integer-array name="config_longPressVibePattern">
|
||||
<item>0</item>
|
||||
@@ -494,4 +422,157 @@
|
||||
<!-- Whether the device supports Smart Pixels -->
|
||||
<bool name="config_enableSmartPixels">true</bool>
|
||||
|
||||
<!-- User activity timeout: Maximum screen dim duration as a percentage of screen off timeout.
|
||||
This resource is similar to config_maximumScreenDimDuration but the maximum
|
||||
screen dim duration is defined as a ratio of the overall screen off timeout
|
||||
instead of as an absolute value in milliseconds. This is useful for reducing
|
||||
the dim duration when the screen off timeout is very short.
|
||||
When computing the screen dim duration, the power manager uses the lesser
|
||||
of the effective durations expressed by config_maximumScreenDimDuration and
|
||||
config_maximumScreenDimRatio.
|
||||
This value must be between 0% and 100%. If the value is zero, the screen will not
|
||||
dim before the device goes to sleep.
|
||||
-->
|
||||
<fraction name="config_maximumScreenDimRatio">29.999996%</fraction>
|
||||
|
||||
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
|
||||
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
||||
when adapting to brighter or darker environments. This parameter controls how quickly
|
||||
brightness changes occur in response to an observed change in light level that exceeds the
|
||||
hysteresis threshold. -->
|
||||
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
|
||||
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
|
||||
|
||||
<!-- Default screen brightness setting.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<integer name="config_screenBrightnessSettingDefault">128</integer>
|
||||
|
||||
<!-- 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. -->
|
||||
<integer name="config_screenBrightnessDim">1</integer>
|
||||
|
||||
<!-- 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]
|
||||
...
|
||||
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>5000</item>
|
||||
</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> <!-- 0-1 -->
|
||||
<item>29.25559</item> <!-- 1-2 -->
|
||||
<item>34.240692</item> <!-- 2-3 -->
|
||||
<item>37.514347</item> <!-- 3-4 -->
|
||||
<item>40.018696</item> <!-- 4-8 -->
|
||||
<item>46.885098</item> <!-- 8-12 -->
|
||||
<item>51.626434</item> <!-- 12-20 -->
|
||||
<item>58.610405</item> <!-- 20-33 -->
|
||||
<item>66.890915</item> <!-- 33-55 -->
|
||||
<item>77.61644</item> <!-- 55-90 -->
|
||||
<item>90.221886</item> <!-- 90-148 -->
|
||||
<item>105.80314</item> <!-- 148-245 -->
|
||||
<item>126.073845</item> <!-- 245-403 -->
|
||||
<item>154.16931</item> <!-- 403-665 -->
|
||||
<item>191.83717</item> <!-- 665-1097 -->
|
||||
<item>240.74442</item> <!-- 1097-1808 -->
|
||||
<item>294.84857</item> <!-- 1808-2981 -->
|
||||
<item>348.05453</item> <!-- 2981-5000 -->
|
||||
<item>389.70</item> <!-- 5000+ -->
|
||||
</array>
|
||||
|
||||
<!-- Minimum screen brightness setting allowed by the power manager.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<integer name="config_screenBrightnessSettingMinimum">1</integer>
|
||||
|
||||
<!-- 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>
|
||||
<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>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>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user