Add display calibration info.

Also, move to a nits-based autobrightness curve.

Bug: 71706239
Test: Boot Walleye device, see we get a PhysicalBrightnessMapper in
      dumpsys display

Change-Id: I687e43680d5001a2aeefb06d1caabaefcfa0f658
This commit is contained in:
Michael Wright
2018-01-08 18:41:36 +00:00
parent 66545b0500
commit f0c0a9bc21

View File

@@ -51,39 +51,84 @@
<item>4000</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>10</item> <!-- 0-5 -->
<item>33</item> <!-- 5-20 -->
<item>49</item> <!-- 20-40 -->
<item>68</item> <!-- 40-100 -->
<item>87</item> <!-- 100-325 -->
<item>108</item> <!-- 325-600 -->
<item>132</item> <!-- 600-1250 -->
<item>167</item> <!-- 1250-2200 -->
<item>206</item> <!-- 2200-4000 -->
<item>255</item> <!-- 4000+ -->
<!-- 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>17.525</item> <!-- 0-5 -->
<item>55.3</item> <!-- 5-20 -->
<item>80.33</item> <!-- 20-40 -->
<item>108.39</item> <!-- 40-100 -->
<item>135.4</item> <!-- 100-325 -->
<item>168</item> <!-- 325-600 -->
<item>212.16</item> <!-- 600-1250 -->
<item>268.47</item> <!-- 1250-2200 -->
<item>334.8</item> <!-- 2200-4000 -->
<item>392.9</item> <!-- 4000+ -->
</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>
<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>
<!-- Array of output values for button 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_autoBrightnessButtonBacklightValues">
<!-- 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>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
<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>
<!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
<integer name="config_shutdownBatteryTemperature">600</integer>