summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorJosh Tsuji <tsuji@google.com>2022-01-21 13:42:54 -0500
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-01-26 21:39:45 +0000
commit955d37e6d7f8868d50154d47f12fec340d380ae6 (patch)
treea152eac4176e5d71341d4fea7483bac8c7aa5b7d /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent4e0b08b5c1ab83d01ea08a51409d3b95bc640beb (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 (cherry picked from commit 7ecf6bb70a4096dd2b8e884f530c7a69df097682) Merged-In:I7e2d1ca7e3c9487903f74fb06575cc0a36b9502c
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions