kunlun2: overlay: Update brightness overlays from stock

This commit is contained in:
Sᴀᴍᴀʀ Vɪꜱᴘᴜᴛᴇ 2020-04-11 12:37:51 +05:30 committed by SamarV-121
parent 432e2365f1
commit 659dae57a2

View file

@ -36,40 +36,104 @@
backlight values for LUX levels between these control points. backlight values for LUX levels between these control points.
Must be overridden in platform specific overlays --> Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels"> <integer-array name="config_autoBrightnessLevels">
<item>45</item> <item>3</item>
<item>1025</item> <item>41</item>
<item>1480</item> <item>82</item>
<item>2250</item> <item>124</item>
<item>3300</item> <item>206</item>
<item>10000</item> <item>275</item>
<item>481</item>
<item>618</item>
<item>756</item>
<item>989</item>
<item>1305</item>
<item>1511</item>
<item>2061</item>
<item>2748</item>
<item>3100</item>
</integer-array> </integer-array>
<!-- Array of output values for LCD backlight corresponding to the LUX values <!-- Array of desired screen brightness in nits corresponding to the lux values
in the config_autoBrightnessLevels array. This array should have size one greater in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
than the size of the config_autoBrightnessLevels array. config_screenBrightnessMaximumNits, the display brightness is defined as the measured
The brightness values must be between 0 and 255 and be non-decreasing. brightness of an all-white image.
This must be overridden in platform specific overlays --> If this is defined then:
<integer-array name="config_autoBrightnessLcdBacklightValues"> - config_autoBrightnessLcdBacklightValues should not be defined
<item>8</item> - config_screenBrightnessNits must be defined
<item>22</item> - config_screenBrightnessBacklight must be defined
<item>48</item> This array should have size one greater than the size of the config_autoBrightnessLevels
<item>78</item> array. The brightness values must be non-negative and non-decreasing. This must be
<item>128</item> overridden in platform specific overlays -->
<item>206</item> <integer-array name="config_autoBrightnessDisplayValuesNits">
<item>2</item>
<item>25</item>
<item>85</item>
<item>85</item>
<item>85</item>
<item>85</item>
<item>110</item>
<item>140</item>
<item>180</item>
<item>210</item>
<item>250</item>
<item>280</item>
<item>320</item>
<item>340</item>
<item>360</item>
<item>527</item>
</integer-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>1</item>
<item>11</item>
<item>35</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>100</item>
<item>120</item>
<item>140</item>
<item>160</item>
<item>180</item>
<item>240</item>
<item>255</item> <item>255</item>
</integer-array> </integer-array>
<!-- Light sensor event rate in milliseconds for automatic brightness control. --> <!-- An array of floats describing the screen brightness in nits corresponding to the backlight
<integer name="config_autoBrightnessLightSensorRate">500</integer> 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 -->
<integer-array name="config_screenBrightnessNits">
<item>0</item>
<item>2</item>
<item>22</item>
<item>73</item>
<item>126</item>
<item>147</item>
<item>169</item>
<item>210</item>
<item>253</item>
<item>295</item>
<item>335</item>
<item>376</item>
<item>500</item>
<item>527</item>
</integer-array>
<!-- Screen brightness used to dim the screen when the user activity <!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. --> that can be set by the user. -->
<integer name="config_screenBrightnessDim">4</integer> <integer name="config_screenBrightnessDim">10</integer>
<!-- Default screen brightness setting. <!-- Default screen brightness setting.
Must be in the range specified by minimum and maximum. --> Must be in the range specified by minimum and maximum. -->
<integer name="config_screenBrightnessSettingDefault">44</integer> <integer name="config_screenBrightnessSettingDefault">102</integer>
<!-- Minimum screen brightness setting allowed by the power manager. <!-- Minimum screen brightness setting allowed by the power manager.
The user is forbidden from setting the brightness below this level. --> The user is forbidden from setting the brightness below this level. -->
@ -80,8 +144,8 @@
when adapting to brighter or darker environments. This parameter controls how quickly 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 brightness changes occur in response to an observed change in light level that exceeds the
hysteresis threshold. --> hysteresis threshold. -->
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer> <integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer> <integer name="config_autoBrightnessDarkeningLightDebounce">5000</integer>
<!-- If this is true, the screen will come on when you unplug usb/power/whatever. --> <!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
<bool name="config_unplugTurnsOnScreen">true</bool> <bool name="config_unplugTurnsOnScreen">true</bool>