497 lines
19 KiB
XML
497 lines
19 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2022 The LineageOS Project
|
|
SPDX-License-Identifier: Apache-2.0
|
|
-->
|
|
<resources>
|
|
|
|
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
|
|
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
|
<bool name="config_automatic_brightness_available">true</bool>
|
|
|
|
<!-- Array of hysteresis constraint values for brightening, represented as tenths of a
|
|
percent. The length of this array is assumed to be one greater than
|
|
config_ambientThresholdLevels. The brightening threshold is calculated as
|
|
lux * (1.0f + CONSTRAINT_VALUE). When the current lux is higher than this threshold,
|
|
the screen brightness is recalculated. See the config_ambientThresholdLevels
|
|
description for how the constraint value is chosen. -->
|
|
<integer-array name="config_ambientBrighteningThresholds">
|
|
<item>600</item>
|
|
<item>300</item>
|
|
</integer-array>
|
|
|
|
<!-- Array of hysteresis constraint values for darkening, represented as tenths of a
|
|
percent. The length of this array is assumed to be one greater than
|
|
config_ambientThresholdLevels. The darkening threshold is calculated as
|
|
lux * (1.0f - CONSTRAINT_VALUE). When the current lux is lower than this threshold,
|
|
the screen brightness is recalculated. See the config_ambientThresholdLevels
|
|
description for how the constraint value is chosen. -->
|
|
<integer-array name="config_ambientDarkeningThresholds">
|
|
<item>600</item>
|
|
<item>300</item>
|
|
</integer-array>
|
|
|
|
<!-- Array of screen brightness threshold values. This is used for determining hysteresis
|
|
constraint values by calculating the index to use for lookup and then setting the
|
|
constraint value to the corresponding value of the array. The new brightening hysteresis
|
|
constraint value is the n-th element of config_screenBrighteningThresholds, and the new
|
|
darkening hysteresis constraint value is the n-th element of
|
|
config_screenDarkeningThresholds.
|
|
The (zero-based) index is calculated as follows: (MAX is the largest index of the array)
|
|
condition calculated index
|
|
value < level[0] 0
|
|
level[n] <= value < level[n+1] n+1
|
|
level[MAX] <= value MAX+1 -->
|
|
<integer-array name="config_ambientThresholdLevels">
|
|
<item>10</item>
|
|
</integer-array>
|
|
|
|
<!-- Array of hysteresis constraint values for brightening, represented as tenths of a
|
|
percent. The length of this array is assumed to be one greater than
|
|
config_screenThresholdLevels. The brightening threshold is calculated as
|
|
screenBrightness * (1.0f + CONSTRAINT_VALUE). When the new screen brightness is higher
|
|
than this threshold, it is applied. See the config_screenThresholdLevels description for
|
|
how the constraint value is chosen. -->
|
|
<integer-array name="config_screenBrighteningThresholds">
|
|
<item>0</item>
|
|
</integer-array>
|
|
|
|
<!-- Array of hysteresis constraint values for darkening, represented as tenths of a
|
|
percent. The length of this array is assumed to be one greater than
|
|
config_screenThresholdLevels. The darkening threshold is calculated as
|
|
screenBrightness * (1.0f - CONSTRAINT_VALUE). When the new screen brightness is lower than
|
|
this threshold, it is applied. See the config_screenThresholdLevels description for how
|
|
the constraint value is chosen. -->
|
|
<array name="config_screenDarkeningThresholds">
|
|
<item>0</item>
|
|
</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>4</item>
|
|
<item>12</item>
|
|
<item>20</item>
|
|
<item>28</item>
|
|
<item>47</item>
|
|
<item>63</item>
|
|
<item>86</item>
|
|
<item>150</item>
|
|
<item>220</item>
|
|
<item>270</item>
|
|
<item>360</item>
|
|
<item>420</item>
|
|
<item>510</item>
|
|
<item>620</item>
|
|
<item>1000</item>
|
|
<item>2000</item>
|
|
<item>3100</item>
|
|
<item>3988</item>
|
|
<item>5018</item>
|
|
<item>6232</item>
|
|
<item>7648</item>
|
|
<item>9280</item>
|
|
<item>11146</item>
|
|
<item>13261</item>
|
|
<item>15640</item>
|
|
<item>18302</item>
|
|
<item>21260</item>
|
|
<item>24532</item>
|
|
<item>28133</item>
|
|
<item>32080</item>
|
|
<item>36388</item>
|
|
<item>41073</item>
|
|
<item>46153</item>
|
|
<item>51642</item>
|
|
<item>63912</item>
|
|
<item>78015</item>
|
|
<item>94076</item>
|
|
<item>112226</item>
|
|
<item>132592</item>
|
|
<item>155302</item>
|
|
<item>180486</item>
|
|
<item>208271</item>
|
|
<item>223180</item>
|
|
<item>255108</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>2.0487</item>
|
|
<item>4.8394</item>
|
|
<item>15.2619</item>
|
|
<item>33</item>
|
|
<item>49</item>
|
|
<item>62.95</item>
|
|
<item>76.46</item>
|
|
<item>84.38</item>
|
|
<item>89.51</item>
|
|
<item>100.34</item>
|
|
<item>109.48</item>
|
|
<item>115</item>
|
|
<item>123.86</item>
|
|
<item>129.18</item>
|
|
<item>138.07</item>
|
|
<item>148.62</item>
|
|
<item>175.84</item>
|
|
<item>234.9</item>
|
|
<item>279</item>
|
|
<item>300</item>
|
|
<item>320</item>
|
|
<item>340</item>
|
|
<item>360</item>
|
|
<item>380</item>
|
|
<item>400</item>
|
|
<item>420</item>
|
|
<item>440</item>
|
|
<item>460</item>
|
|
<item>480</item>
|
|
<item>500</item>
|
|
<item>520</item>
|
|
<item>540</item>
|
|
<item>560</item>
|
|
<item>580</item>
|
|
<item>600</item>
|
|
<item>620</item>
|
|
<item>660</item>
|
|
<item>700</item>
|
|
<item>740</item>
|
|
<item>780</item>
|
|
<item>820</item>
|
|
<item>860</item>
|
|
<item>900</item>
|
|
<item>940</item>
|
|
<item>960</item>
|
|
<item>1000</item>
|
|
</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>0.0</item>
|
|
<item>2.87</item>
|
|
<item>2.92</item>
|
|
<item>3.1</item>
|
|
<item>3.57</item>
|
|
<item>4.25</item>
|
|
<item>5.17</item>
|
|
<item>6.25</item>
|
|
<item>7.46</item>
|
|
<item>9.01</item>
|
|
<item>10.72</item>
|
|
<item>12.79</item>
|
|
<item>14.79</item>
|
|
<item>17.25</item>
|
|
<item>20.09</item>
|
|
<item>22.73</item>
|
|
<item>25.75</item>
|
|
<item>29.04</item>
|
|
<item>32.47</item>
|
|
<item>36.59</item>
|
|
<item>40.5</item>
|
|
<item>44.76</item>
|
|
<item>49.59</item>
|
|
<item>54.28</item>
|
|
<item>58.76</item>
|
|
<item>63.89</item>
|
|
<item>69.43</item>
|
|
<item>75.25</item>
|
|
<item>81.14</item>
|
|
<item>87.62</item>
|
|
<item>94.04</item>
|
|
<item>98.43</item>
|
|
<item>105.66</item>
|
|
<item>113.0</item>
|
|
<item>121.22</item>
|
|
<item>129.54</item>
|
|
<item>136.8</item>
|
|
<item>146.37</item>
|
|
<item>154.61</item>
|
|
<item>163.9</item>
|
|
<item>174.21</item>
|
|
<item>182.27</item>
|
|
<item>194.45</item>
|
|
<item>205.89</item>
|
|
<item>215.12</item>
|
|
<item>228.27</item>
|
|
<item>238.21</item>
|
|
<item>250.34</item>
|
|
<item>263.42</item>
|
|
<item>273.78</item>
|
|
<item>287.67</item>
|
|
<item>300.67</item>
|
|
<item>313.06</item>
|
|
<item>327.17</item>
|
|
<item>340.72</item>
|
|
<item>354.25</item>
|
|
<item>368.99</item>
|
|
<item>383.17</item>
|
|
<item>398.86</item>
|
|
<item>415.52</item>
|
|
<item>431.63</item>
|
|
<item>448.22</item>
|
|
<item>459.04</item>
|
|
<item>482.52</item>
|
|
<item>498.77</item>
|
|
</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>4</item>
|
|
<item>8</item>
|
|
<item>12</item>
|
|
<item>16</item>
|
|
<item>20</item>
|
|
<item>24</item>
|
|
<item>28</item>
|
|
<item>32</item>
|
|
<item>36</item>
|
|
<item>40</item>
|
|
<item>44</item>
|
|
<item>48</item>
|
|
<item>52</item>
|
|
<item>56</item>
|
|
<item>60</item>
|
|
<item>64</item>
|
|
<item>68</item>
|
|
<item>72</item>
|
|
<item>76</item>
|
|
<item>80</item>
|
|
<item>84</item>
|
|
<item>88</item>
|
|
<item>92</item>
|
|
<item>96</item>
|
|
<item>100</item>
|
|
<item>104</item>
|
|
<item>108</item>
|
|
<item>112</item>
|
|
<item>116</item>
|
|
<item>120</item>
|
|
<item>123</item>
|
|
<item>127</item>
|
|
<item>131</item>
|
|
<item>135</item>
|
|
<item>139</item>
|
|
<item>143</item>
|
|
<item>147</item>
|
|
<item>151</item>
|
|
<item>155</item>
|
|
<item>159</item>
|
|
<item>163</item>
|
|
<item>167</item>
|
|
<item>171</item>
|
|
<item>175</item>
|
|
<item>179</item>
|
|
<item>183</item>
|
|
<item>187</item>
|
|
<item>191</item>
|
|
<item>195</item>
|
|
<item>199</item>
|
|
<item>203</item>
|
|
<item>207</item>
|
|
<item>211</item>
|
|
<item>215</item>
|
|
<item>219</item>
|
|
<item>223</item>
|
|
<item>227</item>
|
|
<item>231</item>
|
|
<item>235</item>
|
|
<item>239</item>
|
|
<item>243</item>
|
|
<item>246</item>
|
|
<item>251</item>
|
|
<item>255</item>
|
|
</integer-array>
|
|
|
|
<!-- 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. -->
|
|
<integer name="config_screenBrightnessDim">6</integer>
|
|
|
|
<!-- Default screen brightness setting set.
|
|
-2 is invalid so setting will resort to int value specified above.
|
|
Must be in the range specified by minimum and maximum. -->
|
|
<item type="dimen" name="config_screenBrightnessSettingDefaultFloat">0.45882353</item>
|
|
|
|
<!-- Maximum screen brightness allowed by the power manager.
|
|
-2 is invalid so setting will resort to int value specified above.
|
|
Set this to 1.0 for maximum brightness range.
|
|
The user is forbidden from setting the brightness above this level. -->
|
|
<item type="dimen" name="config_screenBrightnessSettingMaximumFloat">1.0</item>
|
|
|
|
<!-- Minimum screen brightness setting allowed by power manager.
|
|
-2 is invalid so setting will resort to int value specified above.
|
|
Set this to 0.0 to allow screen to go to minimal brightness.
|
|
The user is forbidden from setting the brightness below this level. -->
|
|
<item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.001954079</item>
|
|
|
|
<!-- 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">1500</integer>
|
|
<integer name="config_autoBrightnessDarkeningLightDebounce">1500</integer>
|
|
|
|
<!-- Light sensor event rate in milliseconds for automatic brightness control. -->
|
|
<integer name="config_autoBrightnessLightSensorRate">200</integer>
|
|
|
|
<!-- Boolean indicating whether display white balance is supported. -->
|
|
<bool name="config_displayWhiteBalanceAvailable">true</bool>
|
|
|
|
<!-- See AmbientSensor.AmbientColorTemperatureSensor.
|
|
The ambient color temperature sensor name. -->
|
|
<string name="config_displayWhiteBalanceColorTemperatureSensorName">qti.sensor.rgb</string>
|
|
|
|
<!-- Minimum color temperature, in Kelvin, supported by display white balance. -->
|
|
<integer name="config_displayWhiteBalanceColorTemperatureMin">5000</integer>
|
|
|
|
<!-- Maximum color temperature, in Kelvin, supported by display white balance. -->
|
|
<integer name="config_displayWhiteBalanceColorTemperatureMax">7400</integer>
|
|
|
|
<!-- See DisplayWhiteBalanceThrottler.
|
|
The increase threshold values, throttled if value < value * (1 + threshold). Must be
|
|
non-empty, the same length as config_displayWhiteBalanceBaseThresholds, and contain
|
|
non-negative numbers. -->
|
|
<array name="config_displayWhiteBalanceIncreaseThresholds">
|
|
<item>0.15</item>
|
|
</array>
|
|
|
|
<!-- See DisplayWhiteBalanceThrottler.
|
|
The decrease threshold values, throttled if value > value * (1 - threshold). Must be
|
|
non-empty, the same length as config_displayWhiteBalanceBaseThresholds, and contain
|
|
non-negative numbers. -->
|
|
<array name="config_displayWhiteBalanceDecreaseThresholds">
|
|
<item>0.15</item>
|
|
</array>
|
|
|
|
<!-- See DisplayWhiteBalanceController.
|
|
A float array containing a list of ambient color temperatures, in Kelvin. This array,
|
|
together with config_displayWhiteBalanceDisplayColorTemperatures, is used to generate a
|
|
lookup table used in DisplayWhiteBalanceController. This lookup table is used to map
|
|
ambient color temperature readings to a target color temperature for the display.
|
|
This table is optional. If used, this array must,
|
|
1) Contain at least two entries
|
|
2) Be the same length as config_displayWhiteBalanceDisplayColorTemperatures. -->
|
|
<integer-array name="config_displayWhiteBalanceAmbientColorTemperatures">
|
|
<item>2800</item>
|
|
<item>3600</item>
|
|
<item>4000</item>
|
|
<item>4500</item>
|
|
<item>5000</item>
|
|
<item>6100</item>
|
|
<item>6700</item>
|
|
<item>7000</item>
|
|
<item>8000</item>
|
|
</integer-array>
|
|
|
|
<!-- See DisplayWhiteBalanceController.
|
|
A float array containing a list of ambient color temperatures, in Kelvin. This array,
|
|
together with config_displayWhiteBalanceDisplayColorTemperatures, is used to generate a
|
|
lookup table used in DisplayWhiteBalanceController. This lookup table is used to map
|
|
ambient color temperature readings to a target color temperature for the display.
|
|
This table is optional. If used, this array must,
|
|
1) Contain at least two entries
|
|
2) Be the same length as config_displayWhiteBalanceDisplayColorTemperatures. -->
|
|
<integer-array name="config_displayWhiteBalanceDisplayColorTemperatures">
|
|
<item>5109</item>
|
|
<item>5198</item>
|
|
<item>5249</item>
|
|
<item>5556</item>
|
|
<item>5848</item>
|
|
<item>6522</item>
|
|
<item>6737</item>
|
|
<item>6909</item>
|
|
<item>7373</item>
|
|
</integer-array>
|
|
|
|
<!-- The bounding path of the cutout region of the main built-in display.
|
|
Must either be empty if there is no cutout region, or a string that is parsable by
|
|
{@link android.util.PathParser}.
|
|
|
|
The path is assumed to be specified in display coordinates with pixel units and in
|
|
the display's native orientation, with the origin of the coordinate system at the
|
|
center top of the display.
|
|
|
|
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
|
|
appended after the path string to interpret coordinates in dp instead of px units.
|
|
Note that a physical cutout should be configured in pixels for the best results.
|
|
-->
|
|
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
|
M 154,83
|
|
M 111,83
|
|
A 43,43 0 1,0 197,83
|
|
A 43,43 0 1,0 111,83
|
|
Z
|
|
@left
|
|
</string>
|
|
|
|
<!-- Like config_mainBuiltInDisplayCutout, but this path is used to report the
|
|
one single bounding rect per device edge to the app via
|
|
{@link DisplayCutout#getBoundingRect}. Note that this path should try to match the visual
|
|
appearance of the cutout as much as possible, and may be smaller than
|
|
config_mainBuiltInDisplayCutout
|
|
-->
|
|
<string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
|
|
M 0,0
|
|
H 236
|
|
V 126
|
|
H 0
|
|
Z
|
|
@left
|
|
</string>
|
|
|
|
<!-- Whether the display cutout region of the main built-in display should be forced to
|
|
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
|
|
-->
|
|
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
|
|
|
|
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
|
|
<integer-array name="config_udfps_sensor_props" translatable="false" >
|
|
<item>717</item> <!-- <item>sensorLocationX</item> -->
|
|
<item>2936</item> <!-- <item>sensorLocationY</item> -->
|
|
<item>110</item> <!-- <item>sensorRadius</item> -->
|
|
</integer-array>
|
|
|
|
</resources>
|