Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DPowerManagerInternal.java40 public static final int WAKEFULNESS_AWAKE = 1; field in PowerManagerInternal
62 case WAKEFULNESS_AWAKE: in wakefulnessToString()
80 case WAKEFULNESS_AWAKE: in wakefulnessToProtoEnum()
81 return PowerManagerInternalProto.WAKEFULNESS_AWAKE; in wakefulnessToProtoEnum()
96 return wakefulness == WAKEFULNESS_AWAKE || wakefulness == WAKEFULNESS_DREAMING; in isInteractive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWakefulnessLifecycle.java34 public static final int WAKEFULNESS_AWAKE = 2; field in WakefulnessLifecycle
52 if (getWakefulness() == WAKEFULNESS_AWAKE) { in dispatchFinishedWakingUp()
55 setWakefulness(WAKEFULNESS_AWAKE); in dispatchFinishedWakingUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java20 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE;
90 mService.setWakefulnessLocked(WAKEFULNESS_AWAKE, 0); in testGetDesiredScreenPolicy_WithVR()
105 mService.setWakefulnessLocked(WAKEFULNESS_AWAKE, 0); in testGetDesiredScreenPolicy_WithVR()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogControllerImplTest.java54 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceNotInteractiveAOD()
62 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceInteractive()
70 when(mStatusBar.getWakefulnessState()).thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in testVolumeChangeW_deviceInteractive_StartedSleeping()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DWakefulnessLifecycleTest.java72 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp()
/frameworks/base/core/proto/android/os/
Dpowermanager.proto61 WAKEFULNESS_AWAKE = 1; enumerator
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java20 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE;
675 mWakefulness = WAKEFULNESS_AWAKE; in PowerManagerService()
1343 if (eventTime < mLastSleepTime || mWakefulness == WAKEFULNESS_AWAKE in wakeUpNoUpdateLocked()
1368 setWakefulnessLocked(WAKEFULNESS_AWAKE, 0); in wakeUpNoUpdateLocked()
1477 if (eventTime < mLastWakeTime || mWakefulness != WAKEFULNESS_AWAKE in napNoUpdateLocked()
1568 if (mWakefulness == WAKEFULNESS_AWAKE) { in finishWakefulnessChangeIfNeededLocked()
1839 if (mWakefulness == WAKEFULNESS_AWAKE) { in adjustWakeLockSummaryLocked()
1949 if (mWakefulness == WAKEFULNESS_AWAKE in updateUserActivitySummaryLocked()
2115 if (mWakefulness == WAKEFULNESS_AWAKE && isItBedTimeYetLocked()) { in updateWakefulnessLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java25 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE;
4902 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in setAnimateWakeup()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java1548 private int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE;
13265 reportGlobalUsageEventLocked(mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEventLocked()
13278 boolean wasAwake = mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
13279 boolean isAwake = wakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
23101 if (mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked()
23671 == PowerManagerInternal.WAKEFULNESS_AWAKE && in computeOomAdjLocked()
23990 mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked()