Searched refs:WakefulnessLifecycle (Results 1 – 13 of 13) sorted by relevance
42 private WakefulnessLifecycle mWakefulness;43 private WakefulnessLifecycle.Observer mWakefulnessObserver;47 mWakefulness = new WakefulnessLifecycle(); in setUp()48 mWakefulnessObserver = mock(WakefulnessLifecycle.Observer.class); in setUp()54 assertEquals(WakefulnessLifecycle.WAKEFULNESS_ASLEEP, mWakefulness.getWakefulness()); in baseState()63 assertEquals(WakefulnessLifecycle.WAKEFULNESS_WAKING, mWakefulness.getWakefulness()); in dispatchStartedWakingUp()73 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp()84 assertEquals(WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP, in dispatchStartedGoingToSleep()97 assertEquals(WakefulnessLifecycle.WAKEFULNESS_ASLEEP, in dispatchFinishedGoingToSleep()
32 import com.android.systemui.keyguard.WakefulnessLifecycle;56 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceNotInteractiveAOD()64 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceInteractive()72 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceInteractive_StartedSleeping()75 …when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP); in testVolumeChangeW_deviceInteractive_StartedSleeping()
33 public class WakefulnessLifecycle extends Lifecycle<WakefulnessLifecycle.Observer> implements class44 public WakefulnessLifecycle() { in WakefulnessLifecycle() method in WakefulnessLifecycle
38 private final WakefulnessLifecycle mWakefulnessLifecycle;41 WakefulnessLifecycle wakefulnessLifecycle) { in KeyguardLifecyclesDispatcher()
53 Dependency.get(WakefulnessLifecycle.class)); in onCreate()
36 import com.android.systemui.keyguard.WakefulnessLifecycle;63 private WakefulnessLifecycle mWakefulnessLifecycle;139 final WakefulnessLifecycle.Observer mWakefulnessObserver = new WakefulnessLifecycle.Observer() {157 mWakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in start()
40 import com.android.systemui.keyguard.WakefulnessLifecycle;180 Dependency.get(WakefulnessLifecycle.class).addObserver(mWakefulnessObserver); in BiometricUnlockController()474 private final WakefulnessLifecycle.Observer mWakefulnessObserver =475 new WakefulnessLifecycle.Observer() {
30 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_ASLEEP;31 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE;32 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_WAKING;160 import com.android.systemui.keyguard.WakefulnessLifecycle;553 @VisibleForTesting WakefulnessLifecycle mWakefulnessLifecycle;626 mWakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in start()3596 final WakefulnessLifecycle.Observer mWakefulnessObserver = new WakefulnessLifecycle.Observer() {3800 == WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP; in isGoingToSleep()
47 import com.android.systemui.keyguard.WakefulnessLifecycle;74 private WakefulnessLifecycle mWakefulnessLifecycle;77 private final WakefulnessLifecycle.Observer mWakefulnessObserver =78 new WakefulnessLifecycle.Observer() {173 mWakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in CarrierTextController()
49 import com.android.systemui.keyguard.WakefulnessLifecycle;109 mDependency.injectMockDependency(WakefulnessLifecycle.class); in setUp()
84 import com.android.systemui.keyguard.WakefulnessLifecycle;829 private WakefulnessLifecycle createAwakeWakefulnessLifecycle() { in createAwakeWakefulnessLifecycle()830 WakefulnessLifecycle wakefulnessLifecycle = new WakefulnessLifecycle(); in createAwakeWakefulnessLifecycle()
42 import com.android.systemui.keyguard.WakefulnessLifecycle;234 @Inject Lazy<WakefulnessLifecycle> mWakefulnessLifecycle;386 mProviders.put(WakefulnessLifecycle.class, mWakefulnessLifecycle::get); in start()
61 import com.android.systemui.keyguard.WakefulnessLifecycle;451 mStatusBar.getWakefulnessState() != WakefulnessLifecycle.WAKEFULNESS_ASLEEP in shouldShowUI()453 WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP in shouldShowUI()