summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJosh Tsuji <tsuji@google.com>2022-01-21 13:42:54 -0500
committerJosh Tsuji <tsuji@google.com>2022-01-24 22:48:27 +0000
commit7ecf6bb70a4096dd2b8e884f530c7a69df097682 (patch)
treeaec7be64eb0b10e1a0e19facc016692b8bccee75 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfd16e8c352f8e38e593b1837c5d54124f26048b1 (diff)
Check that PowerManager#isInteractive is false before showing the AOD UI for screen off.
The callback that runs after a delay during the screen off animation to show the AOD UI after the light reveal animation is supposed to be cancelled in onStartedWakingUp if the screen off is cancelled. However, some bugs make it seem like this may not be happening, resulting in the AOD UI being shown while we are awake and unlocked. This causes the shade to look like the lock screen. It also causes a transparent shade background and possibly an all-white screen. While we have not been able to reproduce this under normal conditions, I manually called showAodUi while unlocked/awake, and verified that these conditions result. Since onStartedWakingUp is dispatched asynchronously, it's possible that the device wakes up before the callback is cancelled. By checking PowerManager's state directly, we can avoid this. Fixes: 213794749 Test: atest SystemUITests Merged-In: I7e2d1ca7e3c9487903f74fb06575cc0a36b9502c Change-Id: I7e2d1ca7e3c9487903f74fb06575cc0a36b9502c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions