config.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2024 The LineageOS Project
  4. SPDX-License-Identifier: Apache-2.0
  5. -->
  6. <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
  7. <integer name="config_udfps_illumination_transition_ms">0</integer>
  8. <!-- Minimum screen brightness setting allowed by power manager.
  9. -2 is invalid so setting will resort to int value specified above.
  10. Set this to 0.0 to allow screen to go to minimal brightness.
  11. The user is forbidden from setting the brightness below this level. -->
  12. <item format="float" name="config_screenBrightnessSettingMinimumFloat" type="dimen">0.000915639</item>
  13. <!-- Maximum screen brightness allowed by the power manager.
  14. -2 is invalid so setting will resort to int value specified above.
  15. Set this to 1.0 for maximum brightness range.
  16. The user is forbidden from setting the brightness above this level. -->
  17. <item format="float" name="config_screenBrightnessSettingMaximumFloat" type="dimen">1</item>
  18. <!-- Default screen brightness setting set.
  19. -2 is invalid so setting will resort to int value specified above.
  20. Must be in the range specified by minimum and maximum. -->
  21. <item format="float" name="config_screenBrightnessSettingDefaultFloat" type="dimen">0.07496032</item>
  22. <!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
  23. for debouncing the light sensor. Different constants are used to debounce the light sensor
  24. when adapting to brighter or darker environments. This parameter controls how quickly
  25. brightness changes occur in response to an observed change in light level that exceeds the
  26. hysteresis threshold. -->
  27. <integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
  28. <integer name="config_autoBrightnessDarkeningLightDebounce">2000</integer>
  29. <!-- The maximum range of gamma adjustment possible using the screen
  30. auto-brightness adjustment setting. -->
  31. <fraction name="config_autoBrightnessAdjustmentMaxGamma">100.0%</fraction>
  32. <item format="float" name="config_screenBrightnessDimFloat" type="dimen">0.000915639</item>
  33. <!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
  34. The N entries of this array define N + 1 control points as follows:
  35. (1-based arrays)
  36. Point 1: (0, value[1]): lux <= 0
  37. Point 2: (level[1], value[2]): 0 < lux <= level[1]
  38. Point 3: (level[2], value[3]): level[2] < lux <= level[3]
  39. ...
  40. Point N+1: (level[N], value[N+1]): level[N] < lux
  41. The control points must be strictly increasing. Each control point
  42. corresponds to an entry in the brightness backlight values arrays.
  43. For example, if lux == level[1] (first element of the levels array)
  44. then the brightness will be determined by value[2] (second element
  45. of the brightness values array).
  46. Spline interpolation is used to determine the auto-brightness
  47. backlight values for lux levels between these control points.
  48. Must be overridden in platform specific overlays -->
  49. <integer-array name="config_autoBrightnessLevels">
  50. <item>1</item>
  51. <item>2</item>
  52. <item>4</item>
  53. <item>6</item>
  54. <item>8</item>
  55. <item>10</item>
  56. <item>15</item>
  57. <item>20</item>
  58. <item>25</item>
  59. <item>30</item>
  60. <item>35</item>
  61. <item>40</item>
  62. <item>45</item>
  63. <item>50</item>
  64. <item>55</item>
  65. <item>60</item>
  66. <item>65</item>
  67. <item>70</item>
  68. <item>75</item>
  69. <item>80</item>
  70. <item>85</item>
  71. <item>90</item>
  72. <item>95</item>
  73. <item>100</item>
  74. <item>120</item>
  75. <item>140</item>
  76. <item>160</item>
  77. <item>180</item>
  78. <item>200</item>
  79. <item>220</item>
  80. <item>240</item>
  81. <item>260</item>
  82. <item>280</item>
  83. <item>300</item>
  84. <item>320</item>
  85. <item>340</item>
  86. <item>360</item>
  87. <item>380</item>
  88. <item>400</item>
  89. <item>420</item>
  90. <item>440</item>
  91. <item>460</item>
  92. <item>480</item>
  93. <item>500</item>
  94. <item>700</item>
  95. <item>900</item>
  96. <item>1100</item>
  97. <item>1300</item>
  98. <item>1500</item>
  99. <item>1700</item>
  100. <item>1900</item>
  101. <item>2000</item>
  102. <item>2500</item>
  103. <item>3000</item>
  104. <item>3500</item>
  105. <item>4000</item>
  106. <item>4500</item>
  107. <item>5000</item>
  108. <item>5500</item>
  109. <item>6000</item>
  110. <item>6500</item>
  111. <item>7000</item>
  112. <item>7500</item>
  113. <item>8000</item>
  114. <item>8500</item>
  115. <item>9000</item>
  116. <item>9500</item>
  117. <item>10000</item>
  118. <item>10500</item>
  119. <item>11000</item>
  120. <item>11500</item>
  121. <item>12000</item>
  122. <item>12500</item>
  123. <item>13000</item>
  124. <item>13500</item>
  125. <item>14000</item>
  126. <item>14500</item>
  127. <item>15000</item>
  128. <item>16000</item>
  129. <item>17000</item>
  130. <item>18000</item>
  131. <item>19000</item>
  132. <item>20000</item>
  133. <item>21000</item>
  134. <item>22000</item>
  135. <item>23000</item>
  136. <item>24000</item>
  137. <item>25000</item>
  138. <item>26000</item>
  139. <item>27000</item>
  140. <item>28000</item>
  141. <item>29000</item>
  142. <item>30000</item>
  143. <item>35000</item>
  144. <item>40000</item>
  145. <item>45000</item>
  146. <item>50000</item>
  147. <item>55000</item>
  148. <item>60000</item>
  149. <item>65000</item>
  150. <item>70000</item>
  151. <item>75000</item>
  152. <item>80000</item>
  153. <item>85000</item>
  154. <item>90000</item>
  155. <item>95000</item>
  156. <item>100000</item>
  157. </integer-array>
  158. <!-- Array of output values for LCD backlight corresponding to the lux values
  159. in the config_autoBrightnessLevels array. This array should have size one greater
  160. than the size of the config_autoBrightnessLevels array.
  161. The brightness values must be between 0 and 255 and be non-decreasing.
  162. This must be overridden in platform specific overlays -->
  163. <integer-array name="config_autoBrightnessLcdBacklightValues" />
  164. <!-- Array of desired screen brightness in nits corresponding to the lux values
  165. in the config_autoBrightnessLevels array. The display brightness is defined as the measured
  166. brightness of an all-white image.
  167. If this is defined then:
  168. - config_autoBrightnessLcdBacklightValues should not be defined
  169. - config_screenBrightnessNits must be defined
  170. - config_screenBrightnessBacklight must be defined
  171. This array should have size one greater than the size of the config_autoBrightnessLevels
  172. array. The brightness values must be non-negative and non-decreasing. This must be
  173. overridden in platform specific overlays -->
  174. <array name="config_autoBrightnessDisplayValuesNits">
  175. <item>3.0</item>
  176. <item>3.3</item>
  177. <item>4.0</item>
  178. <item>18.3</item>
  179. <item>28.2</item>
  180. <item>34.0</item>
  181. <item>38.9</item>
  182. <item>51.4</item>
  183. <item>65.7</item>
  184. <item>84.5</item>
  185. <item>91.9</item>
  186. <item>93.6</item>
  187. <item>93.6</item>
  188. <item>93.6</item>
  189. <item>95.0</item>
  190. <item>95.0</item>
  191. <item>95.0</item>
  192. <item>96.6</item>
  193. <item>96.6</item>
  194. <item>97.7</item>
  195. <item>97.7</item>
  196. <item>97.7</item>
  197. <item>97.7</item>
  198. <item>99.2</item>
  199. <item>99.2</item>
  200. <item>100.4</item>
  201. <item>103.2</item>
  202. <item>104.2</item>
  203. <item>105.8</item>
  204. <item>108.3</item>
  205. <item>109.7</item>
  206. <item>112.2</item>
  207. <item>113.6</item>
  208. <item>116.0</item>
  209. <item>117.2</item>
  210. <item>118.5</item>
  211. <item>122.4</item>
  212. <item>123.1</item>
  213. <item>124.6</item>
  214. <item>127.3</item>
  215. <item>128.5</item>
  216. <item>130.7</item>
  217. <item>131.6</item>
  218. <item>134.1</item>
  219. <item>136.0</item>
  220. <item>158.3</item>
  221. <item>176.4</item>
  222. <item>195.5</item>
  223. <item>225.4</item>
  224. <item>254.0</item>
  225. <item>292.1</item>
  226. <item>317.4</item>
  227. <item>334.4</item>
  228. <item>404.2</item>
  229. <item>433.1</item>
  230. <item>446.1</item>
  231. <item>460.9</item>
  232. <item>474.8</item>
  233. <item>488.7</item>
  234. <item>500.0</item>
  235. <item>500.0</item>
  236. <item>512.5</item>
  237. <item>525.0</item>
  238. <item>537.5</item>
  239. <item>550.0</item>
  240. <item>562.5</item>
  241. <item>575.0</item>
  242. <item>587.5</item>
  243. <item>600.0</item>
  244. <item>610.0</item>
  245. <item>620.0</item>
  246. <item>630.0</item>
  247. <item>640.0</item>
  248. <item>650.0</item>
  249. <item>660.0</item>
  250. <item>670.0</item>
  251. <item>680.0</item>
  252. <item>690.0</item>
  253. <item>700.0</item>
  254. <item>705.0</item>
  255. <item>710.0</item>
  256. <item>715.0</item>
  257. <item>720.0</item>
  258. <item>725.0</item>
  259. <item>730.0</item>
  260. <item>735.0</item>
  261. <item>740.0</item>
  262. <item>745.0</item>
  263. <item>750.0</item>
  264. <item>755.0</item>
  265. <item>760.0</item>
  266. <item>765.0</item>
  267. <item>770.0</item>
  268. <item>775.0</item>
  269. <item>800.0</item>
  270. <item>816.7</item>
  271. <item>833.3</item>
  272. <item>850.0</item>
  273. <item>866.7</item>
  274. <item>883.3</item>
  275. <item>900.0</item>
  276. <item>914.3</item>
  277. <item>928.6</item>
  278. <item>942.9</item>
  279. <item>957.1</item>
  280. <item>971.4</item>
  281. <item>985.7</item>
  282. <item>1000.0</item>
  283. </array>
  284. <!-- An array describing the screen's backlight values corresponding to the brightness
  285. values in the config_screenBrightnessNits array.
  286. This array should be equal in size to config_screenBrightnessBacklight. -->
  287. <integer-array name="config_screenBrightnessBacklight">
  288. <item>1</item>
  289. <item>255</item>
  290. </integer-array>
  291. <!-- An array of floats describing the screen brightness in nits corresponding to the backlight
  292. values in the config_screenBrightnessBacklight array. On OLED displays these values
  293. should be measured with an all white image while the display is in the fully on state.
  294. Note that this value should *not* reflect the maximum brightness value for any high
  295. brightness modes but only the maximum brightness value obtainable in a sustainable manner.
  296. This array should be equal in size to config_screenBrightnessBacklight -->
  297. <array name="config_screenBrightnessNits">
  298. <item>3.0</item>
  299. <item>1000.0</item>
  300. </array>
  301. <!-- Array of ambient lux threshold values. This is used for determining hysteresis constraint
  302. values by calculating the index to use for lookup and then setting the constraint value
  303. to the corresponding value of the array. The new brightening hysteresis constraint value
  304. is the n-th element of config_ambientBrighteningThresholds, and the new darkening
  305. hysteresis constraint value is the n-th element of config_ambientDarkeningThresholds.
  306. The (zero-based) index is calculated as follows: (MAX is the largest index of the array)
  307. condition calculated index
  308. value < level[0] 0
  309. level[n] <= value < level[n+1] n+1
  310. level[MAX] <= value MAX+1 -->
  311. <integer-array name="config_ambientThresholdLevels">
  312. <item>2</item>
  313. <item>10</item>
  314. <item>30</item>
  315. <item>100</item>
  316. <item>800</item>
  317. <item>2000</item>
  318. <item>4000</item>
  319. </integer-array>
  320. <!-- Array of hysteresis constraint values for brightening, represented as tenths of a
  321. percent. The length of this array is assumed to be one greater than
  322. config_ambientThresholdLevels. The brightening threshold is calculated as
  323. lux * (1.0f + CONSTRAINT_VALUE). When the current lux is higher than this threshold,
  324. the screen brightness is recalculated. See the config_ambientThresholdLevels
  325. description for how the constraint value is chosen. -->
  326. <integer-array name="config_ambientBrighteningThresholds">
  327. <item>2</item>
  328. <item>6</item>
  329. <item>10</item>
  330. <item>30</item>
  331. <item>100</item>
  332. <item>400</item>
  333. <item>600</item>
  334. <item>1000</item>
  335. </integer-array>
  336. <!-- Array of hysteresis constraint values for darkening, represented as tenths of a
  337. percent. The length of this array is assumed to be one greater than
  338. config_ambientThresholdLevels. The darkening threshold is calculated as
  339. lux * (1.0f - CONSTRAINT_VALUE). When the current lux is lower than this threshold,
  340. the screen brightness is recalculated. See the config_ambientThresholdLevels
  341. description for how the constraint value is chosen. -->
  342. <integer-array name="config_ambientDarkeningThresholds">
  343. <item>800</item>
  344. <item>800</item>
  345. <item>500</item>
  346. <item>500</item>
  347. <item>500</item>
  348. <item>500</item>
  349. <item>500</item>
  350. <item>500</item>
  351. </integer-array>
  352. <!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
  353. <string name="config_dozeUdfpsLongPressSensorType" translatable="false">org.lineageos.sensor.udfps</string>
  354. <!-- The bounding path of the cutout region of the main built-in display.
  355. Must either be empty if there is no cutout region, or a string that is parsable by
  356. {@link android.util.PathParser}.
  357. The path is assumed to be specified in display coordinates with pixel units and in
  358. the display's native orientation, with the origin of the coordinate system at the
  359. center top of the display. Optionally, you can append either `@left` or `@right` to the
  360. end of the path string, in order to change the path origin to either the top left,
  361. or top right of the display.
  362. To facilitate writing device-independent emulation overlays, the marker `@dp` can be
  363. appended after the path string to interpret coordinates in dp instead of px units.
  364. Note that a physical cutout should be configured in pixels for the best results.
  365. If the display supports multiple resolutions, please define the path config based on the
  366. highest resolution so that it can be scaled correctly in each resolution.
  367. Example for a 10px x 10px square top-center cutout:
  368. <string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z</string>
  369. Example for a 10dp x 10dp square top-center cutout:
  370. <string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
  371. @see https://www.w3.org/TR/SVG/paths.html#PathData
  372. -->
  373. <string name="config_mainBuiltInDisplayCutout" translatable="false">M -33 52 a 33 33 0 1 0 66 0 a 33 33 0 1 0 -66 0 Z</string>
  374. <!-- Like config_mainBuiltInDisplayCutout, but this path is used to report the
  375. one single bounding rect per device edge to the app via
  376. {@link DisplayCutout#getBoundingRect}. Note that this path should try to match the visual
  377. appearance of the cutout as much as possible, and may be smaller than
  378. config_mainBuiltInDisplayCutout
  379. -->
  380. <string name="config_mainBuiltInDisplayCutoutRectApproximation" translatable="false">M 0,0 H -33 V 87 H 33 V 0 H 0 Z</string>
  381. <!-- Whether the display cutout region of the main built-in display should be forced to
  382. black in software (to avoid aliasing or emulate a cutout that is not physically existent).
  383. -->
  384. <bool name="config_fillMainBuiltInDisplayCutout">true</bool>
  385. <!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
  386. when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
  387. where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
  388. and Strength as defined in Authenticators.java -->
  389. <string-array name="config_biometric_sensors" translatable="false">
  390. <item>0:2:15</item>
  391. </string-array>
  392. <!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
  393. <integer-array name="config_udfps_sensor_props" translatable="false">
  394. <item>540</item>
  395. <item>2163</item>
  396. <item>107</item>
  397. </integer-array>
  398. </resources>