Home
last modified time | relevance | path

Searched refs:mAsyncHandle (Results 1 – 16 of 16) sorted by relevance

/cts/tests/media/src/android/mediav2/cts/
DEncoderColorAspectsTest.java221 if (!mAsyncHandle.hasSeenError() && !mSawOutputEOS) { in tryEncoderOutput()
223 mAsyncHandle.waitOnFormatChange(); in tryEncoderOutput()
225 int actualLatency = mAsyncHandle.getOutputFormat() in tryEncoderOutput()
232 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getOutput(); in tryEncoderOutput()
243 if (!mAsyncHandle.hasSeenError() && !mSawInputEOS) { in queueEOS()
255 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS && in doWork()
DCodecUnitTest.java87 assertFalse(mAsyncHandle.hasSeenError()); in hasSeenError()
95 mAsyncHandle = new CodecAsyncHandlerMultiAccessUnits(); in setUpMultipleAccessUnitsAsyncHandle()
96 Object asyncHandle = mAsyncHandle; in setUpMultipleAccessUnitsAsyncHandle()
856 mAsyncHandle.isInputQueueEmpty()); in testFlushInRunningState()
860 mAsyncHandle.isInputQueueEmpty()); in testFlushInRunningState()
987 mAsyncHandle.setCallBack(mCodec, isAsync); in testSetCallBackInUnInitState()
997 mAsyncHandle.setCallBack(mCodec, !isAsync); in testSetCallBackInUnInitState()
1019 mAsyncHandle.setCallBack(mCodec, !isAsync); in testSetCallBackInInitState()
1029 mAsyncHandle.setCallBack(mCodec, isAsync); in testSetCallBackInInitState()
1051 mAsyncHandle.setCallBack(mCodec, !isAsync); in testSetCallBackInRunningState()
[all …]
DCodecEncoderMultiAccessUnitTest.java130 mAsyncHandle = new CodecAsyncHandlerMultiAccessUnits(); in CodecEncoderMultiAccessUnitTest()
143 Object asyncHandle = mAsyncHandle; in setUp()
DCodecEncoderBlockModelMultiAccessUnitTest.java133 mAsyncHandle = new CodecAsyncHandlerMultiAccessUnits(); in CodecEncoderBlockModelMultiAccessUnitTest()
146 Object asyncHandle = mAsyncHandle; in setUp()
DCodecDecoderDetachedSurfaceTest.java194 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS in doWork()
196 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getWork(); in doWork()
DCodecDecoderTest.java329 mIsCodecInAsyncMode ? mAsyncHandle.hasOutputFormatChanged() : in doOutputFormatChecks()
332 mIsCodecInAsyncMode ? mAsyncHandle.getOutputFormat() : mOutFormat; in doOutputFormatChecks()
/cts/tests/mediapc/src/android/mediapc/cts/
DCodecTestBase.java211 CodecAsyncHandler mAsyncHandle; field in CodecTestBase
297 mAsyncHandle.setCallBack(mCodec, isAsync); in configureCodec()
310 mAsyncHandle.resetContext(); in resetContext()
337 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS && frameCount < frameLimit) { in doWork()
338 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getWork(); in doWork()
374 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS) { in queueEOS()
375 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getWork(); in queueEOS()
406 while (!mAsyncHandle.hasSeenError() && !mSawOutputEOS) { in waitForAllOutputs()
407 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getOutput(); in waitForAllOutputs()
567 mAsyncHandle = new CodecAsyncHandler(); in CodecDecoderTestBase()
[all …]
DCodecInitializationLatencyTest.java470 mAsyncHandle.setCallBack(mCodec, mIsAsync); in calculateInitLatency()
478 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS) { in calculateInitLatency()
479 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getWork(); in calculateInitLatency()
573 mAsyncHandle.setCallBack(mCodec, mIsAsync); in calculateInitLatency()
581 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS) { in calculateInitLatency()
582 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getWork(); in calculateInitLatency()
/cts/tests/media/jni/
DNativeCodecTestBase.cpp442 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec()
453 mAsyncHandle.clearQueues(); in flushCodec()
469 mAsyncHandle.resetContext(); in resetContext()
487 mAsyncHandle.getErrorMsg())) in isTestStateValid()
518 callbackObject element = mAsyncHandle.getWork(); in doWork()
574 callbackObject element = mAsyncHandle.getWork(); in queueEOS()
627 callbackObject element = mAsyncHandle.getOutput(); in waitForAllOutputs()
DNativeCodecTestBase.h162 CodecAsyncHandler mAsyncHandle; variable
202 bool hasSeenError() { return mAsyncHandle.getError(); } in hasSeenError()
DNativeCodecDecoderTestCommon.cpp191 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in configureCodec()
262 mIsCodecInAsyncMode ? mAsyncHandle.getOutputFormat() : mOutFormat; in dequeueOutput()
293 RETURN_IF_TRUE(mIsCodecInAsyncMode ? !mAsyncHandle.hasOutputFormatChanged() in isOutputFormatOk()
298 mIsCodecInAsyncMode ? mAsyncHandle.getOutputFormat() in isOutputFormatOk()
304 mIsCodecInAsyncMode ? mAsyncHandle.getOutputFormat() : mOutFormat)) in isOutputFormatOk()
313 callbackObject element = mAsyncHandle.getInput(); in queueCodecConfig()
DNativeCodecUnitTest.cpp483 if (!mAsyncHandle.isInputQueueEmpty()) { in testFlushInRunningState()
489 if (mAsyncHandle.isInputQueueEmpty()) { in testFlushInRunningState()
602 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in testSetAsyncNotifyCallbackInInitState()
638 if (AMEDIA_OK == mAsyncHandle.setCallBack(mCodec, true)) { in testSetAsyncNotifyCallbackInRunningState()
655 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in testSetAsyncNotifyCallbackInUnInitState()
666 RETURN_IF_FAIL(mAsyncHandle.setCallBack(mCodec, isAsync), in testSetAsyncNotifyCallbackInUnInitState()
709 int bufferIndex = mIsCodecInAsyncMode ? mAsyncHandle.getInput().bufferIndex in testGetInputBufferInRunningState()
863 callbackObject element = mAsyncHandle.getOutput(); in testGetOutputBufferInRunningState()
1203 int bufferIndex = mIsCodecInAsyncMode ? mAsyncHandle.getInput().bufferIndex in testQueueInputBufferWithBadSize()
1232 int bufferIndex = mIsCodecInAsyncMode ? mAsyncHandle.getInput().bufferIndex in testQueueInputBufferWithBadBuffInfo()
[all …]
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecTestBase.java355 mAsyncHandle = new CodecAsyncHandler(); in CodecTestBase()
366 protected CodecAsyncHandler mAsyncHandle; field in CodecTestBase
1177 mAsyncHandle.setCallBack(mCodec, isAsync); in configureCodecCommon()
1249 return mIsCodecInAsyncMode ? mAsyncHandle.getOutputFormat() : mOutFormat; in getOutputFormat()
1259 mAsyncHandle.clearQueues(); in flushCodec()
1279 mAsyncHandle.resetContext(); in resetContext()
1304 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS && frameCount < frameLimit) { in doWork()
1305 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getWork(); in doWork()
1341 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS) { in queueEOS()
1342 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getWork(); in queueEOS()
[all …]
DCodecDecoderTestBase.java302 while (!mAsyncHandle.hasSeenError() && !mSawInputEOS && frameCount < list.size()) { in doWork()
303 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getWork(); in doWork()
337 for (mCurrCsdIdx = 0; !mAsyncHandle.hasSeenError() && mCurrCsdIdx < mCsdBuffers.size(); in queueCodecConfig()
339 Pair<Integer, MediaCodec.BufferInfo> element = mAsyncHandle.getInput(); in queueCodecConfig()
DCodecDecoderMultiAccessUnitTestBase.java57 mAsyncHandle = mAsyncHandleMultiAccessUnits; in CodecDecoderMultiAccessUnitTestBase()
DCodecDecoderBlockModelMultiAccessUnitTestBase.java63 mAsyncHandle = mAsyncHandleMultiAccessUnits; in CodecDecoderBlockModelMultiAccessUnitTestBase()