Home | History | Annotate | Download | only in alarmclock

Lines Matching refs:alarm

43     /** Play alarm up to 10 minutes before silencing */
51 private Alarm mCurrentAlarm;
63 Log.v("*********** Alarm killer triggered ***********");
65 sendKillBroadcast((Alarm) msg.obj);
75 // The user might already be in a call when the alarm fires. When
77 // which kills the alarm. Check against the initial call state so
78 // we don't kill the alarm during a call.
90 // Listen for incoming calls to kill the alarm.
119 final Alarm alarm = intent.getParcelableExtra(
122 if (alarm == null) {
123 Log.v("AlarmKlaxon failed to parse the alarm from the intent");
132 play(alarm);
133 mCurrentAlarm = alarm;
134 // Record the initial call state here so that the new alarm has the
141 private void sendKillBroadcast(Alarm alarm) {
145 alarmKilled.putExtra(Alarms.ALARM_INTENT_EXTRA, alarm);
153 private void play(Alarm alarm) {
158 Log.v("AlarmKlaxon.play() " + alarm.id + " alert " + alarm.alert);
161 if (!alarm.silent) {
162 Uri alert = alarm.alert;
163 // Fall back on the default alarm if the database does not have an
164 // alarm stored.
169 Log.v("Using default alarm: " + alert.toString());
187 // Check if we are in a call. If we are, use the in-call alarm
191 Log.v("Using the in-call alarm");
217 if (alarm.vibrate) {
223 enableKiller(alarm);
228 // Do the common stuff when starting the alarm.
254 * Stops alarm audio and disables alarm if it not snoozed and not
276 * Kills alarm audio after ALARM_TIMEOUT_SECONDS, so the alarm
280 * popped, so the user will know that the alarm tripped.
282 private void enableKiller(Alarm alarm) {
283 mHandler.sendMessageDelayed(mHandler.obtainMessage(KILLER, alarm),