summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorBeverly <beverlyt@google.com>2020-09-16 15:38:33 -0400
committerBeverly <beverlyt@google.com>2020-09-17 06:52:22 -0400
commita3c5a6a5975367e5d13509ef579b940b9ee21553 (patch)
tree5ed46f4f0ad5a4dbcb26d5adb9e9cb3ffb511934 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent02a5b039099d2339eadf1943a995dc64408880d7 (diff)
Don't trust DozeState onScreenState changes
In DozeScreenBrightness, we should only rely on the passed displayScreenState because our DozeState (updated by transitionTo) may not be updated yet. Therefore, only register the brightness sensor when the display state is Display.STATE_DOZE/DOZE_SUSPENDED. Test: atest DozeScreenBrightnessTest Bug: 168689990 Change-Id: Ie32f91c5a46bd987649a8a17e6543071847ad97c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions