Allow Activity#setTurnScreenOn to wakeup device
Add a condition that Activity#setTurnScreenOn can wakup device, also
make that activity become visible and dismiss keyguard automatically
when
- keyguard is insecure and
- device is non-interactive
Follow 7caf48e, if the above conditions are met, turnScreenOn can also
dismiss multiwindow mode.
Bug: 155922711
Test: atest ActivityVisibilityTests KeyguardTests KeyguardLockedTests
KeyguardTransitionTests AppConfigurationTests ReplaceWindowTests
ActivityLifecycleKeyguardTests
Change-Id: I7b18c391819d8e69b51d6f5b5e99a023d5ea1a0f
2 files changed