Skip to content

Commit da1c07c

Browse files
UtsavBalar1231SahilSonar
authored andcommitted
fixup! alioth: overlay: Configure auto brightness overlays
* Missed during the import
1 parent 4ee4d17 commit da1c07c

File tree

1 file changed

+30
-0
lines changed
  • overlay/frameworks/base/core/res/res/values

1 file changed

+30
-0
lines changed

overlay/frameworks/base/core/res/res/values/config.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,36 @@
2222
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
2323
<bool name="config_automatic_brightness_available">true</bool>
2424

25+
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
26+
The N entries of this array define N 1 zones as follows:
27+
Zone 0: 0 <= LUX < array[0]
28+
Zone 1: array[0] <= LUX < array[1]
29+
...
30+
Zone N: array[N - 1] <= LUX < array[N]
31+
Zone N + 1 array[N] <= LUX < infinity
32+
Must be overridden in platform specific overlays -->
33+
<integer-array name="config_autoBrightnessLevels">
34+
<item>1</item>
35+
<item>2</item>
36+
<item>3</item>
37+
<item>4</item>
38+
<item>8</item>
39+
<item>12</item>
40+
<item>20</item>
41+
<item>33</item>
42+
<item>55</item>
43+
<item>90</item>
44+
<item>148</item>
45+
<item>245</item>
46+
<item>403</item>
47+
<item>665</item>
48+
<item>1097</item>
49+
<item>1808</item>
50+
<item>2981</item>
51+
<item>5000</item>
52+
<item>10000</item>
53+
</integer-array>
54+
2555
<!-- Array of desired screen brightness in nits corresponding to the lux values
2656
in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
2757
config_screenBrightnessMaximumNits, the display brightness is defined as the measured

0 commit comments

Comments
 (0)