/packages/apps/AlarmClock/src/com/android/alarmclock/ |
H A D | AlarmReceiver.java | 39 /** If the alarm is older than STALE_WINDOW seconds, ignore. It 46 // The alarm has been killed, update the notification 56 Alarm alarm = null; 57 // Grab the alarm from the intent. Since the remote AlarmManagerService 66 alarm = Alarm.CREATOR.createFromParcel(in); 69 if (alarm == null) { 70 Log.v("AlarmReceiver failed to parse the alarm from the intent"); 74 // Intentionally verbose: always log the alarm time to provide useful 79 Log.v("AlarmReceiver.onReceive() id " + alarm.id + " setFor " 80 + format.format(new Date(alarm 161 updateNotification(Context context, Alarm alarm, int timeout) argument [all...] |
H A D | AlarmKlaxon.java | 43 /** Play alarm up to 10 minutes before silencing */ 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; 141 sendKillBroadcast(Alarm alarm) argument 153 play(Alarm alarm) argument 282 enableKiller(Alarm alarm) argument [all...] |
H A D | Alarms.java | 44 // from the alarm manager. 48 // show the alarm has been killed. 52 // alarm played before being killed. 55 // This string is used to indicate a silent alarm in the db. 63 public static final String ALARM_INTENT_EXTRA = "intent.extra.alarm"; 70 // This string is used to identify the alarm id passed to SetAlarm from the 94 * Removes an existing Alarm. If this alarm is snoozing, disables 101 /* If alarm is snoozing, lose it */ 129 * Return an Alarm object representing the alarm id in the database. 130 * Returns null if no alarm exist 230 enableAlarmInternal(final Context context, final Alarm alarm, boolean enabled) argument 330 enableAlert(Context context, final Alarm alarm, final long atTimeInMillis) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AlarmReceiver.java | 39 /** If the alarm is older than STALE_WINDOW seconds, ignore. It 46 // The alarm has been killed, update the notification 56 Alarm alarm = null; 57 // Grab the alarm from the intent. Since the remote AlarmManagerService 66 alarm = Alarm.CREATOR.createFromParcel(in); 69 if (alarm == null) { 70 Log.v("AlarmReceiver failed to parse the alarm from the intent"); 74 // Intentionally verbose: always log the alarm time to provide useful 79 Log.v("AlarmReceiver.onReceive() id " + alarm.id + " setFor " 80 + format.format(new Date(alarm 161 updateNotification(Context context, Alarm alarm, int timeout) argument [all...] |
H A D | AlarmClock.java | 69 Alarm alarm) { 72 Alarms.enableAlarm(this, alarm.id, enabled); 74 SetAlarm.popAlarmSetToast(this, alarm.hour, alarm.minutes, 75 alarm.daysOfWeek); 94 final Alarm alarm = new Alarm(cursor); 101 barOnOff.setImageResource(alarm.enabled ? 107 clockOnOff.setChecked(alarm.enabled); 114 barOnOff, alarm); 121 // set the alarm tex 68 updateIndicatorAndAlarm(boolean enabled, ImageView bar, Alarm alarm) argument [all...] |
H A D | AlarmKlaxon.java | 43 /** Play alarm up to 10 minutes before silencing */ 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; 141 sendKillBroadcast(Alarm alarm) argument 153 play(Alarm alarm) argument 285 enableKiller(Alarm alarm) argument [all...] |
H A D | Alarms.java | 44 // from the alarm manager. 47 // A public action sent by AlarmKlaxon when the alarm has stopped sounding 53 // can snooze the alarm (after ALARM_ALERT_ACTION and before ALARM_DONE_ACTION). 57 // can dismiss the alarm (after ALARM_ALERT_ACTION and before ALARM_DONE_ACTION). 61 // show the alarm has been killed. 65 // alarm played before being killed. 68 // This string is used to indicate a silent alarm in the db. 76 public static final String ALARM_INTENT_EXTRA = "intent.extra.alarm"; 83 // This string is used to identify the alarm id passed to SetAlarm from the 98 * Creates a new Alarm and fills in the given alarm' 100 addAlarm(Context context, Alarm alarm) argument 149 createContentValues(Alarm alarm) argument 209 setAlarm(Context context, Alarm alarm) argument 255 enableAlarmInternal(final Context context, final Alarm alarm, boolean enabled) argument 359 enableAlert(Context context, final Alarm alarm, final long atTimeInMillis) argument 500 calculateAlarm(Alarm alarm) argument [all...] |
H A D | SetAlarm.java | 45 * Manages each alarm 66 * Set an alarm. Requires an Alarms.ALARM_ID to be passed in as an 109 mAlarmPref = (AlarmPreference) findPreference("alarm"); 119 Log.v("In SetAlarm, alarm id = " + mId); 122 Alarm alarm = null; 124 // No alarm id means create a new alarm. 125 alarm = new Alarm(); 127 /* load alarm details from database */ 128 alarm 203 updatePrefs(Alarm alarm) argument [all...] |
/packages/apps/IM/src/com/android/im/service/ |
H A D | AndroidHeartBeatService.java | 74 Alarm alarm = findAlarm(callback); 75 if (alarm == null) { 76 alarm = new Alarm(); 78 alarm.mCallback = callback; 82 alarm.mAlaramSender = PendingIntent.getBroadcast(mContext, 0, i, 0); 87 mAlarms.append(id, alarm); 89 setAlarm(alarm, triggerTime); 93 Alarm alarm = findAlarm(callback); 94 if (alarm != null) { 95 cancelAlarm(alarm); 119 Worker(Alarm alarm) argument 149 setAlarm(Alarm alarm, long offset) argument 155 cancelAlarm(Alarm alarm) argument [all...] |
/packages/apps/Email/src/com/android/exchange/ |
H A D | AbstractSyncService.java | 85 * Sent by SyncManager to indicate that an alarm has fired for this service, and that its 92 public abstract boolean alarm(); method in class:AbstractSyncService
|
H A D | EasSyncService.java | 125 // IOException is thrown. After a small added allowance, our watchdog alarm goes off (allowing 130 // The extra time allowed beyond the COMMAND_TIMEOUT before which our watchdog alarm triggers 216 // Whether a POST was aborted due to alarm (watchdog alarm) 255 public boolean alarm() { method in class:EasSyncService 310 // Let the caller know that the alarm was handled normally 1774 // Send the ping, wrapped by appropriate timeout/alarm 1844 // 1) An alarm, which indicates minutes without activity; no sense
|