Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d5f31bc7 authored by Josh Tsuji's avatar Josh Tsuji
Browse files

(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
parent c79c2033
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment