Home
last modified time | relevance | path

Searched refs:WakefulnessLifecycle (Results 1 – 20 of 20) 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/assist/
DAssistHandleLikeHomeBehaviorTest.java32 import com.android.systemui.keyguard.WakefulnessLifecycle;
52 @Mock private WakefulnessLifecycle mMockWakefulnessLifecycle;
77 verify(mMockWakefulnessLifecycle).addObserver(any(WakefulnessLifecycle.Observer.class)); in onModeActivated_beginsObserving()
88 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in onModeActivated_showsHandlesWhenFullyAwake()
103 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_ASLEEP); in onModeActivated_hidesHandlesWhenNotAwake()
118 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in onModeActivated_hidesHandlesWhenDozing()
134 ArgumentCaptor<WakefulnessLifecycle.Observer> observer = in onModeDeactivated_stopsObserving()
135 ArgumentCaptor.forClass(WakefulnessLifecycle.Observer.class); in onModeDeactivated_stopsObserving()
208 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_ASLEEP); in onBothAwakeAndUnDoze_handlesShow()
211 ArgumentCaptor<WakefulnessLifecycle.Observer> observer = in onBothAwakeAndUnDoze_handlesShow()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistHandleLikeHomeBehavior.java24 import com.android.systemui.keyguard.WakefulnessLifecycle;
50 private final WakefulnessLifecycle.Observer mWakefulnessLifecycleObserver =
51 new WakefulnessLifecycle.Observer() {
81 private final Lazy<WakefulnessLifecycle> mWakefulnessLifecycle;
93 Lazy<WakefulnessLifecycle> wakefulnessLifecycle, in AssistHandleLikeHomeBehavior()
106 == WakefulnessLifecycle.WAKEFULNESS_AWAKE; in onModeActivated()
DAssistHandleReminderExpBehavior.java37 import com.android.systemui.keyguard.WakefulnessLifecycle;
126 private final WakefulnessLifecycle.Observer mWakefulnessLifecycleObserver =
127 new WakefulnessLifecycle.Observer() {
163 private final Lazy<WakefulnessLifecycle> mWakefulnessLifecycle;
195 Lazy<WakefulnessLifecycle> wakefulnessLifecycle, in AssistHandleReminderExpBehavior()
227 == WakefulnessLifecycle.WAKEFULNESS_AWAKE; in onModeActivated()
/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.java36 public class WakefulnessLifecycle extends Lifecycle<WakefulnessLifecycle.Observer> implements class
56 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/doze/
DDozeMachine.java27 import com.android.systemui.keyguard.WakefulnessLifecycle;
28 import com.android.systemui.keyguard.WakefulnessLifecycle.Wakefulness;
124 private final WakefulnessLifecycle mWakefulnessLifecycle;
134 WakeLock wakeLock, WakefulnessLifecycle wakefulnessLifecycle, in DozeMachine()
350 if (wakefulness == WakefulnessLifecycle.WAKEFULNESS_AWAKE in resolveIntermediateState()
351 || wakefulness == WakefulnessLifecycle.WAKEFULNESS_WAKING) { in resolveIntermediateState()
DDozeFactory.java32 import com.android.systemui.keyguard.WakefulnessLifecycle;
52 WakefulnessLifecycle wakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in assembleMachine()
/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/keyguard/
DCarrierTextController.java41 import com.android.systemui.keyguard.WakefulnessLifecycle;
69 private WakefulnessLifecycle mWakefulnessLifecycle;
70 private final WakefulnessLifecycle.Observer mWakefulnessObserver =
71 new WakefulnessLifecycle.Observer() {
165 mWakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in CarrierTextController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DBiometricUnlockController.java39 import com.android.systemui.keyguard.WakefulnessLifecycle;
178 Dependency.get(WakefulnessLifecycle.class).addObserver(mWakefulnessObserver); in BiometricUnlockController()
533 final WakefulnessLifecycle.Observer mWakefulnessObserver =
534 new WakefulnessLifecycle.Observer() {
DStatusBar.java31 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_ASLEEP;
32 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE;
33 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_WAKING;
160 import com.android.systemui.keyguard.WakefulnessLifecycle;
572 protected WakefulnessLifecycle mWakefulnessLifecycle;
1105 mWakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in getDependencies()
3727 final WakefulnessLifecycle.Observer mWakefulnessObserver = new WakefulnessLifecycle.Observer() {
3946 == WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP; in isGoingToSleep()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java48 import com.android.systemui.keyguard.WakefulnessLifecycle;
66 private WakefulnessLifecycle mWakefulnessLifecycle;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarTest.java84 import com.android.systemui.keyguard.WakefulnessLifecycle;
828 private WakefulnessLifecycle createAwakeWakefulnessLifecycle() { in createAwakeWakefulnessLifecycle()
829 WakefulnessLifecycle wakefulnessLifecycle = new WakefulnessLifecycle(); in createAwakeWakefulnessLifecycle()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextControllerTest.java57 import com.android.systemui.keyguard.WakefulnessLifecycle;
121 mDependency.injectMockDependency(WakefulnessLifecycle.class); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java40 import com.android.systemui.keyguard.WakefulnessLifecycle;
228 @Inject Lazy<WakefulnessLifecycle> mWakefulnessLifecycle;
391 mProviders.put(WakefulnessLifecycle.class, mWakefulnessLifecycle::get); in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogControllerImpl.java62 import com.android.systemui.keyguard.WakefulnessLifecycle;
452 mStatusBar.getWakefulnessState() != WakefulnessLifecycle.WAKEFULNESS_ASLEEP in shouldShowUI()
454 WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP in shouldShowUI()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DCarStatusBar.java84 import com.android.systemui.keyguard.WakefulnessLifecycle;
411 mWakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in getDependencies()