sm7125-common: further optimize auto brightness levels

Change-Id: Icf4ec14e5b1164eb5f4f1a9bd6f0f09d8d51ea0f
fourteen-wip
Simon1511 12 months ago
parent ad4ed687f7
commit 584bfb3556
  1. 80
      overlay/frameworks/base/core/res/res/values/config.xml

@ -185,10 +185,11 @@
<item>4</item>
<item>5</item>
<item>10</item>
<item>15</item>
<item>20</item>
<item>25</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>100</item>
<item>300</item>
<item>500</item>
@ -700,45 +701,40 @@
<item>486</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 -->
<integer-array name="config_autoBrightnessDisplayValuesNits">
<item>11</item>
<item>15</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.
The brightness values must be between 0 and 255 and be non-decreasing.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>22</item>
<item>27</item>
<item>25</item>
<item>28</item>
<item>31</item>
<item>35</item>
<item>36</item>
<item>40</item>
<item>46</item>
<item>52</item>
<item>55</item>
<item>75</item>
<item>95</item>
<item>106</item>
<item>112</item>
<item>119</item>
<item>134</item>
<item>157</item>
<item>220</item>
<item>378</item>
<item>378</item>
<item>468</item>
<item>515</item>
<item>563</item>
<item>610</item>
<item>658</item>
<item>705</item>
<item>753</item>
<item>776</item>
<item>800</item>
<item>800</item>
<item>58</item>
<item>63</item>
<item>67</item>
<item>72</item>
<item>98</item>
<item>145</item>
<item>163</item>
<item>172</item>
<item>181</item>
<item>191</item>
<item>200</item>
<item>209</item>
<item>218</item>
<item>227</item>
<item>227</item>
<item>236</item>
<item>236</item>
<item>245</item>
<item>255</item>
</integer-array>
<!-- An array of floats describing the screen brightness in nits corresponding to the backlight
@ -1237,6 +1233,14 @@
<item>800</item>
</array>
<!-- 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">10000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">10000</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. -->

Loading…
Cancel
Save