Searched refs:parseOptionalYear (Results 1 – 2 of 2) sorted by relevance
34 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 …]
1140 parseOptionalYear(mmr.extractMetadata(METADATA_KEY_YEAR))); in withRetrieverValues()1619 static @NonNull Optional<Integer> parseOptionalYear(@Nullable String value) { in parseOptionalYear() method in ModernMediaScanner