Home
last modified time | relevance | path

Searched refs:getWakefulness (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWakefulnessLifecycle.java47 public int getWakefulness() { in getWakefulness() method in WakefulnessLifecycle
52 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()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java310 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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWakefulnessLifecycleTest.java54 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java2626 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()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1612 int getWakefulness() { in getWakefulness() method in PowerManagerService