Searched refs:AlertUtils (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | SnoozeAlarmsService.java | 51 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, AlertUtils.createAlarmManager(this), in onHandleIntent()
|
D | AlertService.java | 303 return generateAlerts(context, nm, AlertUtils.createAlarmManager(context), prefs, in updateAlertNotification() 342 String summaryText = AlertUtils.formatTimeLocation(context, info.startMillis, in generateAlerts() 361 String summaryText = AlertUtils.formatTimeLocation(context, info.startMillis, in generateAlerts() 378 String summaryText = AlertUtils.formatTimeLocation(context, info.startMillis, in generateAlerts() 382 AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, false, in generateAlerts() 398 + ", notificationId:" + AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID); in generateAlerts() 402 nm.notify(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, notification); in generateAlerts() 404 nm.cancel(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID); in generateAlerts() 422 AlertUtils.scheduleNextNotificationRefresh(context, alarmMgr, nextRefreshTime); in generateAlerts() 436 AlertUtils.flushOldAlertsFromInternalStorage(context); in generateAlerts() [all …]
|
D | DismissAlarmsService.java | 65 long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); in onHandleIntent() 66 long eventStart = intent.getLongExtra(AlertUtils.EVENT_START_KEY, -1); in onHandleIntent() 67 long eventEnd = intent.getLongExtra(AlertUtils.EVENT_END_KEY, -1); in onHandleIntent() 68 long[] eventIds = intent.getLongArrayExtra(AlertUtils.EVENT_IDS_KEY); in onHandleIntent() 69 long[] eventStarts = intent.getLongArrayExtra(AlertUtils.EVENT_STARTS_KEY); in onHandleIntent() 70 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, -1); in onHandleIntent() 109 Intent i = AlertUtils.buildEventViewIntent(this, eventId, eventStart, eventEnd); in onHandleIntent()
|
D | AlertReceiver.java | 218 intent.putExtra(AlertUtils.EVENT_ID_KEY, eventId); in createDismissAlarmsIntent() 219 intent.putExtra(AlertUtils.EVENT_START_KEY, startMillis); in createDismissAlarmsIntent() 220 intent.putExtra(AlertUtils.EVENT_END_KEY, endMillis); in createDismissAlarmsIntent() 221 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createDismissAlarmsIntent() 239 intent.putExtra(AlertUtils.EVENT_ID_KEY, eventId); in createSnoozeIntent() 240 intent.putExtra(AlertUtils.EVENT_START_KEY, startMillis); in createSnoozeIntent() 241 intent.putExtra(AlertUtils.EVENT_END_KEY, endMillis); in createSnoozeIntent() 242 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createSnoozeIntent() 472 deleteIntent.putExtra(AlertUtils.EVENT_IDS_KEY, eventIds); in makeDigestNotification() 473 deleteIntent.putExtra(AlertUtils.EVENT_STARTS_KEY, startMillis); in makeDigestNotification() [all …]
|
D | AlertActivity.java | 193 Intent eventIntent = AlertUtils.buildEventViewIntent(AlertActivity.this, eventId,
|
D | AlarmScheduler.java | 105 scheduleNextAlarm(context, AlertUtils.createAlarmManager(context), in scheduleNextAlarm()
|
D | AlertUtils.java | 43 public class AlertUtils { class
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 265 assertEquals(0, AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID); in NotificationTestManager() 429 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, id, PRIORITY_MIN); in testGenerateAlerts_single() 437 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, id, PRIORITY_MIN); in testGenerateAlerts_single() 489 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testGenerateAlerts_multiple() 502 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testGenerateAlerts_multiple() 511 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testGenerateAlerts_multiple() 561 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testGenerateAlerts_maxAlerts() 574 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, in testGenerateAlerts_maxAlerts() 680 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, id1, PRIORITY_MIN); in testGenerateAlerts_refreshTime() 691 ntm.expectTestNotification(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, new int[] {id3, id1}, in testGenerateAlerts_refreshTime() [all …]
|