Home
last modified time | relevance | path

Searched refs:DEFAULT_WAIT (Results 1 – 3 of 3) sorted by relevance

/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java72 private static final long DEFAULT_WAIT = 1_000; field in BackgroundRestrictedAlarmsTest
154 Thread.sleep(DEFAULT_WAIT); in testRepeatingAlarmBlocked()
156 assertFalse("Alarm got triggered even under restrictions", waitForAlarms(1, DEFAULT_WAIT)); in testRepeatingAlarmBlocked()
164 + " times when restrictions were lifted", waitForAlarms(minCount, DEFAULT_WAIT)); in testRepeatingAlarmBlocked()
174 Thread.sleep(DEFAULT_WAIT); in testRepeatingAlarmAllowedWhenAutoRestrictedBucketFeatureOn()
176 assertFalse("Alarm got triggered even under restrictions", waitForAlarms(1, DEFAULT_WAIT)); in testRepeatingAlarmAllowedWhenAutoRestrictedBucketFeatureOn()
184 + " times when restrictions were lifted", waitForAlarms(minCount, DEFAULT_WAIT)); in testRepeatingAlarmAllowedWhenAutoRestrictedBucketFeatureOn()
199 waitForAlarms(1, DEFAULT_WAIT)); in testAlarmClockNotBlocked()
218 Thread.sleep(DEFAULT_WAIT); in tearDown()
DAppStandbyTests.java75 private static final long DEFAULT_WAIT = 2_000; field in AppStandbyTests
311 final boolean success = waitUntil(() -> (mAlarmCount.get() == 1), DEFAULT_WAIT); in waitForAlarm()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverAlarmTest.java70 private static final long DEFAULT_WAIT = 1_000; field in BatterySaverAlarmTest
221 ThreadUtils.sleepUntilRealtime(triggerElapsed3 + DEFAULT_WAIT); in testAllowWhileIdleThrottled()
274 ThreadUtils.sleepUntilRealtime(triggerElapsed + DEFAULT_WAIT); in testAlarmsThrottled()
297 ThreadUtils.sleepUntilRealtime(triggerElapsed + DEFAULT_WAIT); in testAlarmsThrottled()