/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/tests/media/src/android/media/cts/ |
D | MediaCodecTest.java | 493 MediaCodec encoder = null; in testCreateInputSurfaceErrors() local 503 encoder = MediaCodec.createByCodecName(codecInfo.getName()); in testCreateInputSurfaceErrors() 508 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors() 513 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in testCreateInputSurfaceErrors() 514 encoder.start(); in testCreateInputSurfaceErrors() 516 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors() 522 if (encoder != null) { in testCreateInputSurfaceErrors() 523 encoder.stop(); in testCreateInputSurfaceErrors() 524 encoder.release(); in testCreateInputSurfaceErrors() 543 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 | 405 MediaCodec encoder = null; in encodeDecodeVideoFromBuffer() local 431 encoder = MediaCodec.createByCodecName(codec); in encodeDecodeVideoFromBuffer() 433 int colorFormat = selectColorFormat(encoder.getCodecInfo(), mMimeType); in encodeDecodeVideoFromBuffer() 444 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeDecodeVideoFromBuffer() 445 encoder.start(); in encodeDecodeVideoFromBuffer() 452 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer() 455 if (encoder != null) { in encodeDecodeVideoFromBuffer() 456 encoder.stop(); in encodeDecodeVideoFromBuffer() 457 encoder.release(); in encodeDecodeVideoFromBuffer() 475 MediaCodecWrapper encoder = null; in encodeDecodeVideoFromSurfaceToSurface() local [all …]
|
D | EncodeVirtualDisplayTest.java | 214 MediaCodec encoder = null; in encodeVirtualDisplayTest() local 236 encoder = MediaCodec.createByCodecName(codec); in encodeVirtualDisplayTest() 237 encoder.configure(encoderFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in encodeVirtualDisplayTest() 238 Surface inputSurface = encoder.createInputSurface(); in encodeVirtualDisplayTest() 239 encoder.start(); in encodeVirtualDisplayTest() 257 doTestEncodeVirtual(encoder, decoder, outputSurface); in encodeVirtualDisplayTest() 267 if (encoder != null) { in encodeVirtualDisplayTest() 268 encoder.stop(); in encodeVirtualDisplayTest() 269 encoder.release(); in encodeVirtualDisplayTest() 281 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 | 1987 for (Encoder encoder: encoders) { in extreme() 1988 if (encoder.testExtreme(x, y, flexYUV, near)) { in extreme() 2003 for (Encoder encoder: encoders) { in arbitrary() 2004 if (encoder.testArbitrary(flexYUV, widths)) { in arbitrary() 2028 for (Encoder encoder : encoders) { in specific() 2029 if (encoder.testSpecific(width, height, flexYUV)) { in specific() 2045 for (Encoder encoder : encoders) { in intraRefresh() 2046 if (encoder.testIntraRefresh(width, height)) { in intraRefresh() 2064 for (Encoder encoder : encoders) { in detailed() 2065 if (encoder.testSupport(width, height, frameRate, bitRate)) { in detailed() [all …]
|
D | EncodeVirtualDisplayWithCompositionTestImpl.java | 1496 MediaCodec encoder = null; in isConcurrentEncodingDecodingSupported() local 1516 encoder = MediaCodec.createEncoderByType(mimeType); in isConcurrentEncodingDecodingSupported() 1517 encoder.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in isConcurrentEncodingDecodingSupported() 1518 encodingSurface = encoder.createInputSurface(); in isConcurrentEncodingDecodingSupported() 1519 encoder.start(); in isConcurrentEncodingDecodingSupported() 1521 encoder.stop(); in isConcurrentEncodingDecodingSupported() 1531 if (encoder != null) { in isConcurrentEncodingDecodingSupported() 1532 encoder.release(); in isConcurrentEncodingDecodingSupported()
|
D | MediaCodecBlockModelTest.java | 876 boolean encoder, in runComponentWithLinearInput() argument 917 if (encoder) { in runComponentWithLinearInput() 966 private static boolean supportsCodec(String mimeType, boolean encoder) { in supportsCodec() argument 969 if (encoder != info.isEncoder()) { in supportsCodec()
|
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/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-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/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | IdentityCredentialAuthentication.java | 315 CborEncoder encoder = new CborEncoder(baos); in createItemsRequest() local 317 encoder.encode(builder.build()); in createItemsRequest()
|
/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/tests/tests/identity/src/android/security/identity/cts/ |
D | Util.java | 98 CborEncoder encoder = new CborEncoder(baos); in canonicalizeCbor() local 99 encoder.encode(dataItem); in canonicalizeCbor() 290 CborEncoder encoder = new CborEncoder(baos); in encodeCbor() local 292 encoder.encode(dataItems); in encodeCbor() 1233 CborEncoder encoder = new CborEncoder(baos); in createItemsRequest() local 1235 encoder.encode(builder.build()); in createItemsRequest()
|