Searched refs:DEFAULT_WAIT (Results 1 – 3 of 3) sorted by relevance
70 private static final long DEFAULT_WAIT = 1_000; field in BatterySaverAlarmTest191 ThreadUtils.sleepUntilRealtime(triggerElapsed1 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()200 ThreadUtils.sleepUntilRealtime(triggerElapsed2 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()205 ThreadUtils.sleepUntilRealtime(triggerElapsed3 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()216 ThreadUtils.sleepUntilRealtime(triggerElapsed4 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()229 ThreadUtils.sleepUntilRealtime(triggerElapsed5 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()239 ThreadUtils.sleepUntilRealtime(triggerElapsed6 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()260 ThreadUtils.sleepUntilRealtime(triggerElapsed + DEFAULT_WAIT); in testAlarmsThrottled()283 ThreadUtils.sleepUntilRealtime(triggerElapsed + DEFAULT_WAIT); in testAlarmsThrottled()
61 private static final long DEFAULT_WAIT = 1_000; field in BackgroundRestrictedAlarmsTest126 Thread.sleep(DEFAULT_WAIT); in testRepeatingAlarmBlocked()128 assertFalse("Alarm got triggered even under restrictions", waitForAlarms(1, DEFAULT_WAIT)); in testRepeatingAlarmBlocked()136 + " times when restrictions were lifted", waitForAlarms(minCount, DEFAULT_WAIT)); in testRepeatingAlarmBlocked()147 waitForAlarms(1, DEFAULT_WAIT)); in testAlarmClockNotBlocked()160 Thread.sleep(DEFAULT_WAIT); in tearDown()
67 private static final long DEFAULT_WAIT = 2_000; field in AppStandbyTests210 if (nextTriggerTime + DEFAULT_WAIT < minTriggerTime) { in testBucketDelay()497 final boolean success = waitUntil(() -> (mAlarmCount.get() == 1), DEFAULT_WAIT); in waitForAlarm()