Lines Matching refs:mCodec
108 mCodec.releaseOutputBuffer(bufferIndex, false); in dequeueOutput()
158 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureCodecForIncompleteFormat()
160 mCodec = MediaCodec.createDecoderByType(mediaType); in testConfigureCodecForIncompleteFormat()
166 mCodec.configure(formatClone, null, null, in testConfigureCodecForIncompleteFormat()
177 mCodec.configure(format, null, null, in testConfigureCodecForIncompleteFormat()
182 mCodec.release(); in testConfigureCodecForIncompleteFormat()
190 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureCodecForBadFlags()
192 mCodec = MediaCodec.createDecoderByType(mediaType); in testConfigureCodecForBadFlags()
195 mCodec.configure(format, null, null, in testConfigureCodecForBadFlags()
204 mCodec.release(); in testConfigureCodecForBadFlags()
219 mCodec.dequeueInputBuffer(Q_DEQ_TIMEOUT_US); in tryDequeueInputBufferInInvalidState()
229 mCodec.dequeueOutputBuffer(info, Q_DEQ_TIMEOUT_US); in tryDequeueOutputBufferInInvalidState()
247 mCodec.getName(); in tryGetMetaData()
253 mCodec.getCanonicalName(); in tryGetMetaData()
259 mCodec.getCodecInfo(); in tryGetMetaData()
265 mCodec.getMetrics(); in tryGetMetaData()
273 mCodec.getInputBuffer(0); in tryGetInputBufferInInvalidState()
282 mCodec.getInputFormat(); in tryGetInputFormatInInvalidState()
291 mCodec.getOutputBuffer(0); in tryGetOutputBufferInInvalidState()
300 mCodec.getOutputFormat(); in tryGetOutputFormatInInvalidState()
307 mCodec.getOutputFormat(0); in tryGetOutputFormatInInvalidState()
316 mCodec.start(); in tryStartInInvalidState()
325 mCodec.getInputImage(0); in tryGetInputImageInInvalidState()
334 mCodec.getOutputImage(0); in tryGetOutputImageInInvalidState()
343 mCodec.queueInputBuffer(0, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in tryQueueInputBufferInInvalidState()
356 mCodec.queueInputBuffers(0, infos); in tryQueueInputBuffersInInvalidState()
365 mCodec.releaseOutputBuffer(0, false); in tryReleaseOutputBufferInInvalidState()
376 mCodec = MediaCodec.createByCodecName(null); in testCreateByCodecNameForNull()
381 if (mCodec != null) mCodec.release(); in testCreateByCodecNameForNull()
389 mCodec = MediaCodec.createByCodecName("invalid name"); in testCreateByCodecNameForInvalidName()
394 if (mCodec != null) mCodec.release(); in testCreateByCodecNameForInvalidName()
402 mCodec = MediaCodec.createDecoderByType(null); in testCreateDecoderByTypeForNull()
407 if (mCodec != null) mCodec.release(); in testCreateDecoderByTypeForNull()
415 mCodec = MediaCodec.createDecoderByType("invalid mediaType"); in testCreateDecoderByTypeForInvalidMediaType()
420 if (mCodec != null) mCodec.release(); in testCreateDecoderByTypeForInvalidMediaType()
428 mCodec = MediaCodec.createEncoderByType(null); in testCreateEncoderByTypeForNull()
433 if (mCodec != null) mCodec.release(); in testCreateEncoderByTypeForNull()
441 mCodec = MediaCodec.createEncoderByType("invalid mediaType"); in testCreateEncoderByTypeForInvalidMediaType()
446 if (mCodec != null) mCodec.release(); in testCreateEncoderByTypeForInvalidMediaType()
454 mCodec = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_AUDIO_AAC); in testConfigureForNullFormat()
455 mCodec.configure(null, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in testConfigureForNullFormat()
456 mCodec.release(); in testConfigureForNullFormat()
463 mCodec = MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_AUDIO_AAC); in testConfigureForEmptyFormat()
464 mCodec.configure(new MediaFormat(), null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); in testConfigureForEmptyFormat()
465 mCodec.release(); in testConfigureForEmptyFormat()
533 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureInInitState()
540 mCodec.stop(); in testConfigureInInitState()
542 mCodec.release(); in testConfigureInInitState()
551 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureAfterStart()
555 mCodec.start(); in testConfigureAfterStart()
561 mCodec.stop(); in testConfigureAfterStart()
563 mCodec.release(); in testConfigureAfterStart()
572 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureAfterQueueInputBuffer()
576 mCodec.start(); in testConfigureAfterQueueInputBuffer()
582 mCodec.stop(); in testConfigureAfterQueueInputBuffer()
584 mCodec.release(); in testConfigureAfterQueueInputBuffer()
592 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureInEOSState()
596 mCodec.start(); in testConfigureInEOSState()
602 mCodec.stop(); in testConfigureInEOSState()
604 mCodec.release(); in testConfigureInEOSState()
613 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureInFlushState()
617 mCodec.start(); in testConfigureInFlushState()
622 if (mIsCodecInAsyncMode) mCodec.start(); in testConfigureInFlushState()
625 mCodec.stop(); in testConfigureInFlushState()
627 mCodec.release(); in testConfigureInFlushState()
635 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureInUnInitState()
639 mCodec.stop(); in testConfigureInUnInitState()
646 mCodec.stop(); in testConfigureInUnInitState()
648 mCodec.release(); in testConfigureInUnInitState()
656 mCodec = MediaCodec.createEncoderByType(mediaType); in testConfigureInReleaseState()
657 mCodec.release(); in testConfigureInReleaseState()
667 mCodec = MediaCodec.createEncoderByType(mediaType); in testDequeueInputBufferInUnInitState()
674 mCodec.start(); in testDequeueInputBufferInUnInitState()
675 mCodec.stop(); in testDequeueInputBufferInUnInitState()
680 mCodec.release(); in testDequeueInputBufferInUnInitState()
688 mCodec = MediaCodec.createEncoderByType(mediaType); in testDequeueInputBufferInInitState()
695 mCodec.stop(); in testDequeueInputBufferInInitState()
697 mCodec.release(); in testDequeueInputBufferInInitState()
706 mCodec = MediaCodec.createEncoderByType(mediaType); in testDequeueInputBufferInRunningState()
710 mCodec.start(); in testDequeueInputBufferInRunningState()
718 mCodec.stop(); in testDequeueInputBufferInRunningState()
720 mCodec.release(); in testDequeueInputBufferInRunningState()
728 mCodec = MediaCodec.createEncoderByType(mediaType); in testDequeueInputBufferInReleaseState()
729 mCodec.release(); in testDequeueInputBufferInReleaseState()
740 mCodec = MediaCodec.createEncoderByType(mediaType); in testDequeueOutputBufferInUnInitState()
747 mCodec.start(); in testDequeueOutputBufferInUnInitState()
748 mCodec.stop(); in testDequeueOutputBufferInUnInitState()
753 mCodec.release(); in testDequeueOutputBufferInUnInitState()
761 mCodec = MediaCodec.createEncoderByType(mediaType); in testDequeueOutputBufferInInitState()
768 mCodec.stop(); in testDequeueOutputBufferInInitState()
770 mCodec.release(); in testDequeueOutputBufferInInitState()
779 mCodec = MediaCodec.createEncoderByType(mediaType); in testDequeueOutputBufferInRunningState()
783 mCodec.start(); in testDequeueOutputBufferInRunningState()
791 mCodec.stop(); in testDequeueOutputBufferInRunningState()
793 mCodec.release(); in testDequeueOutputBufferInRunningState()
801 mCodec = MediaCodec.createEncoderByType(mediaType); in testDequeueOutputBufferInReleaseState()
802 mCodec.release(); in testDequeueOutputBufferInReleaseState()
813 mCodec = MediaCodec.createEncoderByType(mediaType); in testFlushInUnInitState()
819 mCodec.start(); in testFlushInUnInitState()
820 mCodec.stop(); in testFlushInUnInitState()
823 mCodec.reset(); in testFlushInUnInitState()
825 mCodec.release(); in testFlushInUnInitState()
833 mCodec = MediaCodec.createEncoderByType(mediaType); in testFlushInInitState()
839 mCodec.stop(); in testFlushInInitState()
841 mCodec.release(); in testFlushInInitState()
850 mCodec = MediaCodec.createEncoderByType(mediaType); in testFlushInRunningState()
852 mCodec.start(); in testFlushInRunningState()
857 mCodec.start(); in testFlushInRunningState()
861 mCodec.stop(); in testFlushInRunningState()
862 mCodec.release(); in testFlushInRunningState()
870 mCodec = MediaCodec.createEncoderByType(mediaType); in testFlushInReleaseState()
871 mCodec.release(); in testFlushInReleaseState()
883 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetMetaDataInUnInitState()
888 mCodec.start(); in testGetMetaDataInUnInitState()
891 mCodec.stop(); in testGetMetaDataInUnInitState()
893 mCodec.reset(); in testGetMetaDataInUnInitState()
895 mCodec.release(); in testGetMetaDataInUnInitState()
906 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetMetaDataInInitState()
911 mCodec.stop(); in testGetMetaDataInInitState()
913 mCodec.release(); in testGetMetaDataInInitState()
924 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetMetaDataInRunningState()
928 mCodec.start(); in testGetMetaDataInRunningState()
933 mCodec.stop(); in testGetMetaDataInRunningState()
934 mCodec.reset(); in testGetMetaDataInRunningState()
936 mCodec.release(); in testGetMetaDataInRunningState()
947 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetMetaDataInReleaseState()
948 mCodec.release(); in testGetMetaDataInReleaseState()
950 mCodec.getCanonicalName(); in testGetMetaDataInReleaseState()
957 mCodec.getCodecInfo(); in testGetMetaDataInReleaseState()
964 mCodec.getName(); in testGetMetaDataInReleaseState()
971 mCodec.getMetrics(); in testGetMetaDataInReleaseState()
983 mCodec = MediaCodec.createEncoderByType(mediaType); in testSetCallBackInUnInitState()
987 mAsyncHandle.setCallBack(mCodec, isAsync); in testSetCallBackInUnInitState()
991 mCodec.start(); in testSetCallBackInUnInitState()
994 mCodec.stop(); in testSetCallBackInUnInitState()
997 mAsyncHandle.setCallBack(mCodec, !isAsync); in testSetCallBackInUnInitState()
1001 mCodec.start(); in testSetCallBackInUnInitState()
1004 mCodec.stop(); in testSetCallBackInUnInitState()
1005 mCodec.release(); in testSetCallBackInUnInitState()
1013 mCodec = MediaCodec.createEncoderByType(mediaType); in testSetCallBackInInitState()
1019 mAsyncHandle.setCallBack(mCodec, !isAsync); in testSetCallBackInInitState()
1021 mCodec.start(); in testSetCallBackInInitState()
1024 mCodec.stop(); in testSetCallBackInInitState()
1029 mAsyncHandle.setCallBack(mCodec, isAsync); in testSetCallBackInInitState()
1031 mCodec.start(); in testSetCallBackInInitState()
1034 mCodec.stop(); in testSetCallBackInInitState()
1035 mCodec.release(); in testSetCallBackInInitState()
1044 mCodec = MediaCodec.createEncoderByType(mediaType); in testSetCallBackInRunningState()
1048 mCodec.start(); in testSetCallBackInRunningState()
1051 mAsyncHandle.setCallBack(mCodec, !isAsync); in testSetCallBackInRunningState()
1059 mCodec.stop(); in testSetCallBackInRunningState()
1063 mCodec.start(); in testSetCallBackInRunningState()
1066 mAsyncHandle.setCallBack(mCodec, isAsync); in testSetCallBackInRunningState()
1074 mCodec.stop(); in testSetCallBackInRunningState()
1075 mCodec.release(); in testSetCallBackInRunningState()
1083 mCodec = MediaCodec.createEncoderByType(mediaType); in testSetCallBackInReleaseState()
1084 mCodec.release(); in testSetCallBackInReleaseState()
1087 mAsyncHandle.setCallBack(mCodec, false); in testSetCallBackInReleaseState()
1099 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputBufferInUnInitState()
1104 mCodec.start(); in testGetInputBufferInUnInitState()
1105 mCodec.stop(); in testGetInputBufferInUnInitState()
1107 mCodec.reset(); in testGetInputBufferInUnInitState()
1109 mCodec.release(); in testGetInputBufferInUnInitState()
1117 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputBufferInInitState()
1122 mCodec.reset(); in testGetInputBufferInInitState()
1124 mCodec.release(); in testGetInputBufferInInitState()
1133 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputBufferInRunningState()
1137 mCodec.start(); in testGetInputBufferInRunningState()
1139 ByteBuffer buffer = mCodec.getInputBuffer(-1); in testGetInputBufferInRunningState()
1145 mCodec.dequeueInputBuffer(-1); in testGetInputBufferInRunningState()
1146 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testGetInputBufferInRunningState()
1148 ByteBuffer bufferDup = mCodec.getInputBuffer(bufferIndex); in testGetInputBufferInRunningState()
1152 mCodec.stop(); in testGetInputBufferInRunningState()
1153 mCodec.reset(); in testGetInputBufferInRunningState()
1155 mCodec.release(); in testGetInputBufferInRunningState()
1163 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputBufferInReleaseState()
1164 mCodec.release(); in testGetInputBufferInReleaseState()
1173 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputFormatInUnInitState()
1178 mCodec.start(); in testGetInputFormatInUnInitState()
1179 mCodec.stop(); in testGetInputFormatInUnInitState()
1181 mCodec.reset(); in testGetInputFormatInUnInitState()
1183 mCodec.release(); in testGetInputFormatInUnInitState()
1191 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputFormatInInitState()
1196 mCodec.getInputFormat(); in testGetInputFormatInInitState()
1200 mCodec.start(); in testGetInputFormatInInitState()
1201 mCodec.stop(); in testGetInputFormatInInitState()
1203 mCodec.release(); in testGetInputFormatInInitState()
1211 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputFormatInRunningState()
1215 mCodec.start(); in testGetInputFormatInRunningState()
1217 mCodec.getInputFormat(); in testGetInputFormatInRunningState()
1221 mCodec.stop(); in testGetInputFormatInRunningState()
1223 mCodec.release(); in testGetInputFormatInRunningState()
1231 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputFormatInReleaseState()
1232 mCodec.release(); in testGetInputFormatInReleaseState()
1241 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetOutputBufferInUnInitState()
1246 mCodec.start(); in testGetOutputBufferInUnInitState()
1247 mCodec.stop(); in testGetOutputBufferInUnInitState()
1249 mCodec.reset(); in testGetOutputBufferInUnInitState()
1251 mCodec.release(); in testGetOutputBufferInUnInitState()
1259 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetOutputBufferInInitState()
1264 mCodec.reset(); in testGetOutputBufferInInitState()
1266 mCodec.release(); in testGetOutputBufferInInitState()
1276 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetOutputBufferInRunningState()
1280 mCodec.start(); in testGetOutputBufferInRunningState()
1282 ByteBuffer buffer = mCodec.getOutputBuffer(-1); in testGetOutputBufferInRunningState()
1293 ByteBuffer buffer = mCodec.getOutputBuffer(bufferIndex); in testGetOutputBufferInRunningState()
1297 bufferIndex = mCodec.dequeueOutputBuffer(outInfo, Q_DEQ_TIMEOUT_US); in testGetOutputBufferInRunningState()
1299 ByteBuffer buffer = mCodec.getOutputBuffer(bufferIndex); in testGetOutputBufferInRunningState()
1306 ByteBuffer buffer = mCodec.getOutputBuffer(bufferIndex); in testGetOutputBufferInRunningState()
1312 mCodec.stop(); in testGetOutputBufferInRunningState()
1313 mCodec.reset(); in testGetOutputBufferInRunningState()
1315 mCodec.release(); in testGetOutputBufferInRunningState()
1323 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetOutputBufferInReleaseState()
1324 mCodec.release(); in testGetOutputBufferInReleaseState()
1333 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetOutputFormatInUnInitState()
1338 mCodec.start(); in testGetOutputFormatInUnInitState()
1339 mCodec.stop(); in testGetOutputFormatInUnInitState()
1341 mCodec.reset(); in testGetOutputFormatInUnInitState()
1343 mCodec.release(); in testGetOutputFormatInUnInitState()
1351 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetOutputFormatInInitState()
1356 mCodec.getOutputFormat(); in testGetOutputFormatInInitState()
1361 mCodec.getOutputFormat(0); in testGetOutputFormatInInitState()
1366 mCodec.start(); in testGetOutputFormatInInitState()
1367 mCodec.stop(); in testGetOutputFormatInInitState()
1369 mCodec.release(); in testGetOutputFormatInInitState()
1379 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetOutputFormatInRunningState()
1383 mCodec.start(); in testGetOutputFormatInRunningState()
1386 mCodec.getOutputFormat(); in testGetOutputFormatInRunningState()
1391 MediaFormat outputFormat = mCodec.getOutputFormat(-1); in testGetOutputFormatInRunningState()
1401 MediaFormat outputFormat = mCodec.getOutputFormat(bufferIndex); in testGetOutputFormatInRunningState()
1405 bufferIndex = mCodec.dequeueOutputBuffer(outInfo, Q_DEQ_TIMEOUT_US); in testGetOutputFormatInRunningState()
1407 MediaFormat outputFormat = mCodec.getOutputFormat(bufferIndex); in testGetOutputFormatInRunningState()
1414 MediaFormat outputFormat = mCodec.getOutputFormat(bufferIndex); in testGetOutputFormatInRunningState()
1420 mCodec.stop(); in testGetOutputFormatInRunningState()
1422 mCodec.release(); in testGetOutputFormatInRunningState()
1430 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetOutputFormatInReleaseState()
1431 mCodec.release(); in testGetOutputFormatInReleaseState()
1441 mCodec = MediaCodec.createEncoderByType(mediaType); in testSetParametersInUnInitState()
1443 mCodec.setParameters(null); in testSetParametersInUnInitState()
1444 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInUnInitState()
1448 mCodec.start(); in testSetParametersInUnInitState()
1449 mCodec.stop(); in testSetParametersInUnInitState()
1450 mCodec.setParameters(null); in testSetParametersInUnInitState()
1451 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInUnInitState()
1452 mCodec.reset(); in testSetParametersInUnInitState()
1454 mCodec.release(); in testSetParametersInUnInitState()
1463 mCodec = MediaCodec.createEncoderByType(mediaType); in testSetParametersInInitState()
1467 mCodec.setParameters(null); in testSetParametersInInitState()
1468 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInInitState()
1469 mCodec.start(); in testSetParametersInInitState()
1470 mCodec.stop(); in testSetParametersInInitState()
1471 mCodec.reset(); in testSetParametersInInitState()
1473 mCodec.release(); in testSetParametersInInitState()
1482 mCodec = MediaCodec.createEncoderByType(mediaType); in testSetParametersInRunningState()
1486 mCodec.start(); in testSetParametersInRunningState()
1487 mCodec.setParameters(null); in testSetParametersInRunningState()
1488 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInRunningState()
1490 mCodec.setParameters(null); in testSetParametersInRunningState()
1491 mCodec.setParameters(updateBitrate(bitrate << 1)); in testSetParametersInRunningState()
1493 mCodec.setParameters(null); in testSetParametersInRunningState()
1494 mCodec.setParameters(updateBitrate(bitrate)); in testSetParametersInRunningState()
1495 mCodec.stop(); in testSetParametersInRunningState()
1496 mCodec.reset(); in testSetParametersInRunningState()
1498 mCodec.release(); in testSetParametersInRunningState()
1507 mCodec = MediaCodec.createEncoderByType(mediaType); in testSetParametersInReleaseState()
1508 mCodec.release(); in testSetParametersInReleaseState()
1510 mCodec.setParameters(updateBitrate(bitrate >> 1)); in testSetParametersInReleaseState()
1522 mCodec = MediaCodec.createEncoderByType(mediaType); in testStartInUnInitState()
1526 mCodec.start(); in testStartInUnInitState()
1527 mCodec.stop(); in testStartInUnInitState()
1530 mCodec.release(); in testStartInUnInitState()
1538 mCodec = MediaCodec.createEncoderByType(mediaType); in testStartInRunningState()
1540 mCodec.start(); in testStartInRunningState()
1543 mCodec.stop(); in testStartInRunningState()
1544 mCodec.release(); in testStartInRunningState()
1552 mCodec = MediaCodec.createEncoderByType(mediaType); in testStartInReleaseState()
1553 mCodec.release(); in testStartInReleaseState()
1563 mCodec = MediaCodec.createEncoderByType(mediaType); in testStopInUnInitState()
1564 mCodec.stop(); in testStopInUnInitState()
1568 mCodec.start(); in testStopInUnInitState()
1569 mCodec.stop(); in testStopInUnInitState()
1570 mCodec.stop(); in testStopInUnInitState()
1572 mCodec.release(); in testStopInUnInitState()
1580 mCodec = MediaCodec.createEncoderByType(mediaType); in testStopInInitState()
1584 mCodec.stop(); in testStopInInitState()
1586 mCodec.release(); in testStopInInitState()
1594 mCodec = MediaCodec.createEncoderByType(mediaType); in testStopInRunningState()
1598 mCodec.start(); in testStopInRunningState()
1600 mCodec.stop(); in testStopInRunningState()
1602 mCodec.release(); in testStopInRunningState()
1610 mCodec = MediaCodec.createEncoderByType(mediaType); in testStopInReleaseState()
1611 mCodec.release(); in testStopInReleaseState()
1613 mCodec.stop(); in testStopInReleaseState()
1625 mCodec = MediaCodec.createEncoderByType(mediaType); in testResetInUnInitState()
1626 mCodec.reset(); in testResetInUnInitState()
1630 mCodec.start(); in testResetInUnInitState()
1631 mCodec.stop(); in testResetInUnInitState()
1632 mCodec.reset(); in testResetInUnInitState()
1634 mCodec.release(); in testResetInUnInitState()
1642 mCodec = MediaCodec.createEncoderByType(mediaType); in testResetInInitState()
1646 mCodec.reset(); in testResetInInitState()
1648 mCodec.release(); in testResetInInitState()
1656 mCodec = MediaCodec.createEncoderByType(mediaType); in testResetInRunningState()
1660 mCodec.start(); in testResetInRunningState()
1662 mCodec.reset(); in testResetInRunningState()
1664 mCodec.release(); in testResetInRunningState()
1672 mCodec = MediaCodec.createEncoderByType(mediaType); in testResetInReleaseState()
1673 mCodec.release(); in testResetInReleaseState()
1675 mCodec.reset(); in testResetInReleaseState()
1687 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputImageInUnInitState()
1692 mCodec.start(); in testGetInputImageInUnInitState()
1693 mCodec.stop(); in testGetInputImageInUnInitState()
1695 mCodec.reset(); in testGetInputImageInUnInitState()
1697 mCodec.release(); in testGetInputImageInUnInitState()
1705 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputImageInInitState()
1710 mCodec.reset(); in testGetInputImageInInitState()
1712 mCodec.release(); in testGetInputImageInInitState()
1722 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputImageInRunningStateVideo()
1726 mCodec.start(); in testGetInputImageInRunningStateVideo()
1728 Image img = mCodec.getInputImage(-1); in testGetInputImageInRunningStateVideo()
1734 mCodec.dequeueInputBuffer(-1); in testGetInputImageInRunningStateVideo()
1735 Image img = mCodec.getInputImage(bufferIndex); in testGetInputImageInRunningStateVideo()
1737 Image imgDup = mCodec.getInputImage(bufferIndex); in testGetInputImageInRunningStateVideo()
1741 mCodec.stop(); in testGetInputImageInRunningStateVideo()
1742 mCodec.reset(); in testGetInputImageInRunningStateVideo()
1744 mCodec.release(); in testGetInputImageInRunningStateVideo()
1754 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputImageInRunningStateAudio()
1758 mCodec.start(); in testGetInputImageInRunningStateAudio()
1760 Image img = mCodec.getInputImage(-1); in testGetInputImageInRunningStateAudio()
1766 mCodec.dequeueInputBuffer(-1); in testGetInputImageInRunningStateAudio()
1767 Image img = mCodec.getInputImage(bufferIndex); in testGetInputImageInRunningStateAudio()
1772 mCodec.stop(); in testGetInputImageInRunningStateAudio()
1773 mCodec.reset(); in testGetInputImageInRunningStateAudio()
1775 mCodec.release(); in testGetInputImageInRunningStateAudio()
1783 mCodec = MediaCodec.createEncoderByType(mediaType); in testGetInputImageInReleaseState()
1784 mCodec.release(); in testGetInputImageInReleaseState()
1793 mCodec = MediaCodec.createDecoderByType(mediaType); in testGetOutputImageInUnInitState()
1798 mCodec.start(); in testGetOutputImageInUnInitState()
1799 mCodec.stop(); in testGetOutputImageInUnInitState()
1801 mCodec.reset(); in testGetOutputImageInUnInitState()
1803 mCodec.release(); in testGetOutputImageInUnInitState()
1811 mCodec = MediaCodec.createDecoderByType(mediaType); in testGetOutputImageInInitState()
1816 mCodec.reset(); in testGetOutputImageInInitState()
1818 mCodec.release(); in testGetOutputImageInInitState()
1828 mCodec = MediaCodec.createDecoderByType(mediaType); in testGetOutputImageInRunningState()
1832 mCodec.start(); in testGetOutputImageInRunningState()
1834 Image img = mCodec.getOutputImage(-1); in testGetOutputImageInRunningState()
1847 bufferIndex = mCodec.dequeueOutputBuffer(outInfo, Q_DEQ_TIMEOUT_US); in testGetOutputImageInRunningState()
1854 Image img = mCodec.getOutputImage(bufferIndex); in testGetOutputImageInRunningState()
1859 mCodec.stop(); in testGetOutputImageInRunningState()
1860 mCodec.reset(); in testGetOutputImageInRunningState()
1862 mCodec.release(); in testGetOutputImageInRunningState()
1870 mCodec = MediaCodec.createDecoderByType(mediaType); in testGetOutputImageInReleaseState()
1871 mCodec.release(); in testGetOutputImageInReleaseState()
1880 mCodec = MediaCodec.createEncoderByType(mediaType); in testQueueInputBufferInUnInitState()
1886 mCodec.start(); in testQueueInputBufferInUnInitState()
1887 mCodec.stop(); in testQueueInputBufferInUnInitState()
1889 mCodec.reset(); in testQueueInputBufferInUnInitState()
1891 mCodec.release(); in testQueueInputBufferInUnInitState()
1899 mCodec = MediaCodec.createEncoderByType(mediaType); in testQueueInputBufferInInitState()
1904 mCodec.start(); in testQueueInputBufferInInitState()
1905 mCodec.stop(); in testQueueInputBufferInInitState()
1906 mCodec.reset(); in testQueueInputBufferInInitState()
1908 mCodec.release(); in testQueueInputBufferInInitState()
1916 mCodec = MediaCodec.createEncoderByType(mediaType); in testQueueInputBufferWithBadIndex()
1920 mCodec.start(); in testQueueInputBufferWithBadIndex()
1922 mCodec.queueInputBuffer(-1, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in testQueueInputBufferWithBadIndex()
1927 mCodec.stop(); in testQueueInputBufferWithBadIndex()
1928 mCodec.reset(); in testQueueInputBufferWithBadIndex()
1930 mCodec.release(); in testQueueInputBufferWithBadIndex()
1938 mCodec = MediaCodec.createEncoderByType(mediaType); in testQueueInputBufferWithBadSize()
1942 mCodec.start(); in testQueueInputBufferWithBadSize()
1944 mCodec.dequeueInputBuffer(-1); in testQueueInputBufferWithBadSize()
1945 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBufferWithBadSize()
1948 mCodec.queueInputBuffer(bufferIndex, 0, buffer.capacity() + 100, 0, in testQueueInputBufferWithBadSize()
1955 mCodec.stop(); in testQueueInputBufferWithBadSize()
1956 mCodec.reset(); in testQueueInputBufferWithBadSize()
1958 mCodec.release(); in testQueueInputBufferWithBadSize()
1966 mCodec = MediaCodec.createEncoderByType(mediaType); in testQueueInputBufferWithBadBuffInfo()
1970 mCodec.start(); in testQueueInputBufferWithBadBuffInfo()
1972 mCodec.dequeueInputBuffer(-1); in testQueueInputBufferWithBadBuffInfo()
1973 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBufferWithBadBuffInfo()
1976 mCodec.queueInputBuffer(bufferIndex, 16, buffer.capacity(), 0, in testQueueInputBufferWithBadBuffInfo()
1982 mCodec.stop(); in testQueueInputBufferWithBadBuffInfo()
1983 mCodec.reset(); in testQueueInputBufferWithBadBuffInfo()
1985 mCodec.release(); in testQueueInputBufferWithBadBuffInfo()
1994 mCodec = MediaCodec.createEncoderByType(mediaType); in testQueueInputBufferWithBadOffset()
1998 mCodec.start(); in testQueueInputBufferWithBadOffset()
2000 mCodec.dequeueInputBuffer(-1); in testQueueInputBufferWithBadOffset()
2001 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBufferWithBadOffset()
2004 mCodec.queueInputBuffer(bufferIndex, -1, buffer.capacity(), 0, in testQueueInputBufferWithBadOffset()
2010 mCodec.stop(); in testQueueInputBufferWithBadOffset()
2011 mCodec.reset(); in testQueueInputBufferWithBadOffset()
2013 mCodec.release(); in testQueueInputBufferWithBadOffset()
2021 mCodec = MediaCodec.createEncoderByType(mediaType); in testQueueInputBufferInReleaseState()
2022 mCodec.release(); in testQueueInputBufferInReleaseState()
2032 mCodec = MediaCodec.createEncoderByType(mediaType); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2036 mCodec.start(); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2041 () -> mCodec.queueInputBuffer(0, 0, 0, 0, flags)); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2044 () -> mCodec.queueSecureInputBuffer(0, 0, null, 0, flags)); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2045 mCodec.stop(); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2046 mCodec.reset(); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2048 mCodec.release(); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2063 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersInUnInitState()
2066 mCodec.start(); in testQueueInputBuffersInUnInitState()
2067 mCodec.stop(); in testQueueInputBuffersInUnInitState()
2069 mCodec.release(); in testQueueInputBuffersInUnInitState()
2084 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersInInitState()
2087 mCodec.start(); in testQueueInputBuffersInInitState()
2088 mCodec.stop(); in testQueueInputBuffersInInitState()
2089 mCodec.release(); in testQueueInputBuffersInInitState()
2104 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersWithBadIndex()
2106 mCodec.start(); in testQueueInputBuffersWithBadIndex()
2112 mCodec.queueInputBuffers(-1, infos); in testQueueInputBuffersWithBadIndex()
2117 mCodec.stop(); in testQueueInputBuffersWithBadIndex()
2118 mCodec.release(); in testQueueInputBuffersWithBadIndex()
2133 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersWithNullInfos()
2135 mCodec.start(); in testQueueInputBuffersWithNullInfos()
2137 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBuffersWithNullInfos()
2140 mCodec.queueInputBuffers(bufferIndex, null); in testQueueInputBuffersWithNullInfos()
2145 mCodec.stop(); in testQueueInputBuffersWithNullInfos()
2146 mCodec.release(); in testQueueInputBuffersWithNullInfos()
2161 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersWithNullInfo()
2163 mCodec.start(); in testQueueInputBuffersWithNullInfo()
2165 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBuffersWithNullInfo()
2179 mCodec.queueInputBuffers(bufferIndex, infos); in testQueueInputBuffersWithNullInfo()
2184 mCodec.stop(); in testQueueInputBuffersWithNullInfo()
2185 mCodec.release(); in testQueueInputBuffersWithNullInfo()
2200 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersWithEmptyInfo()
2202 mCodec.start(); in testQueueInputBuffersWithEmptyInfo()
2204 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBuffersWithEmptyInfo()
2207 mCodec.queueInputBuffers(bufferIndex, new ArrayDeque<>()); in testQueueInputBuffersWithEmptyInfo()
2212 mCodec.stop(); in testQueueInputBuffersWithEmptyInfo()
2213 mCodec.release(); in testQueueInputBuffersWithEmptyInfo()
2228 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersWithBadSize()
2230 mCodec.start(); in testQueueInputBuffersWithBadSize()
2232 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBuffersWithBadSize()
2248 mCodec.queueInputBuffers(bufferIndex, infos); in testQueueInputBuffersWithBadSize()
2254 mCodec.stop(); in testQueueInputBuffersWithBadSize()
2255 mCodec.release(); in testQueueInputBuffersWithBadSize()
2271 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersWithBadBuffInfo()
2273 mCodec.start(); in testQueueInputBuffersWithBadBuffInfo()
2275 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBuffersWithBadBuffInfo()
2285 mCodec.queueInputBuffers(bufferIndex, infos); in testQueueInputBuffersWithBadBuffInfo()
2290 mCodec.stop(); in testQueueInputBuffersWithBadBuffInfo()
2291 mCodec.release(); in testQueueInputBuffersWithBadBuffInfo()
2306 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersWithBadOffset()
2308 mCodec.start(); in testQueueInputBuffersWithBadOffset()
2310 ByteBuffer buffer = mCodec.getInputBuffer(bufferIndex); in testQueueInputBuffersWithBadOffset()
2317 mCodec.queueInputBuffers(bufferIndex, infos); in testQueueInputBuffersWithBadOffset()
2322 mCodec.stop(); in testQueueInputBuffersWithBadOffset()
2323 mCodec.release(); in testQueueInputBuffersWithBadOffset()
2338 mCodec = MediaCodec.createDecoderByType(mediaType); in testQueueInputBuffersInReleaseState()
2339 mCodec.release(); in testQueueInputBuffersInReleaseState()
2348 mCodec = MediaCodec.createEncoderByType(mediaType); in testReleaseOutputBufferInUnInitState()
2354 mCodec.start(); in testReleaseOutputBufferInUnInitState()
2355 mCodec.stop(); in testReleaseOutputBufferInUnInitState()
2358 mCodec.reset(); in testReleaseOutputBufferInUnInitState()
2360 mCodec.release(); in testReleaseOutputBufferInUnInitState()
2368 mCodec = MediaCodec.createEncoderByType(mediaType); in testReleaseOutputBufferInInitState()
2374 mCodec.reset(); in testReleaseOutputBufferInInitState()
2376 mCodec.release(); in testReleaseOutputBufferInInitState()
2386 mCodec = MediaCodec.createEncoderByType(mediaType); in testReleaseOutputBufferInRunningState()
2390 mCodec.start(); in testReleaseOutputBufferInRunningState()
2392 mCodec.releaseOutputBuffer(-1, false); in testReleaseOutputBufferInRunningState()
2403 ByteBuffer buffer = mCodec.getOutputBuffer(bufferIndex); in testReleaseOutputBufferInRunningState()
2407 bufferIndex = mCodec.dequeueOutputBuffer(outInfo, Q_DEQ_TIMEOUT_US); in testReleaseOutputBufferInRunningState()
2409 ByteBuffer buffer = mCodec.getOutputBuffer(bufferIndex); in testReleaseOutputBufferInRunningState()
2416 mCodec.releaseOutputBuffer(bufferIndex, false); in testReleaseOutputBufferInRunningState()
2421 mCodec.stop(); in testReleaseOutputBufferInRunningState()
2422 mCodec.reset(); in testReleaseOutputBufferInRunningState()
2424 mCodec.release(); in testReleaseOutputBufferInRunningState()
2432 mCodec = MediaCodec.createEncoderByType(mediaType); in testReleaseOutputBufferInReleaseState()
2433 mCodec.release(); in testReleaseOutputBufferInReleaseState()
2443 mCodec = MediaCodec.createEncoderByType(mediaType); in testReleaseIdempotent()
2444 mCodec.release(); in testReleaseIdempotent()
2445 mCodec.release(); in testReleaseIdempotent()
2461 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithNullBlock()
2463 mCodec.start(); in testSetMultiFrameLinearBlockWithNullBlock()
2465 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithNullBlock()
2478 mCodec.stop(); in testSetMultiFrameLinearBlockWithNullBlock()
2479 mCodec.release(); in testSetMultiFrameLinearBlockWithNullBlock()
2495 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithNullInfos()
2497 mCodec.start(); in testSetMultiFrameLinearBlockWithNullInfos()
2500 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithNullInfos()
2509 mCodec.stop(); in testSetMultiFrameLinearBlockWithNullInfos()
2510 mCodec.release(); in testSetMultiFrameLinearBlockWithNullInfos()
2526 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithNullInfo()
2528 mCodec.start(); in testSetMultiFrameLinearBlockWithNullInfo()
2531 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithNullInfo()
2552 mCodec.stop(); in testSetMultiFrameLinearBlockWithNullInfo()
2553 mCodec.release(); in testSetMultiFrameLinearBlockWithNullInfo()
2569 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithEmptyInfo()
2571 mCodec.start(); in testSetMultiFrameLinearBlockWithEmptyInfo()
2574 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithEmptyInfo()
2583 mCodec.stop(); in testSetMultiFrameLinearBlockWithEmptyInfo()
2584 mCodec.release(); in testSetMultiFrameLinearBlockWithEmptyInfo()
2600 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithBadOffset()
2602 mCodec.start(); in testSetMultiFrameLinearBlockWithBadOffset()
2605 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithBadOffset()
2619 mCodec.stop(); in testSetMultiFrameLinearBlockWithBadOffset()
2620 mCodec.release(); in testSetMultiFrameLinearBlockWithBadOffset()
2636 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithNegativeSize()
2638 mCodec.start(); in testSetMultiFrameLinearBlockWithNegativeSize()
2641 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithNegativeSize()
2655 mCodec.stop(); in testSetMultiFrameLinearBlockWithNegativeSize()
2656 mCodec.release(); in testSetMultiFrameLinearBlockWithNegativeSize()
2672 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithBadBuffInfo()
2674 mCodec.start(); in testSetMultiFrameLinearBlockWithBadBuffInfo()
2677 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithBadBuffInfo()
2695 mCodec.stop(); in testSetMultiFrameLinearBlockWithBadBuffInfo()
2696 mCodec.release(); in testSetMultiFrameLinearBlockWithBadBuffInfo()
2712 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithBadSize()
2714 mCodec.start(); in testSetMultiFrameLinearBlockWithBadSize()
2717 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithBadSize()
2741 mCodec.stop(); in testSetMultiFrameLinearBlockWithBadSize()
2742 mCodec.release(); in testSetMultiFrameLinearBlockWithBadSize()
2758 mCodec = MediaCodec.createDecoderByType(mediaType); in testSetMultiFrameLinearBlockWithOverlappingOffsets()
2760 mCodec.start(); in testSetMultiFrameLinearBlockWithOverlappingOffsets()
2763 MediaCodec.QueueRequest request = mCodec.getQueueRequest(bufferIndex); in testSetMultiFrameLinearBlockWithOverlappingOffsets()
2790 mCodec.stop(); in testSetMultiFrameLinearBlockWithOverlappingOffsets()
2791 mCodec.release(); in testSetMultiFrameLinearBlockWithOverlappingOffsets()