@Implements(value=android.app.AlarmManager.class) public class ShadowAlarmManager extends java.lang.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(android.app.AlarmManager.OnAlarmListener listener) |
protected void |
cancel(android.app.PendingIntent operation) |
protected android.app.AlarmManager.AlarmClockInfo |
getNextAlarmClock() |
ShadowAlarmManager.ScheduledAlarm |
getNextScheduledAlarm() |
java.util.List<ShadowAlarmManager.ScheduledAlarm> |
getScheduledAlarms() |
ShadowAlarmManager.ScheduledAlarm |
peekNextScheduledAlarm() |
static void |
reset() |
protected void |
set(int type,
long triggerAtTime,
android.app.PendingIntent operation) |
protected void |
set(int type,
long triggerAtTime,
java.lang.String tag,
android.app.AlarmManager.OnAlarmListener listener,
android.os.Handler targetHandler) |
protected void |
setAlarmClock(android.app.AlarmManager.AlarmClockInfo info,
android.app.PendingIntent operation) |
protected void |
setAndAllowWhileIdle(int type,
long triggerAtTime,
android.app.PendingIntent operation) |
protected void |
setExact(int type,
long triggerAtTime,
android.app.PendingIntent operation) |
protected void |
setExact(int type,
long triggerAtTime,
java.lang.String tag,
android.app.AlarmManager.OnAlarmListener listener,
android.os.Handler targetHandler) |
protected void |
setExactAndAllowWhileIdle(int type,
long triggerAtTime,
android.app.PendingIntent operation) |
protected void |
setInexactRepeating(int type,
long triggerAtMillis,
long intervalMillis,
android.app.PendingIntent operation) |
protected void |
setRepeating(int type,
long triggerAtTime,
long interval,
android.app.PendingIntent operation) |
protected void |
setTimeZone(java.lang.String timeZone) |
protected void |
setWindow(int type,
long windowStartMillis,
long windowLengthMillis,
android.app.PendingIntent operation) |
protected void |
setWindow(int type,
long windowStartMillis,
long windowLengthMillis,
java.lang.String tag,
android.app.AlarmManager.OnAlarmListener listener,
android.os.Handler targetHandler) |
@Resetter public static void reset()
@Implementation protected void setTimeZone(java.lang.String timeZone)
@Implementation protected void set(int type, long triggerAtTime, android.app.PendingIntent operation)
@Implementation(minSdk=24) protected void set(int type, long triggerAtTime, java.lang.String tag, android.app.AlarmManager.OnAlarmListener listener, android.os.Handler targetHandler)
@Implementation(minSdk=19) protected void setExact(int type, long triggerAtTime, android.app.PendingIntent operation)
@Implementation(minSdk=24) protected void setExact(int type, long triggerAtTime, java.lang.String tag, android.app.AlarmManager.OnAlarmListener listener, android.os.Handler targetHandler)
@Implementation(minSdk=19) protected void setWindow(int type, long windowStartMillis, long windowLengthMillis, android.app.PendingIntent operation)
@Implementation(minSdk=24) protected void setWindow(int type, long windowStartMillis, long windowLengthMillis, java.lang.String tag, android.app.AlarmManager.OnAlarmListener listener, android.os.Handler targetHandler)
@Implementation(minSdk=23) protected void setAndAllowWhileIdle(int type, long triggerAtTime, android.app.PendingIntent operation)
@Implementation(minSdk=23) protected void setExactAndAllowWhileIdle(int type, long triggerAtTime, android.app.PendingIntent operation)
@Implementation protected void setRepeating(int type, long triggerAtTime, long interval, android.app.PendingIntent operation)
@Implementation protected void setInexactRepeating(int type, long triggerAtMillis, long intervalMillis, android.app.PendingIntent operation)
@Implementation(minSdk=21) protected void setAlarmClock(android.app.AlarmManager.AlarmClockInfo info, android.app.PendingIntent operation)
@Implementation(minSdk=21) protected android.app.AlarmManager.AlarmClockInfo getNextAlarmClock()
public ShadowAlarmManager.ScheduledAlarm getNextScheduledAlarm()
public ShadowAlarmManager.ScheduledAlarm peekNextScheduledAlarm()
public java.util.List<ShadowAlarmManager.ScheduledAlarm> getScheduledAlarms()
@Implementation protected void cancel(android.app.PendingIntent operation)
@Implementation(minSdk=24) protected void cancel(android.app.AlarmManager.OnAlarmListener listener)