Home
last modified time | relevance | path

Searched refs:eventId (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertReceiver.java109 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 …]
DAlarmScheduler.java201 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 …]
DAlertUtils.java202 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);
DAlertService.java131 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 …]
DAlertActivity.java118 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,
DDismissAlarmsService.java65 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()
DSnoozeAlarmsService.java51 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()
DQuickResponseActivity.java99 QueryThread(long eventId, String body) { in QueryThread() argument
100 mEventId = eventId; in QueryThread()
DGlobalDismissManager.java108 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/src/com/android/calendar/
DCalendarController.java318 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 …]
DGoogleCalendarUriIntentFilter.java171 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()
DDeleteEventHelper.java209 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/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java202 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 …]
DAlarmSchedulerTest.java65 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/Bluetooth/src/com/android/bluetooth/pbapclient/
DBluetoothPbapClient.java489 private void sendToClient(int eventId) { in sendToClient() argument
490 sendToClient(eventId, 0, null); in sendToClient()
493 private void sendToClient(int eventId, int param) { in sendToClient() argument
494 sendToClient(eventId, param, null); in sendToClient()
497 private void sendToClient(int eventId, Object param) { in sendToClient() argument
498 sendToClient(eventId, 0, param); in sendToClient()
501 private void sendToClient(int eventId, int param1, Object param2) { in sendToClient() argument
502 mClientHandler.obtainMessage(eventId, param1, 0, param2).sendToTarget(); in sendToClient()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java1989 long eventId = ContentUris.parseId(eventUri); in testCalendarAlerts() local
1991 Uri alertUri = CalendarContract.CalendarAlerts.insert(mResolver, eventId /* eventId */, in testCalendarAlerts()
1993 CalendarContract.CalendarAlerts.insert(mResolver, eventId /* eventId */, in testCalendarAlerts()
2110 long eventId = ContentUris.parseId(eventUri); in testAttendees() local
2119 attendee.put(CalendarContract.Attendees.EVENT_ID, eventId); in testAttendees()
2125 "event_id=" + eventId, null, null); in testAttendees()
2173 "event_id=" + eventId, null, null); in testAttendees()
2200 private void testAndClearDirty(long eventId, int wanted) { in testAndClearDirty() argument
2202 ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, eventId), in testAndClearDirty()
2211 mDb.execSQL("UPDATE Events SET " + Events.DIRTY + "=0 WHERE _id=" + eventId); in testAndClearDirty()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DEventViewer.java46 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/event/
DEditEventActivity.java121 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()
DEditEventHelper.java434 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()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/data/
DPsipData.java522 public EitItem(long programId, int eventId, String titleText, long startTime, in EitItem() argument
527 mEventId = eventId; in EitItem()
680 public final int eventId; field in PsipData.EttItem
683 public EttItem(int eventId, String text) { in EttItem() argument
684 this.eventId = eventId; in EttItem()
/packages/services/Telecomm/src/com/android/server/telecom/
DLog.java136 public String eventId; field in Log.CallEvent
141 public CallEvent(String eventId, String sessionId, long time, Object data) { in CallEvent() argument
142 this.eventId = eventId; in CallEvent()
191 if (Events.requestResponsePairs.containsKey(event.eventId)) { in dump()
194 String pendingResponse = Events.requestResponsePairs.get(event.eventId); in dump()
200 pw.print(event.eventId); in dump()
220 CallEvent requestEvent = pendingResponses.remove(event.eventId); in dump()
223 pw.print(requestEvent.eventId); in dump()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java680 long eventId = cursor.getLong(0); in updateEventsStartEndFromEventRawTimesLocked() local
686 Log.e(TAG, "Event " + eventId + " has dtStart2445 and dtEnd2445 null " in updateEventsStartEndFromEventRawTimesLocked()
691 updateEventsStartEndLocked(eventId, in updateEventsStartEndFromEventRawTimesLocked()
721 private void updateEventsStartEndLocked(long eventId, in updateEventsStartEndLocked() argument
729 new String[] {String.valueOf(eventId)}); in updateEventsStartEndLocked()
2301 final Long eventId = values.getAsLong(Attendees.EVENT_ID); in insertInTransaction() local
2302 mDbHelper.duplicateEvent(eventId); in insertInTransaction()
2303 setEventDirty(eventId); in insertInTransaction()
2365 final Long eventId = values in insertInTransaction() local
2367 mDbHelper.duplicateEvent(eventId); in insertInTransaction()
[all …]
DCalendarAlarmManager.java440 final long eventId = cursor.getLong(eventIdIndex); in scheduleNextAlarmLocked() local
452 " looking at id: " + eventId + " " + startTime + startTimeStr in scheduleNextAlarmLocked()
470 if (CalendarAlerts.alarmExists(resolver, eventId, startTime, alarmTime)) { in scheduleNextAlarmLocked()
475 " alarm exists for id: " + eventId + " " + title); in scheduleNextAlarmLocked()
482 resolver, eventId, startTime, endTime, alarmTime, minutes); in scheduleNextAlarmLocked()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java281 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/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java398 private boolean bindToConfigPackage(String pkgName, int phoneId, int eventId) { in bindToConfigPackage() argument
402 mServiceConnection[phoneId] = new CarrierServiceConnection(phoneId, eventId); in bindToConfigPackage()
720 int eventId; field in CarrierConfigLoader.CarrierServiceConnection
723 public CarrierServiceConnection(int phoneId, int eventId) { in CarrierServiceConnection() argument
725 this.eventId = eventId; in CarrierServiceConnection()
732 mHandler.sendMessage(mHandler.obtainMessage(eventId, phoneId, -1, this)); in onServiceConnected()

12