• Home
  • Raw
  • Download

Lines Matching refs:Alarm

38 import com.android.deskclock.provider.Alarm;
126 public static void dismissAlarm(Alarm alarm, Activity activity) { in dismissAlarm()
183 final List<Alarm> alarms = getEnabledAlarms(mContext); in doInBackground()
192 for (Iterator<Alarm> i = alarms.iterator(); i.hasNext();) { in doInBackground()
218 final List<Alarm> matchingAlarms = fmaa.getMatchingAlarms(); in doInBackground()
235 for (Alarm alarm : matchingAlarms) { in doInBackground()
242 private static List<Alarm> getEnabledAlarms(Context context) { in getEnabledAlarms()
243 final String selection = String.format("%s=?", Alarm.ENABLED); in getEnabledAlarms()
245 return Alarm.getAlarms(context.getContentResolver(), selection, args); in getEnabledAlarms()
334 final Intent createAlarm = Alarm.createIntent(this, DeskClock.class, Alarm.INVALID_ID) in handleSetAlarm()
352 final List<Alarm> alarms = Alarm.getAlarms(cr, selection.toString(), args); in handleSetAlarm()
354 final Alarm alarm; in handleSetAlarm()
359 Alarm.updateAlarm(cr, alarm); in handleSetAlarm()
368 alarm = new Alarm(); in handleSetAlarm()
373 Alarm.addAlarm(cr, alarm); in handleSetAlarm()
521 final Intent showAlarm = Alarm.createIntent(this, DeskClock.class, instance.mAlarmId) in setupInstance()
532 private static void updateAlarmFromIntent(Alarm alarm, Intent intent) { in updateAlarmFromIntent()
574 return Alarm.NO_RINGTONE_URI; in getAlertFromIntent()
604 selection.append(Alarm.HOUR).append("=?"); in setSelectionFromIntent()
606 selection.append(" AND ").append(Alarm.MINUTES).append("=?"); in setSelectionFromIntent()
610 selection.append(" AND ").append(Alarm.LABEL).append("=?"); in setSelectionFromIntent()
616 selection.append(" AND ").append(Alarm.DAYS_OF_WEEK).append("=?"); in setSelectionFromIntent()
620 selection.append(" AND ").append(Alarm.VIBRATE).append("=?"); in setSelectionFromIntent()
625 selection.append(" AND ").append(Alarm.RINGTONE).append("=?"); in setSelectionFromIntent()