/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecCapabilitiesTest.java | 311 private boolean checkDecoder(String mime, int profile, int level) { in checkDecoder() argument 312 if (!hasDecoder(mime, profile, level)) { in checkDecoder() 313 MediaUtils.skipTest(TAG, "no " + mime + " decoder for profile " in checkDecoder() 320 private boolean hasDecoder(String mime, int profile, int level) { in hasDecoder() argument 321 return supports(mime, false /* isEncoder */, profile, level); in hasDecoder() 324 private boolean hasEncoder(String mime, int profile, int level) { in hasEncoder() argument 325 return supports(mime, true /* isEncoder */, profile, level); in hasEncoder() 329 String mime, boolean isEncoder, int profile, int level) { in supports() argument 336 CodecCapabilities caps = info.getCapabilitiesForType(mime); in supports() 344 if (mime.equalsIgnoreCase(MIMETYPE_VIDEO_H263)) { in supports() [all …]
|
D | DecoderConformanceTest.java | 106 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 …private Status decodeTestVector(String mime, String decoderName, String vectorName) throws Excepti… in decodeTestVector() argument 148 MediaCodecInfo.CodecCapabilities caps = codecInfo.getCapabilitiesForType(mime); in decodeTestVector() 161 frameMD5Sums = readVectorMD5Sums(mime, vectorName); in decodeTestVector() 243 void decodeTestVectors(String mime, boolean isGoog) throws Exception { in decodeTestVectors() argument 245 format.setString(MediaFormat.KEY_MIME, mime); in decodeTestVectors() 248 List<String> testVectors = readCodecTestVectors(mime); in decodeTestVectors() [all …]
|
D | MediaCodecClearKeyPlayer.java | 173 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() local 174 if (!mime.startsWith("audio/")) { in prepareAudio() 178 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio() 211 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo() local 212 if (!mime.startsWith("video/")) { in prepareVideo() 218 Log.d(TAG, "video track #" + i + " " + format + " " + mime + in prepareVideo() 315 String mime = format.getString(MediaFormat.KEY_MIME); in addTrack() local 316 boolean isVideo = mime.startsWith("video/"); in addTrack() 317 boolean isAudio = mime.startsWith("audio/"); in addTrack() 321 if (encrypted && mCrypto.requiresSecureDecoderComponent(mime)) { in addTrack() [all …]
|
D | MediaCodecTunneledPlayer.java | 124 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() local 126 if (!mime.startsWith("audio/")) { in prepareAudio() 130 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio() 158 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo() local 160 if (!mime.startsWith("video/")) { in prepareVideo() 166 Log.d(TAG, "video track #" + i + " " + format + " " + mime + in prepareVideo() 236 String mime = format.getString(MediaFormat.KEY_MIME); in addTrack() local 237 boolean isVideo = mime.startsWith("video/"); in addTrack() 238 boolean isAudio = mime.startsWith("audio/"); in addTrack() 248 Log.e(TAG,"addTrack - Could not find Tunneled playback codec for "+mime+ in addTrack() [all …]
|
D | CodecState.java | 84 String mime = mFormat.getString(MediaFormat.KEY_MIME); in CodecState() local 85 Log.d(TAG, "CodecState::onOutputFormatChanged " + mime); in CodecState() 86 mIsAudio = mime.startsWith("audio/"); in CodecState() 275 String mime = mOutputFormat.getString(MediaFormat.KEY_MIME); in onOutputFormatChanged() local 277 Log.d(TAG, "CodecState::onOutputFormatChanged " + mime); in onOutputFormatChanged() 280 if (mime.startsWith("audio/")) { in onOutputFormatChanged() 303 if (mime.startsWith("video/")) { in onOutputFormatChanged()
|
D | MediaCodecTest.java | 473 for (String mime : mimes) { in testReleaseAfterFlush() 474 if (!MediaUtils.checkEncoder(mime)) { in testReleaseAfterFlush() 477 testReleaseAfterFlush(mime); in testReleaseAfterFlush() 481 private void testReleaseAfterFlush(String mime) throws IOException, InterruptedException { in testReleaseAfterFlush() argument 487 MediaCodec encoder = MediaCodec.createEncoderByType(mime); in testReleaseAfterFlush() 488 runReleaseAfterFlush(mime, encoder, buffersExhausted, codecFlushed, numBuffers); in testReleaseAfterFlush() 491 encoder = MediaCodec.createEncoderByType(mime); in testReleaseAfterFlush() 497 runReleaseAfterFlush(mime, encoder, buffersExhausted, codecFlushed, numBuffers); in testReleaseAfterFlush() 510 encoder = MediaCodec.createEncoderByType(mime); in testReleaseAfterFlush() 514 … new ReleaseAfterFlushCallback(mime, encoder, buffersExhausted, codecFlushed, nBuffs); in testReleaseAfterFlush() [all …]
|
D | NativeDecoderTest.java | 147 String mime = format.getString(MediaFormat.KEY_MIME); in getSampleSizes() local 148 if (mime.startsWith("audio/")) { in getSampleSizes() 153 } else if (mime.startsWith("video/")) { in getSampleSizes() 159 fail("unexpected mime type: " + mime); in getSampleSizes() 241 String mime = format[i].getString(MediaFormat.KEY_MIME); in getDecodedData() local 242 if (mime.startsWith("audio/") || mime.startsWith("video/")) { in getDecodedData() 243 codec[i] = MediaCodec.createDecoderByType(mime); in getDecodedData() 250 fail("unexpected mime type: " + mime); in getDecodedData()
|
D | MediaCodecListTest.java | 79 AudioCodec(String mime, boolean isEncoder, int sampleRate) { in AudioCodec() argument 80 super(mime, isEncoder, MediaFormat.createAudioFormat( in AudioCodec() 81 mime, sampleRate, 1 /* channelCount */)); in AudioCodec() 86 VideoCodec(String mime, boolean isEncoder) { in VideoCodec() argument 88 super(mime, isEncoder, MediaFormat.createVideoFormat( in VideoCodec() 89 mime, 176 /* width */, 144 /* height */)); in VideoCodec()
|
D | DecoderTest.java | 240 String mime = format.getString(MediaFormat.KEY_MIME); in testBFrames() local 241 assertTrue("not a video track. Wrong test file?", mime.startsWith("video/")); in testBFrames() 247 MediaCodec dec = MediaCodec.createDecoderByType(mime); in testBFrames() 1255 String mime = format.getString(MediaFormat.KEY_MIME); 1256 assertTrue("not an audio file", mime.startsWith("audio/")); 1259 codec = MediaCodec.createDecoderByType(mime); 1261 configFormat = MediaFormat.createAudioFormat(mime, 1944 String mime, int width, int height, float rate, int profile, int level, int bitrate) { 1946 baseFormat.setString(MediaFormat.KEY_MIME, mime); 1949 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); [all …]
|
D | AdaptivePlaybackTest.java | 1403 public CodecFamily(Context context, String mime, String explicitCodecName, int ... resources) { 1410 assert media.getMime().equals(mime): 1412 " mime type instead of " + mime; 1432 if (type.equals(mime)) { 1439 codecInfo.getCapabilitiesForType(mime), 1463 public CodecByName(Context context, String mime, String codecName, int ... resources) { 1464 for (Codec c: new CodecFamily(context, mime, codecName, resources)) { 1475 Context context, String mime, String exceptCodecName, int ... resources) { 1476 for (Codec c: new CodecFamily(context, mime, null, resources)) { 1496 Context context, String mime, String googleCodecName, int ...resources) { [all …]
|
D | VideoEncoderTest.java | 150 String mime = mFormat.getString(MediaFormat.KEY_MIME); in playAll() local 158 CodecCapabilities caps = info.getCapabilitiesForType(mime); in playAll() 228 String mime = fmt.getString(MediaFormat.KEY_MIME).toLowerCase(); in open() local 229 if (mime.startsWith("video/")) { in open() 846 Encoder(String name, String mime, CodecCapabilities caps) { in Encoder() argument 848 mMime = mime; in Encoder() 1130 private Encoder[] goog(String mime) { in goog() argument 1131 return encoders(mime, true /* goog */); in goog() 1134 private Encoder[] other(String mime) { in other() argument 1135 return encoders(mime, false /* goog */); in other() [all …]
|
D | ImageReaderDecoderTest.java | 138 public MediaAssets(String mime, MediaAsset... assets) { in MediaAssets() argument 139 mMime = mime; in MediaAssets() 317 String mime = assets.getMime(); in decoders() local 328 caps = info.getCapabilitiesForType(mime); in decoders() 332 assertNotNull(info.getName() + " capabilties for " + mime + " returned null", caps); in decoders()
|
D | VideoDecoderPerfTest.java | 84 String mime = format.getString(MediaFormat.KEY_MIME); in decode() local 104 MediaPerfUtils.verifyAchievableFrameRates(name, mime, width, height, measuredFps); in decode() 119 String mime = format.getString(MediaFormat.KEY_MIME); in doDecode() local 151 … VideoCapabilities cap = codec.getCodecInfo().getCapabilitiesForType(mime).getVideoCapabilities(); in doDecode()
|
D | ClearKeySystemTest.java | 290 public boolean isResolutionSupported(String mime, String[] features, in isResolutionSupported() argument 310 MediaFormat format = MediaFormat.createVideoFormat(mime, videoWidth, videoHeight); in isResolutionSupported()
|
D | EncoderTest.java | 146 String mime, List<MediaFormat> formatList) { in testEncoderWithFormats() argument 157 assertEquals(mime, format.getString(MediaFormat.KEY_MIME)); in testEncoderWithFormats()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | MediaUtils.java | 202 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames() local 206 caps = info.getCapabilitiesForType(mime); in getCodecNames() 277 public static boolean supports(String codecName, String mime, int w, int h) { in supports() argument 282 VideoCapabilities vidCap = getVideoCapabilities(codecName, mime); in supports() 302 String mime = format.getString(MediaFormat.KEY_MIME); in supports() local 305 cap = codec.getCodecInfo().getCapabilitiesForType(mime); in supports() 307 Log.w(TAG, "not supported mime: " + mime); in supports() 330 String mime = format.getString(MediaFormat.KEY_MIME).toLowerCase(); in hasCodecsForMedia() local 331 if (!mime.startsWith("audio/") && !mime.startsWith("video/")) { in hasCodecsForMedia() 348 String mime = format.getString(MediaFormat.KEY_MIME); in hasCodecForMediaAndDomain() local [all …]
|
D | MediaPerfUtils.java | 139 String name, String mime, int w, int h, double... measuredFps) { in verifyAchievableFrameRates() argument 141 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in verifyAchievableFrameRates() 142 String kind = "achievable frame rates for " + name + " " + mime + " " + w + "x" + h; in verifyAchievableFrameRates() 150 Log.d(TAG, name + " " + mime + " " + w + "x" + h + in verifyAchievableFrameRates()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStoreIntentsTest.java | 80 for (String mime : mimes) { in testViewImageFile() 84 intent.setDataAndType(uri, mime); in testViewImageFile() 98 for (String mime : mimes) { in testViewVideoFile() 102 intent.setDataAndType(uri, mime); in testViewVideoFile() 116 for (String mime : mimes) { in testViewAudioFile() 120 intent.setDataAndType(uri, mime); in testViewAudioFile()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 88 const char *mime; in testExtractor() local 89 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) { in testExtractor() 92 } else if (!strncmp(mime, "audio/", 6)) { in testExtractor() 102 } else if (!strncmp(mime, "video/", 6)) { in testExtractor() 113 ALOGE("expected audio or video mime type, got %s", mime); in testExtractor() 244 const char *mime; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local 245 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 248 } else if (!strncmp(mime, "audio/", 6) || !strncmp(mime, "video/", 6)) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 249 codec[i] = AMediaCodec_createDecoderByType(mime); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 255 ALOGE("expected audio or video mime type, got %s", mime); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() [all …]
|
/cts/tools/cts-media/ |
D | get_achievable_rates.py | 68 self.mime = None 76 return None not in (self.codec, self.mime, self.size) 209 self.mime = fmt['mime'] 220 self.mime = result['EncOutputFormat']['mime'] 243 self.mime = result['mime'] 254 self.mime = result['mime'] 347 … lambda e: Comp(is_decoder=e.is_decoder, google='.google.' in e.codec, mime=e.mime, name=e.codec)) 355 yield ' <MediaCodec name="%s" type="%s" update="true">' % (comp.name, comp.mime)
|
/cts/tests/tests/media/libaudiojni/ |
D | appendix-b-1-2-recording.cpp | 149 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/drm/src/android/drm/cts/ |
D | DrmSupportInfoTest.java | 141 String mime = (String) mimes.next(); in checkAddValidMimeType() local 142 assertEquals(mime, mimeType); in checkAddValidMimeType()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 357 String mime = format.getString(MediaFormat.KEY_MIME); in doStagefrightTestMediaCodec() local 363 MediaCodecInfo.CodecCapabilities caps = info.getCapabilitiesForType(mime); in doStagefrightTestMediaCodec() 373 Log.w(TAG, "no codecs for track " + t + ", type " + mime); in doStagefrightTestMediaCodec() 382 if (mime.startsWith("video/")) { in doStagefrightTestMediaCodec()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 1035 String mime = format.getString(MediaFormat.KEY_MIME); in setup() local 1039 if (mime.startsWith("video/")) { in setup() 1042 decoder = MediaCodec.createDecoderByType(mime); in setup()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | RecordingTest.java | 1251 String mime = format.getString(MediaFormat.KEY_MIME); in validateRecording() local 1252 if (mime.contains(VIDEO_MIME_TYPE)) { in validateRecording()
|