[Display] R3: Modify Brightness Settings
1. Move auto brightness curve to B5/R3 common folder.
2. Modify Brightness Setting default as 140 nits.
3. Modify Max Brightness to 500 nits.
Bug: 142222039
Test: Boot test and check display log
mConfig=BrightnessConfiguration{[(0.0, 5.139055), (1.0, 17.495838), (2.0, 28.169666), ..... (5000.0, 431.34305), (10000.0, 523.99176)]
mNitsToBacklightSpline=[(2.0, 0.0: 0.002008032), (500.0, 1.0: 0.002008032)]}
mScreenBrightnessDefault=0.32156864
Change-Id: I71e0122b33a0d553dd07c67b8e281e9ff16c2f92
diff --git a/redfin/overlay/frameworks/base/core/res/res/values/config.xml b/redfin/overlay/frameworks/base/core/res/res/values/config.xml
index 7c3c3f4..7134d64 100755
--- a/redfin/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/redfin/overlay/frameworks/base/core/res/res/values/config.xml
@@ -50,72 +50,6 @@
<!-- Type of the ambient tap sensor. Empty if ambient tap is not supported. -->
<string name="config_dozeTapSensorType" translatable="false">com.google.sensor.single_touch</string>
- <!-- 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>399.81</item> <!-- 5000+ -->
- </array>
-
<!-- Minimum screen brightness allowed by the power manager. -->
<integer name="config_screenBrightnessDim">6</integer>
@@ -146,7 +80,7 @@
<!-- Default screen brightness setting
Must be in the range specified by minimum and maximum. -->
- <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.38188976378</item>
+ <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.33725490196</item>
<!-- An array describing the screen's backlight values corresponding to the brightness
values in the config_screenBrightnessNits array.
@@ -166,7 +100,7 @@
This array should be equal in size to config_screenBrightnessBacklight -->
<array name="config_screenBrightnessNits">
<item>2.0</item>
- <item>450.0</item>
+ <item>500.0</item>
</array>
<!-- The nominal white coordinates, in CIE1931 XYZ color space, for Display White Balance to