Home
last modified time | relevance | path

Searched refs:WakefulnessLifecycle (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWakefulnessLifecycleTest.java42 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogControllerImplTest.java32 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWakefulnessLifecycle.java33 public class WakefulnessLifecycle extends Lifecycle<WakefulnessLifecycle.Observer> implements class
44 public WakefulnessLifecycle() { in WakefulnessLifecycle() method in WakefulnessLifecycle
DKeyguardLifecyclesDispatcher.java38 private final WakefulnessLifecycle mWakefulnessLifecycle;
41 WakefulnessLifecycle wakefulnessLifecycle) { in KeyguardLifecyclesDispatcher()
DKeyguardService.java53 Dependency.get(WakefulnessLifecycle.class)); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DBiometricDialogImpl.java36 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBiometricUnlockController.java40 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() {
DStatusBar.java30 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()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextController.java47 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextControllerTest.java49 import com.android.systemui.keyguard.WakefulnessLifecycle;
109 mDependency.injectMockDependency(WakefulnessLifecycle.class); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarTest.java84 import com.android.systemui.keyguard.WakefulnessLifecycle;
829 private WakefulnessLifecycle createAwakeWakefulnessLifecycle() { in createAwakeWakefulnessLifecycle()
830 WakefulnessLifecycle wakefulnessLifecycle = new WakefulnessLifecycle(); in createAwakeWakefulnessLifecycle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java42 import com.android.systemui.keyguard.WakefulnessLifecycle;
234 @Inject Lazy<WakefulnessLifecycle> mWakefulnessLifecycle;
386 mProviders.put(WakefulnessLifecycle.class, mWakefulnessLifecycle::get); in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogControllerImpl.java61 import com.android.systemui.keyguard.WakefulnessLifecycle;
451 mStatusBar.getWakefulnessState() != WakefulnessLifecycle.WAKEFULNESS_ASLEEP in shouldShowUI()
453 WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP in shouldShowUI()