Searched refs:WakefulnessLifecycle (Results 1 – 20 of 20) 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;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 …]
24 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()
37 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()
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()
36 public class WakefulnessLifecycle extends Lifecycle<WakefulnessLifecycle.Observer> implements class56 public WakefulnessLifecycle() { in WakefulnessLifecycle() method in WakefulnessLifecycle
38 private final WakefulnessLifecycle mWakefulnessLifecycle;41 WakefulnessLifecycle wakefulnessLifecycle) { in KeyguardLifecyclesDispatcher()
53 Dependency.get(WakefulnessLifecycle.class)); in onCreate()
27 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()
32 import com.android.systemui.keyguard.WakefulnessLifecycle;52 WakefulnessLifecycle wakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in assembleMachine()
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()
41 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()
39 import com.android.systemui.keyguard.WakefulnessLifecycle;178 Dependency.get(WakefulnessLifecycle.class).addObserver(mWakefulnessObserver); in BiometricUnlockController()533 final WakefulnessLifecycle.Observer mWakefulnessObserver =534 new WakefulnessLifecycle.Observer() {
31 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()
48 import com.android.systemui.keyguard.WakefulnessLifecycle;66 private WakefulnessLifecycle mWakefulnessLifecycle;
84 import com.android.systemui.keyguard.WakefulnessLifecycle;828 private WakefulnessLifecycle createAwakeWakefulnessLifecycle() { in createAwakeWakefulnessLifecycle()829 WakefulnessLifecycle wakefulnessLifecycle = new WakefulnessLifecycle(); in createAwakeWakefulnessLifecycle()
57 import com.android.systemui.keyguard.WakefulnessLifecycle;121 mDependency.injectMockDependency(WakefulnessLifecycle.class); in setUp()
40 import com.android.systemui.keyguard.WakefulnessLifecycle;228 @Inject Lazy<WakefulnessLifecycle> mWakefulnessLifecycle;391 mProviders.put(WakefulnessLifecycle.class, mWakefulnessLifecycle::get); in start()
62 import com.android.systemui.keyguard.WakefulnessLifecycle;452 mStatusBar.getWakefulnessState() != WakefulnessLifecycle.WAKEFULNESS_ASLEEP in shouldShowUI()454 WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP in shouldShowUI()
84 import com.android.systemui.keyguard.WakefulnessLifecycle;411 mWakefulnessLifecycle = Dependency.get(WakefulnessLifecycle.class); in getDependencies()