(1/x) Consolidate Screen/Wakefulness lifecycle state into PowerRepository.
Despite being relied upon from all over System UI, these classes are in the keyguard package. They're also confusing - screen lifecycle methods aren't called at all if AOD is enabled. This CL moves screen/wakefulness state from KeyguardRepository into PowerRepository, and dispatches state directly from the source of truth (KeyguardService and CommandQueue) into PowerRepository. It also deprecates ScreenLifecycle/WakefulnessLifecycle - I will migrate uses of those classes in follow-up CLs so they can be reverted if they cause issues. Bug: 298213384 Test: atest PowerInteractorTest Test: atest SystemUITests Change-Id: Ie735834bbf40f4c99b729db4fce6096ccc569eb2
Loading
Please register or sign in to comment