Home
last modified time | relevance | path

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/
DPowerGroupTest.java27 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/
DWakefulnessSessionObserverTest.java20 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/
DWindowManagerPolicyConstants.java129 case PowerManager.GO_TO_SLEEP_REASON_TIMEOUT: in translateSleepReasonToOffReason()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java19 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/
DDozeScreenBrightnessTest.java478 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/
DIPowerManager.aidl161 const int GO_TO_SLEEP_REASON_TIMEOUT = 2; field
DPowerManager.java451 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/
DBridgePowerManager.java353 return PowerManager.GO_TO_SLEEP_REASON_TIMEOUT; in getLastSleepReason()
/frameworks/base/services/core/java/com/android/server/power/
DWakefulnessSessionObserver.java372 } else if (changeReason == PowerManager.GO_TO_SLEEP_REASON_TIMEOUT) { in onWakefulnessChangeStarted()
DPowerManagerService.java3321 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/
DVibrationSettingsTest.java164 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/
DVibrationSettings.java147 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT));
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java2397 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT);
2399 PowerManager.GO_TO_SLEEP_REASON_TIMEOUT);