Home
last modified time | relevance | path

Searched refs:isAsync (Results 1 – 13 of 13) sorted by relevance

/cts/tests/media/src/android/mediav2/cts/
DCodecUnitTest.java160 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 …]
DCodecDecoderTest.java257 for (boolean isAsync : boolStates) { in testSimpleDecode()
260 decoder, mTestFile, (isAsync ? "async" : "sync"), in testSimpleDecode()
265 configureCodec(format, isAsync, eosType, false); in testSimpleDecode()
373 for (boolean isAsync : boolStates) { in testFlush()
375 mTestFile, (isAsync ? "async" : "sync")); in testFlush()
377 configureCodec(format, isAsync, true, false); in testFlush()
506 for (boolean isAsync : boolStates) { in testReconfigure()
509 mTestFile, (isAsync ? "async" : "sync")); in testReconfigure()
511 configureCodec(format, isAsync, true, false); in testReconfigure()
522 reConfigureCodec(format, !isAsync, false, false); in testReconfigure()
[all …]
DCodecEncoderTest.java75 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
76 super.resetContext(isAsync, signalEOSWithLastFrame); in resetContext()
290 for (boolean isAsync : boolStates) { in testSimpleEncode()
293 format, encoder, mInputFile, (isAsync ? "async" : "sync"), in testSimpleEncode()
298 configureCodec(format, isAsync, eosType, true); in testSimpleEncode()
378 for (boolean isAsync : boolStates) { in testFlush()
380 mInputFile, (isAsync ? "async" : "sync")); in testFlush()
381 configureCodec(inpFormat, isAsync, true, true); in testFlush()
504 for (boolean isAsync : boolStates) { in testReconfigure()
506 mInputFile, (isAsync ? "async" : "sync")); in testReconfigure()
[all …]
DCodecDecoderSurfaceTest.java211 for (boolean isAsync : boolStates) { in testSimpleDecodeToSurface()
213 (isAsync ? "async" : "sync")); in testSimpleDecodeToSurface()
217 configureCodec(format, isAsync, true, false); in testSimpleDecodeToSurface()
272 for (boolean isAsync : boolStates) { in testFlush()
274 mTestFile, (isAsync ? "async" : "sync")); in testFlush()
276 configureCodec(format, isAsync, true, false); in testFlush()
364 for (boolean isAsync : boolStates) { in testReconfigure()
367 mTestFile, (isAsync ? "async" : "sync")); in testReconfigure()
369 configureCodec(format, isAsync, true, false); in testReconfigure()
372 reConfigureCodec(format, !isAsync, false, false); in testReconfigure()
[all …]
DCodecEncoderSurfaceTest.java197 private void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
200 mIsCodecInAsyncMode = isAsync; in resetContext()
210 private void configureCodec(MediaFormat decFormat, MediaFormat encFormat, boolean isAsync, in configureCodec() argument
212 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
213 mAsyncHandleEncoder.setCallBack(mEncoder, isAsync); in configureCodec()
217 mAsyncHandleDecoder.setCallBack(mDecoder, isAsync); in configureCodec()
479 for (boolean isAsync : boolStates) { in testSimpleEncodeFromSurface()
496 configureCodec(decoderFormat, encoderFormat, isAsync, false); in testSimpleEncodeFromSurface()
520 encoderFormat, encoder, mTestFile, (isAsync ? "async" : "sync")); in testSimpleEncodeFromSurface()
DCodecTestBase.java595 void configureCodec(MediaFormat format, boolean isAsync, boolean signalEOSWithLastFrame, in configureCodec() argument
597 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
598 mAsyncHandle.setCallBack(mCodec, isAsync); in configureCodec()
627 void reConfigureCodec(MediaFormat format, boolean isAsync, boolean signalEOSWithLastFrame, in reConfigureCodec() argument
632 configureCodec(format, isAsync, signalEOSWithLastFrame, isEncoder); in reConfigureCodec()
635 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
637 mIsCodecInAsyncMode = isAsync; in resetContext()
1139 void resetContext(boolean isAsync, boolean signalEOSWithLastFrame) { in resetContext() argument
1140 super.resetContext(isAsync, signalEOSWithLastFrame); in resetContext()
DEncoderProfileLevelTest.java725 for (boolean isAsync : boolStates) { in testValidateProfileLevel()
726 configureCodec(format, isAsync, true, true); in testValidateProfileLevel()
737 (isAsync ? "async" : "sync")); in testValidateProfileLevel()
/cts/tests/media/jni/
DNativeCodecUnitTest.cpp256 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 …]
DNativeCodecDecoderTest.cpp46 bool configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame,
151 bool CodecDecoderTest::configureCodec(AMediaFormat* format, bool isAsync, in configureCodec() argument
153 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
154 CHECK_STATUS(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec()
297 for (auto isAsync : boolStates) { in testSimpleDecode() local
302 decoder, testFile, (isAsync ? "async" : "sync"), in testSimpleDecode()
327 if (!configureCodec(mInpDecFormat, isAsync, eosType, false)) return false; in testSimpleDecode()
406 for (auto isAsync : boolStates) { in testFlush() local
410 (isAsync ? "async" : "sync")); in testFlush()
420 if (!configureCodec(mInpDecFormat, isAsync, true, false)) return false; in testFlush()
[all …]
DNativeCodecEncoderTest.cpp59 void resetContext(bool isAsync, bool signalEOSWithLastFrame) override;
200 void CodecEncoderTest::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument
201 CodecTestBase::resetContext(isAsync, signalEOSWithLastFrame); in resetContext()
404 for (auto isAsync : boolStates) { in testSimpleEncode() local
410 (isAsync ? "async" : "sync"), in testSimpleEncode()
435 if (!configureCodec(format, isAsync, eosType, true)) return false; in testSimpleEncode()
471 for (auto isAsync : boolStates) { in testFlush() local
476 encoder, srcPath, (isAsync ? "async" : "sync")); in testFlush()
486 if (!configureCodec(format, isAsync, true, true)) return false; in testFlush()
580 for (auto isAsync : boolStates) { in testReconfigure() local
[all …]
DNativeCodecEncoderSurfaceTest.cpp62 bool configureCodec(bool isAsync, bool signalEOSWithLastFrame);
63 void resetContext(bool isAsync, bool signalEOSWithLastFrame);
163 bool CodecEncoderSurfaceTest::configureCodec(bool isAsync, bool signalEOSWithLastFrame) { in configureCodec() argument
164 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
165 CHECK_STATUS(mAsyncHandleEncoder.setCallBack(mEncoder, isAsync), in configureCodec()
172 CHECK_STATUS(mAsyncHandleDecoder.setCallBack(mDecoder, isAsync), in configureCodec()
179 void CodecEncoderSurfaceTest::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument
182 mIsCodecInAsyncMode = isAsync; in resetContext()
473 for (bool isAsync : boolStates) { in testSimpleEncode() local
523 AMediaFormat_toString(mEncFormat), encoder, srcPath, (isAsync ? "async" : "sync")); in testSimpleEncode()
DNativeCodecTestBase.cpp367 bool CodecTestBase::configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame, in configureCodec() argument
369 resetContext(isAsync, signalEOSWithLastFrame); in configureCodec()
370 CHECK_STATUS(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec()
390 bool CodecTestBase::reConfigureCodec(AMediaFormat* format, bool isAsync, in reConfigureCodec() argument
393 return configureCodec(format, isAsync, signalEOSWithLastFrame, isEncoder); in reConfigureCodec()
396 void CodecTestBase::resetContext(bool isAsync, bool signalEOSWithLastFrame) { in resetContext() argument
398 mIsCodecInAsyncMode = isAsync; in resetContext()
DNativeCodecTestBase.h147 virtual bool configureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame,
150 bool reConfigureCodec(AMediaFormat* format, bool isAsync, bool signalEOSWithLastFrame,
152 virtual void resetContext(bool isAsync, bool signalEOSWithLastFrame);