@Implements(value=android.app.AlarmManager.class) public class ShadowAlarmManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ShadowAlarmManager.ScheduledAlarm
Container object to hold a PendingIntent and parameters describing when to send it.
|
Constructor and Description |
---|
ShadowAlarmManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel(AlarmManager.OnAlarmListener listener) |
protected void |
cancel(PendingIntent operation) |
protected AlarmManager.AlarmClockInfo |
getNextAlarmClock() |
ShadowAlarmManager.ScheduledAlarm |
getNextScheduledAlarm() |
List<ShadowAlarmManager.ScheduledAlarm> |
getScheduledAlarms() |
ShadowAlarmManager.ScheduledAlarm |
peekNextScheduledAlarm() |
static void |
reset() |
protected void |
set(int type,
long triggerAtTime,
PendingIntent operation) |
protected void |
set(int type,
long triggerAtTime,
String tag,
AlarmManager.OnAlarmListener listener,
Handler targetHandler) |
protected void |
setAlarmClock(AlarmManager.AlarmClockInfo info,
PendingIntent operation) |
protected void |
setAndAllowWhileIdle(int type,
long triggerAtTime,
PendingIntent operation) |
protected void |
setExact(int type,
long triggerAtTime,
PendingIntent operation) |
protected void |
setExact(int type,
long triggerAtTime,
String tag,
AlarmManager.OnAlarmListener listener,
Handler targetHandler) |
protected void |
setExactAndAllowWhileIdle(int type,
long triggerAtTime,
PendingIntent operation) |
protected void |
setInexactRepeating(int type,
long triggerAtMillis,
long intervalMillis,
PendingIntent operation) |
protected void |
setRepeating(int type,
long triggerAtTime,
long interval,
PendingIntent operation) |
protected void |
setTimeZone(String timeZone) |
protected void |
setWindow(int type,
long windowStartMillis,
long windowLengthMillis,
PendingIntent operation) |
protected void |
setWindow(int type,
long windowStartMillis,
long windowLengthMillis,
String tag,
AlarmManager.OnAlarmListener listener,
Handler targetHandler) |
@Resetter public static void reset()
@Implementation protected void setTimeZone(String timeZone)
@Implementation protected void set(int type, long triggerAtTime, PendingIntent operation)
@Implementation(minSdk=24) protected void set(int type, long triggerAtTime, String tag, AlarmManager.OnAlarmListener listener, Handler targetHandler)
@Implementation(minSdk=19) protected void setExact(int type, long triggerAtTime, PendingIntent operation)
@Implementation(minSdk=24) protected void setExact(int type, long triggerAtTime, String tag, AlarmManager.OnAlarmListener listener, Handler targetHandler)
@Implementation(minSdk=19) protected void setWindow(int type, long windowStartMillis, long windowLengthMillis, PendingIntent operation)
@Implementation(minSdk=24) protected void setWindow(int type, long windowStartMillis, long windowLengthMillis, String tag, AlarmManager.OnAlarmListener listener, Handler targetHandler)
@Implementation(minSdk=23) protected void setAndAllowWhileIdle(int type, long triggerAtTime, PendingIntent operation)
@Implementation(minSdk=23) protected void setExactAndAllowWhileIdle(int type, long triggerAtTime, PendingIntent operation)
@Implementation protected void setRepeating(int type, long triggerAtTime, long interval, PendingIntent operation)
@Implementation protected void setInexactRepeating(int type, long triggerAtMillis, long intervalMillis, PendingIntent operation)
@Implementation(minSdk=21) protected void setAlarmClock(AlarmManager.AlarmClockInfo info, PendingIntent operation)
@Implementation(minSdk=21) protected AlarmManager.AlarmClockInfo getNextAlarmClock()
public ShadowAlarmManager.ScheduledAlarm getNextScheduledAlarm()
public ShadowAlarmManager.ScheduledAlarm peekNextScheduledAlarm()
public List<ShadowAlarmManager.ScheduledAlarm> getScheduledAlarms()
@Implementation protected void cancel(PendingIntent operation)
@Implementation(minSdk=24) protected void cancel(AlarmManager.OnAlarmListener listener)