/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertReceiver.java | 109 final long eventId = intent.getLongExtra(EXTRA_EVENT_ID, -1); in onReceive() local 110 if (eventId != -1) { in onReceive() 111 URLSpan[] urlSpans = getURLSpans(context, eventId); in onReceive() 128 final long eventId = intent.getLongExtra(EXTRA_EVENT_ID, -1); in onReceive() local 129 if (eventId != -1) { in onReceive() 130 URLSpan[] urlSpans = getURLSpans(context, eventId); in onReceive() 147 final long eventId = intent.getLongExtra(EXTRA_EVENT_ID, -1); in onReceive() local 148 if (eventId != -1) { in onReceive() 150 i.putExtra(QuickResponseActivity.EXTRA_EVENT_ID, eventId); in onReceive() 201 private static PendingIntent createClickEventIntent(Context context, long eventId, in createClickEventIntent() argument [all …]
|
D | AlertService.java | 131 public NotificationWrapper(Notification n, int notificationId, long eventId, in NotificationWrapper() argument 134 mEventId = eventId; in NotificationWrapper() 381 summaryText, info.startMillis, info.endMillis, info.eventId, in generateAlerts() 494 ids.append(info.eventId); in logEventIdsBumped() 500 ids.append(info.eventId); in logEventIdsBumped() 599 final long eventId = alertCursor.getLong(ALERT_INDEX_EVENT_ID); in processQuery() local 664 boolean alreadyFired = AlertUtils.hasAlertFiredInSharedPrefs(context, eventId, in processQuery() 675 .append(" eventId:").append(eventId) in processQuery() 735 AlertUtils.setAlertFiredInSharedPrefs(context, eventId, beginTime, in processQuery() 755 description, beginTime, endTime, eventId, allDay, newAlert); in processQuery() [all …]
|
D | AlarmScheduler.java | 201 int eventId = instancesCursor.getInt(INSTANCES_INDEX_EVENTID); in queryNextReminderAndSchedule() local 212 List<Long> startTimes = eventMap.get(eventId); in queryNextReminderAndSchedule() 215 eventMap.put(eventId, startTimes); in queryNextReminderAndSchedule() 216 eventIdsForQuery.append(eventId); in queryNextReminderAndSchedule() 225 msg.append("Events cursor result -- eventId:").append(eventId); in queryNextReminderAndSchedule() 246 int eventId = cursor.getInt(REMINDERS_INDEX_EVENT_ID); in queryNextReminderAndSchedule() local 248 List<Long> startTimes = eventMap.get(eventId); in queryNextReminderAndSchedule() 255 nextAlarmEventId = eventId; in queryNextReminderAndSchedule() 261 msg.append("Reminders cursor result -- eventId:").append(eventId); in queryNextReminderAndSchedule() 290 private static void scheduleAlarm(Context context, long eventId, long alarmTime, in scheduleAlarm() argument [all …]
|
D | AlertUtils.java | 202 public static ContentValues makeContentValues(long eventId, long begin, long end, 205 values.put(CalendarAlerts.EVENT_ID, eventId); 218 public static Intent buildEventViewIntent(Context c, long eventId, long begin, long end) { 221 builder.appendEncodedPath("events/" + eventId); 233 private static String getFiredAlertsKey(long eventId, long beginTime, 236 sb.append(eventId); 247 static boolean hasAlertFiredInSharedPrefs(Context context, long eventId, long beginTime, 250 return prefs.contains(getFiredAlertsKey(eventId, beginTime, alarmTime)); 256 static void setAlertFiredInSharedPrefs(Context context, long eventId, long beginTime, 262 editor.putLong(getFiredAlertsKey(eventId, beginTime, alarmTime), alarmTime);
|
D | AlertActivity.java | 118 long eventId = mCursor.getLong(INDEX_EVENT_ID); in dismissFiredAlarms() local 120 alarmIds.add(new AlarmId(eventId, eventStart)); in dismissFiredAlarms() 125 private void dismissAlarm(long id, long eventId, long startTime) { in dismissAlarm() argument 133 alarmIds.add(new AlarmId(eventId, startTime)); in dismissAlarm() 184 long eventId = cursor.getLong(AlertActivity.INDEX_EVENT_ID); 188 dismissAlarm(alarmId, eventId, startMillis); 193 Intent eventIntent = AlertUtils.buildEventViewIntent(AlertActivity.this, eventId,
|
D | DismissAlarmsService.java | 65 long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); in onHandleIntent() local 77 if (eventId != -1) { in onHandleIntent() 78 alarmIds.add(new AlarmId(eventId, eventStart)); in onHandleIntent() 80 CalendarAlerts.EVENT_ID + "=" + eventId; in onHandleIntent() 109 Intent i = AlertUtils.buildEventViewIntent(this, eventId, eventStart, eventEnd); in onHandleIntent()
|
D | SnoozeAlarmsService.java | 51 long eventId = intent.getLongExtra(AlertUtils.EVENT_ID_KEY, -1); in onHandleIntent() local 60 if (eventId != -1) { in onHandleIntent() 73 CalendarAlerts.EVENT_ID + "=" + eventId; in onHandleIntent() 80 ContentValues values = AlertUtils.makeContentValues(eventId, eventStart, eventEnd, in onHandleIntent()
|
D | GlobalDismissManager.java | 108 public LocalDismissId(String accountType, String accountName, long eventId, in LocalDismissId() argument 118 mEventId = eventId; in LocalDismissId() 498 long eventId = cursor.getLong(event_id_idx); in syncReceiverDismissCache() local 504 CalendarAlerts.EVENT_ID + "=" + eventId + " AND " + in syncReceiverDismissCache()
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 202 public Alert(long eventId, int alertStatus, int responseStatus, int allDay, long begin, in Alert() argument 204 mEventId = eventId; in Alert() 220 int addAlertRow(long eventId, int alertStatus, int responseStatus, int allDay, long begin, in addAlertRow() argument 222 Alert a = new Alert(eventId, alertStatus, responseStatus, allDay, begin, end, in addAlertRow() 710 private NotificationInfo createNotificationInfo(long eventId) { in createNotificationInfo() argument 711 return new NotificationInfo("eventName", "location", "description", 100L, 200L, eventId, in createNotificationInfo() 746 assertEquals(acceptedEventId, highPriority.get(0).eventId); in testProcessQuery_skipDeclinedDismissed() 773 assertEquals(scheduledAlertEventId, highPriority.get(0).eventId); in testProcessQuery_newAlert() 775 assertEquals(firedAlertEventId, highPriority.get(1).eventId); in testProcessQuery_newAlert() 781 int eventId = 1; in testProcessQuery_recurringEvent() local [all …]
|
D | AlarmSchedulerTest.java | 65 public EventInfo(long eventId, boolean allDay, long begin, int reminderMinutes) { in EventInfo() argument 66 mEventId = eventId; in EventInfo() 78 void addEventInfo(long eventId, boolean allDay, long begin, int reminderMinutes) { in addEventInfo() argument 79 mEvents.add(new EventInfo(eventId, allDay, begin, reminderMinutes)); in addEventInfo()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarController.java | 318 public void sendEventRelatedEvent(Object sender, long eventType, long eventId, long startMillis, in sendEventRelatedEvent() argument 324 sendEventRelatedEventWithExtra(sender, eventType, eventId, startMillis, endMillis, x, y, in sendEventRelatedEvent() 343 public void sendEventRelatedEventWithExtra(Object sender, long eventType, long eventId, in sendEventRelatedEventWithExtra() argument 345 sendEventRelatedEventWithExtraWithTitleWithCalendarId(sender, eventType, eventId, in sendEventRelatedEventWithExtra() 366 long eventId, long startMillis, long endMillis, int x, int y, long extraLong, in sendEventRelatedEventWithExtraWithTitleWithCalendarId() argument 374 info.id = eventId; in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 402 public void sendEvent(Object sender, long eventType, Time start, Time end, long eventId, in sendEvent() argument 404 sendEvent(sender, eventType, start, end, start, eventId, viewType, EXTRA_GOTO_TIME, null, in sendEvent() 411 public void sendEvent(Object sender, long eventType, Time start, Time end, long eventId, in sendEvent() argument 413 sendEvent(sender, eventType, start, end, start, eventId, viewType, extraLong, query, in sendEvent() [all …]
|
D | GoogleCalendarUriIntentFilter.java | 171 int eventId = eventCursor.getInt(EVENT_INDEX_ID); in onCreate() local 222 Events.CONTENT_URI, eventId); in onCreate() 231 eventId, ownerAccount, attendeeStatus, intent); in onCreate() 253 int eventId, String ownerAccount, final int status, final Intent intent) { in updateSelfAttendeeStatus() argument 289 new String[]{ ownerAccount, String.valueOf(eventId) }); in updateSelfAttendeeStatus()
|
D | DeleteEventHelper.java | 209 public void delete(long begin, long end, long eventId, int which) { in delete() argument 210 Uri uri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, eventId); in delete() 218 public void delete(long begin, long end, long eventId, int which, Runnable callback) { in delete() argument 219 delete(begin, end, eventId, which); in delete()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 2047 long eventId = ContentUris.parseId(eventUri); in testAttendees() local 2056 attendee.put(CalendarContract.Attendees.EVENT_ID, eventId); in testAttendees() 2062 "event_id=" + eventId, null, null); in testAttendees() 2110 "event_id=" + eventId, null, null); in testAttendees() 2137 private void testAndClearDirty(long eventId, int wanted) { in testAndClearDirty() argument 2139 ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, eventId), in testAndClearDirty() 2148 mDb.execSQL("UPDATE Events SET " + Events.DIRTY + "=0 WHERE _id=" + eventId); in testAndClearDirty() 2218 long eventId = ContentUris.parseId(eventUri); in internalTestDirty() local 2219 testAndClearDirty(eventId, 1); in internalTestDirty() 2228 attendee.put(CalendarContract.Attendees.EVENT_ID, eventId); in internalTestDirty() [all …]
|
D | SyncCalendarTest.java | 86 long eventId = cursor.getLong(cursor.getColumnIndex("_id")); in testEditEventTitle() local 88 editEvent(eventId, event); in testEditEventTitle() 93 if (cursor.getLong(cursor.getColumnIndex("_id")) == eventId) { in testEditEventTitle() 116 long eventId = cursor.getLong(cursor.getColumnIndex("_id")); in testEditEventDate() local 118 editEvent(eventId, event); in testEditEventDate() 125 if (cursor.getLong(cursor.getColumnIndex("_id")) == eventId) { in testEditEventDate() 147 long eventId = cursor.getLong(cursor.getColumnIndex("_id")); in testEditEventDescription() local 148 editEvent(eventId, event); in testEditEventDescription() 155 if (cursor.getLong(cursor.getColumnIndex("_id")) == eventId) { in testEditEventDescription()
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
D | EasSyncCalendar.java | 414 final long eventId = entityValues.getAsLong(Events._ID); in sendEvent() local 418 ContentUris.withAppendedId(Events.CONTENT_URI, eventId), account), in sendEvent() 765 final long eventId, final String clientId) { in updateAttendeesAndSendMail() argument 792 CalendarUtilities.createMessageForEventId(context, eventId, in updateAttendeesAndSendMail() 831 cv.put(ExtendedProperties.EVENT_ID, eventId); in updateAttendeesAndSendMail() 839 eventId, Message.FLAG_OUTGOING_MEETING_CANCEL, clientId, account, in updateAttendeesAndSendMail() 887 final Message msg = CalendarUtilities.createMessageForEventId(context, eventId, in updateAttendeesAndSendMail() 951 final long eventId = entityValues.getAsLong(Events._ID); in handleEntity() local 961 asSyncAdapter(ContentUris.withAppendedId(Events.CONTENT_URI, eventId), account), in handleEntity() 966 mDeletedIdList.add(eventId); in handleEntity() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | CalendarSyncParser.java | 249 private static void addOrganizerToAttendees(CalendarOperations ops, long eventId, in addOrganizerToAttendees() argument 263 if (eventId < 0) { in addOrganizerToAttendees() 266 ops.updatedAttendee(attendeeCv, eventId); in addOrganizerToAttendees() 356 long eventId = -1; in addEvent() local 391 eventId = id; in addEvent() 465 addOrganizerToAttendees(ops, eventId, organizerName, organizerEmail); in addEvent() 543 addOrganizerToAttendees(ops, eventId, organizerName, organizerEmail); in addEvent() 560 if (eventId < 0) { in addEvent() 566 ops.updatedExtendedProperty(EXTENDED_PROPERTY_ATTENDEES_REDACTED, "1", eventId); in addEvent() 569 eventId); in addEvent() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 685 long eventId = cursor.getLong(0); in updateEventsStartEndFromEventRawTimesLocked() local 691 Log.e(TAG, "Event " + eventId + " has dtStart2445 and dtEnd2445 null " in updateEventsStartEndFromEventRawTimesLocked() 696 updateEventsStartEndLocked(eventId, in updateEventsStartEndFromEventRawTimesLocked() 726 private void updateEventsStartEndLocked(long eventId, in updateEventsStartEndLocked() argument 734 new String[] {String.valueOf(eventId)}); in updateEventsStartEndLocked() 2308 final Long eventId = values.getAsLong(Attendees.EVENT_ID); in insertInTransaction() local 2309 mDbHelper.duplicateEvent(eventId); in insertInTransaction() 2310 setEventDirty(eventId); in insertInTransaction() 2355 final Long eventId = values in insertInTransaction() local 2357 mDbHelper.duplicateEvent(eventId); in insertInTransaction() [all …]
|
D | CalendarAlarmManager.java | 407 final long eventId = cursor.getLong(eventIdIndex); in scheduleNextAlarmLocked() local 419 " looking at id: " + eventId + " " + startTime + startTimeStr in scheduleNextAlarmLocked() 437 if (CalendarAlerts.alarmExists(resolver, eventId, startTime, alarmTime)) { in scheduleNextAlarmLocked() 442 " alarm exists for id: " + eventId + " " + title); in scheduleNextAlarmLocked() 449 resolver, eventId, startTime, endTime, alarmTime, minutes); in scheduleNextAlarmLocked()
|
D | CalendarInstancesHelper.java | 220 Long eventId = Long.valueOf(entries.getLong(idColumn)); in performInstanceExpansion() local 230 + eventId + "'" + durationStr + "'", e); in performInstanceExpansion() 343 initialValues.put(Instances.EVENT_ID, eventId); in performInstanceExpansion() 398 initialValues.put(Instances.EVENT_ID, eventId); in performInstanceExpansion()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | EventViewer.java | 46 long eventId = -1; in onCreate() local 56 eventId = c.getLong(0); in onCreate() 64 if (eventId != -1) { in onCreate() 65 uri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, eventId); in onCreate()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetModel.java | 281 final long eventId = cursor.getLong(CalendarAppWidgetService.INDEX_EVENT_ID); in buildFromCursor() local 304 + " end:" + end + " eventId:" + eventId); in buildFromCursor() 314 mEventInfos.add(populateEventInfo(eventId, allDay, start, end, startDay, endDay, title, in buildFromCursor() 354 private EventInfo populateEventInfo(long eventId, boolean allDay, long start, long end, in populateEventInfo() argument 380 eventInfo.id = eventId; in populateEventInfo()
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventActivity.java | 121 long eventId = -1; in getEventInfoFromIntent() local 126 eventId = Long.parseLong(data.getLastPathSegment()); in getEventInfoFromIntent() 133 eventId = icicle.getLong(BUNDLE_KEY_EVENT_ID); in getEventInfoFromIntent() 154 info.id = eventId; in getEventInfoFromIntent()
|
D | EditEventHelper.java | 434 long eventId = ContentUris.parseId(uri); in saveEvent() local 435 saveReminders(ops, eventId, reminders, originalReminders, forceSaveReminders); in saveEvent() 501 long eventId = uri != null ? ContentUris.parseId(uri) : -1; in saveEvent() local 524 args[0] = Long.toString(eventId); in saveEvent() 556 values.put(Attendees.EVENT_ID, eventId); in saveEvent() 823 public static boolean saveReminders(ArrayList<ContentProviderOperation> ops, long eventId, in saveReminders() argument 833 String[] args = new String[] {Long.toString(eventId)}; in saveReminders() 849 values.put(Reminders.EVENT_ID, eventId); in saveReminders()
|
D | EditEventFragment.java | 174 long eventId; in onQueryComplete() local 202 eventId = mModel.mId; in onQueryComplete() 205 if (mModel.mHasAttendeeData && eventId != -1) { in onQueryComplete() 208 Long.toString(eventId) in onQueryComplete() 222 Long.toString(eventId) in onQueryComplete()
|