1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2021, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
21    <!-- Indicate whether to allow the device to suspend when the screen is off
22         due to the proximity sensor.  This resource should only be set to true
23         if the sensor HAL correctly handles the proximity sensor as a wake-up source.
24         Otherwise, the device may fail to wake out of suspend reliably.
25         The default is false. -->
26    <bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
27
28    <!-- Flag indicating whether the we should enable the automatic brightness in Settings.
29         Software implementation will be used if config_hardware_auto_brightness_available is not set -->
30    <bool name="config_automatic_brightness_available">false</bool>
31
32    <!-- Minimum screen brightness allowed by the power manager. -->
33    <integer name="config_screenBrightnessDim">6</integer>
34
35    <!-- Minimum screen brightness setting allowed by power manager.
36         The user is forbidden from setting the brightness below this level.  -->
37    <item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.0</item>
38
39    <!-- Maximum screen brightness allowed by the power manager.
40         The user is forbidden from setting the brightness above this level. -->
41    <item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>
42
43    <!-- Default screen brightness setting
44         Must be in the range specified by minimum and maximum. -->
45    <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.17429718</item>
46
47    <!-- The default refresh rate. Pixel 6 manages this using the peak refresh rate setting, so set
48         this value to 0 so it has no effect. -->
49    <integer name="config_defaultRefreshRate">0</integer>
50
51    <!-- The default peak refresh rate. -->
52    <integer name="config_defaultPeakRefreshRate">120</integer>
53
54    <!-- Not allow to switch to higher refresh rate when display brightness setting is
55         equal or less than this value -->
56    <integer-array name="config_brightnessThresholdsOfPeakRefreshRate">
57        <item>2</item> <!-- 15% UI brightness -->
58    </integer-array>
59    <integer-array name="config_ambientThresholdsOfPeakRefreshRate">
60        <item>5</item>
61    </integer-array>
62
63    <!-- default refresh rate in the zone defined by birghtness and ambient thresholds -->
64    <integer name="config_defaultRefreshRateInZone">120</integer>
65
66    <!-- Default refresh rate while the device has high brightness mode enabled for HDR. -->
67    <integer name="config_defaultRefreshRateInHbmHdr">60</integer>
68
69    <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
70      The N entries of this array define N  1 zones as follows:
71         Zone 0:        0 <= LUX < array[0]
72         Zone 1:        array[0] <= LUX < array[1]
73         ...
74         Zone N:        array[N - 1] <= LUX < array[N]
75         Zone N + 1     array[N] <= LUX < infinity
76         Must be overridden in platform specific overlays -->
77    <integer-array name="config_autoBrightnessLevels">
78          <item>1</item>
79          <item>2</item>
80          <item>3</item>
81          <item>4</item>
82          <item>8</item>
83          <item>12</item>
84          <item>20</item>
85          <item>33</item>
86          <item>55</item>
87          <item>90</item>
88          <item>148</item>
89          <item>245</item>
90          <item>403</item>
91          <item>665</item>
92          <item>1097</item>
93          <item>1808</item>
94          <item>2981</item>
95          <item>5000</item>
96          <item>10000</item>
97          <item>20000</item>
98    </integer-array>
99
100    <!-- Array of desired screen brightness in nits corresponding to the lux values
101      in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
102      config_screenBrightnessMaximumNits, the display brightness is defined as the measured
103      brightness of an all-white image.
104
105      If this is defined then:
106      - config_autoBrightnessLcdBacklightValues should not be defined
107      - config_screenBrightnessNits must be defined
108      - config_screenBrightnessBacklight must be defined
109
110      This array should have size one greater than the size of the config_autoBrightnessLevels
111      array. The brightness values must be non-negative and non-decreasing. This must be
112      overridden in platform specific overlays -->
113    <array name="config_autoBrightnessDisplayValuesNits">
114          <item>5.139055</item>       <!--  0 - 1 -->
115          <item>9.962018965</item>    <!--  1 - 2 -->
116          <item>18.34822964</item>    <!--  2 - 3 -->
117          <item>21.55068128</item>    <!--  3 - 4 -->
118          <item>24.0167788</item>     <!--  4 - 8 -->
119          <item>30.62162162</item>    <!--  8 - 12 -->
120          <item>35.09486396</item>    <!--  12 - 20 -->
121          <item>41.2249643</item>     <!--  20 - 33 -->
122          <item>47.6760716</item>     <!--  33 - 55 -->
123          <item>55.73002427</item>    <!--  55 - 90 -->
124          <item>66.24126116</item>    <!--  90 - 148 -->
125          <item>79.67614115</item>    <!--  148 - 245 -->
126          <item>98.04727274</item>    <!--  245 - 403 -->
127          <item>125.1221991</item>    <!--  403 - 665 -->
128          <item>161.6875093</item>    <!--  665 - 1097 -->
129          <item>208.4885553</item>    <!--  1097 - 1808 -->
130          <item>264.8221315</item>    <!--  1808 - 2981 -->
131          <item>327.8974352</item>    <!--  2981 - 5000 -->
132          <item>401.1676739</item>    <!--  5000 - 10000 -->
133          <item>750.0</item>          <!--  10000 - 20000 -->
134          <item>900.0</item>          <!--  20000+ -->
135    </array>
136
137    <!-- Stability requirements in milliseconds for accepting a new brightness level.  This is used
138         for debouncing the light sensor.  Different constants are used to debounce the light sensor
139         when adapting to brighter or darker environments.  This parameter controls how quickly
140         brightness changes occur in response to an observed change in light level that exceeds the
141         hysteresis threshold. -->
142    <integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
143    <integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
144
145     <integer-array name="config_ambientThresholdLevels">
146          <item>2</item>
147          <item>3</item>
148          <item>4</item>
149          <item>5</item>
150          <item>6</item>
151          <item>7</item>
152          <item>8</item>
153          <item>9</item>
154          <item>10</item>
155          <item>20</item>
156          <item>30</item>
157          <item>40</item>
158          <item>50</item>
159          <item>60</item>
160          <item>70</item>
161          <item>80</item>
162          <item>90</item>
163          <item>100</item>
164          <item>200</item>
165          <item>300</item>
166          <item>400</item>
167          <item>500</item>
168          <item>1000</item>
169          <item>2000</item>
170          <item>3000</item>
171          <item>4000</item>
172     </integer-array>
173
174     <integer-array name="config_ambientBrighteningThresholds">
175          <item>5186</item>
176          <item>4333</item>
177          <item>3666</item>
178          <item>2999</item>
179          <item>2759</item>
180          <item>2519</item>
181          <item>2279</item>
182          <item>2039</item>
183          <item>1799</item>
184          <item>799</item>
185          <item>527</item>
186          <item>499</item>
187          <item>470</item>
188          <item>517</item>
189          <item>565</item>
190          <item>612</item>
191          <item>660</item>
192          <item>708</item>
193          <item>742</item>
194          <item>636</item>
195          <item>582</item>
196          <item>549</item>
197          <item>369</item>
198          <item>294</item>
199          <item>269</item>
200          <item>220</item>
201          <item>220</item>
202     </integer-array>
203
204     <integer-array name="config_ambientDarkeningThresholds">
205          <item>525</item>
206          <item>683</item>
207          <item>666</item>
208          <item>650</item>
209          <item>640</item>
210          <item>630</item>
211          <item>620</item>
212          <item>610</item>
213          <item>600</item>
214          <item>500</item>
215          <item>500</item>
216          <item>440</item>
217          <item>385</item>
218          <item>382</item>
219          <item>379</item>
220          <item>376</item>
221          <item>373</item>
222          <item>371</item>
223          <item>367</item>
224          <item>387</item>
225          <item>397</item>
226          <item>403</item>
227          <item>380</item>
228          <item>345</item>
229          <item>333</item>
230          <item>283</item>
231          <item>283</item>
232     </integer-array>
233
234    <!-- The max vibration strength allowed in audio haptic channels. -->
235    <item name="config_hapticChannelMaxVibrationAmplitude" format="float" type="dimen">0.335</item>
236</resources>
237