Searched refs:mmr (Results 1 – 2 of 2) sorted by relevance
855 MediaMetadataRetriever mmr = new MediaMetadataRetriever()) { in updateM4aMimeType()856 mmr.setDataSource(is.getFD()); in updateM4aMimeType()857 String refinedMimeType = mmr.extractMetadata(METADATA_KEY_MIMETYPE); in updateM4aMimeType()1066 MediaMetadataRetriever mmr, String mimeType) { in withRetrieverValues() argument1068 parseOptionalMimeType(mimeType, mmr.extractMetadata(METADATA_KEY_MIMETYPE)), in withRetrieverValues()1072 parseOptionalDate(mmr.extractMetadata(METADATA_KEY_DATE))); in withRetrieverValues()1074 parseOptional(mmr.extractMetadata(METADATA_KEY_CD_TRACK_NUMBER))); in withRetrieverValues()1076 parseOptional(mmr.extractMetadata(METADATA_KEY_ALBUM))); in withRetrieverValues()1078 parseOptional(mmr.extractMetadata(METADATA_KEY_ARTIST)), in withRetrieverValues()1079 parseOptional(mmr.extractMetadata(METADATA_KEY_ALBUMARTIST)))); in withRetrieverValues()[all …]
206 final MediaMetadataRetriever mmr = mock(MediaMetadataRetriever.class); in testParseOptionalImageResolution() local207 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_IMAGE_WIDTH))) in testParseOptionalImageResolution()209 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_IMAGE_HEIGHT))) in testParseOptionalImageResolution()211 assertEquals("640\u00d7480", parseOptionalImageResolution(mmr).get()); in testParseOptionalImageResolution()216 final MediaMetadataRetriever mmr = mock(MediaMetadataRetriever.class); in testParseOptionalVideoResolution() local217 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH))) in testParseOptionalVideoResolution()219 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT))) in testParseOptionalVideoResolution()221 assertEquals("640\u00d7480", parseOptionalVideoResolution(mmr).get()); in testParseOptionalVideoResolution()244 final MediaMetadataRetriever mmr = mock(MediaMetadataRetriever.class); in testParseOptionalTrack() local245 when(mmr.extractMetadata(eq(MediaMetadataRetriever.METADATA_KEY_DISC_NUMBER))) in testParseOptionalTrack()[all …]