Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java34 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalYear;
356 assertEquals(Optional.empty(), parseOptionalYear(null)); in testParseYear_Invalid()
357 assertEquals(Optional.empty(), parseOptionalYear("")); in testParseYear_Invalid()
358 assertEquals(Optional.empty(), parseOptionalYear(" ")); in testParseYear_Invalid()
359 assertEquals(Optional.empty(), parseOptionalYear("meow")); in testParseYear_Invalid()
361 assertEquals(Optional.empty(), parseOptionalYear("0")); in testParseYear_Invalid()
362 assertEquals(Optional.empty(), parseOptionalYear("00")); in testParseYear_Invalid()
363 assertEquals(Optional.empty(), parseOptionalYear("000")); in testParseYear_Invalid()
364 assertEquals(Optional.empty(), parseOptionalYear("0000")); in testParseYear_Invalid()
366 assertEquals(Optional.empty(), parseOptionalYear("1")); in testParseYear_Invalid()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java1140 parseOptionalYear(mmr.extractMetadata(METADATA_KEY_YEAR))); in withRetrieverValues()
1619 static @NonNull Optional<Integer> parseOptionalYear(@Nullable String value) { in parseOptionalYear() method in ModernMediaScanner