diff options
| author | 2023-10-12 12:36:28 +0000 | |
|---|---|---|
| committer | 2023-10-12 12:57:36 +0000 | |
| commit | 9e843a5439efa860793f0d020dd88c7677b18c8e (patch) | |
| tree | 2286a1cfc16963d5825d5f1165dea0aadd8fedd1 /api/api_test.go | |
| parent | ef18eed370f71a21ce4ba0b97bbc4c899ea1d579 (diff) | |
Never ignore OCCLUDED transition
In an earlier attempt to cleanup some transition code, a check was
added to validate a transition request to make sure the "FROM" value
matched the existing state... a good idea. However, when exiting AOD
to launch camera a race condition existed that would result in
FromDreamingTransitionInteractor starting the transition
LOCKSCREEN->OCCLUDED. Previous code made a special case for this but
the new code ignored it, resulting in AOD over camera.
The new code updates conditions from both LOCKSCREEN and DREAMING to
make sure the device goes to OCCLUDED.
Fixes: 300406718
Test: atest KeyguardTransitionScenariosTest
Test: Tablet - Launch Home Controls over Dream, enter and exit
dreaming from LOCKSCREEN or GONE
Test: Phone - Test camera launches from AOD/DREAMING/LOCKSCREEN states
Change-Id: Ia3a90e650b34b5f480753b14398449cf51c42ce3
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions