Searched refs:parseOptionalMimeType (Results 1 – 2 of 2) sorted by relevance
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 27 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalMimeType; 144 assertFalse(parseOptionalMimeType("image/png", null).isPresent()); in testOverrideMimeType() 145 assertFalse(parseOptionalMimeType("image/png", "image").isPresent()); in testOverrideMimeType() 146 assertFalse(parseOptionalMimeType("image/png", "im/im").isPresent()); in testOverrideMimeType() 147 assertFalse(parseOptionalMimeType("image/png", "audio/x-shiny").isPresent()); in testOverrideMimeType() 149 assertTrue(parseOptionalMimeType("image/png", "image/x-shiny").isPresent()); in testOverrideMimeType() 151 parseOptionalMimeType("image/png", "image/x-shiny").get()); in testOverrideMimeType() 155 parseOptionalMimeType("video/mp4", "audio/mpeg")); in testOverrideMimeType()
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | ModernMediaScanner.java | 1119 parseOptionalMimeType(mimeType, mmr.extractMetadata(METADATA_KEY_MIMETYPE)), in withRetrieverValues() 1166 parseOptionalMimeType(mimeType, xmp.getFormat()), in withXmpValues() 1652 static @NonNull Optional<String> parseOptionalMimeType(@NonNull String fileMimeType, in parseOptionalMimeType() method in ModernMediaScanner
|