Home
last modified time | relevance | path

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

1234

/cts/tests/media/src/android/mediav2/cts/
DCodecUnitTest.java78 String mime = MediaFormat.MIMETYPE_AUDIO_AAC; in getSampleAudioFormat() local
79 format.setString(MediaFormat.KEY_MIME, mime); in getSampleAudioFormat()
88 String mime = MediaFormat.MIMETYPE_VIDEO_AVC; in getSampleVideoFormat() local
89 format.setString(MediaFormat.KEY_MIME, mime); in getSampleVideoFormat()
108 String mime = format.getString(MediaFormat.KEY_MIME); in testConfigureCodecForIncompleteFormat() local
110 mCodec = MediaCodec.createEncoderByType(mime); in testConfigureCodecForIncompleteFormat()
112 mCodec = MediaCodec.createDecoderByType(mime); in testConfigureCodecForIncompleteFormat()
140 String mime = format.getString(MediaFormat.KEY_MIME); in testConfigureCodecForBadFlags() local
142 mCodec = MediaCodec.createEncoderByType(mime); in testConfigureCodecForBadFlags()
144 mCodec = MediaCodec.createDecoderByType(mime); in testConfigureCodecForBadFlags()
[all …]
DCodecListTest.java48 for (String mime : cddRequiredMimeList) { in testCddRequiredCodecsAvailability()
50 isEncoder ? "encoder" : "decoder", mime); in testCddRequiredCodecsAvailability()
51 assertTrue(log, isEncoder ? CodecTestBase.hasEncoder(mime) : in testCddRequiredCodecsAvailability()
52 CodecTestBase.hasDecoder(mime)); in testCddRequiredCodecsAvailability()
DExtractorTest.java187 static private boolean shouldRunTest(String mime) { in shouldRunTest() argument
189 if ((extSel.contains("mp4") && codecListforTypeMp4.contains(mime)) || in shouldRunTest()
190 (extSel.contains("webm") && codecListforTypeWebm.contains(mime)) || in shouldRunTest()
191 (extSel.contains("3gp") && codecListforType3gp.contains(mime)) || in shouldRunTest()
192 (extSel.contains("mkv") && codecListforTypeMkv.contains(mime)) || in shouldRunTest()
193 (extSel.contains("ogg") && codecListforTypeOgg.contains(mime)) || in shouldRunTest()
194 (extSel.contains("ts") && codecListforTypeTs.contains(mime)) || in shouldRunTest()
195 (extSel.contains("ps") && codecListforTypePs.contains(mime)) || in shouldRunTest()
196 (extSel.contains("raw") && codecListforTypeRaw.contains(mime)) || in shouldRunTest()
197 (extSel.contains("wav") && codecListforTypeWav.contains(mime)) || in shouldRunTest()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DDecoderConformanceTest.java106 private List<String> readCodecTestVectors(String mime) throws Exception { in readCodecTestVectors() argument
107 String tag = MIMETYPE_TO_TAG.get(mime); in readCodecTestVectors()
112 private List<String> readVectorMD5Sums(String mime, String vectorName) throws Exception { in readVectorMD5Sums() argument
113 String tag = MIMETYPE_TO_TAG.get(mime); in readVectorMD5Sums()
136 protected static AssetFileDescriptor getAssetFileDescriptorFor(final String res, String mime) in getAssetFileDescriptorFor() argument
138 String tag = MIMETYPE_TO_TAG.get(mime); in getAssetFileDescriptorFor()
146 private Status decodeTestVector(String mime, String decoderName, String vectorName) in decodeTestVector() argument
148 AssetFileDescriptor testFd = getAssetFileDescriptorFor(vectorName, mime); in decodeTestVector()
156 MediaCodecInfo.CodecCapabilities caps = codecInfo.getCapabilitiesForType(mime); in decodeTestVector()
163 frameMD5Sums = readVectorMD5Sums(mime, vectorName); in decodeTestVector()
[all …]
DMediaCodecCapabilitiesTest.java332 private boolean checkDecoder(String mime, int profile, int level) { in checkDecoder() argument
333 if (!hasDecoder(mime, profile, level)) { in checkDecoder()
334 MediaUtils.skipTest(TAG, "no " + mime + " decoder for profile " in checkDecoder()
341 private boolean hasDecoder(String mime, int profile, int level) { in hasDecoder() argument
342 return supports(mime, false /* isEncoder */, profile, level, false /* defaultOnly */); in hasDecoder()
345 private boolean hasEncoder(String mime, int profile, int level) { in hasEncoder() argument
346 return supports(mime, true /* isEncoder */, profile, level, false /* defaultOnly */); in hasEncoder()
351 private boolean checkDecodeWithDefaultPlayer(String mime, int profile, int level) { in checkDecodeWithDefaultPlayer() argument
352 if (!supports(mime, false /* isEncoder */, profile, level, true /* defaultOnly */)) { in checkDecodeWithDefaultPlayer()
360 String mime, boolean isEncoder, int profile, int level, in supports() argument
[all …]
DMediaCodecClearKeyPlayer.java219 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() local
220 if (!mime.startsWith("audio/")) { in prepareAudio()
224 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio()
265 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo() local
266 if (!mime.startsWith("video/")) { in prepareVideo()
272 Log.d(TAG, "video track #" + i + " " + format + " " + mime + in prepareVideo()
310 String mime = format.getString(android.media.MediaFormat.KEY_MIME); in initCasAndDescrambler() local
311 Log.d(TAG, "track "+ trackId + ": " + mime); in initCasAndDescrambler()
312 if (MediaFormat.MIMETYPE_VIDEO_SCRAMBLED.equals(mime) || in initCasAndDescrambler()
313 MediaFormat.MIMETYPE_AUDIO_SCRAMBLED.equals(mime)) { in initCasAndDescrambler()
[all …]
DMediaCodecTunneledPlayer.java128 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() local
130 if (!mime.startsWith("audio/")) { in prepareAudio()
134 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio()
162 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo() local
164 if (!mime.startsWith("video/")) { in prepareVideo()
170 Log.d(TAG, "video track #" + i + " " + format + " " + mime + in prepareVideo()
240 String mime = format.getString(MediaFormat.KEY_MIME); in addTrack() local
241 boolean isVideo = mime.startsWith("video/"); in addTrack()
242 boolean isAudio = mime.startsWith("audio/"); in addTrack()
252 Log.e(TAG,"addTrack - Could not find Tunneled playback codec for "+mime+ in addTrack()
[all …]
DMediaDrmTest.java167 for (String mime : new String[]{"audio/mp4", "video/mp4"}) { in testRequiresSecureDecoder()
168 if (!MediaDrm.isCryptoSchemeSupported(scheme, mime, level)) { in testRequiresSecureDecoder()
173 boolean supported1 = crypto.requiresSecureDecoderComponent(mime); in testRequiresSecureDecoder()
176 supported2 = drm.requiresSecureDecoder(mime); in testRequiresSecureDecoder()
178 supported2 = drm.requiresSecureDecoder(mime, level); in testRequiresSecureDecoder()
DCodecState.java106 String mime = mFormat.getString(MediaFormat.KEY_MIME); in CodecState() local
107 Log.d(TAG, "CodecState::CodecState " + mime); in CodecState()
108 mIsAudio = mime.startsWith("audio/"); in CodecState()
335 String mime = mOutputFormat.getString(MediaFormat.KEY_MIME); in onOutputFormatChanged() local
337 Log.d(TAG, "CodecState::onOutputFormatChanged " + mime); in onOutputFormatChanged()
340 if (mime.startsWith("audio/")) { in onOutputFormatChanged()
363 if (mime.startsWith("video/")) { in onOutputFormatChanged()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaPerfUtils.java57 String mime = configFormat.getString(MediaFormat.KEY_MIME); in addPerformanceHeadersToLog() local
63 log.addValue("mime_type", mime, ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog()
77 MediaUtils.getVideoCapabilities(codecName, mime) in addPerformanceHeadersToLog()
150 String name, String mime, int w, int h, double... measuredFps) { in verifyAchievableFrameRates() argument
152 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in verifyAchievableFrameRates()
153 String kind = "achievable frame rates for " + name + " " + mime + " " + w + "x" + h; in verifyAchievableFrameRates()
161 Log.d(TAG, name + " " + mime + " " + w + "x" + h + in verifyAchievableFrameRates()
189 String name, String mime, int w, int h, double... requestedFps) { in areAchievableFrameRates() argument
191 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in areAchievableFrameRates()
192 String kind = "achievable frame rates for " + name + " " + mime + " " + w + "x" + h; in areAchievableFrameRates()
[all …]
DMediaUtils.java226 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames() local
230 caps = info.getCapabilitiesForType(mime); in getCodecNames()
261 public static String[] getDecoderNamesForMime(String mime) { in getDecoderNamesForMime() argument
263 format.setString(MediaFormat.KEY_MIME, mime); in getDecoderNamesForMime()
267 public static String[] getEncoderNamesForMime(String mime) { in getEncoderNamesForMime() argument
269 format.setString(MediaFormat.KEY_MIME, mime); in getEncoderNamesForMime()
332 String mime = format.getString(MediaFormat.KEY_MIME); in canDecode() local
362 mci.getCapabilitiesForType(mime).getVideoCapabilities(); in canDecode()
378 decoder, mime, width, height, rate); in canDecode()
388 public static boolean supports(String codecName, String mime, int w, int h) { in supports() argument
[all …]
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreIntentsTest.java125 for (String mime : mimes) { in testViewImageFile()
129 intent.setDataAndType(uri, mime); in testViewImageFile()
144 for (String mime : mimes) { in testViewVideoFile()
148 intent.setDataAndType(uri, mime); in testViewVideoFile()
163 for (String mime : mimes) { in testViewAudioFile()
167 intent.setDataAndType(uri, mime); in testViewAudioFile()
/cts/tests/video/src/android/video/cts/
DCodecPerformanceTestBase.java144 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
146 return selectCodecs(mime, formats, features, isEncoder, SELECT_ALL); in selectCodecs()
149 static ArrayList<String> selectHardwareCodecs(String mime, ArrayList<MediaFormat> formats, in selectHardwareCodecs() argument
151 return selectCodecs(mime, formats, features, isEncoder, SELECT_HARDWARE); in selectHardwareCodecs()
154 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
168 if (type.equalsIgnoreCase(mime)) { in selectCodecs()
270 int getMaxOperatingRate(String codecName, String mime) throws IOException { in getMaxOperatingRate() argument
274 .getCapabilitiesForType(mime).getVideoCapabilities() in getMaxOperatingRate()
292 int getEncoderMinComplexity(String codecName, String mime) throws IOException { in getEncoderMinComplexity() argument
298 .getCapabilitiesForType(mime).getEncoderCapabilities() in getEncoderMinComplexity()
[all …]
/cts/tests/mediapc/src/android/mediapc/cts/
DMultiDecoderPerfTest.java60 for (String mime : mMimeList) { in inputParams()
61 ArrayList<String> listOfDecoders = getHardwareCodecsFor720p(mime, false); in inputParams()
64 argsList.add(new Object[]{mime, mTestFiles.get(mime), decoder, isAsync}); in inputParams()
DMultiCodecPerfTestBase.java77 public MultiCodecPerfTestBase(String mime, String testFile, boolean isAsync) { in MultiCodecPerfTestBase() argument
78 mMime = mime; in MultiCodecPerfTestBase()
84 public static ArrayList<String> getHardwareCodecsFor720p(String mime, boolean isEncoder) { in getHardwareCodecsFor720p() argument
85 MediaFormat fmt = MediaFormat.createVideoFormat(mime, 1280, 720); in getHardwareCodecsFor720p()
89 return selectHardwareCodecs(mime, formatsList, null, isEncoder); in getHardwareCodecsFor720p()
DMultiTranscoderPerfTest.java72 for (String mime : mMimeList) { in inputParams()
73 ArrayList<String> listOfDecoders = getHardwareCodecsFor720p(mime, false); in inputParams()
75 mimeTypeDecoderPairs.add(Pair.create(mime, decoder)); in inputParams()
77 ArrayList<String> listOfEncoders = getHardwareCodecsFor720p(mime, true); in inputParams()
79 mimeTypeEncoderPairs.add(Pair.create(mime, encoder)); in inputParams()
DCodecTestBase.java335 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
337 return selectCodecs(mime, formats, features, isEncoder, SELECT_ALL); in selectCodecs()
340 static ArrayList<String> selectHardwareCodecs(String mime, ArrayList<MediaFormat> formats, in selectHardwareCodecs() argument
342 return selectCodecs(mime, formats, features, isEncoder, SELECT_HARDWARE); in selectHardwareCodecs()
345 static ArrayList<String> selectCodecs(String mime, ArrayList<MediaFormat> formats, in selectCodecs() argument
359 if (type.equalsIgnoreCase(mime)) { in selectCodecs()
398 CodecDecoderTestBase(String mime, String testFile) { in CodecDecoderTestBase() argument
399 mMime = mime; in CodecDecoderTestBase()
493 CodecEncoderTestBase(String mime) { in CodecEncoderTestBase() argument
494 mMime = mime; in CodecEncoderTestBase()
[all …]
DMultiEncoderPerfTest.java60 for (String mime : mMimeList) { in inputParams()
61 ArrayList<String> listOfEncoders = getHardwareCodecsFor720p(mime, true); in inputParams()
64 argsList.add(new Object[]{mime, encoder, isAsync}); in inputParams()
DMultiEncoderPairPerfTest.java63 for (String mime : mMimeList) { in inputParams()
64 ArrayList<String> listOfEncoders = getHardwareCodecsFor720p(mime, true); in inputParams()
66 mimeTypeEncoderPairs.add(Pair.create(mime, encoder)); in inputParams()
/cts/tests/media/jni/
DNativeExtractorTest.cpp66 const char* mime, int sampleLimit = INT32_MAX) { in isMediaSimilar() argument
76 if (!hasKey || (mime != nullptr && strcmp(refMime, mime) != 0)) { in isMediaSimilar()
96 ALOGD(" Mime: %s mismatch for sample: %d", mime, frameCount); in isMediaSimilar()
107 ALOGD("Mime: %s Size exp/got: %d / %zd ", mime, refSampleInfo.size, refSz); in isMediaSimilar()
114 ALOGD("Mime: %s Size exp/got: %d / %zd ", mime, testSampleInfo.size, testSz); in isMediaSimilar()
120 ALOGD("Mime: %s TrackID exp/got: %zu / %d", mime, refTrackID, trackIndex); in isMediaSimilar()
126 ALOGD("Mime: %s TrackID exp/got %zd / %d : ", mime, testTrackID, trackIndex); in isMediaSimilar()
131 ALOGD("Mime: %s Mismatch in sample data", mime); in isMediaSimilar()
138 ALOGD("Mime: %s Mismatch in sampleCount", mime); in isMediaSimilar()
144 ALOGD("Mime: %s calls post advance() are not OK", mime); in isMediaSimilar()
[all …]
DNativeCodecUnitTest.cpp38 NativeCodecUnitTest(const char* mime);
97 NativeCodecUnitTest::NativeCodecUnitTest(const char* mime) : CodecTestBase(mime) { in NativeCodecUnitTest() argument
144 const char* mime = nullptr; in setupCodec() local
145 AMediaFormat_getString(mFormat, AMEDIAFORMAT_KEY_MIME, &mime); in setupCodec()
146 mCodec = isEncoder ? AMediaCodec_createEncoderByType(mime) in setupCodec()
147 : AMediaCodec_createDecoderByType(mime); in setupCodec()
149 ALOGE("unable to create codec %s", mime); in setupCodec()
205 const char* mime = isAudio ? AMEDIA_MIMETYPE_AUDIO_AAC : AMEDIA_MIMETYPE_VIDEO_AVC; in testConfigureCodecForIncompleteFormat() local
206 mCodec = isEncoder ? AMediaCodec_createEncoderByType(mime) in testConfigureCodecForIncompleteFormat()
207 : AMediaCodec_createDecoderByType(mime); in testConfigureCodecForIncompleteFormat()
[all …]
/cts/tests/tests/graphics/jni/
DMediaTestHelpers.cpp111 const char *mime; in createMediaCodec() local
114 ASSERT(AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)); in createMediaCodec()
116 if (!strncmp(mime, "video/", 6)) { in createMediaCodec()
124 mCodec = AMediaCodec_createDecoderByType(mime); in createMediaCodec()
/cts/tests/tests/media/libaudiojni/
Dappendix-b-1-2-recording.cpp149 mime.formatType = SL_DATAFORMAT_MIME; in TestAudioRecording()
150 mime.mimeType = (SLchar *) "audio/x-wav"; in TestAudioRecording()
151 mime.containerType = SL_CONTAINERTYPE_WAV; in TestAudioRecording()
153 audioSink.pFormat = (void *)&mime; in TestAudioRecording()
/cts/tests/tests/media/libmediandkjni/
Dnative_media_decoder_source.cpp93 const char *mime; in setDataSourceFd() local
100 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) { in setDataSourceFd()
105 } else if (!strncmp(mime, "video/", 6)) { in setDataSourceFd()
108 mMime = mime; in setDataSourceFd()
111 ALOGE("expected video mime type, got %s", mime); in setDataSourceFd()
/cts/tests/tests/mimemap/
DOWNERS2 include platform/frameworks/base:/mime/OWNERS

1234