Home
last modified time | relevance | path

Searched refs:alarm (Results 1 – 16 of 16) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmReceiver.java63 Alarm alarm = null; in handleIntent() local
66 alarm = intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA); in handleIntent()
69 if (alarm != null) { in handleIntent()
70 Alarms.disableSnoozeAlert(context, alarm.id); in handleIntent()
84 Alarm alarm = null; in handleIntent() local
94 alarm = Alarm.CREATOR.createFromParcel(in); in handleIntent()
97 if (alarm == null) { in handleIntent()
105 Alarms.disableSnoozeAlert(context, alarm.id); in handleIntent()
107 if (!alarm.daysOfWeek.isRepeatSet()) { in handleIntent()
108 Alarms.enableAlarm(context, alarm.id, false); in handleIntent()
[all …]
DAlarms.java99 public static long addAlarm(Context context, Alarm alarm) { in addAlarm() argument
100 ContentValues values = createContentValues(alarm); in addAlarm()
103 alarm.id = (int) ContentUris.parseId(uri); in addAlarm()
105 long timeInMillis = calculateAlarm(alarm); in addAlarm()
106 if (alarm.enabled) { in addAlarm()
148 private static ContentValues createContentValues(Alarm alarm) { in createContentValues() argument
153 if (!alarm.daysOfWeek.isRepeatSet()) { in createContentValues()
154 time = calculateAlarm(alarm); in createContentValues()
157 values.put(Alarm.Columns.ENABLED, alarm.enabled ? 1 : 0); in createContentValues()
158 values.put(Alarm.Columns.HOUR, alarm.hour); in createContentValues()
[all …]
DAlarmClock.java63 Alarm alarm) { in updateAlarm() argument
64 Alarms.enableAlarm(this, alarm.id, enabled); in updateAlarm()
66 SetAlarm.popAlarmSetToast(this, alarm.hour, alarm.minutes, in updateAlarm()
67 alarm.daysOfWeek); in updateAlarm()
88 final Alarm alarm = new Alarm(cursor); in bindView() local
95 clockOnOff.setChecked(alarm.enabled); in bindView()
101 updateAlarm(clockOnOff.isChecked(), alarm); in bindView()
110 c.set(Calendar.HOUR_OF_DAY, alarm.hour); in bindView()
111 c.set(Calendar.MINUTE, alarm.minutes); in bindView()
118 alarm.daysOfWeek.toString(AlarmClock.this, false); in bindView()
[all …]
DSetAlarm.java100 Alarm alarm = i.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA); in onCreate() local
102 if (alarm == null) { in onCreate()
104 alarm = new Alarm(); in onCreate()
106 mOriginalAlarm = alarm; in onCreate()
243 private void updatePrefs(Alarm alarm) { in updatePrefs() argument
244 mId = alarm.id; in updatePrefs()
245 mEnabledPref.setChecked(alarm.enabled); in updatePrefs()
246 mLabel.setText(alarm.label); in updatePrefs()
247 mHour = alarm.hour; in updatePrefs()
248 mMinute = alarm.minutes; in updatePrefs()
[all …]
DAlarmKlaxon.java119 final Alarm alarm = intent.getParcelableExtra( in onStartCommand() local
122 if (alarm == null) { in onStartCommand()
132 play(alarm); in onStartCommand()
133 mCurrentAlarm = alarm; in onStartCommand()
141 private void sendKillBroadcast(Alarm alarm) { in sendKillBroadcast() argument
145 alarmKilled.putExtra(Alarms.ALARM_INTENT_EXTRA, alarm); in sendKillBroadcast()
153 private void play(Alarm alarm) { in play() argument
158 Log.v("AlarmKlaxon.play() " + alarm.id + " alert " + alarm.alert); in play()
161 if (!alarm.silent) { in play()
162 Uri alert = alarm.alert; in play()
[all …]
DHandleSetAlarm.java111 Alarm alarm = new Alarm(c); in handleCursorResult() local
113 Alarms.enableAlarm(this, alarm.id, true); in handleCursorResult()
114 alarm.enabled = true; in handleCursorResult()
118 Alarms.setAlarm(this, alarm); in handleCursorResult()
121 i.putExtra(Alarms.ALARM_INTENT_EXTRA, alarm); in handleCursorResult()
DAlarmAlertFullScreen.java67 Alarm alarm = intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA);
68 if (alarm != null && mAlarm.id == alarm.id) {
/packages/apps/Settings/src/com/android/settings/
DDateTimeSettingsSetupWizard.java182 final AlarmManager alarm = (AlarmManager) in onClick() local
184 alarm.setTimeZone(mSelectedTimeZone.getID()); in onClick()
255 final AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in onItemClick() local
256 alarm.setTimeZone(tz.getID()); in onItemClick()
DZonePicker.java285 final AlarmManager alarm = (AlarmManager) activity.getSystemService(Context.ALARM_SERVICE); in onListItemClick() local
286 alarm.setTimeZone(tzId); in onListItemClick()
/packages/apps/Launcher2/src/com/android/launcher2/
DSpringLoadedDragController.java50 public void onAlarm(Alarm alarm) { in onAlarm() argument
DAlarm.java83 public void onAlarm(Alarm alarm); in onAlarm() argument
DFolder.java574 public void onAlarm(Alarm alarm) {
671 public void onAlarm(Alarm alarm) {
DWorkspace.java2895 public void onAlarm(Alarm alarm) {
2925 public void onAlarm(Alarm alarm) {
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DAbstractSyncService.java89 public abstract boolean alarm(); in alarm() method in AbstractSyncService
DExchangeService.java1575 if (!service.alarm()) { in alert()
2366 service.alarm(); in checkMailboxes()
DEasSyncService.java221 public boolean alarm() { in alarm() method in EasSyncService