Ejemplo n.º 1
0
 /**
  * Cancel all {@link AlarmManager} timers for instance.
  *
  * @param ctx application context
  * @param instance to disable all {@link AlarmManager} timers
  */
 private static void cancelScheduledInstanceStateChange(Context ctx, AlarmInstance instance) {
   sStateChangeScheduler.cancelScheduledInstanceStateChange(ctx, instance);
 }
Ejemplo n.º 2
0
 /**
  * Schedule alarm instance state changes with {@link AlarmManager}.
  *
  * @param ctx application context
  * @param time to trigger state change
  * @param instance to change state to
  * @param newState to change to
  */
 private static void scheduleInstanceStateChange(
     Context ctx, Calendar time, AlarmInstance instance, int newState) {
   sStateChangeScheduler.scheduleInstanceStateChange(ctx, time, instance, newState);
 }