Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java24 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalDate;
239 assertThat(parseOptionalDate("20200101T000000")).isEqualTo(Optional.of(1577836800000L)); in testParseOptionalDate()
240 assertThat(parseOptionalDate("20200101T211205")).isEqualTo(Optional.of(1577913125000L)); in testParseOptionalDate()
241 assertThat(parseOptionalDate("20200101T211205.000Z")) in testParseOptionalDate()
243 assertThat(parseOptionalDate("20200101T211205.123Z")) in testParseOptionalDate()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java1123 parseOptionalDate(mmr.extractMetadata(METADATA_KEY_DATE))); in withRetrieverValues()
1590 static @NonNull Optional<Long> parseOptionalDate(@Nullable String date) { in parseOptionalDate() method in ModernMediaScanner