Searched refs:GO_TO_SLEEP_REASON_TIMEOUT (Results 1 – 13 of 13) sorted by relevance
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerGroupTest.java | 27 import static android.os.PowerManager.GO_TO_SLEEP_REASON_TIMEOUT; 130 mPowerGroup.dozeLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDozePowerGroup() 134 eq(WAKEFULNESS_DOZING), eq(TIMESTAMP1), eq(GO_TO_SLEEP_REASON_TIMEOUT), in testDozePowerGroup() 141 mPowerGroup.sleepLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDozePowerGroupWhenNonInteractiveHasNoEffect() 143 eq(WAKEFULNESS_ASLEEP), eq(TIMESTAMP1), eq(GO_TO_SLEEP_REASON_TIMEOUT), in testDozePowerGroupWhenNonInteractiveHasNoEffect() 147 assertThat(mPowerGroup.dozeLocked(TIMESTAMP2, UID, GO_TO_SLEEP_REASON_TIMEOUT)).isFalse(); in testDozePowerGroupWhenNonInteractiveHasNoEffect() 168 mPowerGroup.dozeLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDreamPowerGroupWhenNotAwakeHasNoEffect() 170 eq(WAKEFULNESS_DOZING), eq(TIMESTAMP1), eq(GO_TO_SLEEP_REASON_TIMEOUT), in testDreamPowerGroupWhenNotAwakeHasNoEffect() 184 mPowerGroup.dozeLocked(TIMESTAMP1, UID, GO_TO_SLEEP_REASON_TIMEOUT); in testDreamPowerGroupWhenNotAwakeShouldWake() 186 eq(WAKEFULNESS_DOZING), eq(TIMESTAMP1), eq(GO_TO_SLEEP_REASON_TIMEOUT), in testDreamPowerGroupWhenNotAwakeShouldWake() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | WakefulnessSessionObserverTest.java | 20 import static android.os.PowerManager.GO_TO_SLEEP_REASON_TIMEOUT; 189 GO_TO_SLEEP_REASON_TIMEOUT, in testOnWakefulnessChangeStarted_onDozing_UserActivityAttention_OverrideTimeout() 287 GO_TO_SLEEP_REASON_TIMEOUT, mTestClock.now()); in testOnWakefulnessChangeStarted_inTimeoutOverride_onAwake_After_onDozing()
|
/frameworks/base/core/java/android/view/ |
D | WindowManagerPolicyConstants.java | 129 case PowerManager.GO_TO_SLEEP_REASON_TIMEOUT: in translateSleepReasonToOffReason()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenBrightness.java | 19 import static android.os.PowerManager.GO_TO_SLEEP_REASON_TIMEOUT; 289 && mWakefulnessLifecycle.getLastSleepReason() == GO_TO_SLEEP_REASON_TIMEOUT) { in clampToDimBrightnessForScreenOff()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenBrightnessTest.java | 478 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT); in transitionToDoze_shouldClampBrightness_afterTimeout_clampsToDim() 511 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT); in transitionToDoze_noClampBrightness_afterTimeout_noScreenOff_doesNotClampToDim() 524 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT); in transitionToDoze_noClampBrightness_afterTimeout_clampsToDim()
|
/frameworks/base/core/java/android/os/ |
D | IPowerManager.aidl | 161 const int GO_TO_SLEEP_REASON_TIMEOUT = 2; field
|
D | PowerManager.java | 451 public static final int GO_TO_SLEEP_REASON_TIMEOUT = 2; field in PowerManager 542 case GO_TO_SLEEP_REASON_TIMEOUT: return "timeout"; in sleepReasonToString() 644 GO_TO_SLEEP_REASON_TIMEOUT,
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePowerManager.java | 353 return PowerManager.GO_TO_SLEEP_REASON_TIMEOUT; in getLastSleepReason()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | WakefulnessSessionObserver.java | 372 } else if (changeReason == PowerManager.GO_TO_SLEEP_REASON_TIMEOUT) { in onWakefulnessChangeStarted()
|
D | PowerManagerService.java | 3321 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT, Process.SYSTEM_UID); 3520 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT, Process.SYSTEM_UID); 3523 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT, Process.SYSTEM_UID); 3537 sleepPowerGroupLocked(powerGroup, now, PowerManager.GO_TO_SLEEP_REASON_TIMEOUT,
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationSettingsTest.java | 164 mockGoToSleep(/* goToSleepTime= */ 0, PowerManager.GO_TO_SLEEP_REASON_TIMEOUT); in setUp() 716 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT, in shouldCancelVibrationOnScreenOff_withSleepReasonInAllowlist_returnsAlwaysFalse()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationSettings.java | 147 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT));
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 2397 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT); 2399 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT);
|