Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java28 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalNumerator;
182 assertEquals(12, (int) parseOptionalNumerator("12").get()); in testParseOptionalNumerator()
183 assertEquals(12, (int) parseOptionalNumerator("12/24").get()); in testParseOptionalNumerator()
185 assertFalse(parseOptionalNumerator("/24").isPresent()); in testParseOptionalNumerator()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java1488 static @NonNull Optional<Integer> parseOptionalNumerator(@Nullable String value) { in parseOptionalNumerator() method in ModernMediaScanner
1636 final Optional<Integer> disc = parseOptionalNumerator( in parseOptionalTrack()
1638 final Optional<Integer> track = parseOptionalNumerator( in parseOptionalTrack()