Lines Matching refs:alarm
123 public static void dismissAlarm(Alarm alarm, Activity activity) { in dismissAlarm() argument
126 context.getContentResolver(), alarm.id); in dismissAlarm()
232 for (Alarm alarm : matchingAlarms) { in doInBackground()
233 dismissAlarm(alarm, mActivity); in doInBackground()
234 LOGGER.i("Alarm dismissed: " + alarm); in doInBackground()
351 final Alarm alarm; in handleSetAlarm() local
354 alarm = alarms.get(0); in handleSetAlarm()
355 alarm.enabled = true; in handleSetAlarm()
356 Alarm.updateAlarm(cr, alarm); in handleSetAlarm()
359 AlarmStateManager.deleteAllInstances(this, alarm.id); in handleSetAlarm()
362 LOGGER.i("Updated alarm: " + alarm); in handleSetAlarm()
365 alarm = new Alarm(); in handleSetAlarm()
366 updateAlarmFromIntent(alarm, intent); in handleSetAlarm()
367 alarm.deleteAfterUse = !alarm.daysOfWeek.isRepeating() && skipUi; in handleSetAlarm()
370 Alarm.addAlarm(cr, alarm); in handleSetAlarm()
373 LOGGER.i("Created new alarm: " + alarm); in handleSetAlarm()
378 final AlarmInstance alarmInstance = alarm.createInstanceAfter(now); in handleSetAlarm()
487 private static void updateAlarmFromIntent(Alarm alarm, Intent intent) { in updateAlarmFromIntent() argument
488 alarm.enabled = true; in updateAlarmFromIntent()
489 alarm.hour = intent.getIntExtra(AlarmClock.EXTRA_HOUR, alarm.hour); in updateAlarmFromIntent()
490 alarm.minutes = intent.getIntExtra(AlarmClock.EXTRA_MINUTES, alarm.minutes); in updateAlarmFromIntent()
491 alarm.vibrate = intent.getBooleanExtra(AlarmClock.EXTRA_VIBRATE, alarm.vibrate); in updateAlarmFromIntent()
492 alarm.alert = getAlertFromIntent(intent, alarm.alert); in updateAlarmFromIntent()
493 alarm.label = getLabelFromIntent(intent, alarm.label); in updateAlarmFromIntent()
494 alarm.daysOfWeek = getDaysFromIntent(intent, alarm.daysOfWeek); in updateAlarmFromIntent()