Home
last modified time | relevance | path

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

/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertReceiver.java202 long startMillis, long endMillis, int notificationId) { in createClickEventIntent() argument
203 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createClickEventIntent()
208 long startMillis, long endMillis, int notificationId) { in createDeleteEventIntent() argument
209 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createDeleteEventIntent()
214 long startMillis, long endMillis, int notificationId, String action) { in createDismissAlarmsIntent() argument
219 intent.putExtra(AlertUtils.EVENT_START_KEY, startMillis); in createDismissAlarmsIntent()
230 ContentUris.appendId(builder, startMillis); in createDismissAlarmsIntent()
236 long startMillis, long endMillis, int notificationId) { in createSnoozeIntent() argument
240 intent.putExtra(AlertUtils.EVENT_START_KEY, startMillis); in createSnoozeIntent()
246 ContentUris.appendId(builder, startMillis); in createSnoozeIntent()
[all …]
DAlertService.java132 long startMillis, long endMillis, boolean doPopup) { in NotificationWrapper() argument
135 mBegin = startMillis; in NotificationWrapper()
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()
381 summaryText, info.startMillis, info.endMillis, info.eventId, in generateAlerts()
514 long startAdjustedForAllDay = info.startMillis; in getNextRefreshTime()
518 startAdjustedForAllDay = Utils.convertAlldayUtcToLocal(t, info.startMillis, in getNextRefreshTime()
520 endAdjustedForAllDay = Utils.convertAlldayUtcToLocal(t, info.startMillis, in getNextRefreshTime()
770 long oldBeginTimeAdjustedForAllDay = oldInfo.startMillis; in processQuery()
[all …]
DAlertUtils.java154 static String formatTimeLocation(Context context, long startMillis, boolean allDay,
160 time.set(startMillis);
177 StringBuilder sb = new StringBuilder(Utils.formatDateRange(context, startMillis,
178 startMillis, flags));
182 time.set(startMillis);
321 private static int getIntervalInDays(long startMillis, long endMillis, Time timeObj) {
322 timeObj.set(startMillis);
323 int startDay = Time.getJulianDay(startMillis, timeObj.gmtoff);
DAlertAdapter.java75 long startMillis = cursor.getLong(AlertActivity.INDEX_BEGIN); in bindView() local
79 updateView(context, view, eventName, location, startMillis, endMillis, allDay); in bindView()
83 long startMillis, long endMillis, boolean allDay) { in updateView() argument
128 time.set(startMillis); in updateView()
131 Utils.formatDateRange(context, startMillis, endMillis, flags)); in updateView()
DAlertActivity.java185 long startMillis = cursor.getLong(AlertActivity.INDEX_BEGIN);
188 dismissAlarm(alarmId, eventId, startMillis);
194 startMillis, endMillis);
/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()
344 long startMillis, long endMillis, int x, int y, long extraLong, long selectedMillis) { in sendEventRelatedEventWithExtra() argument
346 startMillis, endMillis, x, y, extraLong, selectedMillis, null, -1); in sendEventRelatedEventWithExtra()
366 long eventId, long startMillis, long endMillis, int x, int y, long extraLong, in sendEventRelatedEventWithExtraWithTitleWithCalendarId() argument
376 info.startTime.set(startMillis); in sendEventRelatedEventWithExtraWithTitleWithCalendarId()
473 long startMillis = 0; in sendEvent() local
475 startMillis = event.startTime.toMillis(false); in sendEvent()
482 if (startMillis != 0) { in sendEvent()
486 if (mtimeMillis < startMillis in sendEvent()
[all …]
DEvent.java133 public long startMillis; // UTC milliseconds since the epoch field in Event
169 e.startMillis = startMillis; in clone()
190 dest.startMillis = startMillis; in copyTo()
211 e.startMillis = 0; in newInstance()
397 e.startMillis = eStart; in generateEventFromCursor()
622 public void setStartMillis(long startMillis) { in setStartMillis() argument
623 this.startMillis = startMillis; in setStartMillis()
627 return startMillis; in getStartMillis()
640 return allDay || endMillis - startMillis >= DateUtils.DAY_IN_MILLIS; in drawAsAllday()
DUtils.java306 Context context, long startMillis, long endMillis, int flags) { in formatDateRange() argument
307 return mTZUtils.formatDateRange(context, startMillis, endMillis, flags); in formatDateRange()
1404 public static String getDisplayedDatetime(long startMillis, long endMillis, long currentMillis, in getDisplayedDatetime() argument
1419 long localStartMillis = convertAlldayUtcToLocal(null, startMillis, localTimezone); in getDisplayedDatetime()
1435 datetimeString = DateUtils.formatDateRange(context, f, startMillis, in getDisplayedDatetime()
1439 if (singleDayEvent(startMillis, endMillis, currentTime.gmtoff)) { in getDisplayedDatetime()
1441 String timeString = Utils.formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
1445 int todayOrTomorrow = isTodayOrTomorrow(context.getResources(), startMillis, in getDisplayedDatetime()
1457 String dateString = Utils.formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
1467 datetimeString = Utils.formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
[all …]
DGoogleCalendarUriIntentFilter.java172 long startMillis = eventCursor.getLong(EVENT_INDEX_START); in onCreate() local
175 if (debug) Log.d(TAG, "startMillis: " + startMillis); in onCreate()
188 endMillis = startMillis + d.getMillis(); in onCreate()
189 if (debug) Log.d(TAG, "startMillis! " + startMillis); in onCreate()
191 if (endMillis < startMillis) { in onCreate()
225 intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, startMillis); in onCreate()
DDayView.java226 mClickedEvent.startMillis, mClickedEvent.endMillis,
1412 long startMillis = getSelectedTimeInMillis(); in switchViews() local
1413 long endMillis = startMillis + DateUtils.HOUR_IN_MILLIS; in switchViews()
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()
1448 long startMillis = getSelectedTimeInMillis(); in switchViews() local
1449 long endMillis = startMillis + DateUtils.HOUR_IN_MILLIS; in switchViews()
1455 startMillis, endMillis, -1, -1, extraLong, -1); in switchViews()
1461 selectedEvent.startMillis, selectedEvent.endMillis, 0, 0, in switchViews()
[all …]
DCalendarUtils.java170 public String formatDateRange(Context context, long startMillis, in formatDateRange() argument
181 date = DateUtils.formatDateRange(context, mF, startMillis, endMillis, flags, in formatDateRange()
DSearchActivity.java235 private void deleteEvent(long eventId, long startMillis, long endMillis) { in deleteEvent() argument
236 mDeleteEventHelper.delete(startMillis, endMillis, eventId, -1); in deleteEvent()
DEventInfoFragment.java642 public EventInfoFragment(Context context, Uri uri, long startMillis, long endMillis, in EventInfoFragment() argument
663 mStartMillis = startMillis; in EventInfoFragment()
678 public EventInfoFragment(Context context, long eventId, long startMillis, long endMillis, in EventInfoFragment() argument
681 this(context, ContentUris.withAppendedId(Events.CONTENT_URI, eventId), startMillis, in EventInfoFragment()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DCalendarInteractionUtils.java29 public static String getDisplayedDatetime(long startMillis, long endMillis, long currentMillis, in getDisplayedDatetime() argument
44 long localStartMillis = convertAlldayUtcToLocal(null, startMillis, localTimezone); in getDisplayedDatetime()
60 datetimeString = DateUtils.formatDateRange(context, f, startMillis, in getDisplayedDatetime()
64 if (singleDayEvent(startMillis, endMillis, currentTime.gmtoff)) { in getDisplayedDatetime()
66 String timeString = formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
70 int todayOrTomorrow = isTodayOrTomorrow(context.getResources(), startMillis, in getDisplayedDatetime()
82 String dateString = formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
92 datetimeString = formatDateRange(context, startMillis, endMillis, in getDisplayedDatetime()
130 private static boolean singleDayEvent(long startMillis, long endMillis, long localGmtOffset) { in singleDayEvent() argument
131 if (startMillis == endMillis) { in singleDayEvent()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlarmSchedulerTest.java176 long startMillis = currentMillis + DateUtils.HOUR_IN_MILLIS; in testNonAllDayEvent() local
178 mMockProvider.addEventInfo(1, false, startMillis, reminderMin); in testNonAllDayEvent()
179 expectAlarmAt(startMillis - reminderMin * DateUtils.MINUTE_IN_MILLIS); in testNonAllDayEvent()
222 long startMillis = currentMillis + DateUtils.HOUR_IN_MILLIS; in testExpiredReminder() local
224 mMockProvider.addEventInfo(1, false, startMillis, reminderMin); in testExpiredReminder()
236 long startMillis = currentMillis + DateUtils.DAY_IN_MILLIS * 3; in testAlarmMax() local
238 mMockProvider.addEventInfo(1, false, startMillis, reminderMin); in testAlarmMax()
DAlertServiceTest.java747 assertEquals(acceptedStartTime, highPriority.get(0).startMillis); in testProcessQuery_skipDeclinedDismissed()
803 highPriority.get(0).startMillis); in testProcessQuery_recurringEvent()
814 highPriority.get(0).startMillis); in testProcessQuery_recurringEvent()
825 highPriority.get(0).startMillis); in testProcessQuery_recurringEvent()
836 lowPriority.get(0).startMillis); in testProcessQuery_recurringEvent()
863 highPriority.get(0).startMillis); in testProcessQuery_recurringAllDayEvent()
875 highPriority.get(0).startMillis); in testProcessQuery_recurringAllDayEvent()
886 highPriority.get(0).startMillis); in testProcessQuery_recurringAllDayEvent()
897 lowPriority.get(0).startMillis); in testProcessQuery_recurringAllDayEvent()
/packages/apps/Calendar/src/com/android/calendar/event/
DEditEventView.java249 long startMillis; in onTimeSet() local
258 startMillis = startTime.normalize(true); in onTimeSet()
265 populateTimezone(startMillis); in onTimeSet()
268 startMillis = startTime.toMillis(true); in onTimeSet()
283 setTime(mStartTimeButton, startMillis); in onTimeSet()
347 long startMillis; in onDateSet() local
358 startMillis = startTime.normalize(true); in onDateSet()
370 populateTimezone(startMillis); in onDateSet()
373 startMillis = startTime.toMillis(true); in onDateSet()
383 endMillis = startMillis; in onDateSet()
[all …]
DEditEventHelper.java1231 long startMillis; in getContentValuesFromModel() local
1242 startMillis = startTime.normalize(true); in getContentValuesFromModel()
1249 if (endMillis < startMillis + DateUtils.DAY_IN_MILLIS) { in getContentValuesFromModel()
1252 endMillis = startMillis + DateUtils.DAY_IN_MILLIS; in getContentValuesFromModel()
1255 startMillis = startTime.toMillis(true); in getContentValuesFromModel()
1263 values.put(Events.DTSTART, startMillis); in getContentValuesFromModel()
/packages/apps/Settings/src/com/android/settings/location/
DSettingsInjector.java433 public long startMillis; field in SettingsInjector.Setting
489 startMillis = SystemClock.elapsedRealtime(); in startService()
491 startMillis = 0; in startService()
501 return end - startMillis; in getElapsedTime()
505 if (Log.isLoggable(TAG, Log.DEBUG) && startMillis != 0) { in maybeLogElapsedTime()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java115 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus() local
117 waitForStatus(status, startMillis); in runUntilStatus()
121 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus() local
123 waitForStatus(status, startMillis, timeout); in runUntilStatus()
DThreadingTest.java79 final long startMillis = mSystemFacade.currentTimeMillis(); in testFilenameRace() local
83 d.first.waitForStatus(DownloadManager.STATUS_SUCCESSFUL, startMillis); in testFilenameRace()
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaFragment.java421 long startMillis = event.startTime.toMillis(true); in showEventInfo() local
425 if (fOld == null || replaceFragment || fOld.getStartMillis() != startMillis || in showEventInfo()
428 startMillis, endMillis, in showEventInfo()
/packages/apps/Calendar/tests/src/com/android/calendar/
DFormatDateRangeTest.java185 long startMillis = dateTest.date1.toMillis(false /* use isDst */); in testAll() local
188 String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags); in testAll()
DUtilsTests.java242 e.startMillis = e.startDay * 1000L * 3600L * 24L + e.startTime * 60L * 1000L; in buildTestEvent()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java938 text = DateUtils.formatDateRange(getContext(), mFormatter, event.startMillis, in drawEvent()
1091 text.add(Utils.formatDateRange(context, e.startMillis, e.endMillis, in onHoverEvent()