Lines Matching defs:alarm
43 // Default of 10 minutes until alarm is silenced.
76 // The user might already be in a call when the alarm fires. When
78 // which kills the alarm. Check against the initial call state so
79 // we don't kill the alarm during a call.
91 // Listen for incoming calls to kill the alarm.
123 final Alarm alarm = intent.getParcelableExtra(
126 if (alarm == null) {
127 Log.v("AlarmKlaxon failed to parse the alarm from the intent");
136 play(alarm);
137 mCurrentAlarm = alarm;
138 // Record the initial call state here so that the new alarm has the
145 private void sendKillBroadcast(Alarm alarm, boolean replaced) {
149 alarmKilled.putExtra(Alarms.ALARM_INTENT_EXTRA, alarm);
158 private void play(Alarm alarm) {
163 Log.v("AlarmKlaxon.play() " + alarm.id + " alert " + alarm.alert);
166 if (!alarm.silent) {
167 Uri alert = alarm.alert;
168 // Fall back on the default alarm if the database does not have an
169 // alarm stored.
174 Log.v("Using default alarm: " + alert.toString());
193 // Check if we are in a call. If we are, use the in-call alarm
197 Log.v("Using the in-call alarm");
223 if (alarm.vibrate) {
229 enableKiller(alarm);
234 // Do the common stuff when starting the alarm.
260 * Stops alarm audio and disables alarm if it not snoozed and not
282 * Kills alarm audio after ALARM_TIMEOUT_SECONDS, so the alarm
286 * popped, so the user will know that the alarm tripped.
288 private void enableKiller(Alarm alarm) {
295 mHandler.sendMessageDelayed(mHandler.obtainMessage(KILLER, alarm),