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.java1173 final Optional<?> width = parseOptionalOrZero( in withResolutionValues()
1175 final Optional<?> height = parseOptionalOrZero( in withResolutionValues()
1197 final Optional<?> width = parseOptionalOrZero(bitmapOptions.outWidth); in withBitmapResolutionValues()
1198 final Optional<?> height = parseOptionalOrZero(bitmapOptions.outHeight); in withBitmapResolutionValues()
1451 static @NonNull <T> Optional<T> parseOptionalOrZero(@Nullable T value) { in parseOptionalOrZero() method in ModernMediaScanner
1544 final Optional<?> width = parseOptionalOrZero( in parseOptionalResolution()
1546 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;
176 assertFalse(parseOptionalOrZero(-1).isPresent()); in testParseOptionalOrZero()
177 assertFalse(parseOptionalOrZero(0).isPresent()); in testParseOptionalOrZero()
178 assertTrue(parseOptionalOrZero(1).isPresent()); in testParseOptionalOrZero()