Lines Matching refs:alarm
30 import com.android.deskclock.provider.Alarm;
94 // Intent has no time or an invalid time, open the alarm creation UI
95 Intent createAlarm = Alarm.createIntent(this, DeskClock.class, Alarm.INVALID_ID);
110 // Check if the alarm already exists and handle it
112 final List<Alarm> alarms = Alarm.getAlarms(cr,
116 Alarm alarm = alarms.get(0);
117 alarm.enabled = true;
118 Alarm.updateAlarm(cr, alarm);
121 AlarmStateManager.deleteAllInstances(this, alarm.id);
122 setupInstance(alarm.createInstanceAfter(Calendar.getInstance()), skipUi);
133 Alarm alarm = new Alarm(hour, minutes);
134 alarm.enabled = true;
135 alarm.label = message;
136 alarm.daysOfWeek = daysOfWeek;
137 alarm.vibrate = vibrate;
140 alarm.alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);
142 alarm.alert = Alarm.NO_RINGTONE_URI;
144 alarm.alert = Uri.parse(alert);
146 alarm.deleteAfterUse = !daysOfWeek.isRepeating() && skipUi;
148 alarm = Alarm.addAlarm(cr, alarm);
149 setupInstance(alarm.createInstanceAfter(Calendar.getInstance()), skipUi);
216 Intent showAlarm = Alarm.createIntent(this, DeskClock.class, instance.mAlarmId);
254 selection.append(Alarm.HOUR).append("=?");
256 selection.append(" AND ").append(Alarm.MINUTES).append("=?");
260 selection.append(" AND ").append(Alarm.LABEL).append("=?");
266 selection.append(" AND ").append(Alarm.DAYS_OF_WEEK).append("=?");
271 selection.append(" AND ").append(Alarm.VIBRATE).append("=?");
276 selection.append(" AND ").append(Alarm.RINGTONE).append("=?");
284 ringTone = Alarm.NO_RINGTONE;