Searched refs:scheduledAlarm (Results 1 – 2 of 2) sorted by relevance
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowAlarmManager.java | 117 for (ScheduledAlarm scheduledAlarm : scheduledAlarms) { in getNextAlarmClock() 118 AlarmClockInfo alarmClockInfo = scheduledAlarm.getAlarmClockInfo(); in getNextAlarmClock() 174 for (ScheduledAlarm scheduledAlarm : scheduledAlarms) { in cancel() 175 if (scheduledAlarm.operation != null) { in cancel() 176 ShadowPendingIntent scheduledShadowPendingIntent = Shadow.extract(scheduledAlarm.operation); in cancel() 180 scheduledAlarms.remove(scheduledAlarm); in cancel() 189 for (ScheduledAlarm scheduledAlarm : scheduledAlarms) { in cancel() 190 if (scheduledAlarm.onAlarmListener != null) { in cancel() 191 if (scheduledAlarm.onAlarmListener.equals(listener)) { in cancel() 192 scheduledAlarms.remove(scheduledAlarm); in cancel() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowAlarmManagerTest.java | 216 ShadowAlarmManager.ScheduledAlarm scheduledAlarm = shadowAlarmManager.getNextScheduledAlarm(); in shouldSupportGetNextScheduledAlarm() local 218 assertScheduledAlarm(now, pendingIntent, scheduledAlarm); in shouldSupportGetNextScheduledAlarm() 230 ShadowAlarmManager.ScheduledAlarm scheduledAlarm = shadowAlarmManager.getNextScheduledAlarm(); in getNextScheduledAlarm_shouldReturnRepeatingAlarms() local 232 assertRepeatingScheduledAlarm(now, INTERVAL_HOUR, pendingIntent, scheduledAlarm); in getNextScheduledAlarm_shouldReturnRepeatingAlarms() 244 ShadowAlarmManager.ScheduledAlarm scheduledAlarm = shadowAlarmManager.peekNextScheduledAlarm(); in peekNextScheduledAlarm_shouldReturnNextAlarm() local 246 assertScheduledAlarm(now, pendingIntent, scheduledAlarm); in peekNextScheduledAlarm_shouldReturnNextAlarm() 381 ShadowAlarmManager.ScheduledAlarm scheduledAlarm) { in assertScheduledAlarm() argument 382 assertRepeatingScheduledAlarm(now, 0L, pendingIntent, scheduledAlarm); in assertScheduledAlarm() 386 ShadowAlarmManager.ScheduledAlarm scheduledAlarm) { in assertRepeatingScheduledAlarm() argument 387 assertThat(scheduledAlarm).isNotNull(); in assertRepeatingScheduledAlarm() [all …]
|