/frameworks/base/core/java/android/os/ |
D | PowerManagerInternal.java | 40 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/ |
D | WakefulnessLifecycle.java | 38 public static final int WAKEFULNESS_AWAKE = 2; field in WakefulnessLifecycle 60 if (getWakefulness() == WAKEFULNESS_AWAKE) { in dispatchFinishedWakingUp() 63 setWakefulness(WAKEFULNESS_AWAKE); in dispatchFinishedWakingUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 20 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE; 282 mService.setWakefulnessLocked(WAKEFULNESS_AWAKE, PowerManager.WAKE_REASON_UNKNOWN, 0); in testGetDesiredScreenPolicy_WithVR() 298 mService.setWakefulnessLocked(WAKEFULNESS_AWAKE, PowerManager.WAKE_REASON_UNKNOWN, 0); in testGetDesiredScreenPolicy_WithVR() 310 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_InitialValue() 317 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_NoDozeSleepFlag() 352 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_AcquireCausesWakeup() 362 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_IPowerManagerWakeUp() 442 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn() 449 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessDoze_goToSleep() 478 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testForceSuspend_putsDeviceToSleep() [all …]
|
D | AttentionDetectorTest.java | 75 mAttentionDetector.onWakefulnessChangeStarted(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImplTest.java | 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()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | AttentionDetector.java | 130 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector() 253 if (wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onWakefulnessChangeStarted() 323 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
|
D | PowerManagerService.java | 20 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE; 784 mWakefulness = WAKEFULNESS_AWAKE; in PowerManagerService() 1449 if (eventTime < mLastSleepTime || mWakefulness == WAKEFULNESS_AWAKE in wakeUpNoUpdateLocked() 1467 setWakefulnessLocked(WAKEFULNESS_AWAKE, reason, eventTime); in wakeUpNoUpdateLocked() 1557 if (eventTime < mLastWakeTime || mWakefulness != WAKEFULNESS_AWAKE in napNoUpdateLocked() 1638 if (mWakefulness == WAKEFULNESS_AWAKE) { in finishWakefulnessChangeIfNeededLocked() 1914 if (mWakefulness == WAKEFULNESS_AWAKE) { in adjustWakeLockSummaryLocked() 2024 if (mWakefulness == WAKEFULNESS_AWAKE in updateUserActivitySummaryLocked() 2195 if (mWakefulness == WAKEFULNESS_AWAKE && isItBedTimeYetLocked()) { in updateWakefulnessLocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycleTest.java | 73 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjProfiler.java | 77 mScreenOff = wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
|
D | OomAdjuster.java | 827 if (mService.mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked() 1319 == PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLocked() 1604 && mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked() 1702 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked() 1710 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked()
|
D | ActivityManagerService.java | 1220 int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; 7863 reportGlobalUsageEventLocked(mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEventLocked() 7870 boolean wasAwake = mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged() 7871 boolean isAwake = wakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
|
/frameworks/base/core/proto/android/os/ |
D | powermanager.proto | 61 WAKEFULNESS_AWAKE = 1; enumerator
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBar.java | 31 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; 3804 return mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in isWakingUpOrAwake() 4046 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in setAnimateWakeup()
|