/frameworks/base/mime/java-res/ |
D | vendor.mime.types | 10 # (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/ |
D | Android.bp | 63 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/av/media/libmediaplayerservice/ |
D | StagefrightMetadataRetriever.cpp | 116 const sp<DataSource>& source, const char *mime) { in setDataSource() argument 121 mExtractor = MediaExtractorFactory::Create(mSource, mime); in setDataSource() 176 const char *mime; in getImageInternal() local 177 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getImageInternal() 179 if (!strncasecmp(mime, "image/", 6)) { in getImageInternal() 210 const char *mime; in getImageInternal() local 211 CHECK(trackMeta->findCString(kKeyMIMEType, &mime)); in getImageInternal() 212 ALOGV("extracting from %s track", mime); in getImageInternal() 213 if (!strcasecmp(mime, MEDIA_MIMETYPE_IMAGE_ANDROID_HEIC)) { in getImageInternal() 214 mime = MEDIA_MIMETYPE_VIDEO_HEVC; in getImageInternal() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | MediaMimeTest.java | 116 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/services/mediaextractor/ |
D | MediaExtractorService.cpp | 42 const ::std::unique_ptr< ::std::string> &mime, in makeExtractor() 44 ALOGV("@@@ MediaExtractorService::makeExtractor for %s", mime.get()->c_str()); in makeExtractor() 51 mime.get() ? mime.get()->c_str() : nullptr); in makeExtractor() 58 registerMediaExtractor(extractor, localSource, mime.get() ? mime.get()->c_str() : nullptr); in makeExtractor()
|
/frameworks/av/media/libstagefright/ |
D | MediaCodecListOverrides.cpp | 91 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() 288 AString mime; in codecResultsToXml() local [all …]
|
D | Utils.cpp | 896 const char *mime; in convertMetaDataToMessage() local 897 if (!meta->findCString(kKeyMIMEType, &mime)) { in convertMetaDataToMessage() 902 msg->setString("mime", mime); in convertMetaDataToMessage() 934 if (!strncasecmp("video/scrambled", mime, 15) in convertMetaDataToMessage() 935 || !strncasecmp("audio/scrambled", mime, 15)) { in convertMetaDataToMessage() 967 if (!strncasecmp("video/", mime, 6) || in convertMetaDataToMessage() 968 !strncasecmp("image/", mime, 6)) { in convertMetaDataToMessage() 992 if (!strncasecmp("image/", mime, 6)) { in convertMetaDataToMessage() 1047 } else if (!strncasecmp("audio/", mime, 6)) { in convertMetaDataToMessage() 1381 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4)) { in convertMetaDataToMessage() [all …]
|
D | MediaExtractorFactory.cpp | 44 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() 62 mime ? std::make_unique<std::string>(mime) : nullptr, in Create() 74 const sp<DataSource> &source, const char *mime) { in CreateFromService() argument 76 ALOGV("MediaExtractorFactory::CreateFromService %s", mime); in CreateFromService() 371 const char* mime = (*it)->def.u.v3.supported_types[i]; in dump() local 372 if (mime == nullptr) { in dump() 375 out.appendFormat("%s ", mime); in dump()
|
/frameworks/av/drm/common/ |
D | DrmEngineBase.cpp | 124 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/ |
D | Encoder.java | 79 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()
|
D | Decoder.java | 64 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/media/tests/benchmark/src/native/common/ |
D | BenchmarkCommon.cpp | 66 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/ |
D | NativeExtractor.cpp | 50 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()
|
D | NativeEncoder.cpp | 125 const char *mime = nullptr; in Java_com_android_media_benchmark_library_Native_Encode() local 126 AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime); in Java_com_android_media_benchmark_library_Native_Encode() 127 if (!mime) { in Java_com_android_media_benchmark_library_Native_Encode() 150 if (!strncmp(mime, "video/", 6)) { in Java_com_android_media_benchmark_library_Native_Encode() 157 if (!strcmp(mime, "video/3gpp") || !strcmp(mime, "video/mp4v-es")) { in Java_com_android_media_benchmark_library_Native_Encode() 176 (char *)mime); in Java_com_android_media_benchmark_library_Native_Encode()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | EncoderTest.java | 165 String mime = format.getString(MediaFormat.KEY_MIME); in testEncoder() local 166 ArrayList<String> mediaCodecs = CodecUtils.selectCodecs(mime, true); in testEncoder() 168 currentTrack + " mime: " + mime, (mediaCodecs.size() > 0)); in testEncoder() 190 if (mime.startsWith("video/")) { in testEncoder() 201 if (mime.contains("video/3gpp") || mime.contains("video/mp4v-es")) { in testEncoder() 227 if (mime.startsWith("video/")) { in testEncoder() 229 encodeFormat = MediaFormat.createVideoFormat(mime, width, height); in testEncoder() 238 encodeFormat = MediaFormat.createAudioFormat(mime, sampleRate, numChannels); in testEncoder() 244 status = encoder.encode(codecName, encodeFormat, mime, frameRate, sampleRate, in testEncoder() 288 String mime = format.getString(MediaFormat.KEY_MIME); in testNativeEncoder() local [all …]
|
/frameworks/av/media/tests/benchmark/tests/ |
D | EncoderTest.cpp | 97 const char *mime = nullptr; in TEST_P() local 98 AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime); in TEST_P() 99 ASSERT_NE(mime, nullptr) << "Invalid mime type"; in TEST_P() 103 if (!strncmp(mime, "video/", 6)) { in TEST_P() 110 if (!strcmp(mime, "video/3gpp") || !strcmp(mime, "video/mp4v-es")) { in TEST_P() 130 status = encoder->encode(codecName, eleStream, eleSize, asyncMode, encParams, (char *)mime); in TEST_P()
|
/frameworks/wilhelm/tests/listening/ |
D | seekTorture.c | 60 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/cmds/stagefright/ |
D | stagefright.cpp | 188 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/libmediaplayerservice/nuplayer/ |
D | GenericSource.cpp | 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() [all …]
|
/frameworks/av/services/mediametrics/ |
D | statsd_extractor.cpp | 64 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/base/media/java/android/media/ |
D | MediaCodecInfo.java | 752 final String mime = (String)map.get(MediaFormat.KEY_MIME); in isFormatSupported() local 755 if (mime != null && !mMime.equalsIgnoreCase(mime)) { in isFormatSupported() 995 String mime, int profile, int level) { in createFromProfileLevel() argument 1000 defaultFormat.setString(MediaFormat.KEY_MIME, mime); in createFromProfileLevel() 1219 String mime = mParent.getMimeType(); in applyLevelLimits() local 1221 if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_MPEG)) { in applyLevelLimits() 1228 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in applyLevelLimits() 1232 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AMR_WB)) { in applyLevelLimits() 1236 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AAC)) { in applyLevelLimits() 1245 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_VORBIS)) { in applyLevelLimits() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaCrypto.cpp | 87 bool JCrypto::requiresSecureDecoderComponent(const char *mime) const { in requiresSecureDecoderComponent() 92 return mCrypto->requiresSecureDecoderComponent(mime); in requiresSecureDecoderComponent() 257 const char *mime = env->GetStringUTFChars(mimeObj, NULL); in android_media_MediaCrypto_requiresSecureDecoderComponent() local 259 if (mime == NULL) { in android_media_MediaCrypto_requiresSecureDecoderComponent() 263 bool result = crypto->requiresSecureDecoderComponent(mime); in android_media_MediaCrypto_requiresSecureDecoderComponent() 265 env->ReleaseStringUTFChars(mimeObj, mime); in android_media_MediaCrypto_requiresSecureDecoderComponent() 266 mime = NULL; in android_media_MediaCrypto_requiresSecureDecoderComponent()
|
/frameworks/av/media/extractors/mkv/ |
D | MatroskaExtractor.cpp | 248 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() 1264 static bool isMkvAudioCsdSizeOK(const char* mime, size_t csdSize) { in isMkvAudioCsdSizeOK() argument [all …]
|
/frameworks/av/media/libstagefright/id3/test/ |
D | ID3Test.cpp | 110 String8 mime; in TEST_P() local 111 const void *data = tag.getAlbumArt(&dataSize, &mime); in TEST_P() 115 ALOGV("Found album art: size = %zu mime = %s \n", dataSize, mime.string()); in TEST_P() 145 String8 mime; in TEST_P() local 146 const void *data = tag.getAlbumArt(&dataSize, &mime); in TEST_P() 148 ALOGV("Found album art: size = %zu mime = %s \n", dataSize, mime.string()); in TEST_P()
|
/frameworks/wilhelm/tests/mimeUri/ |
D | slesTest_playStates.cpp | 58 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()
|