Home
last modified time | relevance | path

Searched refs:WAKEFULNESS_AWAKE (Results 1 – 18 of 18) 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.java42 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/
DPowerManagerServiceTest.java20 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 …]
DAttentionDetectorTest.java80 mAttentionDetector.onWakefulnessChangeStarted(PowerManagerInternal.WAKEFULNESS_AWAKE); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogControllerImplTest.java56 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/
DAssistHandleLikeHomeBehaviorTest.java88 .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/
DAttentionDetector.java134 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()
254 if (wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onWakefulnessChangeStarted()
325 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
DPowerManagerService.java20 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/
DWakefulnessLifecycleTest.java73 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistHandleLikeHomeBehavior.java106 == WakefulnessLifecycle.WAKEFULNESS_AWAKE; in onModeActivated()
DAssistHandleReminderExpBehavior.java227 == WakefulnessLifecycle.WAKEFULNESS_AWAKE; in onModeActivated()
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjProfiler.java77 mScreenOff = wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
DOomAdjuster.java831 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()
DActivityManagerService.java1229 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/
Dpowermanager.proto61 WAKEFULNESS_AWAKE = 1; enumerator
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java350 if (wakefulness == WakefulnessLifecycle.WAKEFULNESS_AWAKE in resolveIntermediateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java32 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/
Dhiddenapi-greylist-max-o.txt52120 Landroid/os/PowerManagerInternal;->WAKEFULNESS_AWAKE:I
52125 Landroid/os/PowerManagerInternalProto;->WAKEFULNESS_AWAKE:I