summaryrefslogtreecommitdiff
path: root/shiba/overlay/frameworks/base/core/res/res/values/config.xml
blob: 33399cb77f34751785aa3117a62c6855e51c741f (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
<?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>

    <!-- 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.71-0.0)+0.0 = 0.098176353 -->
    <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.098176353</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">60</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">1080</integer>
    <integer name="config_stableDeviceDisplayHeight">2400</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 576,65.75 a 36.25,36.25 0 0 0 -72.5,0 36.25,36.25 0 0 0 72.5,0 z
        @left
    </string>

    <string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
        M 478.5,0
        h 122
        v 132
        h -122
        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 96.4985,0.08523 C 91.1348,0.36051 82.70432,1.62526 79.38136,2.33639 59.52531,6.58116 50.34989,10.96631 39.9404,18.20101 27.73281,26.68534 16.59688,39.8618 10.50012,52.78766 6.40513,61.46939 2.3679,75.03133 1.2197,83.76495 0.13826,91.99294 0.31461,92.13538 0.08515,96.33507 V 2307.6753 l 1.5912,11.4829 c 4.89079,22.9627 11.89155,37.013 25.5533,51.2879 13.94576,14.5714 29.80105,22.7951 53.74919,27.8786 l 11.50244,1.59 H 987.5185 l 11.5025,-1.59 c 23.9482,-5.0835 39.8034,-13.3072 53.7492,-27.8786 13.6616,-14.2749 20.6626,-28.3252 25.5532,-51.2879 l 1.5913,-11.4829 V 96.33507 c -0.2295,-4.19969 -0.053,-4.34213 -1.1346,-12.57012 -1.1482,-8.73362 -5.1854,-22.29556 -9.2804,-30.97729 C 1063.4029,39.8618 1052.267,26.68534 1040.0594,18.20101 1029.65,10.96631 1020.4745,6.58116 1000.6184,2.33639 997.2955,1.62526 988.865,0.36051 983.5013,0.08523 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">gkws6</string>
    <!-- MMS user agent profile url -->
    <string name="config_mms_user_agent_profile_url" translatable="false">http://www.gstatic.com/android/sms/GKWS6.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>
</resources>