Searched refs:parseOptionalOrZero (Results 1 – 2 of 2) sorted by relevance
1224 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 ModernMediaScanner1574 final Optional<?> width = parseOptionalOrZero( in parseOptionalResolution()1576 final Optional<?> height = parseOptionalOrZero( in parseOptionalResolution()
29 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()