OSDN Git Service

Convert the BrightnessController to a log scale control.
authorMichael Wright <michaelwr@google.com>
Fri, 13 Apr 2018 17:15:27 +0000 (18:15 +0100)
committerMichael Wright <michaelwr@google.com>
Mon, 16 Apr 2018 13:47:33 +0000 (14:47 +0100)
commit585ff988bbc116f318741f3ed3916ed44558a3fb
tree00edb2671c8686f24d08b703f7a68a9e227ce3ad
parente791b67448c18ad0d6bf148feab0d8215f8f0388
Convert the BrightnessController to a log scale control.

Currently, the BrightnessController's UI is a linear scale control on
top of a linear backlight control, but humans perceive brightness on a
roughly logarithmic scale. By moving to a non-linear control, we both
give users more fine-grained control over the brightness of the display
as well as a UI that works more intuitively.

Test: manual
Bug: 73810208
Change-Id: I67090ad7c4ced0420314458473c9124cb9c61906
core/java/android/util/MathUtils.java
packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java