/cts/tests/media/src/android/mediav2/cts/ |
D | CodecUnitTest.java | 160 void tryConfigureCodecInInvalidState(MediaFormat format, boolean isAsync, String msg) { in tryConfigureCodecInInvalidState() argument 162 configureCodec(format, isAsync, false, true); in tryConfigureCodecInInvalidState() 459 for (boolean isAsync : boolStates) { in testConfigureInInitState() 460 configureCodec(format, isAsync, false, true); in testConfigureInInitState() 462 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureInInitState() 476 for (boolean isAsync : boolStates) { in testConfigureAfterStart() 477 configureCodec(format, isAsync, false, true); in testConfigureAfterStart() 480 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureAfterStart() 496 for (boolean isAsync : boolStates) { in testConfigureAfterQueueInputBuffer() 497 configureCodec(format, isAsync, false, true); in testConfigureAfterQueueInputBuffer() [all …]
|
D | CodecDecoderSurfaceTest.java | 162 for (boolean isAsync : boolStates) { in testSimpleDecodeToSurface() 164 mTestFile, (isAsync ? "async" : "sync")); in testSimpleDecodeToSurface() 168 configureCodec(format, isAsync, true, false); in testSimpleDecodeToSurface() 229 for (boolean isAsync : boolStates) { in testFlush() 231 mTestFile, (isAsync ? "async" : "sync")); in testFlush() 233 configureCodec(format, isAsync, true, false); in testFlush() 324 for (boolean isAsync : boolStates) { in testReconfigure() 327 mTestFile, (isAsync ? "async" : "sync")); in testReconfigure() 329 configureCodec(format, isAsync, true, false); in testReconfigure() 332 reConfigureCodec(format, !isAsync, false, false); in testReconfigure() [all …]
|
D | CodecEncoderTest.java | 67 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument 68 super.resetContext(isAsync, signalEOSWithLastFrame); in resetContext() 180 for (boolean isAsync : boolStates) { in testSimpleEncode() 183 format, mCodecName, mInputFile, (isAsync ? "async" : "sync"), in testSimpleEncode() 189 configureCodec(format, isAsync, eosType, true); in testSimpleEncode() 334 for (boolean isAsync : boolStates) { in testFlush() 336 mInputFile, (isAsync ? "async" : "sync")); in testFlush() 337 configureCodec(inpFormat, isAsync, true, true); in testFlush() 460 for (boolean isAsync : boolStates) { in testReconfigure() 462 mInputFile, (isAsync ? "async" : "sync")); in testReconfigure() [all …]
|
D | CodecDecoderTest.java | 225 for (boolean isAsync : boolStates) { in testSimpleDecode() 228 mCodecName, mTestFile, (isAsync ? "async" : "sync"), in testSimpleDecode() 233 configureCodec(format, isAsync, eosType, false); in testSimpleDecode() 318 for (boolean isAsync : boolStates) { in testFlush() 320 mTestFile, (isAsync ? "async" : "sync")); in testFlush() 322 configureCodec(format, isAsync, true, false); in testFlush() 445 for (boolean isAsync : boolStates) { in testReconfigure() 448 mTestFile, (isAsync ? "async" : "sync")); in testReconfigure() 450 configureCodec(format, isAsync, true, false); in testReconfigure() 461 reConfigureCodec(format, !isAsync, false, false); in testReconfigure() [all …]
|
D | CodecDecoderPauseTest.java | 91 final boolean isAsync = true; in testPause() 101 mTestFile, (isAsync ? "async" : "sync")); in testPause() 103 configureCodec(format, isAsync, false, false); in testPause()
|
D | CodecEncoderSurfaceTest.java | 153 private void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument 156 mIsCodecInAsyncMode = isAsync; in resetContext() 166 private void configureCodec(MediaFormat decFormat, MediaFormat encFormat, boolean isAsync, in configureCodec() argument 168 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec() 169 mAsyncHandleEncoder.setCallBack(mEncoder, isAsync); in configureCodec() 177 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec() 466 for (boolean isAsync : boolStates) { in testSimpleEncodeFromSurface() 483 configureCodec(decoderFormat, encoderFormat, isAsync, false); in testSimpleEncodeFromSurface() 507 encoderFormat, mCompName, mTestFile, (isAsync ? "async" : "sync")); in testSimpleEncodeFromSurface()
|
D | EncodeDecodeAccuracyTest.java | 191 private void resetContext(boolean isAsync) { in resetContext() argument 192 super.resetContext(isAsync, false); in resetContext() 205 private void configureCodec(MediaFormat encFormat, boolean isAsync) { in configureCodec() argument 206 resetContext(isAsync); in configureCodec() 207 mAsyncHandleEncoder.setCallBack(mEncoder, isAsync); in configureCodec() 446 final boolean isAsync = true; in testEncodeDecodeAccuracyRGB() 466 configureCodec(formats.get(0), isAsync); in testEncodeDecodeAccuracyRGB()
|
/cts/tests/media/jni/ |
D | NativeCodecUnitTest.cpp | 256 for (auto isAsync : boolStates) { in testConfigureInInitState() local 257 if (!configureCodec(mFormat, isAsync, true, isEncoder)) return false; in testConfigureInInitState() 273 for (auto isAsync : boolStates) { in testConfigureInRunningState() local 274 if (!configureCodec(mFormat, isAsync, false, isEncoder)) return false; in testConfigureInRunningState() 312 for (auto isAsync : boolStates) { in testConfigureInUnInitState() local 313 if (!configureCodec(mFormat, isAsync, false, isEncoder)) return false; in testConfigureInUnInitState() 328 for (auto isAsync : boolStates) { in testDequeueInputBufferInInitState() local 329 if (!configureCodec(mFormat, isAsync, false, isEncoder)) return false; in testDequeueInputBufferInInitState() 345 for (auto isAsync : boolStates) { in testDequeueInputBufferInRunningState() local 346 if (!configureCodec(mFormat, isAsync, false, isEncoder)) return false; in testDequeueInputBufferInRunningState() [all …]
|
D | NativeCodecEncoderTest.cpp | 59 void resetContext(bool isAsync, bool signalEOSWithLastFrame) override; 205 void CodecEncoderTest::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument 206 CodecTestBase::resetContext(isAsync, signalEOSWithLastFrame); in resetContext() 410 for (auto isAsync : boolStates) { in testSimpleEncode() local 416 (isAsync ? "async" : "sync"), in testSimpleEncode() 441 if (!configureCodec(format, isAsync, eosType, true)) return false; in testSimpleEncode() 477 for (auto isAsync : boolStates) { in testFlush() local 482 encoder, srcPath, (isAsync ? "async" : "sync")); in testFlush() 492 if (!configureCodec(format, isAsync, true, true)) return false; in testFlush() 586 for (auto isAsync : boolStates) { in testReconfigure() local [all …]
|
D | NativeCodecDecoderTest.cpp | 48 bool configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame, 155 bool CodecDecoderTest::configureCodec(AMediaFormat* format, bool isAsync, in configureCodec() argument 157 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec() 158 CHECK_STATUS(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec() 312 for (auto isAsync : boolStates) { in testSimpleDecode() local 317 decoder, testFile, (isAsync ? "async" : "sync"), in testSimpleDecode() 342 if (!configureCodec(mInpDecFormat, isAsync, eosType, false)) return false; in testSimpleDecode() 435 for (auto isAsync : boolStates) { in testFlush() local 439 (isAsync ? "async" : "sync")); in testFlush() 449 if (!configureCodec(mInpDecFormat, isAsync, true, false)) return false; in testFlush() [all …]
|
D | NativeCodecEncoderSurfaceTest.cpp | 63 bool configureCodec(bool isAsync, bool signalEOSWithLastFrame); 64 void resetContext(bool isAsync, bool signalEOSWithLastFrame); 166 bool CodecEncoderSurfaceTest::configureCodec(bool isAsync, bool signalEOSWithLastFrame) { in configureCodec() argument 167 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec() 168 CHECK_STATUS(mAsyncHandleEncoder.setCallBack(mEncoder, isAsync), in configureCodec() 178 CHECK_STATUS(mAsyncHandleDecoder.setCallBack(mDecoder, isAsync), in configureCodec() 185 void CodecEncoderSurfaceTest::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument 188 mIsCodecInAsyncMode = isAsync; in resetContext() 516 for (bool isAsync : boolStates) { in testSimpleEncode() local 566 AMediaFormat_toString(mEncFormat), encoder, srcPath, (isAsync ? "async" : "sync")); in testSimpleEncode()
|
D | NativeCodecTestBase.h | 150 virtual bool configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame, 153 bool reConfigureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame, 155 virtual void resetContext(bool isAsync, bool signalEOSWithLastFrame);
|
D | NativeCodecTestBase.cpp | 358 bool CodecTestBase::configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame, in configureCodec() argument 360 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec() 361 CHECK_STATUS(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec() 381 bool CodecTestBase::reConfigureCodec(AMediaFormat* format, bool isAsync, in reConfigureCodec() argument 384 return configureCodec(format, isAsync, signalEOSWithLastFrame, isEncoder); in reConfigureCodec() 387 void CodecTestBase::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument 389 mIsCodecInAsyncMode = isAsync; in resetContext()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | MultiEncoderPerfTest.java | 49 public MultiEncoderPerfTest(String mimeType, String encoderName, boolean isAsync) { in MultiEncoderPerfTest() argument 50 super(mimeType, null, isAsync); in MultiEncoderPerfTest() 63 for (boolean isAsync : boolStates) { in inputParams() 64 argsList.add(new Object[]{mime, encoder, isAsync}); in inputParams()
|
D | MultiDecoderPerfTest.java | 49 boolean isAsync) { in MultiDecoderPerfTest() argument 50 super(mimeType, testFile, isAsync); in MultiDecoderPerfTest() 63 for (boolean isAsync : boolStates) { in inputParams() 64 argsList.add(new Object[]{mime, mTestFiles.get(mime), decoder, isAsync}); in inputParams()
|
D | CodecTranscoderTestBase.java | 97 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument 100 mIsCodecInAsyncMode = isAsync; in resetContext() 110 void configureCodec(MediaFormat decFormat, MediaFormat encFormat, boolean isAsync, in configureCodec() argument 112 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec() 113 mAsyncHandleEncoder.setCallBack(mEncoder, isAsync); in configureCodec() 121 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec() 367 boolean isAsync) { in Transcode() argument 371 mIsAsync = isAsync; in Transcode() 425 void configureCodec(MediaFormat decFormat, MediaFormat encFormat, boolean isAsync, in configureCodec() argument 429 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec() [all …]
|
D | MultiEncoderPairPerfTest.java | 50 boolean isAsync) { in MultiEncoderPairPerfTest() argument 51 super(null, null, isAsync); in MultiEncoderPairPerfTest() 73 for (boolean isAsync : boolStates) { in inputParams() 74 argsList.add(new Object[]{pair1, pair2, isAsync}); in inputParams()
|
D | MultiDecoderPairPerfTest.java | 52 boolean isAsync) { in MultiDecoderPairPerfTest() argument 53 super(null, null, isAsync); in MultiDecoderPairPerfTest() 75 for (boolean isAsync : boolStates) { in inputParams() 76 argsList.add(new Object[]{pair1, pair2, isAsync}); in inputParams()
|
D | MultiTranscoderPerfTest.java | 59 Pair<String, String> encoderPair, boolean isAsync) { in MultiTranscoderPerfTest() argument 60 super(null, null, isAsync); in MultiTranscoderPerfTest() 84 for (boolean isAsync : boolStates) { in inputParams() 85 argsList.add(new Object[]{mimeTypeDecoderPair, mimeTypeEncoderPair, isAsync}); in inputParams()
|
D | FrameDropTest.java | 37 public FrameDropTest(String mimeType, String decoderName, boolean isAsync) { in FrameDropTest() argument 38 super(mimeType, decoderName, isAsync); in FrameDropTest()
|
D | AdaptivePlaybackFrameDropTest.java | 39 public AdaptivePlaybackFrameDropTest(String mimeType, String decoderName, boolean isAsync) { in AdaptivePlaybackFrameDropTest() argument 40 super(mimeType, decoderName, isAsync); in AdaptivePlaybackFrameDropTest()
|
D | CodecTestBase.java | 205 void configureCodec(MediaFormat format, boolean isAsync, boolean signalEOSWithLastFrame, in configureCodec() argument 207 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec() 208 mAsyncHandle.setCallBack(mCodec, isAsync); in configureCodec() 220 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument 222 mIsCodecInAsyncMode = isAsync; in resetContext() 509 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument 510 super.resetContext(isAsync, signalEOSWithLastFrame); in resetContext() 674 Decode(String mime, String testFile, String decoderName, boolean isAsync) { in Decode() argument 678 mIsAsync = isAsync; in Decode() 714 boolean isAsync) { in DecodeToSurface() argument [all …]
|
D | FrameDropTestBase.java | 128 public FrameDropTestBase(String mimeType, String decoderName, boolean isAsync) { in FrameDropTestBase() argument 131 mIsAsync = isAsync; in FrameDropTestBase() 147 for (boolean isAsync : boolStates) { in prepareArgumentsList() 148 argsList.add(new Object[]{mime, decoder, isAsync}); in prepareArgumentsList()
|
D | MultiCodecPerfTestBase.java | 79 public MultiCodecPerfTestBase(String mime, String testFile, boolean isAsync) { in MultiCodecPerfTestBase() argument 82 mIsAsync = isAsync; in MultiCodecPerfTestBase()
|
D | EncoderInitializationLatencyTest.java | 284 for (boolean isAsync : boolStates) { in testInitializationLatency() 286 new EncoderInitializationLatency(mMime, mEncoderName, isAsync); in testInitializationLatency() 326 EncoderInitializationLatency(String mime, String encoderName, boolean isAsync) { in EncoderInitializationLatency() argument 329 mIsAsync = isAsync; in EncoderInitializationLatency()
|