Lines Matching refs:mime
220 const char *mime; in initFromDataSource() local
221 CHECK(meta->findCString(kKeyMIMEType, &mime)); in initFromDataSource()
223 ALOGV("initFromDataSource track[%zu]: %s", i, mime); in initFromDataSource()
229 if (!strncasecmp(mime, "audio/", 6)) { in initFromDataSource()
236 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { in initFromDataSource()
242 mMimes.add(String8(mime)); in initFromDataSource()
244 } else if (!strncasecmp(mime, "video/", 6)) { in initFromDataSource()
252 mMimes.insertAt(String8(mime), 0); in initFromDataSource()
651 const char *mime; in onMessageReceived() local
654 meta->findCString(kKeyMIMEType, &mime); in onMessageReceived()
655 if (!strncasecmp(mime, "audio/", 6)) { in onMessageReceived()
660 CHECK(!strncasecmp(mime, "video/", 6)); in onMessageReceived()
964 const char *mime; in getTrackInfo() local
965 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getTrackInfo()
966 format->setString("mime", mime); in getTrackInfo()
969 if (!strncasecmp(mime, "video/", 6)) { in getTrackInfo()
971 } else if (!strncasecmp(mime, "audio/", 6)) { in getTrackInfo()
973 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP)) { in getTrackInfo()
1060 const char *mime; in selectTrack() local
1061 CHECK(meta->findCString(kKeyMIMEType, &mime)); in selectTrack()
1062 if (!strncasecmp(mime, "text/", 5)) { in selectTrack()
1063 bool isSubtitle = strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP); in selectTrack()
1110 } else if (!strncasecmp(mime, "audio/", 6) || !strncasecmp(mime, "video/", 6)) { in selectTrack()
1111 bool audio = !strncasecmp(mime, "audio/", 6); in selectTrack()
1253 const char *mime; in mediaBufferToABuffer() local
1255 && mTimedTextTrack.mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in mediaBufferToABuffer()
1256 meta->setString("mime", mime); in mediaBufferToABuffer()
1635 const char *mime = mMimes[0].string(); in prepareDrm() local
1636 mIsSecure = crypto->requiresSecureDecoderComponent(mime); in prepareDrm()
1638 mime, mIsSecure); in prepareDrm()