Lines Matching refs:mime

223         const char *mime;  in initFromDataSource()  local
224 CHECK(meta->findCString(kKeyMIMEType, &mime)); in initFromDataSource()
226 ALOGV("initFromDataSource track[%zu]: %s", i, mime); in initFromDataSource()
232 if (!strncasecmp(mime, "audio/", 6)) { in initFromDataSource()
239 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { in initFromDataSource()
245 mMimes.add(String8(mime)); in initFromDataSource()
247 } else if (!strncasecmp(mime, "video/", 6)) { in initFromDataSource()
255 mMimes.insertAt(String8(mime), 0); in initFromDataSource()
663 const char *mime; in onMessageReceived() local
666 meta->findCString(kKeyMIMEType, &mime); in onMessageReceived()
667 if (!strncasecmp(mime, "audio/", 6)) { in onMessageReceived()
672 CHECK(!strncasecmp(mime, "video/", 6)); in onMessageReceived()
976 const char *mime; in getTrackInfo() local
977 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getTrackInfo()
978 format->setString("mime", mime); in getTrackInfo()
981 if (!strncasecmp(mime, "video/", 6)) { in getTrackInfo()
983 } else if (!strncasecmp(mime, "audio/", 6)) { in getTrackInfo()
985 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP)) { in getTrackInfo()
1067 const char *mime; in selectTrack() local
1068 CHECK(meta->findCString(kKeyMIMEType, &mime)); in selectTrack()
1069 if (!strncasecmp(mime, "text/", 5)) { in selectTrack()
1070 bool isSubtitle = strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP); in selectTrack()
1117 } else if (!strncasecmp(mime, "audio/", 6) || !strncasecmp(mime, "video/", 6)) { in selectTrack()
1118 bool audio = !strncasecmp(mime, "audio/", 6); in selectTrack()
1260 const char *mime; in mediaBufferToABuffer() local
1262 && mTimedTextTrack.mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in mediaBufferToABuffer()
1263 meta->setString("mime", mime); in mediaBufferToABuffer()
1642 const char *mime = mMimes[0].string(); in prepareDrm() local
1643 mIsSecure = crypto->requiresSecureDecoderComponent(mime); in prepareDrm()
1645 mime, mIsSecure); in prepareDrm()