Lines Matching refs:alarm
47 public void scheduleAlarm(Alarm alarm) { in scheduleAlarm() argument
49 Bundle extras = writeAlarm(alarm); in scheduleAlarm()
53 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); in scheduleAlarm()
55 alarmTime.set(Calendar.MONTH, alarm.month); in scheduleAlarm()
56 alarmTime.set(Calendar.DATE, alarm.date); in scheduleAlarm()
57 alarmTime.set(Calendar.HOUR_OF_DAY, alarm.hour); in scheduleAlarm()
58 alarmTime.set(Calendar.MINUTE, alarm.minute); in scheduleAlarm()
66 alarm.hour, alarm.minute, in scheduleAlarm()
67 alarm.month, alarm.date)); in scheduleAlarm()
75 public void cancelAlarm(Alarm alarm) { in cancelAlarm() argument
78 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); in cancelAlarm()
110 public static Bundle writeAlarm(Alarm alarm){ in writeAlarm() argument
112 extras.putInt(AlarmIntentService.KEY_ALARM_ID, alarm.id); in writeAlarm()
113 extras.putInt(AlarmIntentService.KEY_ALARM_MONTH, alarm.month); in writeAlarm()
114 extras.putInt(AlarmIntentService.KEY_ALARM_DATE, alarm.date); in writeAlarm()
115 extras.putInt(AlarmIntentService.KEY_ALARM_HOUR, alarm.hour); in writeAlarm()
116 extras.putInt(AlarmIntentService.KEY_ALARM_MINUTE, alarm.minute); in writeAlarm()