Lines Matching refs:format
112 MediaFormat format = new MediaFormat(); in getSampleAudioFormat() local
114 format.setString(MediaFormat.KEY_MIME, mediaType); in getSampleAudioFormat()
115 format.setInteger(MediaFormat.KEY_BIT_RATE, 64000); in getSampleAudioFormat()
116 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 16000); in getSampleAudioFormat()
117 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in getSampleAudioFormat()
118 return format; in getSampleAudioFormat()
122 MediaFormat format = new MediaFormat(); in getSampleVideoFormat() local
124 format.setString(MediaFormat.KEY_MIME, mediaType); in getSampleVideoFormat()
125 format.setInteger(MediaFormat.KEY_BIT_RATE, 256000); in getSampleVideoFormat()
126 format.setInteger(MediaFormat.KEY_WIDTH, 352); in getSampleVideoFormat()
127 format.setInteger(MediaFormat.KEY_HEIGHT, 288); in getSampleVideoFormat()
128 format.setInteger(MediaFormat.KEY_FRAME_RATE, 30); in getSampleVideoFormat()
129 format.setFloat(MediaFormat.KEY_I_FRAME_INTERVAL, 1.0f); in getSampleVideoFormat()
130 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, in getSampleVideoFormat()
132 return format; in getSampleVideoFormat()
136 MediaFormat format = new MediaFormat(); in getMultipleAccessUnitsSampleAudioFormat() local
138 format.setString(MediaFormat.KEY_MIME, mediaType); in getMultipleAccessUnitsSampleAudioFormat()
139 format.setInteger(MediaFormat.KEY_BIT_RATE, 128000); in getMultipleAccessUnitsSampleAudioFormat()
140 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 8000); in getMultipleAccessUnitsSampleAudioFormat()
141 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in getMultipleAccessUnitsSampleAudioFormat()
142 format.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE, 8192); in getMultipleAccessUnitsSampleAudioFormat()
143 format.setInteger(MediaFormat.KEY_BUFFER_BATCH_MAX_OUTPUT_SIZE, 16384); in getMultipleAccessUnitsSampleAudioFormat()
144 format.setInteger(MediaFormat.KEY_BUFFER_BATCH_THRESHOLD_OUTPUT_SIZE, 8192); in getMultipleAccessUnitsSampleAudioFormat()
145 return format; in getMultipleAccessUnitsSampleAudioFormat()
154 void testConfigureCodecForIncompleteFormat(MediaFormat format, String[] keys, in testConfigureCodecForIncompleteFormat() argument
156 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureCodecForIncompleteFormat()
163 MediaFormat formatClone = new MediaFormat(format); in testConfigureCodecForIncompleteFormat()
177 mCodec.configure(format, null, null, in testConfigureCodecForIncompleteFormat()
187 MediaFormat format = getSampleAudioFormat(); in testConfigureCodecForBadFlags() local
188 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureCodecForBadFlags()
195 mCodec.configure(format, null, null, in testConfigureCodecForBadFlags()
208 void tryConfigureCodecInInvalidState(MediaFormat format, boolean isAsync, String msg) { in tryConfigureCodecInInvalidState() argument
210 configureCodec(format, isAsync, false, true); in tryConfigureCodecInInvalidState()
472 MediaFormat format = getSampleAudioFormat(); in testConfigureAudioDecodeForIncompleteFormat() local
476 testConfigureCodecForIncompleteFormat(format, mandatoryKeys, false); in testConfigureAudioDecodeForIncompleteFormat()
483 MediaFormat format = getSampleAudioFormat(); in testConfigureAudioEncodeForIncompleteFormat() local
487 testConfigureCodecForIncompleteFormat(format, mandatoryKeys, true); in testConfigureAudioEncodeForIncompleteFormat()
494 MediaFormat format = getSampleVideoFormat(); in testConfigureVideoDecodeForIncompleteFormat() local
498 testConfigureCodecForIncompleteFormat(format, mandatoryKeys, false); in testConfigureVideoDecodeForIncompleteFormat()
505 MediaFormat format = getSampleVideoFormat(); in testConfigureVideoEncodeForIncompleteFormat() local
511 testConfigureCodecForIncompleteFormat(format, mandatoryKeys, true); in testConfigureVideoEncodeForIncompleteFormat()
531 MediaFormat format = getSampleAudioFormat(); in testConfigureInInitState() local
532 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureInInitState()
536 configureCodec(format, isAsync, false, true); in testConfigureInInitState()
538 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureInInitState()
549 MediaFormat format = getSampleAudioFormat(); in testConfigureAfterStart() local
550 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureAfterStart()
554 configureCodec(format, isAsync, false, true); in testConfigureAfterStart()
557 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureAfterStart()
570 MediaFormat format = getSampleAudioFormat(); in testConfigureAfterQueueInputBuffer() local
571 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureAfterQueueInputBuffer()
575 configureCodec(format, isAsync, false, true); in testConfigureAfterQueueInputBuffer()
579 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureAfterQueueInputBuffer()
590 MediaFormat format = getSampleAudioFormat(); in testConfigureInEOSState() local
591 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureInEOSState()
595 configureCodec(format, isAsync, false, true); in testConfigureInEOSState()
600 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureInEOSState()
611 MediaFormat format = getSampleAudioFormat(); in testConfigureInFlushState() local
612 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureInFlushState()
616 configureCodec(format, isAsync, false, true); in testConfigureInFlushState()
620 tryConfigureCodecInInvalidState(format, isAsync, in testConfigureInFlushState()
633 MediaFormat format = getSampleAudioFormat(); in testConfigureInUnInitState() local
634 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureInUnInitState()
638 configureCodec(format, isAsync, false, true); in testConfigureInUnInitState()
642 configureCodec(format, isAsync, false, true); in testConfigureInUnInitState()
654 MediaFormat format = getSampleAudioFormat(); in testConfigureInReleaseState() local
655 String mediaType = format.getString(MediaFormat.KEY_MIME); in testConfigureInReleaseState()
658 tryConfigureCodecInInvalidState(format, false, in testConfigureInReleaseState()
665 MediaFormat format = getSampleAudioFormat(); in testDequeueInputBufferInUnInitState() local
666 String mediaType = format.getString(MediaFormat.KEY_MIME); in testDequeueInputBufferInUnInitState()
673 configureCodec(format, isAsync, false, true); in testDequeueInputBufferInUnInitState()
686 MediaFormat format = getSampleAudioFormat(); in testDequeueInputBufferInInitState() local
687 String mediaType = format.getString(MediaFormat.KEY_MIME); in testDequeueInputBufferInInitState()
691 configureCodec(format, isAsync, false, true); in testDequeueInputBufferInInitState()
704 MediaFormat format = getSampleAudioFormat(); in testDequeueInputBufferInRunningState() local
705 String mediaType = format.getString(MediaFormat.KEY_MIME); in testDequeueInputBufferInRunningState()
709 configureCodec(format, isAsync, false, true); in testDequeueInputBufferInRunningState()
726 MediaFormat format = getSampleAudioFormat(); in testDequeueInputBufferInReleaseState() local
727 String mediaType = format.getString(MediaFormat.KEY_MIME); in testDequeueInputBufferInReleaseState()
738 MediaFormat format = getSampleAudioFormat(); in testDequeueOutputBufferInUnInitState() local
739 String mediaType = format.getString(MediaFormat.KEY_MIME); in testDequeueOutputBufferInUnInitState()
746 configureCodec(format, isAsync, false, true); in testDequeueOutputBufferInUnInitState()
759 MediaFormat format = getSampleAudioFormat(); in testDequeueOutputBufferInInitState() local
760 String mediaType = format.getString(MediaFormat.KEY_MIME); in testDequeueOutputBufferInInitState()
764 configureCodec(format, isAsync, false, true); in testDequeueOutputBufferInInitState()
777 MediaFormat format = getSampleAudioFormat(); in testDequeueOutputBufferInRunningState() local
778 String mediaType = format.getString(MediaFormat.KEY_MIME); in testDequeueOutputBufferInRunningState()
782 configureCodec(format, isAsync, false, true); in testDequeueOutputBufferInRunningState()
799 MediaFormat format = getSampleAudioFormat(); in testDequeueOutputBufferInReleaseState() local
800 String mediaType = format.getString(MediaFormat.KEY_MIME); in testDequeueOutputBufferInReleaseState()
811 MediaFormat format = getSampleAudioFormat(); in testFlushInUnInitState() local
812 String mediaType = format.getString(MediaFormat.KEY_MIME); in testFlushInUnInitState()
818 configureCodec(format, isAsync, false, true); in testFlushInUnInitState()
831 MediaFormat format = getSampleAudioFormat(); in testFlushInInitState() local
832 String mediaType = format.getString(MediaFormat.KEY_MIME); in testFlushInInitState()
836 configureCodec(format, isAsync, false, true); in testFlushInInitState()
848 MediaFormat format = getSampleAudioFormat(); in testFlushInRunningState() local
849 String mediaType = format.getString(MediaFormat.KEY_MIME); in testFlushInRunningState()
851 configureCodec(format, true, false, true); in testFlushInRunningState()
868 MediaFormat format = getSampleAudioFormat(); in testFlushInReleaseState() local
869 String mediaType = format.getString(MediaFormat.KEY_MIME); in testFlushInReleaseState()
881 MediaFormat format = getSampleAudioFormat(); in testGetMetaDataInUnInitState() local
882 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetMetaDataInUnInitState()
887 configureCodec(format, isAsync, false, true); in testGetMetaDataInUnInitState()
904 MediaFormat format = getSampleAudioFormat(); in testGetMetaDataInInitState() local
905 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetMetaDataInInitState()
909 configureCodec(format, isAsync, false, true); in testGetMetaDataInInitState()
922 MediaFormat format = getSampleAudioFormat(); in testGetMetaDataInRunningState() local
923 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetMetaDataInRunningState()
927 configureCodec(format, isAsync, false, true); in testGetMetaDataInRunningState()
945 MediaFormat format = getSampleAudioFormat(); in testGetMetaDataInReleaseState() local
946 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetMetaDataInReleaseState()
981 MediaFormat format = getSampleAudioFormat(); in testSetCallBackInUnInitState() local
982 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetCallBackInUnInitState()
990 configureCodec(format, !isAsync, false, true); in testSetCallBackInUnInitState()
1000 configureCodec(format, isAsync, false, true); in testSetCallBackInUnInitState()
1011 MediaFormat format = getSampleAudioFormat(); in testSetCallBackInInitState() local
1012 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetCallBackInInitState()
1017 configureCodec(format, isAsync, false, true); in testSetCallBackInInitState()
1027 configureCodec(format, !isAsync, false, true); in testSetCallBackInInitState()
1042 MediaFormat format = getSampleAudioFormat(); in testSetCallBackInRunningState() local
1043 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetCallBackInRunningState()
1047 configureCodec(format, isAsync, false, true); in testSetCallBackInRunningState()
1062 configureCodec(format, !isAsync, false, true); in testSetCallBackInRunningState()
1081 MediaFormat format = getSampleAudioFormat(); in testSetCallBackInReleaseState() local
1082 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetCallBackInReleaseState()
1097 MediaFormat format = getSampleAudioFormat(); in testGetInputBufferInUnInitState() local
1098 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputBufferInUnInitState()
1103 configureCodec(format, isAsync, false, true); in testGetInputBufferInUnInitState()
1115 MediaFormat format = getSampleAudioFormat(); in testGetInputBufferInInitState() local
1116 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputBufferInInitState()
1120 configureCodec(format, isAsync, false, true); in testGetInputBufferInInitState()
1131 MediaFormat format = getSampleAudioFormat(); in testGetInputBufferInRunningState() local
1132 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputBufferInRunningState()
1136 configureCodec(format, isAsync, false, true); in testGetInputBufferInRunningState()
1161 MediaFormat format = getSampleAudioFormat(); in testGetInputBufferInReleaseState() local
1162 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputBufferInReleaseState()
1171 MediaFormat format = getSampleAudioFormat(); in testGetInputFormatInUnInitState() local
1172 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputFormatInUnInitState()
1177 configureCodec(format, isAsync, false, true); in testGetInputFormatInUnInitState()
1189 MediaFormat format = getSampleAudioFormat(); in testGetInputFormatInInitState() local
1190 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputFormatInInitState()
1194 configureCodec(format, isAsync, false, true); in testGetInputFormatInInitState()
1209 MediaFormat format = getSampleAudioFormat(); in testGetInputFormatInRunningState() local
1210 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputFormatInRunningState()
1214 configureCodec(format, isAsync, false, true); in testGetInputFormatInRunningState()
1229 MediaFormat format = getSampleAudioFormat(); in testGetInputFormatInReleaseState() local
1230 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputFormatInReleaseState()
1239 MediaFormat format = getSampleAudioFormat(); in testGetOutputBufferInUnInitState() local
1240 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputBufferInUnInitState()
1245 configureCodec(format, isAsync, false, true); in testGetOutputBufferInUnInitState()
1257 MediaFormat format = getSampleAudioFormat(); in testGetOutputBufferInInitState() local
1258 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputBufferInInitState()
1262 configureCodec(format, isAsync, false, true); in testGetOutputBufferInInitState()
1273 MediaFormat format = getSampleAudioFormat(); in testGetOutputBufferInRunningState() local
1275 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputBufferInRunningState()
1279 configureCodec(format, isAsync, false, true); in testGetOutputBufferInRunningState()
1321 MediaFormat format = getSampleAudioFormat(); in testGetOutputBufferInReleaseState() local
1322 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputBufferInReleaseState()
1331 MediaFormat format = getSampleAudioFormat(); in testGetOutputFormatInUnInitState() local
1332 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputFormatInUnInitState()
1337 configureCodec(format, isAsync, false, true); in testGetOutputFormatInUnInitState()
1349 MediaFormat format = getSampleAudioFormat(); in testGetOutputFormatInInitState() local
1350 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputFormatInInitState()
1354 configureCodec(format, isAsync, false, true); in testGetOutputFormatInInitState()
1376 MediaFormat format = getSampleAudioFormat(); in testGetOutputFormatInRunningState() local
1378 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputFormatInRunningState()
1382 configureCodec(format, isAsync, false, true); in testGetOutputFormatInRunningState()
1428 MediaFormat format = getSampleAudioFormat(); in testGetOutputFormatInReleaseState() local
1429 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputFormatInReleaseState()
1438 MediaFormat format = getSampleVideoFormat(); in testSetParametersInUnInitState() local
1439 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetParametersInUnInitState()
1440 int bitrate = format.getInteger(MediaFormat.KEY_BIT_RATE); in testSetParametersInUnInitState()
1447 configureCodec(format, isAsync, false, true); in testSetParametersInUnInitState()
1460 MediaFormat format = getSampleVideoFormat(); in testSetParametersInInitState() local
1461 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetParametersInInitState()
1462 int bitrate = format.getInteger(MediaFormat.KEY_BIT_RATE); in testSetParametersInInitState()
1466 configureCodec(format, isAsync, false, true); in testSetParametersInInitState()
1479 MediaFormat format = getSampleVideoFormat(); in testSetParametersInRunningState() local
1480 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetParametersInRunningState()
1481 int bitrate = format.getInteger(MediaFormat.KEY_BIT_RATE); in testSetParametersInRunningState()
1485 configureCodec(format, isAsync, false, true); in testSetParametersInRunningState()
1504 MediaFormat format = getSampleVideoFormat(); in testSetParametersInReleaseState() local
1505 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetParametersInReleaseState()
1506 int bitrate = format.getInteger(MediaFormat.KEY_BIT_RATE); in testSetParametersInReleaseState()
1520 MediaFormat format = getSampleAudioFormat(); in testStartInUnInitState() local
1521 String mediaType = format.getString(MediaFormat.KEY_MIME); in testStartInUnInitState()
1525 configureCodec(format, false, false, true); in testStartInUnInitState()
1536 MediaFormat format = getSampleAudioFormat(); in testStartInRunningState() local
1537 String mediaType = format.getString(MediaFormat.KEY_MIME); in testStartInRunningState()
1539 configureCodec(format, false, false, true); in testStartInRunningState()
1550 MediaFormat format = getSampleAudioFormat(); in testStartInReleaseState() local
1551 String mediaType = format.getString(MediaFormat.KEY_MIME); in testStartInReleaseState()
1561 MediaFormat format = getSampleAudioFormat(); in testStopInUnInitState() local
1562 String mediaType = format.getString(MediaFormat.KEY_MIME); in testStopInUnInitState()
1567 configureCodec(format, isAsync, false, true); in testStopInUnInitState()
1578 MediaFormat format = getSampleAudioFormat(); in testStopInInitState() local
1579 String mediaType = format.getString(MediaFormat.KEY_MIME); in testStopInInitState()
1583 configureCodec(format, isAsync, false, true); in testStopInInitState()
1592 MediaFormat format = getSampleAudioFormat(); in testStopInRunningState() local
1593 String mediaType = format.getString(MediaFormat.KEY_MIME); in testStopInRunningState()
1597 configureCodec(format, isAsync, false, true); in testStopInRunningState()
1608 MediaFormat format = getSampleAudioFormat(); in testStopInReleaseState() local
1609 String mediaType = format.getString(MediaFormat.KEY_MIME); in testStopInReleaseState()
1623 MediaFormat format = getSampleAudioFormat(); in testResetInUnInitState() local
1624 String mediaType = format.getString(MediaFormat.KEY_MIME); in testResetInUnInitState()
1629 configureCodec(format, isAsync, false, true); in testResetInUnInitState()
1640 MediaFormat format = getSampleAudioFormat(); in testResetInInitState() local
1641 String mediaType = format.getString(MediaFormat.KEY_MIME); in testResetInInitState()
1645 configureCodec(format, isAsync, false, true); in testResetInInitState()
1654 MediaFormat format = getSampleAudioFormat(); in testResetInRunningState() local
1655 String mediaType = format.getString(MediaFormat.KEY_MIME); in testResetInRunningState()
1659 configureCodec(format, isAsync, false, true); in testResetInRunningState()
1670 MediaFormat format = getSampleAudioFormat(); in testResetInReleaseState() local
1671 String mediaType = format.getString(MediaFormat.KEY_MIME); in testResetInReleaseState()
1685 MediaFormat format = getSampleVideoFormat(); in testGetInputImageInUnInitState() local
1686 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputImageInUnInitState()
1691 configureCodec(format, isAsync, false, true); in testGetInputImageInUnInitState()
1703 MediaFormat format = getSampleVideoFormat(); in testGetInputImageInInitState() local
1704 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputImageInInitState()
1708 configureCodec(format, isAsync, false, true); in testGetInputImageInInitState()
1720 MediaFormat format = getSampleVideoFormat(); in testGetInputImageInRunningStateVideo() local
1721 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputImageInRunningStateVideo()
1725 configureCodec(format, isAsync, false, true); in testGetInputImageInRunningStateVideo()
1752 MediaFormat format = getSampleAudioFormat(); in testGetInputImageInRunningStateAudio() local
1753 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputImageInRunningStateAudio()
1757 configureCodec(format, isAsync, false, true); in testGetInputImageInRunningStateAudio()
1781 MediaFormat format = getSampleVideoFormat(); in testGetInputImageInReleaseState() local
1782 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetInputImageInReleaseState()
1791 MediaFormat format = getSampleVideoFormat(); in testGetOutputImageInUnInitState() local
1792 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputImageInUnInitState()
1797 configureCodec(format, isAsync, false, false); in testGetOutputImageInUnInitState()
1809 MediaFormat format = getSampleVideoFormat(); in testGetOutputImageInInitState() local
1810 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputImageInInitState()
1814 configureCodec(format, isAsync, false, false); in testGetOutputImageInInitState()
1825 MediaFormat format = getSampleVideoFormat(); in testGetOutputImageInRunningState() local
1827 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputImageInRunningState()
1831 configureCodec(format, isAsync, false, false); in testGetOutputImageInRunningState()
1868 MediaFormat format = getSampleVideoFormat(); in testGetOutputImageInReleaseState() local
1869 String mediaType = format.getString(MediaFormat.KEY_MIME); in testGetOutputImageInReleaseState()
1878 MediaFormat format = getSampleAudioFormat(); in testQueueInputBufferInUnInitState() local
1879 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBufferInUnInitState()
1885 configureCodec(format, isAsync, false, true); in testQueueInputBufferInUnInitState()
1897 MediaFormat format = getSampleAudioFormat(); in testQueueInputBufferInInitState() local
1898 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBufferInInitState()
1902 configureCodec(format, isAsync, false, true); in testQueueInputBufferInInitState()
1914 MediaFormat format = getSampleAudioFormat(); in testQueueInputBufferWithBadIndex() local
1915 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBufferWithBadIndex()
1919 configureCodec(format, isAsync, false, true); in testQueueInputBufferWithBadIndex()
1936 MediaFormat format = getSampleAudioFormat(); in testQueueInputBufferWithBadSize() local
1937 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBufferWithBadSize()
1941 configureCodec(format, isAsync, false, true); in testQueueInputBufferWithBadSize()
1964 MediaFormat format = getSampleAudioFormat(); in testQueueInputBufferWithBadBuffInfo() local
1965 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBufferWithBadBuffInfo()
1969 configureCodec(format, isAsync, false, true); in testQueueInputBufferWithBadBuffInfo()
1992 MediaFormat format = getSampleAudioFormat(); in testQueueInputBufferWithBadOffset() local
1993 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBufferWithBadOffset()
1997 configureCodec(format, isAsync, false, true); in testQueueInputBufferWithBadOffset()
2019 MediaFormat format = getSampleAudioFormat(); in testQueueInputBufferInReleaseState() local
2020 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBufferInReleaseState()
2030 MediaFormat format = getSampleAudioFormat(); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly() local
2031 String mediaType = format.getString(MediaFormat.KEY_MIME); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2035 configureCodec(format, isAsync, false, true); in testExceptionThrownWhenBufferIsEOSAndDecodeOnly()
2057 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersInUnInitState() local
2058 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersInUnInitState()
2059 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersInUnInitState()
2065 configureCodec(format, true, false, false); in testQueueInputBuffersInUnInitState()
2078 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersInInitState() local
2079 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersInInitState()
2080 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersInInitState()
2085 configureCodec(format, true, false, false); in testQueueInputBuffersInInitState()
2098 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersWithBadIndex() local
2099 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersWithBadIndex()
2100 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersWithBadIndex()
2105 configureCodec(format, true, false, false); in testQueueInputBuffersWithBadIndex()
2127 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersWithNullInfos() local
2128 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersWithNullInfos()
2129 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersWithNullInfos()
2134 configureCodec(format, true, false, false); in testQueueInputBuffersWithNullInfos()
2155 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersWithNullInfo() local
2156 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersWithNullInfo()
2157 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersWithNullInfo()
2162 configureCodec(format, true, false, false); in testQueueInputBuffersWithNullInfo()
2194 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersWithEmptyInfo() local
2195 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersWithEmptyInfo()
2196 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersWithEmptyInfo()
2201 configureCodec(format, true, false, false); in testQueueInputBuffersWithEmptyInfo()
2222 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersWithBadSize() local
2223 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersWithBadSize()
2224 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersWithBadSize()
2229 configureCodec(format, true, false, false); in testQueueInputBuffersWithBadSize()
2265 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersWithBadBuffInfo() local
2266 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersWithBadBuffInfo()
2267 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersWithBadBuffInfo()
2272 configureCodec(format, true, false, false); in testQueueInputBuffersWithBadBuffInfo()
2300 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersWithBadOffset() local
2301 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersWithBadOffset()
2302 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersWithBadOffset()
2307 configureCodec(format, true, false, false); in testQueueInputBuffersWithBadOffset()
2332 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testQueueInputBuffersInReleaseState() local
2333 String mediaType = format.getString(MediaFormat.KEY_MIME); in testQueueInputBuffersInReleaseState()
2334 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testQueueInputBuffersInReleaseState()
2346 MediaFormat format = getSampleAudioFormat(); in testReleaseOutputBufferInUnInitState() local
2347 String mediaType = format.getString(MediaFormat.KEY_MIME); in testReleaseOutputBufferInUnInitState()
2353 configureCodec(format, isAsync, false, true); in testReleaseOutputBufferInUnInitState()
2366 MediaFormat format = getSampleAudioFormat(); in testReleaseOutputBufferInInitState() local
2367 String mediaType = format.getString(MediaFormat.KEY_MIME); in testReleaseOutputBufferInInitState()
2371 configureCodec(format, isAsync, false, true); in testReleaseOutputBufferInInitState()
2383 MediaFormat format = getSampleAudioFormat(); in testReleaseOutputBufferInRunningState() local
2385 String mediaType = format.getString(MediaFormat.KEY_MIME); in testReleaseOutputBufferInRunningState()
2389 configureCodec(format, isAsync, false, true); in testReleaseOutputBufferInRunningState()
2430 MediaFormat format = getSampleAudioFormat(); in testReleaseOutputBufferInReleaseState() local
2431 String mediaType = format.getString(MediaFormat.KEY_MIME); in testReleaseOutputBufferInReleaseState()
2441 MediaFormat format = getSampleAudioFormat(); in testReleaseIdempotent() local
2442 String mediaType = format.getString(MediaFormat.KEY_MIME); in testReleaseIdempotent()
2455 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithNullBlock() local
2456 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithNullBlock()
2457 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithNullBlock()
2462 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithNullBlock()
2489 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithNullInfos() local
2490 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithNullInfos()
2491 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithNullInfos()
2496 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithNullInfos()
2520 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithNullInfo() local
2521 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithNullInfo()
2522 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithNullInfo()
2527 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithNullInfo()
2563 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithEmptyInfo() local
2564 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithEmptyInfo()
2565 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithEmptyInfo()
2570 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithEmptyInfo()
2594 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithBadOffset() local
2595 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithBadOffset()
2596 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithBadOffset()
2601 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithBadOffset()
2630 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithNegativeSize() local
2631 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithNegativeSize()
2632 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithNegativeSize()
2637 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithNegativeSize()
2666 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithBadBuffInfo() local
2667 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithBadBuffInfo()
2668 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithBadBuffInfo()
2673 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithBadBuffInfo()
2706 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithBadSize() local
2707 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithBadSize()
2708 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithBadSize()
2713 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithBadSize()
2752 MediaFormat format = getMultipleAccessUnitsSampleAudioFormat(); in testSetMultiFrameLinearBlockWithOverlappingOffsets() local
2753 String mediaType = format.getString(MediaFormat.KEY_MIME); in testSetMultiFrameLinearBlockWithOverlappingOffsets()
2754 String codecName = MEDIA_CODEC_LIST_ALL.findDecoderForFormat(format); in testSetMultiFrameLinearBlockWithOverlappingOffsets()
2759 configureCodec(format, true, true, false, MediaCodec.CONFIGURE_FLAG_USE_BLOCK_MODEL); in testSetMultiFrameLinearBlockWithOverlappingOffsets()