Home
last modified time | relevance | path

Searched refs:WAKEFULNESS_AWAKE (Results 1 – 13 of 13) 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.java38 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/
DPowerManagerServiceTest.java20 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 …]
DAttentionDetectorTest.java75 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/services/core/java/com/android/server/power/
DAttentionDetector.java130 mWakefulness = PowerManagerInternal.WAKEFULNESS_AWAKE; in AttentionDetector()
253 if (wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onWakefulnessChangeStarted()
323 if (mWakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE) { in onSuccess()
DPowerManagerService.java20 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/
DWakefulnessLifecycleTest.java73 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp()
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjProfiler.java77 mScreenOff = wakefulness != PowerManagerInternal.WAKEFULNESS_AWAKE; in onWakefulnessChanged()
DOomAdjuster.java827 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()
DActivityManagerService.java1220 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/
Dpowermanager.proto61 WAKEFULNESS_AWAKE = 1; enumerator
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java31 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()