Home
last modified time | relevance | path

Searched refs:WAKEFULNESS_ASLEEP (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWakefulnessLifecycle.java36 public static final int WAKEFULNESS_ASLEEP = 0; field in WakefulnessLifecycle
41 private int mWakefulness = WAKEFULNESS_ASLEEP;
76 if (getWakefulness() == WAKEFULNESS_ASLEEP) { in dispatchFinishedGoingToSleep()
79 setWakefulness(WAKEFULNESS_ASLEEP); in dispatchFinishedGoingToSleep()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java34 public static final int WAKEFULNESS_ASLEEP = 0; field in PowerManagerInternal
60 case WAKEFULNESS_ASLEEP: in wakefulnessToString()
78 case WAKEFULNESS_ASLEEP: in wakefulnessToProtoEnum()
79 return PowerManagerInternalProto.WAKEFULNESS_ASLEEP; in wakefulnessToProtoEnum()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java19 import static android.os.PowerManagerInternal.WAKEFULNESS_ASLEEP;
292 mService.setWakefulnessLocked(WAKEFULNESS_ASLEEP, PowerManager.GO_TO_SLEEP_REASON_TIMEOUT, in testGetDesiredScreenPolicy_WithVR()
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()
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()
422 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_ASLEEP); in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
483 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_ASLEEP); in testForceSuspend_putsDeviceToSleep()
[all …]
DAttentionDetectorTest.java209 mAttentionDetector.onWakefulnessChangeStarted(PowerManagerInternal.WAKEFULNESS_ASLEEP); in testOnWakefulnessChangeStarted_cancelsRequestWhenNotAwake()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWakefulnessLifecycleTest.java54 assertEquals(WakefulnessLifecycle.WAKEFULNESS_ASLEEP, mWakefulness.getWakefulness()); in baseState()
97 assertEquals(WakefulnessLifecycle.WAKEFULNESS_ASLEEP, in dispatchFinishedGoingToSleep()
/frameworks/base/core/proto/android/os/
Dpowermanager.proto57 WAKEFULNESS_ASLEEP = 0; enumerator
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java19 import static android.os.PowerManagerInternal.WAKEFULNESS_ASLEEP;
1392 if (mWakefulness == WAKEFULNESS_ASLEEP in userActivityNoUpdateLocked()
1501 || mWakefulness == WAKEFULNESS_ASLEEP in goToSleepNoUpdateLocked()
1581 if (eventTime < mLastWakeTime || mWakefulness == WAKEFULNESS_ASLEEP in reallyGoToSleepNoUpdateLocked()
1590 setWakefulnessLocked(WAKEFULNESS_ASLEEP, PowerManager.GO_TO_SLEEP_REASON_TIMEOUT, in reallyGoToSleepNoUpdateLocked()
1635 if (mWakefulness == WAKEFULNESS_DOZING || mWakefulness == WAKEFULNESS_ASLEEP) { in finishWakefulnessChangeIfNeededLocked()
1903 if (mWakefulness == WAKEFULNESS_ASLEEP in adjustWakeLockSummaryLocked()
1907 if (mWakefulness == WAKEFULNESS_ASLEEP) { in adjustWakeLockSummaryLocked()
2536 if (mWakefulness == WAKEFULNESS_ASLEEP || sQuiescent) { in getDesiredScreenPolicyLocked()
3119 if (!mSystemReady || mWakefulness == WAKEFULNESS_ASLEEP in boostScreenBrightnessInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogControllerImpl.java451 mStatusBar.getWakefulnessState() != WakefulnessLifecycle.WAKEFULNESS_ASLEEP in shouldShowUI()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java30 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_ASLEEP;
2626 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_ASLEEP in dismissKeyguardThenExecute()