Add KeyguardLockWhileAwakeInteractor.
This consolidates all logic around GONE -> LOCKSCREEN, and adds support for KeyguardService#doKeyguardTimeout, a method that is called by WM when it wants us to lock while the screen is still on.
Fixes: 365596274
Bug: 278086361
Test: atest KeyguardLockWhileAwakeInteractorTest
Test: test app that calls WM#lockNow, verify we return to lockscreen with flag enabled
Test: user switch from profile with ls disabled to one with ls enabled
Flag: com.android.systemui.keyguard_wm_state_refactor
Change-Id: I874614a68339699a5f6a4d043bdf3e7da7d2ffbd
8 files changed