commit | d5f31bc7fcddc93ef65996e048dcda927202169f | [log] [tgz] |
---|---|---|
author | Josh Tsuji <tsuji@google.com> | Thu Sep 28 15:42:34 2023 -0400 |
committer | Josh Tsuji <tsuji@google.com> | Mon Oct 02 18:04:40 2023 -0400 |
tree | 04cf2217f33f1d789fb29197af9d36bbfe516ee7 | |
parent | c79c20337222d701c39f3ff6e39e1a7f7924b71e [diff] |
(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