summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorDan Gittik <dangittik@google.com>2018-11-13 14:58:20 +0000
committerDan Gittik <dangittik@google.com>2018-12-17 15:55:31 +0000
commited958e9852101571808456e5e91c96c65e7f690a (patch)
treeb9a774c5cde7c119477eadbc3d4638e97af5040e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent71893bdf3bfb1159c744bdd5566cafaef1b83125 (diff)
Added hysteresis check to screen brightness.
Previously, the AutoBrightnessController would suppress updates if the ambient brightness hasn't changed enough, to avoid minor changes that wouldn't really matter but probably annoy the user. However, if the brightness curve was rather flat, a large change in the ambient brightness might translate to a small and unnecessary change in the screen brightness that would still get applied. So, this CL adds similar hysteresis checks for the screen brightness. Test: manual - simulate an ambient brightness that would cause a minor change in the screen brightness, and make sure it is suppressed (and the appropriate logs are emitted). Change-Id: I41aefb5a9a82c9b598cf31f374f338899ffc9b11
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions