Home
last modified time | relevance | path

Searched refs:CURRENT_DATE_TIME (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/
DCalendarFormatterTest.java37 private static final ZonedDateTime CURRENT_DATE_TIME = field in CalendarFormatterTest
45 Clock clock = Clock.fixed(CURRENT_DATE_TIME.toInstant(), BERLIN_ZONE_ID); in setUp()
51 String dateText = mFormatter.getDateText(CURRENT_DATE_TIME.toLocalDate()); in getDateText_today()
59 String dateText = mFormatter.getDateText(CURRENT_DATE_TIME.plusDays(1).toLocalDate()); in getDateText_tomorrow()
67 String dateText = mFormatter.getDateText(CURRENT_DATE_TIME.plusDays(7).toLocalDate()); in getDateText_nextWeek_onlyShowsDate()
76 CURRENT_DATE_TIME.toInstant(), CURRENT_DATE_TIME.plusHours(1).toInstant()); in getTimeRangeText_sameAmPm()
85 CURRENT_DATE_TIME.toInstant(), CURRENT_DATE_TIME.plusHours(3).toInstant()); in getTimeRangeText_differentAmPm()
94 CURRENT_DATE_TIME.toInstant(), CURRENT_DATE_TIME.plusDays(1).toInstant()); in getTimeRangeText_differentDays()
DEventsLiveDataTest.java77 private static final ZonedDateTime CURRENT_DATE_TIME = field in EventsLiveDataTest
102 mTestClock.setTime(CURRENT_DATE_TIME); in setUp()
202 mTestContentProvider.addRow(buildTestRowWithDuration(CURRENT_DATE_TIME, 1)); in addObserver_oneEventResult()
218 long eventStartMillis = addHoursAndTruncate(CURRENT_DATE_TIME, 0); in addObserver_oneEventResult()
219 long eventEndMillis = addHoursAndTruncate(CURRENT_DATE_TIME, 1); in addObserver_oneEventResult()
331 mTestContentProvider.addRow(buildTestRowWithDuration(CURRENT_DATE_TIME, 24)); in multiDayEvent_createsMultipleEvents()
348 mTestContentProvider.addRow(buildTestRowWithDuration(CURRENT_DATE_TIME, hours)); in multiDayEvent_keepsOriginalTimes()
360 ZonedDateTime expectedStartTime = CURRENT_DATE_TIME.truncatedTo(HOURS); in multiDayEvent_keepsOriginalTimes()
369 ZonedDateTime twoHoursAfterCurrentTime = CURRENT_DATE_TIME.plus(Duration.ofHours(2)); in multipleEvents_resultsSortedStart()
371 mTestContentProvider.addRow(buildTestRowWithDuration(CURRENT_DATE_TIME, 1)); in multipleEvents_resultsSortedStart()
[all …]
/packages/apps/Car/Calendar/tests/ui/src/com/android/car/calendar/
DCarCalendarUiTest.java81 private static final ZonedDateTime CURRENT_DATE_TIME = field in CarCalendarUiTest
84 CURRENT_DATE_TIME.truncatedTo(ChronoUnit.HOURS);
125 Clock fixedTimeClock = Clock.fixed(CURRENT_DATE_TIME.toInstant(), BERLIN_ZONE_ID); in setActivityDependencies()