Home
last modified time | relevance | path

Searched refs:mime (Results 1 – 25 of 187) sorted by relevance

12345678

/frameworks/base/mime/java-res/
Dvendor.mime.types10 # (defined in files mime.types and android.mime.types).
18 # mime ext1 ext2 ext3
22 # mimeToExt.putIfAbsent("mime", "ext1");
23 # extToMime.putIfAbsent("ext1", "mime");
24 # extToMime.putIfAbsent("ext2", "mime");
25 # extToMime.putIfAbsent("ext3", "mime");
30 # mime ext1 ext2 ext3
31 # ?mime ext1 ext2 ext3
32 # mime ?ext1 ext2 ?ext3
33 # ?mime ?ext1 ?ext2 ?ext3
/frameworks/base/mime/
DAndroid.bp63 srcs: [":mime.types.minimized"],
76 srcs: [":mime.types.minimized"],
81 // Combination of all *mime.types.minimized resources.
83 name: "mime.types.minimized",
88 ":debian.mime.types.minimized",
89 ":android.mime.types.minimized",
90 ":vendor.mime.types.minimized",
95 name: "android.mime.types.minimized",
99 out: ["android.mime.types"],
101 "java-res/android.mime.types",
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMimeTest.java116 private ResolveInfo resolveMime(String mime) { in resolveMime() argument
120 viewIntent.setDataAndType(uri, mime); in resolveMime()
127 private void assertMediaPlaybackActivityHandles(String mime) throws Exception { in assertMediaPlaybackActivityHandles() argument
128 ResolveInfo ri = resolveMime(mime); in assertMediaPlaybackActivityHandles()
135 private void assertNoActivityHandles(String mime) throws Exception { in assertNoActivityHandles() argument
136 assertNull(resolveMime(mime)); in assertNoActivityHandles()
/frameworks/av/media/libmediaplayerservice/
DStagefrightMetadataRetriever.cpp116 const sp<DataSource>& source, const char *mime) { in setDataSource() argument
121 mExtractor = MediaExtractorFactory::Create(mSource, mime); in setDataSource()
174 const char *mime; in getImageInternal() local
175 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getImageInternal()
177 if (!strncasecmp(mime, "image/", 6)) { in getImageInternal()
208 const char *mime; in getImageInternal() local
209 CHECK(trackMeta->findCString(kKeyMIMEType, &mime)); in getImageInternal()
210 ALOGV("extracting from %s track", mime); in getImageInternal()
211 if (!strcasecmp(mime, MEDIA_MIMETYPE_IMAGE_ANDROID_HEIC)) { in getImageInternal()
212 mime = MEDIA_MIMETYPE_VIDEO_HEVC; in getImageInternal()
[all …]
/frameworks/av/media/libstagefright/
DMediaCodecListOverrides.cpp91 bool isEncoder, const AString &mime, const sp<MediaCodecInfo::Capabilities> &caps) { in getMeasureFormat() argument
93 format->setString("mime", mime); in getMeasureFormat()
102 if (mime.startsWith("video/")) { in getMeasureFormat()
129 …bool isEncoder, const AString &name, const AString &mime, const sp<MediaCodecInfo::Capabilities> &… in doProfileCodecs() argument
130 sp<AMessage> format = getMeasureFormat(isEncoder, mime, caps); in doProfileCodecs()
135 name.c_str(), mime.c_str(), isEncoder ? "encoder" : "decoder", in doProfileCodecs()
159 ALOGV("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileCodecs()
166 ALOGV("Failed to start codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileCodecs()
177 ALOGE("Failed to release codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileCodecs()
286 AString mime; in codecResultsToXml() local
[all …]
DUtils.cpp834 const char *mime; in convertMetaDataToMessage() local
835 if (!meta->findCString(kKeyMIMEType, &mime)) { in convertMetaDataToMessage()
840 msg->setString("mime", mime); in convertMetaDataToMessage()
872 if (!strncasecmp("video/scrambled", mime, 15) in convertMetaDataToMessage()
873 || !strncasecmp("audio/scrambled", mime, 15)) { in convertMetaDataToMessage()
905 if (!strncasecmp("video/", mime, 6) || in convertMetaDataToMessage()
906 !strncasecmp("image/", mime, 6)) { in convertMetaDataToMessage()
930 if (!strncasecmp("image/", mime, 6)) { in convertMetaDataToMessage()
985 } else if (!strncasecmp("audio/", mime, 6)) { in convertMetaDataToMessage()
1319 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4)) { in convertMetaDataToMessage()
[all …]
DMediaExtractorFactory.cpp44 const sp<DataSource> &source, const char *mime) { in Create() argument
45 ALOGV("MediaExtractorFactory::Create %s", mime); in Create()
50 return CreateFromService(source, mime); in Create()
59 CreateIDataSourceFromDataSource(source), mime); in Create()
70 const sp<DataSource> &source, const char *mime) { in CreateFromService() argument
72 ALOGV("MediaExtractorFactory::CreateFromService %s", mime); in CreateFromService()
365 const char* mime = (*it)->def.u.v3.supported_types[i]; in dump() local
366 if (mime == nullptr) { in dump()
369 out.appendFormat("%s ", mime); in dump()
/frameworks/av/drm/common/
DDrmEngineBase.cpp124 int fd, off64_t offset, off64_t length, const char* mime) { in openDecryptSession() argument
126 if (!mime || mime[0] == '\0') { in openDecryptSession()
130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); in openDecryptSession()
135 const char* uri, const char* mime) { in openDecryptSession() argument
136 if (!mime || mime[0] == '\0') { in openDecryptSession()
139 return onOpenDecryptSession(uniqueId, decryptHandle, uri, mime); in openDecryptSession()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DEncoder.java79 private MediaCodec createCodec(String codecName, String mime) throws IOException { in createCodec() argument
83 Log.i(TAG, "Mime type: " + mime); in createCodec()
84 if (mime != null) { in createCodec()
85 codec = MediaCodec.createEncoderByType(mime); in createCodec()
86 Log.i(TAG, "Encoder created for mime type " + mime); in createCodec()
94 Log.i(TAG, "Encoder created with codec name: " + codecName + " and mime: " + mime); in createCodec()
99 Log.e(TAG, "Failed to create encoder for " + codecName + " mime: " + mime); in createCodec()
116 public int encode(String codecName, MediaFormat encodeFormat, String mime, int frameRate, in encode() argument
119 mMime = mime; in encode()
124 mCodec = createCodec(codecName, mime); in encode()
DDecoder.java64 String mime = format.getString(MediaFormat.KEY_MIME); in createCodec() local
68 Log.i(TAG, "File mime type: " + mime); in createCodec()
69 if (mime != null) { in createCodec()
70 codec = MediaCodec.createDecoderByType(mime); in createCodec()
71 Log.i(TAG, "Decoder created for mime type " + mime); in createCodec()
79 Log.i(TAG, "Decoder created with codec name: " + codecName + " mime: " + mime); in createCodec()
84 Log.e(TAG, "Failed to create decoder for " + codecName + " mime:" + mime); in createCodec()
/frameworks/av/services/mediaextractor/
DMediaExtractorService.cpp38 const sp<IDataSource> &remoteSource, const char *mime) { in makeExtractor() argument
39 ALOGV("@@@ MediaExtractorService::makeExtractor for %s", mime); in makeExtractor()
43 sp<IMediaExtractor> extractor = MediaExtractorFactory::CreateFromService(localSource, mime); in makeExtractor()
50 registerMediaExtractor(extractor, localSource, mime); in makeExtractor()
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkCommon.cpp66 AMediaCodec *createMediaCodec(AMediaFormat *format, const char *mime, string codecName, in createMediaCodec() argument
69 if (!mime) { in createMediaCodec()
83 codec = AMediaCodec_createEncoderByType(mime); in createMediaCodec()
85 codec = AMediaCodec_createDecoderByType(mime); in createMediaCodec()
88 ALOGE("Unable to create codec by mime: %s", mime); in createMediaCodec()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeExtractor.cpp50 const char *mime = nullptr; in Java_com_android_media_benchmark_library_Native_Extract() local
67 AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime); in Java_com_android_media_benchmark_library_Native_Extract()
68 if (!mime) { in Java_com_android_media_benchmark_library_Native_Extract()
74 extractObj->dumpStatistics(string(inputFileName), string(mime), statsFile); in Java_com_android_media_benchmark_library_Native_Extract()
DNativeEncoder.cpp45 const char *mime = env->GetStringUTFChars(jMime, nullptr); in Java_com_android_media_benchmark_library_Native_Encode() local
76 const_cast<char *>(mime)); in Java_com_android_media_benchmark_library_Native_Encode()
86 if (!strncmp(mime, "video/", 6)) { in Java_com_android_media_benchmark_library_Native_Encode()
107 env->ReleaseStringUTFChars(jMime, mime); in Java_com_android_media_benchmark_library_Native_Encode()
/frameworks/av/media/tests/benchmark/tests/
DEncoderTest.cpp102 const char *mime = nullptr; in TEST_P() local
103 AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime); in TEST_P()
104 ASSERT_NE(mime, nullptr) << "Invalid mime type"; in TEST_P()
108 if (!strncmp(mime, "video/", 6)) { in TEST_P()
115 if (!strcmp(mime, "video/3gpp") || !strcmp(mime, "video/mp4v-es")) { in TEST_P()
136 status = encoder->encode(codecName, eleStream, eleSize, asyncMode, encParams, (char *)mime); in TEST_P()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp223 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()
[all …]
/frameworks/av/cmds/stagefright/
Dstagefright.cpp188 const char *mime; in playSource() local
189 CHECK(meta->findCString(kKeyMIMEType, &mime)); in playSource()
192 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime)) { in playSource()
402 if (!strncasecmp("video/", mime, 6)) { in playSource()
413 } else if (!strncasecmp("audio/", mime, 6)) { in playSource()
453 const char *mime; in DetectSyncSource() local
454 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in DetectSyncSource()
456 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { in DetectSyncSource()
458 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4)) { in DetectSyncSource()
461 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_H263)) { in DetectSyncSource()
[all …]
/frameworks/av/media/libmedia/
DIMediaExtractorService.cpp43 virtual sp<IMediaExtractor> makeExtractor(const sp<IDataSource> &source, const char *mime) { in makeExtractor() argument
47 if (mime != NULL) { in makeExtractor()
48 data.writeCString(mime); in makeExtractor()
113 const char *mime = data.readCString(); in onTransact() local
114 sp<IMediaExtractor> ex = makeExtractor(source, mime); in onTransact()
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java718 final String mime = (String)map.get(MediaFormat.KEY_MIME); in isFormatSupported() local
721 if (mime != null && !mMime.equalsIgnoreCase(mime)) { in isFormatSupported()
955 String mime, int profile, int level) { in createFromProfileLevel() argument
960 defaultFormat.setString(MediaFormat.KEY_MIME, mime); in createFromProfileLevel()
1179 String mime = mParent.getMimeType(); in applyLevelLimits() local
1181 if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_MPEG)) { in applyLevelLimits()
1188 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in applyLevelLimits()
1192 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AMR_WB)) { in applyLevelLimits()
1196 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AAC)) { in applyLevelLimits()
1205 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_VORBIS)) { in applyLevelLimits()
[all …]
/frameworks/wilhelm/tests/listening/
DseekTorture.c60 SLDataFormat_MIME mime; in main() local
65 mime.formatType = SL_DATAFORMAT_MIME; in main()
66 mime.mimeType = (SLchar *) NULL; in main()
67 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in main()
69 audiosrc.pFormat = &mime; in main()
/frameworks/av/services/mediaanalytics/
Dstatsd_extractor.cpp64 std::string mime; in statsd_extractor() local
65 if (item->getString("android.media.mediaextractor.mime", &mime)) { in statsd_extractor()
66 metrics_proto.set_mime(std::move(mime)); in statsd_extractor()
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp248 const char *mime; in MatroskaSource() local
249 CHECK(AMediaFormat_getString(meta, AMEDIAFORMAT_KEY_MIME, &mime)); in MatroskaSource()
251 mIsAudio = !strncasecmp("audio/", mime, 6); in MatroskaSource()
253 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { in MatroskaSource()
262 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_HEVC)) { in MatroskaSource()
271 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) { in MatroskaSource()
273 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_MPEG)) { in MatroskaSource()
275 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_RAW)) { in MatroskaSource()
277 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { in MatroskaSource()
1255 static bool isMkvAudioCsdSizeOK(const char* mime, size_t csdSize) { in isMkvAudioCsdSizeOK() argument
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaCrypto.cpp101 bool JCrypto::requiresSecureDecoderComponent(const char *mime) const { in requiresSecureDecoderComponent()
106 return mCrypto->requiresSecureDecoderComponent(mime); in requiresSecureDecoderComponent()
271 const char *mime = env->GetStringUTFChars(mimeObj, NULL); in android_media_MediaCrypto_requiresSecureDecoderComponent() local
273 if (mime == NULL) { in android_media_MediaCrypto_requiresSecureDecoderComponent()
277 bool result = crypto->requiresSecureDecoderComponent(mime); in android_media_MediaCrypto_requiresSecureDecoderComponent()
279 env->ReleaseStringUTFChars(mimeObj, mime); in android_media_MediaCrypto_requiresSecureDecoderComponent()
280 mime = NULL; in android_media_MediaCrypto_requiresSecureDecoderComponent()
/frameworks/wilhelm/tests/mimeUri/
DslesTest_playStates.cpp58 SLDataFormat_MIME mime; in TestPlayUri() local
112 mime.formatType = SL_DATAFORMAT_MIME; in TestPlayUri()
115 mime.mimeType = (SLchar*)NULL; in TestPlayUri()
116 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestPlayUri()
118 audioSource.pFormat = (void*)&mime; in TestPlayUri()
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp77 string mime; member
203 string mime; member
284 configParam.mime = kInputData[inputIdx].mime; in getFileProperties()
285 size_t found = configParam.mime.find("audio/"); in getFileProperties()
619 const char *mime; in TEST_P() local
620 ASSERT_TRUE(AMediaFormat_getString(trackFormat, AMEDIAFORMAT_KEY_MIME, &mime)) in TEST_P()
624 if (!strncmp(mime, "image/", 6)) continue; in TEST_P()
637 if (!strcmp(mime, "audio/opus")) { in TEST_P()
773 const char *mime; in TEST_P() local
774 ASSERT_TRUE(AMediaFormat_getString(trackMeta, AMEDIAFORMAT_KEY_MIME, &mime)) in TEST_P()
[all …]

12345678