Run TaskDisplayArea recovery during sleep tokens
In AOD we can have a showWhenLocked activity visible but
put to sleep by the Keyguard sleep token. Checking for
isSleeping stops us from recovering display area visibility
when:
- AOD is active
- A showWhenLocked, non-turnScreenOn app starts to launch
- Post-collect, app calls recreate(), adds FLAG_TURN_SCREEN_ON
- App becomes visible in relayout
Change-Id: I660967a2eed3ea1c0ef1845afbdf416c26fa82ae
Test: atest --iterations 10 CtsWindowManagerDeviceKeyguard:KeyguardTests
Test: atest --iterations 10 CtsWindowManagerDeviceKeyguard:KeyguardLockedTests
Bug: 292571302
1 file changed