Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java905 MediaMetadataRetriever mmr = new MediaMetadataRetriever()) { in updateM4aMimeType()
906 mmr.setDataSource(is.getFD()); in updateM4aMimeType()
907 String refinedMimeType = mmr.extractMetadata(METADATA_KEY_MIMETYPE); in updateM4aMimeType()
1117 MediaMetadataRetriever mmr, String mimeType) { in withRetrieverValues() argument
1119 parseOptionalMimeType(mimeType, mmr.extractMetadata(METADATA_KEY_MIMETYPE)), in withRetrieverValues()
1123 parseOptionalDate(mmr.extractMetadata(METADATA_KEY_DATE))); in withRetrieverValues()
1125 parseOptional(mmr.extractMetadata(METADATA_KEY_CD_TRACK_NUMBER))); in withRetrieverValues()
1127 parseOptional(mmr.extractMetadata(METADATA_KEY_ALBUM))); in withRetrieverValues()
1129 parseOptional(mmr.extractMetadata(METADATA_KEY_ARTIST)), in withRetrieverValues()
1130 parseOptional(mmr.extractMetadata(METADATA_KEY_ALBUMARTIST)))); in withRetrieverValues()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java211 final MediaMetadataRetriever mmr = mock(MediaMetadataRetriever.class); in testParseOptionalImageResolution() local
212 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_IMAGE_WIDTH))) in testParseOptionalImageResolution()
214 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_IMAGE_HEIGHT))) in testParseOptionalImageResolution()
216 assertEquals("640\u00d7480", parseOptionalImageResolution(mmr).get()); in testParseOptionalImageResolution()
221 final MediaMetadataRetriever mmr = mock(MediaMetadataRetriever.class); in testParseOptionalVideoResolution() local
222 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH))) in testParseOptionalVideoResolution()
224 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT))) in testParseOptionalVideoResolution()
226 assertEquals("640\u00d7480", parseOptionalVideoResolution(mmr).get()); in testParseOptionalVideoResolution()
249 final MediaMetadataRetriever mmr = mock(MediaMetadataRetriever.class); in testParseOptionalTrack() local
250 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_DISC_NUMBER))) in testParseOptionalTrack()
[all …]