diff options
author | Daniel Solomon <solomondaniel@google.com> | 2021-09-17 15:29:49 -0700 |
---|---|---|
committer | Daniel Solomon <solomondaniel@google.com> | 2021-09-30 17:18:03 -0700 |
commit | a49b90befed61e22f382ce320df13cb6cc3031ed (patch) | |
tree | ed0faa4ed476942104ecd34ffaec9a4f1acf0e46 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | de460d153e060a42d37a8417f6908c714237bb0a (diff) |
Change DisplayModeDirector's brightness source to DisplayListener
Currently, DisplayModeDirector listens to brightness changes from Settings.
However, brightness value in Settings is overridden for various reasons
inside DisplayPowerController before being propagated to HALs. As a
result, the brightness value that DisplayModeDirector is acting on isn't
always the brightness value that gets applied to the display.
This change,
- Changes DisplayPowerController so that the final brightness value (after all
modifications) is saved.
- Changes DisplayModeDirector to use DisplayManager.DisplayListener to
observe brightness changes and then retrieve and act on the final
brightness value saved in DisplayPowerController.
Bug: 199955532
Test: atest DisplayModeDirectorTest
Change-Id: Ia6dd7d194b6913d2942bea9c29a2011b8058beef
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions