/frameworks/wilhelm/tests/mimeUri/ |
slesTestSlowDownUri.cpp | 189 SLDataFormat_MIME mime; local 226 mime.formatType = SL_DATAFORMAT_MIME; 227 mime.mimeType = (SLchar*)NULL; 228 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; 230 audioSource.pFormat = (void *)&mime;
|
/frameworks/wilhelm/tests/sandbox/streamSource/ |
slesTestPlayStream.cpp | 191 SLDataFormat_MIME mime; local 236 mime.formatType = SL_DATAFORMAT_MIME; 237 mime.mimeType = (SLchar *) "video/mp2ts";//(SLchar*)NULL; 238 mime.containerType = SL_CONTAINERTYPE_MPEG_TS; 240 audioSource.pFormat = (void *)&mime;
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
MessageAttachmentTile.java | 155 final String mime = Utils.normalizeMimeType(mAttachment.getContentType()); local 158 .sendEvent("view_attachment", mime, "attachment_tile", mAttachment.size); 160 if (ImageUtils.isImageMimeType(mime)) { 170 intent, mAttachment.contentUri, mime);
|
/frameworks/av/cmds/stagefright/ |
sf2.cpp | 86 const char *mime; local 87 CHECK(meta->findCString(kKeyMIMEType, &mime)); 90 mime, 6)) { 93 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { 268 const char *mime; local 269 CHECK(meta->findCString(kKeyMIMEType, &mime)); 272 msg->setString("mime", mime); 274 if (!strncasecmp("video/", mime, 6)) { 282 CHECK(!strncasecmp("audio/", mime, 6)) [all...] |
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
VideoEditorAudioEncoder.cpp | 349 const char* mime = NULL; local 391 mime = MEDIA_MIMETYPE_AUDIO_AAC; 396 mime = MEDIA_MIMETYPE_AUDIO_AMR_NB; 406 encoderMetadata->setCString(kKeyMIMEType, mime);
|
VideoEditorAudioDecoder.cpp | 438 const char* mime = NULL; local 466 mime = MEDIA_MIMETYPE_AUDIO_AMR_NB; 477 mime = MEDIA_MIMETYPE_AUDIO_AMR_WB; 493 mime = MEDIA_MIMETYPE_AUDIO_AAC; 526 mime = MEDIA_MIMETYPE_AUDIO_MPEG; 534 decoderMetaData->setCString(kKeyMIMEType, mime); [all...] |
/frameworks/av/media/libstagefright/ |
StagefrightMetadataRetriever.cpp | 117 const char *mime; local 118 CHECK(trackMeta->findCString(kKeyMIMEType, &mime)); 121 if (QueryCodecs(client->interface(), mime, 238 const char *mime; local 239 CHECK(trackMeta->findCString(kKeyMIMEType, &mime)); 241 ALOGV("thumbNailTime = %lld us, timeUs = %lld us, mime = %s", 242 thumbNailTime, timeUs, mime); 349 const char *mime; local 350 CHECK(meta->findCString(kKeyMIMEType, &mime)); 352 if (!strncasecmp(mime, "video/", 6)) 515 const char *mime; local [all...] |
Utils.cpp | 75 const char *mime; local 76 CHECK(meta->findCString(kKeyMIMEType, &mime)); 79 msg->setString("mime", mime); 91 if (!strncasecmp("video/", mime, 6)) { 105 } else if (!strncasecmp("audio/", mime, 6)) { 371 AString mime; local 372 if (msg->findString("mime", &mime)) { 373 meta->setCString(kKeyMIMEType, mime.c_str()) 515 const char* mime; member in struct:android::mime_conv_t 546 const char *mime; local [all...] |
MP3Extractor.cpp | 638 String8 mime; local 639 const void *data = id3.getAlbumArt(&dataSize, &mime); 643 meta->setCString(kKeyAlbumArtMIME, mime.string());
|
MPEG2TSWriter.cpp | 105 const char *mime; local 106 CHECK(meta->findCString(kKeyMIMEType, &mime)); 108 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) { 110 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { 151 const char *mime; local 152 CHECK(meta->findCString(kKeyMIMEType, &mime)); 154 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) { 181 if (strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { 543 const char *mime; local 544 CHECK(meta->findCString(kKeyMIMEType, &mime)); [all...] |
MediaCodec.cpp | 46 const sp<ALooper> &looper, const char *mime, bool encoder) { 48 if (codec->init(mime, true /* nameIsType */, encoder) != OK) { 738 AString mime; local 739 CHECK(msg->findString("mime", &mime)); 741 if (!strncasecmp("video/", mime.c_str(), 6)) { 941 format->setString("mime", name.c_str()); 1776 AString mime; local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
ARTPWriter.cpp | 133 const char *mime; local 134 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); 137 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { 139 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_H263)) { 141 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AMR_NB)) { 143 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AMR_WB)) {
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
Converter.cpp | 65 AString mime; local 66 CHECK(mOutputFormat->findString("mime", &mime)); 68 if (!strncasecmp("video/", mime.c_str(), 6)) { 71 mIsH264 = !strcasecmp(mime.c_str(), MEDIA_MIMETYPE_VIDEO_AVC); 72 } else if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime.c_str())) { 168 CHECK(mOutputFormat->findString("mime", &outputMIME)); 447 AString mime; local 448 CHECK(mOutputFormat->findString("mime", &mime)); [all...] |
PlaybackSession.cpp | 158 AString mime; local 159 CHECK(format->findString("mime", &mime)); 161 return !strncasecmp(mime.c_str(), "audio/", 6); 769 AString mime; local 770 CHECK(format->findString("mime", &mime)); 772 bool isAudio = !strncasecmp(mime.c_str(), "audio/", 6); 773 bool isVideo = !strncasecmp(mime.c_str(), "video/", 6); 940 format->setString("mime", MEDIA_MIMETYPE_VIDEO_AVC) [all...] |
TSPacketizer.cpp | 97 CHECK(format->findString("mime", &mMIME)); 383 AString mime; local 384 CHECK(format->findString("mime", &mime)); 387 bool isVideo = !strncasecmp("video/", mime.c_str(), 6); 388 bool isAudio = !strncasecmp("audio/", mime.c_str(), 6); 402 if (!strcasecmp(mime.c_str(), MEDIA_MIMETYPE_VIDEO_AVC)) { 406 } else if (!strcasecmp(mime.c_str(), MEDIA_MIMETYPE_AUDIO_AAC)) { 410 } else if (!strcasecmp(mime.c_str(), MEDIA_MIMETYPE_AUDIO_RAW)) {
|
/frameworks/support/v4/java/android/support/v4/content/ |
FileProvider.java | 440 * Returns the MIME type of a content URI returned by 445 * @return If the associated file has an extension, the MIME type associated with that 456 final String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); local 457 if (mime != null) { 458 return mime; [all...] |
/frameworks/wilhelm/src/android/ |
android_AudioSfDecoder.cpp | 239 const char *mime; local 240 CHECK(meta->findCString(kKeyMIMEType, &mime)); 242 if (!strncasecmp("audio/", mime, 6)) { 243 if (isSupportedCodec(mime)) { 246 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime)) { 790 bool AudioSfDecoder::isSupportedCodec(const char* mime) { 793 if (!strcasecmp(mime, kPlaybackOnlyCodecs[i])) {
|
/frameworks/wilhelm/src/itf/ |
IEngine.c | 69 const char* mime = (char*)ap->mDataSource.mFormat.mMIME.mimeType; local 70 if ((mime != NULL) && !(strcasecmp(mime, (const char *)SL_ANDROID_MIME_AACADTS) && 71 strcasecmp(mime, ANDROID_MIME_AACADTS_ANDROID_FRAMEWORK))) { [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
VideoUtils.java | 147 String mime = format.getString(MediaFormat.KEY_MIME); local 151 if (mime.startsWith("audio/") && useAudio) { 153 } else if (mime.startsWith("video/") && useVideo) {
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
AwContentsTest.java | 229 final String mime = "text/html"; local 234 loadDataSync(awContents, loadHelper, emptyDoc, mime, false); 239 loadDataSync(awContents, loadHelper, imageDoc, mime, false);
|
/external/chromium_org/media/base/android/ |
media_codec_bridge.cc | 79 static const std::string AndroidMimeTypeToCodecType(const std::string& mime) { 80 if (mime == "video/mp4v-es") 82 if (mime == "video/avc") 84 if (mime == "video/x-vnd.on2.vp8") 86 if (mime == "video/x-vnd.on2.vp9") 88 if (mime == "audio/mp4a-latm") 90 if (mime == "audio/mpeg") 92 if (mime == "audio/vorbis") 149 std::string mime = CodecTypeToAndroidMimeType(codec); local 150 if (mime.empty() 610 const std::string mime = AudioCodecToAndroidMimeType(codec); local 633 const std::string mime = VideoCodecToAndroidMimeType(codec); local 666 const std::string mime = VideoCodecToAndroidMimeType(codec); local [all...] |
/frameworks/av/drm/common/ |
IDrmManagerService.cpp | 604 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 614 if (mime) { 615 mimeType = mime; 630 int uniqueId, const char* uri, const char* mime) { 632 ALOGV("Entering BpDrmManagerService::openDecryptSession: mime=%s", mime? mime: "NULL"); 639 if (mime) { 640 mimeType = mime; 1309 const String8 mime = data.readString8(); local 1329 const String8 mime = data.readString8(); local [all...] |
/frameworks/av/media/libstagefright/omx/tests/ |
OMXHarness.cpp | 476 static const char *GetURLForMime(const char *mime) { 503 if (!strcasecmp(kMimeToURL[i].mMime, mime)) { 511 static sp<MediaSource> CreateSourceForMime(const char *mime) { 512 const char *url = GetURLForMime(mime); 531 if (!strcasecmp(mime, trackMime)) { 569 const char *mime = GetMimeFromComponentRole(componentRole); local 571 if (!mime) { 578 sp<MediaSource> source = CreateSourceForMime(mime); 583 mime, componentRole); 588 sp<MediaSource> seekSource = CreateSourceForMime(mime); [all...] |
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
ExternalStorageProvider.java | 407 final String mime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); local 408 if (mime != null) { 409 return mime; 417 * Remove file extension from name, but only if exact MIME type mapping 433 * Add file extension to name, but only if exact MIME type mapping exists.
|
/packages/apps/Gallery2/src/com/android/photos/ |
MultiChoiceManager.java | 231 String mime = getItemMimetype(item); local 235 intent.setDataAndType(uri, mime) 241 intent.setDataAndType(uri, mime) 260 intent.setDataAndType(uri, mime) 263 .putExtra("mimeType", mime);
|