Searched refs:getWakefulness (Results 1 – 5 of 5) sorted by relevance
47 public int getWakefulness() { in getWakefulness() method in WakefulnessLifecycle52 if (getWakefulness() == WAKEFULNESS_WAKING) { in dispatchStartedWakingUp()60 if (getWakefulness() == WAKEFULNESS_AWAKE) { in dispatchFinishedWakingUp()68 if (getWakefulness() == WAKEFULNESS_GOING_TO_SLEEP) { in dispatchStartedGoingToSleep()76 if (getWakefulness() == WAKEFULNESS_ASLEEP) { in dispatchFinishedGoingToSleep()
310 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_InitialValue()317 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_NoDozeSleepFlag()322 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_ASLEEP); in testWakefulnessSleep_NoDozeSleepFlag()338 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_ASLEEP); in testWakefulnessAwake_AcquireCausesWakeup()345 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_ASLEEP); in testWakefulnessAwake_AcquireCausesWakeup()352 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_AcquireCausesWakeup()362 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_IPowerManagerWakeUp()381 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_ASLEEP); in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()396 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_ASLEEP); in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()402 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_ASLEEP); in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()[all …]
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()85 mWakefulness.getWakefulness()); in dispatchStartedGoingToSleep()98 mWakefulness.getWakefulness()); in dispatchFinishedGoingToSleep()
2626 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_ASLEEP in dismissKeyguardThenExecute()3687 return mWakefulnessLifecycle.getWakefulness(); in getWakefulnessState()3799 return mWakefulnessLifecycle.getWakefulness() in isGoingToSleep()3804 return mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in isWakingUpOrAwake()3805 || mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_WAKING; in isWakingUpOrAwake()4046 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in setAnimateWakeup()4047 || mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_WAKING) { in setAnimateWakeup()
1612 int getWakefulness() { in getWakefulness() method in PowerManagerService