Home
last modified time | relevance | path

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

/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverAlarmTest.java93 private final AtomicInteger mAlarmCount = new AtomicInteger(); field in BatterySaverAlarmTest
99 mAlarmCount.incrementAndGet();
204 () -> (ALLOW_WHILE_IDLE_QUOTA_PRE_S == mAlarmCount.get()), in testAllowWhileIdleThrottled()
208 mAlarmCount.set(0); in testAllowWhileIdleThrottled()
219 assertEquals("Alarms over quota fired in battery saver", 0, mAlarmCount.get()); in testAllowWhileIdleThrottled()
222 PollingCheck.waitFor(POLLING_WAIT_MILLIS, () -> (2 == mAlarmCount.get()), in testAllowWhileIdleThrottled()
226 mAlarmCount.set(0); in testAllowWhileIdleThrottled()
235 PollingCheck.waitFor(POLLING_WAIT_MILLIS, () -> (20 == mAlarmCount.get()), in testAllowWhileIdleThrottled()
243 mAlarmCount.set(0); in testAllowWhileIdleThrottled()
250 PollingCheck.waitFor(POLLING_WAIT_MILLIS, () -> (20 == mAlarmCount.get()), in testAllowWhileIdleThrottled()
[all …]
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAppStandbyTests.java109 private AtomicInteger mAlarmCount; field in AppStandbyTests
115 mAlarmCount.getAndAdd(intent.getIntExtra(TestAlarmReceiver.EXTRA_ALARM_COUNT, 1));
118 Log.d(TAG, "No. of expirations: " + mAlarmCount + " elapsed: " + nowElapsed);
137 mAlarmCount = new AtomicInteger(0); in setUp()
303 final boolean success = waitUntil(() -> (mAlarmCount.get() == 1), DEFAULT_WAIT); in waitForAlarm()
304 mAlarmCount.set(0); in waitForAlarm()
DBackgroundRestrictedAlarmsTest.java70 private volatile int mAlarmCount; field in BackgroundRestrictedAlarmsTest
75 mAlarmCount = intent.getIntExtra(TestAlarmReceiver.EXTRA_ALARM_COUNT, 1);
87 mAlarmCount = 0; in setUp()
199 alarmCount = mAlarmCount; in waitForAlarms()