/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | CalendarInteractionUtils.java | 29 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/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() 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 …]
|
D | Event.java | 133 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()
|
D | GoogleCalendarUriIntentFilter.java | 172 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()
|
D | Utils.java | 306 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 …]
|
D | DayView.java | 226 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 …]
|
D | CalendarUtils.java | 170 public String formatDateRange(Context context, long startMillis, in formatDateRange() argument 181 date = DateUtils.formatDateRange(context, mF, startMillis, endMillis, flags, in formatDateRange()
|
D | SearchActivity.java | 235 private void deleteEvent(long eventId, long startMillis, long endMillis) { in deleteEvent() argument 236 mDeleteEventHelper.delete(startMillis, endMillis, eventId, -1); in deleteEvent()
|
D | EventInfoFragment.java | 642 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/Calendar/src/com/android/calendar/alerts/ |
D | AlertReceiver.java | 202 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 …]
|
D | AlertService.java | 132 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 …]
|
D | AlertUtils.java | 154 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);
|
D | AlertAdapter.java | 75 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()
|
D | AlertActivity.java | 185 long startMillis = cursor.getLong(AlertActivity.INDEX_BEGIN); 188 dismissAlarm(alarmId, eventId, startMillis); 194 startMillis, endMillis);
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlarmSchedulerTest.java | 176 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()
|
D | AlertServiceTest.java | 747 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/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractPublicApiTest.java | 117 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus() local 119 waitForStatus(status, startMillis); in runUntilStatus() 123 final long startMillis = mSystemFacade.currentTimeMillis(); in runUntilStatus() local 125 waitForStatus(status, startMillis, timeout); in runUntilStatus()
|
D | ThreadingTest.java | 66 final long startMillis = mSystemFacade.currentTimeMillis(); in testFilenameRace() local 68 d.first.waitForStatus(DownloadManager.STATUS_SUCCESSFUL, startMillis); in testFilenameRace()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | GuideUtils.java | 42 public static int convertMillisToPixel(long startMillis, long endMillis) { in convertMillisToPixel() argument 45 - GuideUtils.convertMillisToPixel(startMillis); in convertMillisToPixel()
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventView.java | 249 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 …]
|
D | EditEventHelper.java | 1231 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/ |
D | SettingsInjector.java | 444 public long startMillis; field in SettingsInjector.Setting 509 startMillis = SystemClock.elapsedRealtime(); in startService() 511 startMillis = 0; in startService() 521 return end - startMillis; in getElapsedTime() 525 if (Log.isLoggable(TAG, Log.DEBUG) && startMillis != 0) { in maybeLogElapsedTime()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | FormatDateRangeTest.java | 185 long startMillis = dateTest.date1.toMillis(false /* use isDst */); in testAll() local 188 String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags); in testAll()
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaFragment.java | 421 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/src/com/android/calendar/month/ |
D | MonthWeekEventsView.java | 938 text = DateUtils.formatDateRange(getContext(), mFormatter, event.startMillis, in drawEvent() 1091 text.add(Utils.formatDateRange(context, e.startMillis, e.endMillis, in onHoverEvent()
|