Home
last modified time | relevance | path

Searched refs:AlertUtils (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Calendar/src/com/android/calendar/alerts/
DSnoozeAlarmsService.java51 long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); in onHandleIntent()
52 long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1); in onHandleIntent()
53 long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1); in onHandleIntent()
57 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, in onHandleIntent()
58 AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID); in onHandleIntent()
64 if (notificationId != AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID) { in onHandleIntent()
79 long alarmTime = System.currentTimeMillis() + AlertUtils.SNOOZE_DELAY; in onHandleIntent()
80 ContentValues values = AlertUtils.makeContentValues(eventId, eventStart, eventEnd, in onHandleIntent()
83 AlertUtils.scheduleAlarm(SnoozeAlarmsService.this, null, alarmTime); in onHandleIntent()
DDismissAlarmsService.java53 long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); in onHandleIntent()
54 long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1); in onHandleIntent()
55 long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1); in onHandleIntent()
56 boolean showEvent = intent.getBooleanExtra(AlertUtils.SHOW_EVENT_KEY, false); in onHandleIntent()
57 long[] eventIds = intent.getLongArrayExtra(AlertUtils.EVENT_IDS_KEY); in onHandleIntent()
58 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, -1); in onHandleIntent()
88 Intent i = AlertUtils.buildEventViewIntent(this, eventId, eventStart, eventEnd); in onHandleIntent()
DAlertReceiver.java175 intent.putExtra(AlertUtils.EVENT_ID_KEY, eventId); in createDismissAlarmsIntent()
176 intent.putExtra(AlertUtils.EVENT_START_KEY, startMillis); in createDismissAlarmsIntent()
177 intent.putExtra(AlertUtils.EVENT_END_KEY, endMillis); in createDismissAlarmsIntent()
178 intent.putExtra(AlertUtils.SHOW_EVENT_KEY, showEvent); in createDismissAlarmsIntent()
179 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createDismissAlarmsIntent()
198 intent.putExtra(AlertUtils.EVENT_ID_KEY, eventId); in createSnoozeIntent()
199 intent.putExtra(AlertUtils.EVENT_START_KEY, startMillis); in createSnoozeIntent()
200 intent.putExtra(AlertUtils.EVENT_END_KEY, endMillis); in createSnoozeIntent()
201 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createSnoozeIntent()
344 deleteIntent.putExtra(AlertUtils.EVENT_IDS_KEY, eventIds); in makeDigestNotification()
[all …]
DAlertService.java289 String summaryText = AlertUtils.formatTimeLocation(context, info.startMillis, in generateAlerts()
308 String summaryText = AlertUtils.formatTimeLocation(context, info.startMillis, in generateAlerts()
325 String summaryText = AlertUtils.formatTimeLocation(context, info.startMillis, in generateAlerts()
329 AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, false); in generateAlerts()
343 + ", notificationId:" + AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID); in generateAlerts()
347 nm.notify(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, notification); in generateAlerts()
349 nm.cancel(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID); in generateAlerts()
369 AlertUtils.scheduleNextNotificationRefresh(context, null, nextRefreshTime); in generateAlerts()
919 AlertUtils.scheduleAlarm(context, manager, newAlarmTime); in rescheduleMissedAlarms()
DAlertActivity.java135 AlertUtils.scheduleAlarm(AlertActivity.this, null, alarmTime); in onInsertComplete()
164 Intent eventIntent = AlertUtils.buildEventViewIntent(AlertActivity.this, id,
DAlertUtils.java40 public class AlertUtils { class
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java266 assertEquals(0, AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID); in NotificationTestManager()
412 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, id, PRIORITY_DEFAULT); in testSingleAlert()
420 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, id, PRIORITY_MIN); in testSingleAlert()
471 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testMultipleAlerts()
484 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testMultipleAlerts()
493 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testMultipleAlerts()
542 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testMultipleAlerts_max()
555 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testMultipleAlerts_max()
607 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testMultipleAlerts_sharedPreferences()