Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java1224 final Optional<?> width = parseOptionalOrZero( in withResolutionValues()
1226 final Optional<?> height = parseOptionalOrZero( in withResolutionValues()
1248 final Optional<?> width = parseOptionalOrZero(bitmapOptions.outWidth); in withBitmapResolutionValues()
1249 final Optional<?> height = parseOptionalOrZero(bitmapOptions.outHeight); in withBitmapResolutionValues()
1477 static @NonNull <T> Optional<T> parseOptionalOrZero(@Nullable T value) { in parseOptionalOrZero() method in ModernMediaScanner
1574 final Optional<?> width = parseOptionalOrZero( in parseOptionalResolution()
1576 final Optional<?> height = parseOptionalOrZero( in parseOptionalResolution()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java29 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalOrZero;
175 assertFalse(parseOptionalOrZero(-1).isPresent()); in testParseOptionalOrZero()
176 assertFalse(parseOptionalOrZero(0).isPresent()); in testParseOptionalOrZero()
177 assertTrue(parseOptionalOrZero(1).isPresent()); in testParseOptionalOrZero()