Home
last modified time | relevance | path

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

/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAppStandbyTests.java192 assertTrue("Alarm within quota not firing as expected", waitForAlarm()); in testSimpleQuotaDeferral()
198 assertFalse("Alarm exceeding quota not deferred", waitForAlarm()); in testSimpleQuotaDeferral()
201 assertTrue("Alarm exceeding quota not delivered after expected delay", waitForAlarm()); in testSimpleQuotaDeferral()
211 assertTrue("Alarm not received as expected when app is in active", waitForAlarm()); in testActiveQuota()
237 assertFalse("Alarm received when app was in never bucket", waitForAlarm()); in testNeverQuota()
247 assertTrue("Alarm did not go off for whitelisted app in rare bucket", waitForAlarm()); in testPowerWhitelistedAlarmNotBlocked()
310 private boolean waitForAlarm() throws InterruptedException { in waitForAlarm() method in AppStandbyTests
DExactAlarmsTest.java351 AlarmReceiver.waitForAlarm(id, DEFAULT_WAIT_FOR_SUCCESS)); in setAlarmClockWithPermission()
408 AlarmReceiver.waitForAlarm(alarmId, DEFAULT_WAIT_FOR_SUCCESS)); in setExactAwiCallbackQuota()
418 assertFalse("Alarm received when no quota", AlarmReceiver.waitForAlarm(alarmId, 5000)); in setExactAwiCallbackQuota()
422 AlarmReceiver.waitForAlarm(alarmId, DEFAULT_WAIT_FOR_SUCCESS)); in setExactAwiCallbackQuota()
436 AlarmReceiver.waitForAlarm(id, DEFAULT_WAIT_FOR_SUCCESS)); in setExactAwiWithPermissionAndWhitelist()
451 AlarmReceiver.waitForAlarm(id, DEFAULT_WAIT_FOR_SUCCESS)); in setExactAwiExecutorWithPermissionAndWhitelist()
493 AlarmReceiver.waitForAlarm(alarmId, DEFAULT_WAIT_FOR_SUCCESS)); in setExactAwiWithPermissionWithoutWhitelist()
501 assertFalse("Alarm received when no quota", AlarmReceiver.waitForAlarm(alarmId, 5000)); in setExactAwiWithPermissionWithoutWhitelist()
505 AlarmReceiver.waitForAlarm(alarmId, DEFAULT_WAIT_FOR_SUCCESS)); in setExactAwiWithPermissionWithoutWhitelist()
524 assertTrue("Alarm " + id + " not received", AlarmReceiver.waitForAlarm(id, in alarmClockGrantsWhitelist()
[all …]
DAlarmReceiver.java92 static boolean waitForAlarm(int alarmId, long timeOut) throws InterruptedException { in waitForAlarm() method in AlarmReceiver