Searched refs:DEFAULT_WAIT (Results 1 – 3 of 3) sorted by relevance
70 private static final long DEFAULT_WAIT = 1_000; field in BatterySaverAlarmTest193 ThreadUtils.sleepUntilRealtime(triggerElapsed1 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()211 Thread.sleep(DEFAULT_WAIT); in testAllowWhileIdleThrottled()235 ThreadUtils.sleepUntilRealtime(triggerElapsed4 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()249 ThreadUtils.sleepUntilRealtime(triggerElapsed5 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()260 ThreadUtils.sleepUntilRealtime(triggerElapsed6 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()281 ThreadUtils.sleepUntilRealtime(triggerElapsed + DEFAULT_WAIT); in testAlarmsThrottled()304 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()503 final boolean success = waitUntil(() -> (mAlarmCount.get() == 1), DEFAULT_WAIT); in waitForAlarm()