summaryrefslogtreecommitdiff
path: root/husky/overlay/frameworks/base/core/res/res/values/config.xml
blob: 327a3af3d9c367996d4839e55853157d116829a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2022, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->

<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Indicate whether to allow the device to suspend when the screen is off
         due to the proximity sensor.  This resource should only be set to true
         if the sensor HAL correctly handles the proximity sensor as a wake-up source.
         Otherwise, the device may fail to wake out of suspend reliably.
         The default is false. -->
    <bool name="config_suspendWhenScreenOffDueToProximity">true</bool>

    <!-- 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>

    <!-- Minimum screen brightness allowed by the power manager. -->
    <integer name="config_screenBrightnessDim">6</integer>

    <!-- If this is true, the udfps vote is ignored. -->
    <bool name="config_ignoreUdfpsVote">true</bool>

    <!-- Minimum screen brightness setting allowed by power manager.
         The user is forbidden from setting the brightness below this level.  -->
    <item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.0</item>

    <!-- Maximum screen brightness allowed by the power manager.
         The user is forbidden from setting the brightness above this level. -->
    <item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>

    <!-- Default screen brightness setting
         Must be in the range specified by minimum and maximum. -->
     <!-- 140 nits: (140-2)/(1000-2)*(0.63-0.0)+0.0 = 0.087114228 -->
    <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.087114228</item>

    <!-- Allow normal brightness controller feature. -->
    <bool name="config_allowNormalBrightnessControllerFeature">true</bool>

    <!-- 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>15</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>3000</item>
        <item>6000</item>
        <item>9000</item>
        <item>10000</item>
        <item>14000</item>
        <item>20000</item>
        <item>25000</item>
        <item>31000</item>
        <item>51000</item>
        <item>81000</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>5.139055</item>      <!--  0 - 1 -->
        <item>9.962018965</item>   <!--  1 - 2 -->
        <item>18.34822964</item>   <!--  2 - 3 -->
        <item>21.55068128</item>   <!--  3 - 4 -->
        <item>24.0167788</item>    <!--  4 - 8 -->
        <item>32.5</item>          <!--  8 - 12 -->
        <item>46</item>            <!--  12 - 15 -->
        <item>53.26923077</item>   <!--  15 - 20 -->
        <item>54.61538462</item>   <!--  20 - 33 -->
        <item>58.11538462</item>   <!--  33 - 55 -->
        <item>62.1394</item>       <!--  55 - 90 -->
        <item>67.13133333</item>   <!--  90 - 148 -->
        <item>79.67614115</item>   <!--  148 - 245 -->
        <item>98.04727274</item>   <!--  245 - 403 -->
        <item>125.1221991</item>   <!--  403 - 665 -->
        <item>161.6875093</item>   <!--  665 - 1097 -->
        <item>208.4885553</item>   <!--  1097 - 1808 -->
        <item>264.8221315</item>   <!--  1808 - 3000 -->
        <item>328.5869521</item>   <!--  3000 - 6000 -->
        <item>627.4315413</item>   <!--  6000 - 9000 -->
        <item>826.8584866</item>   <!--  9000 - 10000 -->
        <item>867.85582302</item>  <!-- 10000 - 14000 -->
        <item>1041.39662279</item> <!-- 14000 - 20000 -->
        <item>1227.52633489</item> <!-- 20000 - 25000 -->
        <item>1331.28933608</item> <!-- 25000 - 31000 -->
        <item>1414.57566867</item> <!-- 31000 - 51000 -->
        <item>1553.22826182</item> <!-- 51000 - 81000 -->
        <item>1614.01031782</item> <!-- 81000+  -->
    </array>

    <!-- 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">1000</integer>
    <integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>

    <!-- The default refresh rate. We manage this using the peak refresh rate setting. Set this
         value to 0 so it has no effect. -->
    <integer name="config_defaultRefreshRate">0</integer>

    <!-- The default peak refresh rate. -->
    <integer name="config_defaultPeakRefreshRate">120</integer>

<integer-array name="config_ambientThresholdLevels">
    <item>2</item>
    <item>3</item>
    <item>4</item>
    <item>5</item>
    <item>6</item>
    <item>7</item>
    <item>8</item>
    <item>9</item>
    <item>10</item>
    <item>20</item>
    <item>30</item>
    <item>40</item>
    <item>50</item>
    <item>60</item>
    <item>70</item>
    <item>80</item>
    <item>90</item>
    <item>100</item>
    <item>200</item>
    <item>300</item>
    <item>400</item>
    <item>500</item>
    <item>1000</item>
    <item>2000</item>
    <item>3000</item>
    <item>4000</item>
</integer-array>

<integer-array name="config_ambientBrighteningThresholds">
    <item>5186</item>
    <item>4333</item>
    <item>3666</item>
    <item>2999</item>
    <item>2759</item>
    <item>2519</item>
    <item>2279</item>
    <item>2039</item>
    <item>1799</item>
    <item>799</item>
    <item>527</item>
    <item>499</item>
    <item>470</item>
    <item>517</item>
    <item>565</item>
    <item>612</item>
    <item>660</item>
    <item>708</item>
    <item>742</item>
    <item>636</item>
    <item>582</item>
    <item>549</item>
    <item>369</item>
    <item>294</item>
    <item>269</item>
    <item>220</item>
    <item>220</item>
