sm7125: Update brightness overlays

tirimbino
Risen 2 years ago
parent f018cf68f5
commit 228d6fc4fa
  1. 110
      overlay/frameworks/base/core/res/res/values/config.xml

@ -77,35 +77,26 @@
<item>7,1</item>
</string-array>
<integer-array name="config_autoBrightnessDisplayValuesNits">
<item>11</item>
<item>15</item>
<item>22</item>
<item>27</item>
<item>31</item>
<item>35</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>
</integer-array>
<!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
The N entries of this array define N + 1 control points as follows:
(1-based arrays)
Point 1: (0, value[1]): lux <= 0
Point 2: (level[1], value[2]): 0 < lux <= level[1]
Point 3: (level[2], value[3]): level[2] < lux <= level[3]
...
Point N+1: (level[N], value[N+1]): level[N] < lux
The control points must be strictly increasing. Each control point
corresponds to an entry in the brightness backlight values arrays.
For example, if lux == level[1] (first element of the levels array)
then the brightness will be determined by value[2] (second element
of the brightness values array).
Spline interpolation is used to determine the auto-brightness
backlight values for lux levels between these control points.
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>2</item>
@ -134,6 +125,10 @@
<item>20000</item>
<item>40000</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>
@ -623,6 +618,54 @@
<item>485</item>
<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>
<item>22</item>
<item>27</item>
<item>31</item>
<item>35</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>
</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>2</item>
<item>2.31094</item>
@ -1219,15 +1262,6 @@
<!-- Doze: should the TYPE_PICK_UP_GESTURE sensor be used as a pulse signal. -->
<bool name="config_dozePulsePickup">true</bool>
<!-- Amount of time it takes for the light sensor to warm up in milliseconds.
For this time after the screen turns on, the Power Manager
will not debounce light sensor readings -->
<integer name="config_lightSensorWarmupTime">2000</integer>
<!-- The type of the light sensor to be used by the display framework for things like
auto-brightness. If unset, then it just gets the default sensor of type TYPE_LIGHT. -->
<string name="config_displayLightSensorType">com.samsung.sensor.physical_light</string>
<!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
<string name="config_dozeUdfpsLongPressSensorType" translatable="false">org.lineageos.sensor.udfps</string>

Loading…
Cancel
Save