Skip to content

Commit d428e95

Browse files
jpa468Android (Google) Code Review
authored andcommitted
Merge "core: config: Update the description of the autoBrightnessLevels array." into jb-mr1-dev
2 parents 752ef4e + 81985bc commit d428e95

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

core/res/res/values/config.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,17 +537,18 @@
537537

538538
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
539539
The N entries of this array define N + 1 control points as follows:
540+
(1-based arrays)
540541
541-
Point 1: LUX <= 0 (implicit)
542-
Point 2: 0 < level[1] == LUX < level[2]
542+
Point 1: (0, value[1]): lux <= 0
543+
Point 2: (level[1], value[2]): 0 < lux <= level[1]
544+
Point 3: (level[2], value[3]): level[2] < lux <= level[3]
543545
...
544-
Point N: level[N - 1] == LUX < level[N]
545-
Point N + 1: level[N] <= LUX < infinity
546+
Point N+1: (level[N], value[N+1]): level[N] < lux
546547
547548
The control points must be strictly increasing. Each control point
548549
corresponds to an entry in the brightness backlight values arrays.
549550
For example, if LUX == level[1] (first element of the levels array)
550-
then the brightness will be determined by value[1] (first element
551+
then the brightness will be determined by value[2] (second element
551552
of the brightness values array).
552553
553554
Spline interpolation is used to determine the auto-brightness

0 commit comments

Comments
 (0)