Home
last modified time | relevance | path

Searched refs:whenDate (Results 1 – 2 of 2) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DDateTimeUtilsTest.java58 final LocalDate whenDate = FAKE_DATE.minusDays(1); in testGetDateHeaderString_yesterday() local
59 final long when = generateDateTimeMillis(whenDate); in testGetDateHeaderString_yesterday()
68 final LocalDate whenDate = FAKE_DATE.minusDays(3); in testGetDateHeaderString_weekday() local
69 final long when = generateDateTimeMillis(whenDate); in testGetDateHeaderString_weekday()
78 final LocalDate whenDate = FAKE_DATE.minusMonths(1); in testGetDateHeaderString_weekdayAndDate() local
79 final long when = generateDateTimeMillis(whenDate); in testGetDateHeaderString_weekdayAndDate()
88 final LocalDate whenDate = FAKE_DATE.minusYears(1); in testGetDateHeaderString_weekdayDateAndYear() local
89 long when = generateDateTimeMillis(whenDate); in testGetDateHeaderString_weekdayDateAndYear()
104 final LocalDate whenDate = FAKE_DATE.minusMonths(1).minusDays(4);; in testCapitalizedInDifferentLanguages() local
105 final long when = generateDateTimeMillis(whenDate); in testCapitalizedInDifferentLanguages()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/
DDateTimeUtils.java89 final LocalDate whenDate = LocalDateTime.ofInstant(Instant.ofEpochMilli(when), in getDateHeaderString() local
92 final long dayDiff = ChronoUnit.DAYS.between(whenDate, nowDate); in getDateHeaderString()
101 } else if (whenDate.getYear() == nowDate.getYear()) { in getDateHeaderString()