Home
last modified time | relevance | path

Searched refs:WAKEFULNESS_DOZING (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/os/
DPowerManagerInternal.java57 public static final int WAKEFULNESS_DOZING = 3; field in PowerManagerInternal
67 case WAKEFULNESS_DOZING: in wakefulnessToString()
85 case WAKEFULNESS_DOZING: in wakefulnessToProtoEnum()
86 return PowerManagerInternalProto.WAKEFULNESS_DOZING; in wakefulnessToProtoEnum()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerGroupTest.java32 import static android.os.PowerManagerInternal.WAKEFULNESS_DOZING;
131 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testDozePowerGroup()
134 eq(WAKEFULNESS_DOZING), eq(TIMESTAMP1), eq(GO_TO_SLEEP_REASON_TIMEOUT), in testDozePowerGroup()
150 eq(GROUP_ID), eq(WAKEFULNESS_DOZING), eq(TIMESTAMP2), /* reason= */ anyInt(), in testDozePowerGroupWhenNonInteractiveHasNoEffect()
170 eq(WAKEFULNESS_DOZING), eq(TIMESTAMP1), eq(GO_TO_SLEEP_REASON_TIMEOUT), in testDreamPowerGroupWhenNotAwakeHasNoEffect()
173 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testDreamPowerGroupWhenNotAwakeHasNoEffect()
175 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testDreamPowerGroupWhenNotAwakeHasNoEffect()
186 eq(WAKEFULNESS_DOZING), eq(TIMESTAMP1), eq(GO_TO_SLEEP_REASON_TIMEOUT), in testDreamPowerGroupWhenNotAwakeShouldWake()
189 assertThat(mPowerGroup.getWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testDreamPowerGroupWhenNotAwakeShouldWake()
205 mPowerGroup.setWakefulnessLocked(WAKEFULNESS_DOZING, TIMESTAMP1, UID, in testLastWakeAndSleepTimeIsUpdated()
[all …]
DPowerManagerServiceTest.java26 import static android.os.PowerManagerInternal.WAKEFULNESS_DOZING;
552 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testWakefulnessSleep_SoftSleepFlag_NoWakelocks()
592 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testWakefulnessSleep_SoftSleepFlag_WithPartialWakelock()
867 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
1006 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testWakefulnessDoze_goToSleep()
1124 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testScreensaverActivateOnSleepDisabled_powered_afterTimeout_goesToDozing()
1299 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testSetDozeOverrideFromDreamManager_triggersSuspendBlocker()
1641 WAKEFULNESS_DOZING); in testWakeLock_affectsProperDisplayGroup()
1726 WAKEFULNESS_DOZING); in testRemovedDisplayGroupWakeLock_affectsNoDisplayGroups()
1727 assertThat(mService.getGlobalWakefulnessLocked()).isEqualTo(WAKEFULNESS_DOZING); in testRemovedDisplayGroupWakeLock_affectsNoDisplayGroups()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DWakefulnessSessionObserverTest.java188 PowerManagerInternal.WAKEFULNESS_DOZING, in testOnWakefulnessChangeStarted_onDozing_UserActivityAttention_OverrideTimeout()
220 PowerManagerInternal.WAKEFULNESS_DOZING, in testOnWakefulnessChangeStarted_onDozing_UserActivityButton()
258 PowerManagerInternal.WAKEFULNESS_DOZING, in testOnWakefulnessChangeStarted_onDozing_UserActivityButton_OverrideTimeout()
286 powerGroupId, PowerManagerInternal.WAKEFULNESS_DOZING, in testOnWakefulnessChangeStarted_inTimeoutOverride_onAwake_After_onDozing()
/frameworks/base/services/core/java/com/android/server/power/
DPowerGroup.java21 import static android.os.PowerManagerInternal.WAKEFULNESS_DOZING;
270 setWakefulnessLocked(WAKEFULNESS_DOZING, eventTime, uid, reason, /* opUid= */ 0, in dozeLocked()
404 } else if (wakefulness == WAKEFULNESS_DOZING) { in getDesiredScreenPolicyLocked()
DPowerManagerService.java29 import static android.os.PowerManagerInternal.WAKEFULNESS_DOZING;
2155 || wakefulness == WAKEFULNESS_DOZING
2282 if (currentWakefulness != WAKEFULNESS_DOZING) {
2307 case WAKEFULNESS_DOZING:
2334 mDozeStartInProgress &= (newWakefulness == WAKEFULNESS_DOZING);
2352 case WAKEFULNESS_DOZING:
2411 || deviceWakefulness == WAKEFULNESS_DOZING)) {
2413 } else if (wakefulness == WAKEFULNESS_DOZING
2415 deviceWakefulness = WAKEFULNESS_DOZING;
2453 case WAKEFULNESS_DOZING:
[all …]
/frameworks/base/core/proto/android/os/
Dpowermanager.proto72 WAKEFULNESS_DOZING = 3; enumerator
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt37600 Landroid/os/PowerManagerInternal;->WAKEFULNESS_DOZING:I
37605 Landroid/os/PowerManagerInternalProto;->WAKEFULNESS_DOZING:I