/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecTest.java | 362 MediaCodec encoder = null; in testCreateInputSurfaceErrors() local 372 encoder = MediaCodec.createByCodecName(codecInfo.getName()); in testCreateInputSurfaceErrors() 377 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors() 382 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in testCreateInputSurfaceErrors() 383 encoder.start(); in testCreateInputSurfaceErrors() 385 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors() 391 if (encoder != null) { in testCreateInputSurfaceErrors() 392 encoder.stop(); in testCreateInputSurfaceErrors() 393 encoder.release(); in testCreateInputSurfaceErrors() 412 MediaCodec encoder = null; in testSignalSurfaceEOS() local [all …]
|
D | DecodeEditEncodeTest.java | 191 MediaCodec encoder = null; in generateVideoFile() local 219 encoder = MediaCodec.createByCodecName(codecName); in generateVideoFile() 220 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in generateVideoFile() 221 inputSurface = new InputSurface(encoder.createInputSurface()); in generateVideoFile() 223 encoder.start(); in generateVideoFile() 225 generateVideoData(encoder, inputSurface, output); in generateVideoFile() 227 if (encoder != null) { in generateVideoFile() 229 encoder.stop(); in generateVideoFile() 230 encoder.release(); in generateVideoFile() 254 private void generateVideoData(MediaCodec encoder, InputSurface inputSurface, in generateVideoData() argument [all …]
|
D | EncodeDecodeTest.java | 403 MediaCodec encoder = null; in encodeDecodeVideoFromBuffer() local 429 encoder = MediaCodec.createByCodecName(codec); in encodeDecodeVideoFromBuffer() 431 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer() 442 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeDecodeVideoFromBuffer() 443 encoder.start(); in encodeDecodeVideoFromBuffer() 450 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer() 453 if (encoder != null) { in encodeDecodeVideoFromBuffer() 454 encoder.stop(); in encodeDecodeVideoFromBuffer() 455 encoder.release(); in encodeDecodeVideoFromBuffer() 473 MediaCodecWrapper encoder = null; in encodeDecodeVideoFromSurfaceToSurface() local [all …]
|
D | EncodeVirtualDisplayTest.java | 209 MediaCodec encoder = null; in encodeVirtualDisplayTest() local 231 encoder = MediaCodec.createByCodecName(codec); in encodeVirtualDisplayTest() 232 encoder.configure(encoderFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeVirtualDisplayTest() 233 Surface inputSurface = encoder.createInputSurface(); in encodeVirtualDisplayTest() 234 encoder.start(); in encodeVirtualDisplayTest() 252 doTestEncodeVirtual(encoder, decoder, outputSurface); in encodeVirtualDisplayTest() 262 if (encoder != null) { in encodeVirtualDisplayTest() 263 encoder.stop(); in encodeVirtualDisplayTest() 264 encoder.release(); in encodeVirtualDisplayTest() 276 private void doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder, in doTestEncodeVirtual() argument [all …]
|
D | ExtractDecodeEditEncodeMuxTest.java | 623 MediaCodec encoder = MediaCodec.createByCodecName(codecName); in createVideoEncoder() local 624 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createVideoEncoder() 626 surfaceReference.set(encoder.createInputSurface()); in createVideoEncoder() 627 encoder.start(); in createVideoEncoder() 628 return encoder; in createVideoEncoder() 652 MediaCodec encoder = MediaCodec.createByCodecName(codecName); in createAudioEncoder() local 653 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in createAudioEncoder() 654 encoder.start(); in createAudioEncoder() 655 return encoder; in createAudioEncoder()
|
D | VideoEncoderTest.java | 1938 for (Encoder encoder: encoders) { in extreme() 1939 if (encoder.testExtreme(x, y, flexYUV, near)) { in extreme() 1954 for (Encoder encoder: encoders) { in arbitrary() 1955 if (encoder.testArbitrary(flexYUV, widths)) { in arbitrary() 1979 for (Encoder encoder : encoders) { in specific() 1980 if (encoder.testSpecific(width, height, flexYUV)) { in specific() 1996 for (Encoder encoder : encoders) { in intraRefresh() 1997 if (encoder.testIntraRefresh(width, height)) { in intraRefresh() 2015 for (Encoder encoder : encoders) { in detailed() 2016 if (encoder.testSupport(width, height, frameRate, bitRate)) { in detailed() [all …]
|
D | EncodeVirtualDisplayWithCompositionTest.java | 1565 MediaCodec encoder = null; in isConcurrentEncodingDecodingSupported() local 1581 encoder = MediaCodec.createEncoderByType(MIME_TYPE);; in isConcurrentEncodingDecodingSupported() 1582 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in isConcurrentEncodingDecodingSupported() 1583 encodingSurface = encoder.createInputSurface(); in isConcurrentEncodingDecodingSupported() 1584 encoder.start(); in isConcurrentEncodingDecodingSupported() 1586 encoder.stop(); in isConcurrentEncodingDecodingSupported() 1596 if (encoder != null) { in isConcurrentEncodingDecodingSupported() 1597 encoder.release(); in isConcurrentEncodingDecodingSupported()
|
D | MediaCodecCapabilitiesTest.java | 469 CodecCapabilities caps, String mime, boolean encoder, int width, int height) { in createReasonableVideoFormat() argument 472 if (encoder) { in createReasonableVideoFormat()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecEncoderTest.java | 96 private void encodeToMemory(String file, String encoder, int frameLimit, MediaFormat format) in encodeToMemory() argument 102 mCodec = MediaCodec.createByCodecName(encoder); in encodeToMemory() 126 private static int findByteBufferColorFormat(String encoder, String mime) throws IOException { in findByteBufferColorFormat() argument 127 MediaCodec codec = MediaCodec.createByCodecName(encoder); in findByteBufferColorFormat() 271 for (String encoder : listOfEncoders) { in testSimpleEncode() 272 mCodec = MediaCodec.createByCodecName(encoder); in testSimpleEncode() 273 assertTrue("codec name act/got: " + mCodec.getName() + '/' + encoder, in testSimpleEncode() 274 mCodec.getName().equals(encoder)); in testSimpleEncode() 293 format, encoder, mInputFile, (isAsync ? "async" : "sync"), in testSimpleEncode() 297 validateMetrics(encoder); in testSimpleEncode() [all …]
|
D | EncoderColorAspectsTest.java | 164 for (String encoder : listOfEncoders) { in testColorAspects() 165 mCodec = MediaCodec.createByCodecName(encoder); in testColorAspects() 176 if (encoder.equals("c2.android.hevc.encoder") || in testColorAspects() 177 encoder.equals("OMX.google.h264.encoder") || in testColorAspects() 178 encoder.equals("c2.android.avc.encoder")) { in testColorAspects() 183 String log = String.format("format: %s \n codec: %s:: ", mConfigFormat, encoder); in testColorAspects()
|
D | CodecEncoderSurfaceTest.java | 471 for (String encoder : listOfEncoders) { in testSimpleEncodeFromSurface() 472 mEncoder = MediaCodec.createByCodecName(encoder); in testSimpleEncodeFromSurface() 520 encoderFormat, encoder, mTestFile, (isAsync ? "async" : "sync")); in testSimpleEncodeFromSurface() 559 private native boolean nativeTestSimpleEncode(String encoder, String decoder, String mime, in nativeTestSimpleEncode() argument 574 for (String encoder : listOfEncoders) { in testSimpleEncodeFromSurfaceNative() 583 nativeTestSimpleEncode(encoder, decoder, mMime, mInpPrefix + mTestFile, tmpPath, in testSimpleEncodeFromSurfaceNative()
|
D | EncoderProfileLevelTest.java | 699 for (String encoder : listOfEncoders) { in testValidateProfileLevel() 700 mCodec = MediaCodec.createByCodecName(encoder); in testValidateProfileLevel() 721 "Component: " + encoder + " doesn't support cdd format: " + format); in testValidateProfileLevel() 736 String.format("format: %s \n codec: %s, mode: %s:: ", format, encoder, in testValidateProfileLevel()
|
/cts/tests/media/jni/ |
D | NativeCodecEncoderTest.cpp | 63 bool encodeToMemory(const char* file, const char* encoder, int frameLimit, AMediaFormat* format, 74 bool testSimpleEncode(const char* encoder, const char* srcPath); 75 bool testFlush(const char* encoder, const char* srcPath); 76 bool testReconfigure(const char* encoder, const char* srcPath); 77 bool testSetForceSyncFrame(const char* encoder, const char* srcPath); 78 bool testAdaptiveBitRate(const char* encoder, const char* srcPath); 79 bool testOnlyEos(const char* encoder); 349 bool CodecEncoderTest::encodeToMemory(const char* file, const char* encoder, int32_t frameLimit, in encodeToMemory() argument 355 mCodec = AMediaCodec_createCodecByName(encoder); in encodeToMemory() 357 ALOGE("unable to create codec %s", encoder); in encodeToMemory() [all …]
|
D | NativeCodecEncoderSurfaceTest.cpp | 79 bool testSimpleEncode(const char* encoder, const char* decoder, const char* srcPath, 456 bool CodecEncoderSurfaceTest::testSimpleEncode(const char* encoder, const char* decoder, in testSimpleEncode() argument 482 mEncoder = AMediaCodec_createCodecByName(encoder); in testSimpleEncode() 485 ALOGE("unable to create media codec by name %s or %s", encoder, decoder); in testSimpleEncode() 523 AMediaFormat_toString(mEncFormat), encoder, srcPath, (isAsync ? "async" : "sync")); in testSimpleEncode()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 491 public static boolean hasCodecForDomain(boolean encoder, String domain) { in hasCodecForDomain() argument 493 if (encoder != info.isEncoder()) { in hasCodecForDomain() 507 public static boolean checkCodecForDomain(boolean encoder, String domain) { in checkCodecForDomain() argument 508 return check(hasCodecForDomain(encoder, domain), in checkCodecForDomain() 509 "no " + domain + (encoder ? " encoder" : " decoder") + " found"); in checkCodecForDomain() 512 private static boolean hasCodecForMime(boolean encoder, String mime) { in hasCodecForMime() argument 514 if (encoder != info.isEncoder()) { in hasCodecForMime() 528 private static boolean hasCodecForMimes(boolean encoder, String[] mimes) { in hasCodecForMimes() argument 530 if (!hasCodecForMime(encoder, mime)) { in hasCodecForMimes() 531 Log.i(TAG, "no " + (encoder ? "encoder" : "decoder") + " for mime " + mime); in hasCodecForMimes() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 570 public static boolean hasCodecForDomain(boolean encoder, String domain) { in hasCodecForDomain() argument 572 if (encoder != info.isEncoder()) { in hasCodecForDomain() 586 public static boolean checkCodecForDomain(boolean encoder, String domain) { in checkCodecForDomain() argument 587 return check(hasCodecForDomain(encoder, domain), in checkCodecForDomain() 588 "no " + domain + (encoder ? " encoder" : " decoder") + " found"); in checkCodecForDomain() 591 private static boolean hasCodecForMime(boolean encoder, String mime) { in hasCodecForMime() argument 593 if (encoder != info.isEncoder()) { in hasCodecForMime() 607 private static boolean hasCodecForMimes(boolean encoder, String[] mimes) { in hasCodecForMimes() argument 609 if (!hasCodecForMime(encoder, mime)) { in hasCodecForMimes() 610 Log.i(TAG, "no " + (encoder ? "encoder" : "decoder") + " for mime " + mime); in hasCodecForMimes() [all …]
|
/cts/tools/cts-media/ |
D | get_achievable_rates.py | 247 for mime, encoder, goog in sorted(set(self.kind.values())): 249 if self.kind[codec] != (mime, encoder, goog): 253 xmlInfo[dev][(not encoder, goog, mime, codec)][size].append(p95)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | IdentityCredentialAuthentication.java | 360 CborEncoder encoder = new CborEncoder(baos); in createItemsRequest() local 362 encoder.encode(builder.build()); in createItemsRequest()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | Util.java | 97 CborEncoder encoder = new CborEncoder(baos); in canonicalizeCbor() local 98 encoder.encode(dataItem); in canonicalizeCbor() 289 CborEncoder encoder = new CborEncoder(baos); in encodeCbor() local 291 encoder.encode(dataItems); in encodeCbor() 1237 CborEncoder encoder = new CborEncoder(baos); in createItemsRequest() local 1239 encoder.encode(builder.build()); in createItemsRequest()
|