Lines Matching refs:alarm
126 public static void dismissAlarm(Alarm alarm, Activity activity) { in dismissAlarm() argument
129 context.getContentResolver(), alarm.id); in dismissAlarm()
235 for (Alarm alarm : matchingAlarms) { in doInBackground()
236 dismissAlarm(alarm, mActivity); in doInBackground()
237 LOGGER.i("Alarm dismissed: " + alarm); in doInBackground()
354 final Alarm alarm; in handleSetAlarm() local
357 alarm = alarms.get(0); in handleSetAlarm()
358 alarm.enabled = true; in handleSetAlarm()
359 Alarm.updateAlarm(cr, alarm); in handleSetAlarm()
362 AlarmStateManager.deleteAllInstances(this, alarm.id); in handleSetAlarm()
365 LOGGER.i("Updated alarm: " + alarm); in handleSetAlarm()
368 alarm = new Alarm(); in handleSetAlarm()
369 updateAlarmFromIntent(alarm, intent); in handleSetAlarm()
370 alarm.deleteAfterUse = !alarm.daysOfWeek.isRepeating() && skipUi; in handleSetAlarm()
373 Alarm.addAlarm(cr, alarm); in handleSetAlarm()
376 LOGGER.i("Created new alarm: " + alarm); in handleSetAlarm()
381 final AlarmInstance alarmInstance = alarm.createInstanceAfter(now); in handleSetAlarm()
532 private static void updateAlarmFromIntent(Alarm alarm, Intent intent) { in updateAlarmFromIntent() argument
533 alarm.enabled = true; in updateAlarmFromIntent()
534 alarm.hour = intent.getIntExtra(AlarmClock.EXTRA_HOUR, alarm.hour); in updateAlarmFromIntent()
535 alarm.minutes = intent.getIntExtra(AlarmClock.EXTRA_MINUTES, alarm.minutes); in updateAlarmFromIntent()
536 alarm.vibrate = intent.getBooleanExtra(AlarmClock.EXTRA_VIBRATE, alarm.vibrate); in updateAlarmFromIntent()
537 alarm.alert = getAlertFromIntent(intent, alarm.alert); in updateAlarmFromIntent()
538 alarm.label = getLabelFromIntent(intent, alarm.label); in updateAlarmFromIntent()
539 alarm.daysOfWeek = getDaysFromIntent(intent, alarm.daysOfWeek); in updateAlarmFromIntent()