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
committerXin Li <delphij@google.com>2022-03-02 18:17:52 -0800
commite0d326d3fd2a169bf7538cd92f58182b90347343 (patch)
treea152eac4176e5d71341d4fea7483bac8c7aa5b7d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent90819feb5a868a69ab1d296994e9128f8e07ad80 (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 (cherry picked from commit 7ecf6bb70a4096dd2b8e884f530c7a69df097682) (cherry picked from commit 955d37e6d7f8868d50154d47f12fec340d380ae6) Merged-In: I7e2d1ca7e3c9487903f74fb06575cc0a36b9502c Change-Id: I7e2d1ca7e3c9487903f74fb06575cc0a36b9502c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions