/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 | 42 WAKEFULNESS_AWAKE, 50 public static final int WAKEFULNESS_AWAKE = 2; field in WakefulnessLifecycle 72 if (getWakefulness() == WAKEFULNESS_AWAKE) { in dispatchFinishedWakingUp() 75 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; 294 mService.setWakefulnessLocked(WAKEFULNESS_AWAKE, PowerManager.WAKE_REASON_UNKNOWN, 0); in testGetDesiredScreenPolicy_WithVR() 310 mService.setWakefulnessLocked(WAKEFULNESS_AWAKE, PowerManager.WAKE_REASON_UNKNOWN, 0); in testGetDesiredScreenPolicy_WithVR() 323 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_InitialValue() 331 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessSleep_NoDozeSleepFlag() 367 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_AcquireCausesWakeup() 378 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_IPowerManagerWakeUp() 460 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn() 468 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testWakefulnessDoze_goToSleep() 500 assertThat(mService.getWakefulness()).isEqualTo(WAKEFULNESS_AWAKE); in testForceSuspend_putsDeviceToSleep() [all …]
|
D | AttentionDetectorTest.java | 80 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/packages/SystemUI/tests/src/com/android/systemui/assist/ |
D | AssistHandleLikeHomeBehaviorTest.java | 88 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in onModeActivated_showsHandlesWhenFullyAwake() 118 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in onModeActivated_hidesHandlesWhenDozing() 265 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in onSleepOrDoze_handlesHide() 311 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in onHomeHandleHide_handlesHide() 340 .thenReturn(WakefulnessLifecycle.WAKEFULNESS_AWAKE); in onHomeHandleUnhide_handlesShow()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | AttentionDetector.java | 134 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector() 254 if (wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onWakefulnessChangeStarted() 325 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
|
D | PowerManagerService.java | 20 import static android.os.PowerManagerInternal.WAKEFULNESS_AWAKE; 792 mWakefulness = WAKEFULNESS_AWAKE; in PowerManagerService() 1459 if (eventTime < mLastSleepTime || mWakefulness == WAKEFULNESS_AWAKE in wakeUpNoUpdateLocked() 1477 setWakefulnessLocked(WAKEFULNESS_AWAKE, reason, eventTime); in wakeUpNoUpdateLocked() 1568 if (eventTime < mLastWakeTime || mWakefulness != WAKEFULNESS_AWAKE in napNoUpdateLocked() 1656 if (mWakefulness == WAKEFULNESS_AWAKE) { in finishWakefulnessChangeIfNeededLocked() 1932 if (mWakefulness == WAKEFULNESS_AWAKE) { in adjustWakeLockSummaryLocked() 2042 if (mWakefulness == WAKEFULNESS_AWAKE in updateUserActivitySummaryLocked() 2213 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/packages/SystemUI/src/com/android/systemui/assist/ |
D | AssistHandleLikeHomeBehavior.java | 106 == WakefulnessLifecycle.WAKEFULNESS_AWAKE; in onModeActivated()
|
D | AssistHandleReminderExpBehavior.java | 227 == WakefulnessLifecycle.WAKEFULNESS_AWAKE; in onModeActivated()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | OomAdjProfiler.java | 77 mScreenOff = wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
|
D | OomAdjuster.java | 831 if (mService.mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked() 1323 == PowerManagerInternal.WAKEFULNESS_AWAKE in computeOomAdjLocked() 1608 && mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in computeOomAdjLocked() 1706 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked() 1714 } else if (mService.mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE in applyOomAdjLocked()
|
D | ActivityManagerService.java | 1229 int mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; 7913 reportGlobalUsageEventLocked(mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE in reportCurWakefulnessUsageEventLocked() 7920 boolean wasAwake = mWakefulness == PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged() 7921 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/doze/ |
D | DozeMachine.java | 350 if (wakefulness == WakefulnessLifecycle.WAKEFULNESS_AWAKE in resolveIntermediateState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBar.java | 32 import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; 3950 return mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in isWakingUpOrAwake() 4203 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in setAnimateWakeup()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 52120 Landroid/os/PowerManagerInternal;->WAKEFULNESS_AWAKE:I 52125 Landroid/os/PowerManagerInternalProto;->WAKEFULNESS_AWAKE:I
|