Home
last modified time | relevance | path

Searched refs:endMillis (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertReceiver.java161 long startMillis, long endMillis, int notificationId) { in createClickEventIntent() argument
162 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createClickEventIntent()
167 long startMillis, long endMillis, int notificationId) { in createDeleteEventIntent() argument
168 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createDeleteEventIntent()
173 long startMillis, long endMillis, int notificationId, String action, in createDismissAlarmsIntent() argument
179 intent.putExtra(AlertUtils.EVENT_END_KEY, endMillis); in createDismissAlarmsIntent()
197 long startMillis, long endMillis, int notificationId) { in createSnoozeIntent() argument
202 intent.putExtra(AlertUtils.EVENT_END_KEY, endMillis); in createSnoozeIntent()
221 String summaryText, long startMillis, long endMillis, long eventId, in makeBasicNotification() argument
224 context, title, summaryText, startMillis, endMillis, eventId, notificationId, in makeBasicNotification()
[all …]
DAlertAdapter.java76 long endMillis = cursor.getLong(AlertActivity.INDEX_END); in bindView() local
79 updateView(context, view, eventName, location, startMillis, endMillis, allDay); in bindView()
83 long startMillis, long endMillis, boolean allDay) { in updateView() argument
96 if (endMillis < System.currentTimeMillis()) { in updateView()
131 Utils.formatDateRange(context, startMillis, endMillis, flags)); in updateView()
DAlertService.java121 long startMillis, long endMillis, boolean doPopup) { in NotificationWrapper() argument
125 mEnd = endMillis; in NotificationWrapper()
311 summaryText, info.startMillis, info.endMillis, info.eventId, in generateAlerts()
444 long endAdjustedForAllDay = info.endMillis; in getNextRefreshTime()
705 info.endMillis, info.eventId, notificationId, prefs.getDoPopup(), priorityVal); in postNotification()
743 long endMillis; field in AlertService.NotificationInfo
749 long endMillis, long eventId, boolean allDay, boolean newAlert) { in NotificationInfo() argument
754 this.endMillis = endMillis; in NotificationInfo()
DAlertUtils.java317 private static int getIntervalInDays(long startMillis, long endMillis, Time timeObj) {
320 timeObj.set(endMillis);
321 return Time.getJulianDay(endMillis, timeObj.gmtoff) - startDay;
DAlertActivity.java147 long endMillis = cursor.getLong(AlertActivity.INDEX_END);
149 startMillis, endMillis);
/packages/apps/Calendar/src/com/android/calendar/
DGoogleCalendarUriIntentFilter.java170 long endMillis = eventCursor.getLong(EVENT_INDEX_END); in onCreate() local
173 if (debug) Log.d(TAG, "endMillis: " + endMillis); in onCreate()
175 if (endMillis == 0) { in onCreate()
185 endMillis = startMillis + d.getMillis(); in onCreate()
187 if (debug) Log.d(TAG, "endMillis! " + endMillis); in onCreate()
188 if (endMillis < startMillis) { in onCreate()
227 intent.putExtra(EXTRA_EVENT_END_TIME, endMillis); in onCreate()
DEvent.java134 public long endMillis; // UTC milliseconds since the epoch field in Event
170 e.endMillis = endMillis; in clone()
191 dest.endMillis = endMillis; in copyTo()
212 e.endMillis = 0; in newInstance()
401 e.endMillis = eEnd; in generateEventFromCursor()
630 public void setEndMillis(long endMillis) { in setEndMillis() argument
631 this.endMillis = endMillis; in setEndMillis()
635 return endMillis; in getEndMillis()
640 return allDay || endMillis - startMillis >= DateUtils.DAY_IN_MILLIS; in drawAsAllday()
DCalendarController.java312 long endMillis, int x, int y, long selectedMillis) { in sendEventRelatedEvent() argument
317 sendEventRelatedEventWithExtra(sender, eventType, eventId, startMillis, endMillis, x, y, in sendEventRelatedEvent()
337 long startMillis, long endMillis, int x, int y, long extraLong, long selectedMillis) { in sendEventRelatedEventWithExtra() argument
353 info.endTime.set(endMillis); in sendEventRelatedEventWithExtra()
703 private void launchCreateEvent(long startMillis, long endMillis, boolean allDayEvent) { in launchCreateEvent() argument
707 intent.putExtra(EXTRA_EVENT_END_TIME, endMillis); in launchCreateEvent()
713 public void launchViewEvent(long eventId, long startMillis, long endMillis, int response) { in launchViewEvent() argument
719 intent.putExtra(EXTRA_EVENT_END_TIME, endMillis); in launchViewEvent()
725 private void launchEditEvent(long eventId, long startMillis, long endMillis, boolean edit) { in launchEditEvent() argument
729 intent.putExtra(EXTRA_EVENT_END_TIME, endMillis); in launchEditEvent()
[all …]
DUtils.java225 Context context, long startMillis, long endMillis, int flags) { in formatDateRange() argument
226 return mTZUtils.formatDateRange(context, startMillis, endMillis, flags); in formatDateRange()
1219 public static String getDisplayedDatetime(long startMillis, long endMillis, long currentMillis, in getDisplayedDatetime() argument
1235 long localEndMillis = convertAlldayUtcToLocal(null, endMillis, localTimezone); in getDisplayedDatetime()
1251 endMillis, flagsDate, Time.TIMEZONE_UTC).toString(); in getDisplayedDatetime()
1254 if (singleDayEvent(startMillis, endMillis, currentTime.gmtoff)) { in getDisplayedDatetime()
1256 String timeString = Utils.formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
1272 String dateString = Utils.formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
1282 datetimeString = Utils.formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
1313 private static boolean singleDayEvent(long startMillis, long endMillis, long localGmtOffset) { in singleDayEvent() argument
[all …]
DCalendarUtils.java170 long endMillis, int flags) { in formatDateRange() argument
180 date = DateUtils.formatDateRange(context, mF, startMillis, endMillis, flags, in formatDateRange()
DSearchActivity.java232 private void deleteEvent(long eventId, long startMillis, long endMillis) { in deleteEvent() argument
233 mDeleteEventHelper.delete(startMillis, endMillis, eventId, -1); in deleteEvent()
DDayView.java226 mClickedEvent.startMillis, mClickedEvent.endMillis,
1413 long endMillis = startMillis + DateUtils.HOUR_IN_MILLIS; in switchViews() local
1419 startMillis, endMillis, -1, -1, extraLong, -1); in switchViews()
1426 selectedEvent.startMillis, selectedEvent.endMillis, 0, 0, in switchViews()
1438 selectedEvent.startMillis, selectedEvent.endMillis, 0, 0, in switchViews()
1449 long endMillis = startMillis + DateUtils.HOUR_IN_MILLIS; in switchViews() local
1455 startMillis, endMillis, -1, -1, extraLong, -1); in switchViews()
1461 selectedEvent.startMillis, selectedEvent.endMillis, 0, 0, in switchViews()
1545 long end = selectedEvent.endMillis; in onKeyDown()
1780 when = Utils.formatDateRange(mContext, calEvent.startMillis, calEvent.endMillis, flags); in appendEventAccessibilityString()
[all …]
DEventInfoFragment.java530 public EventInfoFragment(Context context, Uri uri, long startMillis, long endMillis, in EventInfoFragment() argument
551 mEndMillis = endMillis; in EventInfoFragment()
562 public EventInfoFragment(Context context, long eventId, long startMillis, long endMillis, in EventInfoFragment() argument
565 endMillis, attendeeResponse, isDialog, windowStyle); in EventInfoFragment()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventView.java239 long endMillis; in onTimeSet() local
269 endMillis = endTime.normalize(true); in onTimeSet()
271 setDate(mEndDateButton, endMillis); in onTimeSet()
273 setTime(mEndTimeButton, endMillis); in onTimeSet()
312 long endMillis; in onDateSet() local
328 endMillis = endTime.normalize(true); in onDateSet()
341 endMillis = endTime.normalize(true); in onDateSet()
347 endMillis = startMillis; in onDateSet()
353 setDate(mEndDateButton, endMillis); in onDateSet()
354 setTime(mEndTimeButton, endMillis); // In case end time had to be in onDateSet()
[all …]
DEditEventHelper.java1186 long endMillis; in getContentValuesFromModel() local
1202 endMillis = endTime.normalize(true); in getContentValuesFromModel()
1203 if (endMillis < startMillis + DateUtils.DAY_IN_MILLIS) { in getContentValuesFromModel()
1206 endMillis = startMillis + DateUtils.DAY_IN_MILLIS; in getContentValuesFromModel()
1210 endMillis = endTime.toMillis(true); in getContentValuesFromModel()
1223 values.put(Events.DTEND, endMillis); in getContentValuesFromModel()
/packages/apps/Calendar/tests/src/com/android/calendar/
DFormatDateRangeTest.java186 long endMillis = dateTest.date2.toMillis(false /* use isDst */); in testAll() local
188 String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags); in testAll()
DUtilsTests.java219 e.endMillis = e.endDay * 1000L * 3600L * 24L + e.endTime * 60L * 1000L; in buildTestEvent()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaFragment.java412 long endMillis = event.endTime.toMillis(true); in showEventInfo() local
416 fOld.getEndMillis() != endMillis || fOld.getEventId() != event.id) { in showEventInfo()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java939 event.endMillis, DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_ABBREV_ALL, in drawEvent()
1091 text.add(Utils.formatDateRange(context, e.startMillis, e.endMillis, in onHoverEvent()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java773 assertEquals(acceptedEndTime, highPriority.get(0).endMillis); in testProcessQuery_skipDeclinedDismissed()