/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecCapabilitiesTest.java | 308 private boolean checkDecoder(String mime, int profile, int level) { in checkDecoder() argument 309 if (!hasDecoder(mime, profile, level)) { in checkDecoder() 310 MediaUtils.skipTest(TAG, "no " + mime + " decoder for profile " in checkDecoder() 317 private boolean hasDecoder(String mime, int profile, int level) { in hasDecoder() argument 318 return supports(mime, false /* isEncoder */, profile, level); in hasDecoder() 321 private boolean hasEncoder(String mime, int profile, int level) { in hasEncoder() argument 322 return supports(mime, true /* isEncoder */, profile, level); in hasEncoder() 326 String mime, boolean isEncoder, int profile, int level) { in supports() argument 333 CodecCapabilities caps = info.getCapabilitiesForType(mime); in supports() 341 if (mime.equalsIgnoreCase(MIMETYPE_VIDEO_H263)) { in supports() [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 | MediaCodecCencPlayer.java | 162 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() local 164 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio() 197 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo() local 201 Log.d(TAG, "video track #" + i + " " + format + " " + mime + in prepareVideo() 285 String mime = format.getString(MediaFormat.KEY_MIME); in addTrack() local 286 boolean isVideo = mime.startsWith("video/"); in addTrack() 287 boolean isAudio = mime.startsWith("audio/"); in addTrack() 291 if (encrypted && mCrypto.requiresSecureDecoderComponent(mime)) { in addTrack() 293 getSecureDecoderNameForMime(mime)); in addTrack() 295 codec = MediaCodec.createDecoderByType(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() 270 String mime = mOutputFormat.getString(MediaFormat.KEY_MIME); in onOutputFormatChanged() local 272 Log.d(TAG, "CodecState::onOutputFormatChanged " + mime); in onOutputFormatChanged() 274 if (mime.startsWith("audio/")) { in onOutputFormatChanged() 296 if (mime.startsWith("video/")) { in onOutputFormatChanged()
|
D | VideoDecoderPerfTest.java | 81 private static String[] getDecoderName(String mime, boolean isGoog) { in getDecoderName() argument 91 caps = info.getCapabilitiesForType(mime); in getDecoderName() 100 private void decode(String mime, int video, int width, int height, in decode() argument 102 String[] names = getDecoderName(mime, isGoog); in decode() 104 if (!MediaUtils.supports(name, mime, width, height)) { in decode() 129 MediaUtils.getAchievableFrameRatesFor(name, mime, width, height); in decode() 151 String mime = format.getString(MediaFormat.KEY_MIME); in doDecode() local 179 … VideoCapabilities cap = codec.getCodecInfo().getCapabilitiesForType(mime).getVideoCapabilities(); in doDecode() 281 " mime=" + mime + " round=" + round + in doDecode() 301 return MediaUtils.verifyResults(name, mime, w, h, fps); in doDecode()
|
D | EncoderTest.java | 122 String mime, List<MediaFormat> formats) { in testEncoderWithFormats() argument 123 List<String> componentNames = getEncoderNamesForType(mime); in testEncoderWithFormats() 129 assertEquals(mime, format.getString(MediaFormat.KEY_MIME)); in testEncoderWithFormats() 135 private List<String> getEncoderNamesForType(String mime) { in getEncoderNamesForType() argument 144 if (type.equalsIgnoreCase(mime)) { in getEncoderNamesForType()
|
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 | 216 String mime = format.getString(MediaFormat.KEY_MIME); in testBFrames() local 217 assertTrue("not a video track. Wrong test file?", mime.startsWith("video/")); in testBFrames() 223 MediaCodec dec = MediaCodec.createDecoderByType(mime); in testBFrames() 628 String mime = format.getString(MediaFormat.KEY_MIME); in decodeToMemory() local 629 assertTrue("not an audio file", mime.startsWith("audio/")); in decodeToMemory() 632 codec = MediaCodec.createDecoderByType(mime); in decodeToMemory() 634 configFormat = MediaFormat.createAudioFormat(mime, in decodeToMemory() 1263 …private static void verifySecureVideoDecodeSupport(String mime, int width, int height, float rate)… in verifySecureVideoDecodeSupport() argument 1265 baseFormat.setString(MediaFormat.KEY_MIME, mime); in verifySecureVideoDecodeSupport() 1268 MediaFormat format = MediaFormat.createVideoFormat(mime, width, height); in verifySecureVideoDecodeSupport() [all …]
|
D | AdaptivePlaybackTest.java | 1382 public CodecFamily(Context context, String mime, String explicitCodecName, int ... resources) { 1389 assert media.getMime().equals(mime): 1391 " mime type instead of " + mime; 1411 if (type.equals(mime)) { 1418 codecInfo.getCapabilitiesForType(mime), 1442 public CodecByName(Context context, String mime, String codecName, int ... resources) { 1443 for (Codec c: new CodecFamily(context, mime, codecName, resources)) { 1454 Context context, String mime, String exceptCodecName, int ... resources) { 1455 for (Codec c: new CodecFamily(context, mime, null, resources)) { 1475 Context context, String mime, String googleCodecName, int ...resources) { [all …]
|
D | VideoEncoderTest.java | 146 String mime = mFormat.getString(MediaFormat.KEY_MIME); in playAll() local 154 CodecCapabilities caps = info.getCapabilitiesForType(mime); in playAll() 197 String mime = fmt.getString(MediaFormat.KEY_MIME).toLowerCase(); in open() local 198 if (mime.startsWith("video/")) { in open() 775 Encoder(String name, String mime, CodecCapabilities caps) { in Encoder() argument 777 mMime = mime; in Encoder() 992 private Encoder[] goog(String mime) { in goog() argument 993 return encoders(mime, true /* goog */); in goog() 996 private Encoder[] other(String mime) { in other() argument 997 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 | MediaPlayerTest.java | 1131 String mime = format.getString(MediaFormat.KEY_MIME); 1132 if (MediaPlayer.MEDIA_MIMETYPE_TEXT_SUBRIP.equals(mime)) {
|
D | Vp8CodecTestBase.java | 128 String mime = format.getString(MediaFormat.KEY_MIME); in getVpxCodecProperties() local 147 if (!type.equalsIgnoreCase(mime)) { in getVpxCodecProperties()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | MediaUtils.java | 171 public static boolean supports(String codecName, String mime, int w, int h) { in supports() argument 181 cap = codec.getCodecInfo().getCapabilitiesForType(mime); in supports() 183 Log.w(TAG, "not supported mime: " + mime); in supports() 220 String mime = format.getString(MediaFormat.KEY_MIME).toLowerCase(); in hasCodecsForMedia() local 221 if (!mime.startsWith("audio/") && !mime.startsWith("video/")) { in hasCodecsForMedia() 238 String mime = format.getString(MediaFormat.KEY_MIME); in hasCodecForMediaAndDomain() local 239 if (mime.toLowerCase().startsWith(mimePrefix)) { in hasCodecForMediaAndDomain() 340 private static boolean hasCodecForMime(boolean encoder, String mime) { in hasCodecForMime() argument 347 if (type.equalsIgnoreCase(mime)) { in hasCodecForMime() 348 Log.i(TAG, "found codec " + info.getName() + " for mime " + mime); in hasCodecForMime() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStoreIntentsTest.java | 77 for (String mime : mimes) { in testViewImageFile() 81 intent.setDataAndType(uri, mime); in testViewImageFile() 95 for (String mime : mimes) { in testViewVideoFile() 99 intent.setDataAndType(uri, mime); in testViewVideoFile() 113 for (String mime : mimes) { in testViewAudioFile() 117 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/tests/tests/media/libaudiojni/ |
D | appendix-b-1-2-recording.cpp | 60 SLDataFormat_MIME mime; in TestAudioRecording() local 151 mime.formatType = SL_DATAFORMAT_MIME; in TestAudioRecording() 152 mime.mimeType = (SLchar *) "audio/x-wav"; in TestAudioRecording() 153 mime.containerType = SL_CONTAINERTYPE_WAV; in TestAudioRecording() 155 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/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/ |
D | VideoEncoderDecoderTest.java | 145 private String getEncoderName(String mime) { in getEncoderName() argument 146 return getCodecName(mime, true /* isEncoder */); in getEncoderName() 149 private String getDecoderName(String mime) { in getDecoderName() argument 150 return getCodecName(mime, false /* isEncoder */); in getDecoderName() 153 private String getCodecName(String mime, boolean isEncoder) { in getCodecName() argument 161 caps = info.getCapabilitiesForType(mime); in getCodecName() 170 private String[] getEncoderName(String mime, boolean isGoog) { in getEncoderName() argument 171 return getCodecName(mime, isGoog, true /* isEncoder */); in getEncoderName() 174 private String[] getDecoderName(String mime, boolean isGoog) { in getDecoderName() argument 175 return getCodecName(mime, isGoog, false /* isEncoder */); in getDecoderName() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 1027 String mime = format.getString(MediaFormat.KEY_MIME); in setup() local 1031 if (mime.startsWith("video/")) { in setup() 1034 decoder = MediaCodec.createDecoderByType(mime); in setup()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | RecordingTest.java | 1184 String mime = format.getString(MediaFormat.KEY_MIME); in validateRecording() local 1185 if (mime.contains(VIDEO_MIME_TYPE)) { in validateRecording()
|