</integer-array>

<integer-array name="config_ambientDarkeningThresholds">
    <item>525</item>
    <item>683</item>
    <item>666</item>
    <item>650</item>
    <item>640</item>
    <item>630</item>
    <item>620</item>
    <item>610</item>
    <item>600</item>
    <item>500</item>
    <item>500</item>
    <item>440</item>
    <item>385</item>
    <item>382</item>
    <item>379</item>
    <item>376</item>
    <item>373</item>
    <item>371</item>
    <item>367</item>
    <item>387</item>
    <item>397</item>
    <item>403</item>
    <item>380</item>
    <item>345</item>
    <item>333</item>
    <item>283</item>
    <item>283</item>
</integer-array>

     <!-- The stable device width and height in pixels. If these aren't set to a positive number
          then the device will use the width and height of the default display the first time it's
          booted.  -->
    <integer name="config_stableDeviceDisplayWidth">1344</integer>
    <integer name="config_stableDeviceDisplayHeight">2992</integer>


    <!-- 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>

    <!-- Display cutout configuration -->
    <string translatable="false" name="config_mainBuiltInDisplayCutout">
        M 628.75,75
        a 43.25,43.25 0 1 0 86.5,0
        a 43.25,43.25 0 1 0 -86.5,0
        Z
        @left
    </string>

    <string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
        M 615.5,0
        h 110
        v 151
        h -110
        Z
        @left
    </string>

    <!-- A string config in svg path format for the main display shape.
         (@see https://www.w3.org/TR/SVG/paths.html#PathData).

         This config must be set unless:
         1. {@link Configuration#isScreenRound} is true which means the display shape is circular
            and the system will auto-generate a circular shape.
         2. The display has no rounded corner and the system will auto-generate a rectangular shape.
         (@see DisplayShape#createDefaultDisplayShape)

         Note: If the display supports multiple resolutions, please define the path config based on
         the highest resolution so that it can be scaled correctly in each resolution.
    -->
    <string name="config_mainDisplayShape" translatable="false">M 119.9999 -3.7795276e-05 C 113.32402 0.34316186 102.8311 1.9200038 98.695215 2.8066029 C 73.98156 8.0987976 62.561448 13.566009 49.605371 22.5859 C 34.411306 33.163789 20.551075 49.59161 12.962793 65.706994 C 7.8660073 76.530983 2.8411097 93.439401 1.4120111 104.32809 C 0.066002501 114.58638 0.28550144 114.76397 -9.8267718e-05 119.99996 L -9.8267718e-05 2877 L 1.9803705 2891.3164 C 8.0676544 2919.9453 16.781085 2937.4625 33.785058 2955.2598 C 51.142521 2973.4268 70.876659 2983.6798 100.6835 2990.0176 L 114.9999 2992 L 1228.9999 2992 L 1243.3163 2990.0176 C 1273.1232 2983.6798 1292.8573 2973.4268 1310.2148 2955.2598 C 1327.2186 2937.4625 1335.9323 2919.9453 1342.0194 2891.3164 L 1343.9999 2877 L 1343.9999 119.99996 C 1343.7143 114.76397 1343.9338 114.58638 1342.5878 104.32809 C 1341.1587 93.439401 1336.1338 76.530983 1331.037 65.706994 C 1323.4487 49.59161 1309.5885 33.163789 1294.3944 22.5859 C 1281.4385 13.566009 1270.0183 8.0987976 1245.3046 2.8066029 C 1241.1687 1.9200038 1230.6758 0.34316186 1223.9999 -3.7795276e-05 L 119.9999 -3.7795276e-05 z</string>

    <!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
    <string name="config_dozeUdfpsLongPressSensorType" translatable="false">com.google.sensor.long_press</string>

    <!-- Type of the quick pickup sensor. Empty if quick pickup is not supported. -->
    <string name="config_quickPickupSensorType" translatable="false">com.google.sensor.quick_pickup</string>

    <!-- MMS user agent string -->
    <string name="config_mms_user_agent" translatable="false">g1mnw</string>
    <!-- MMS user agent profile url -->
    <string name="config_mms_user_agent_profile_url" translatable="false">http://www.gstatic.com/android/sms/G1MNW.xml</string>

    <!-- The max vibration strength allowed in audio haptic channels. -->
    <item name="config_hapticChannelMaxVibrationAmplitude" format="float" type="dimen">0.335</item>

    <!-- The maximum range of gamma adjustment possible using the screen
         auto-brightness adjustment setting. -->
    <fraction name="config_autoBrightnessAdjustmentMaxGamma">105%</fraction>

    <!-- Boolean indicating whether allow sending null to modem to clear the previous initial attach
         data profile -->
    <bool name="allow_clear_initial_attach_data_profile">true</bool>

    <!-- The integer index of the selected option in config_udfps_touch_detection_options -->
    <integer name="config_selected_udfps_touch_detection">5</integer>
</resources>