Lines Matching refs:isAudio

42     bool setupCodec(bool isAudio, bool isEncoder);
44 bool testConfigureCodecForIncompleteFormat(bool isAudio, bool isEncoder);
142 bool NativeCodecUnitTest::setupCodec(bool isAudio, bool isEncoder) { in setupCodec() argument
144 mFormat = isAudio ? getSampleAudioFormat() : getSampleVideoFormat(); in setupCodec()
165 void setUpDefaultFormatElementsList(std::vector<formatKey*>& vec, bool isAudio, bool isEncoder) { in setUpDefaultFormatElementsList() argument
166 if (isAudio) { in setUpDefaultFormatElementsList()
205 bool NativeCodecUnitTest::testConfigureCodecForIncompleteFormat(bool isAudio, bool isEncoder) { in testConfigureCodecForIncompleteFormat() argument
206 const char* mediaType = isAudio ? AMEDIA_MIMETYPE_AUDIO_AAC : AMEDIA_MIMETYPE_VIDEO_AVC; in testConfigureCodecForIncompleteFormat()
215 setUpDefaultFormatElementsList(vector, isAudio, isEncoder); in testConfigureCodecForIncompleteFormat()
242 bool isAudio = true; in testConfigureCodecForBadFlags() local
243 if (!setupCodec(isAudio, isEncoder)) return false; in testConfigureCodecForBadFlags()
256 bool isAudio = true; in testConfigureInInitState() local
258 if (!setupCodec(isAudio, isEncoder)) return false; in testConfigureInInitState()
274 bool isAudio = true; in testConfigureInRunningState() local
276 if (!setupCodec(isAudio, isEncoder)) return false; in testConfigureInRunningState()
317 bool isAudio = true; in testConfigureInUnInitState() local
319 if (!setupCodec(isAudio, isEncoder)) return false; in testConfigureInUnInitState()
333 bool isAudio = true; in testDequeueInputBufferInInitState() local
335 if (!setupCodec(isAudio, isEncoder)) return false; in testDequeueInputBufferInInitState()
350 bool isAudio = true; in testDequeueInputBufferInRunningState() local
352 if (!setupCodec(isAudio, isEncoder)) return false; in testDequeueInputBufferInRunningState()
372 bool isAudio = true; in testDequeueInputBufferInUnInitState() local
374 if (!setupCodec(isAudio, isEncoder)) return false; in testDequeueInputBufferInUnInitState()
394 bool isAudio = true; in testDequeueOutputBufferInInitState() local
396 if (!setupCodec(isAudio, isEncoder)) return false; in testDequeueOutputBufferInInitState()
412 bool isAudio = true; in testDequeueOutputBufferInRunningState() local
414 if (!setupCodec(isAudio, isEncoder)) return false; in testDequeueOutputBufferInRunningState()
435 bool isAudio = true; in testDequeueOutputBufferInUnInitState() local
437 if (!setupCodec(isAudio, isEncoder)) return false; in testDequeueOutputBufferInUnInitState()
459 bool isAudio = true; in testFlushInInitState() local
461 if (!setupCodec(isAudio, isEncoder)) return false; in testFlushInInitState()
475 bool isAudio = true; in testFlushInRunningState() local
477 if (!setupCodec(isAudio, isEncoder)) return false; in testFlushInRunningState()
498 bool isAudio = true; in testFlushInUnInitState() local
500 if (!setupCodec(isAudio, isEncoder)) return false; in testFlushInUnInitState()
519 bool isAudio = true; in testGetNameInInitState() local
521 if (!setupCodec(isAudio, isEncoder)) return false; in testGetNameInInitState()
538 bool isAudio = true; in testGetNameInRunningState() local
540 if (!setupCodec(isAudio, isEncoder)) return false; in testGetNameInRunningState()
567 bool isAudio = true; in testGetNameInUnInitState() local
569 if (!setupCodec(isAudio, isEncoder)) return false; in testGetNameInUnInitState()
594 bool isAudio = true; in testSetAsyncNotifyCallbackInInitState() local
596 if (!setupCodec(isAudio, isEncoder)) return false; in testSetAsyncNotifyCallbackInInitState()
630 bool isAudio = true; in testSetAsyncNotifyCallbackInRunningState() local
632 if (!setupCodec(isAudio, isEncoder)) return false; in testSetAsyncNotifyCallbackInRunningState()
650 bool isAudio = true; in testSetAsyncNotifyCallbackInUnInitState() local
652 if (!setupCodec(isAudio, isEncoder)) return false; in testSetAsyncNotifyCallbackInUnInitState()
679 bool isAudio = true; in testGetInputBufferInInitState() local
681 if (!setupCodec(isAudio, isEncoder)) return false; in testGetInputBufferInInitState()
697 bool isAudio = true; in testGetInputBufferInRunningState() local
699 if (!setupCodec(isAudio, isEncoder)) return false; in testGetInputBufferInRunningState()
724 bool isAudio = true; in testGetInputBufferInUnInitState() local
726 if (!setupCodec(isAudio, isEncoder)) return false; in testGetInputBufferInUnInitState()
746 bool isAudio = true; in testGetInputFormatInInitState() local
748 if (!setupCodec(isAudio, isEncoder)) return false; in testGetInputFormatInInitState()
769 bool isAudio = true; in testGetInputFormatInRunningState() local
771 if (!setupCodec(isAudio, isEncoder)) return false; in testGetInputFormatInRunningState()
793 bool isAudio = true; in testGetInputFormatInUnInitState() local
795 if (!setupCodec(isAudio, isEncoder)) return false; in testGetInputFormatInUnInitState()
826 bool isAudio = true; in testGetOutputBufferInInitState() local
828 if (!setupCodec(isAudio, isEncoder)) return false; in testGetOutputBufferInInitState()
843 bool isAudio = true; in testGetOutputBufferInRunningState() local
845 if (!setupCodec(isAudio, isEncoder)) return false; in testGetOutputBufferInRunningState()
901 bool isAudio = true; in testGetOutputBufferInUnInitState() local
903 if (!setupCodec(isAudio, isEncoder)) return false; in testGetOutputBufferInUnInitState()
923 bool isAudio = true; in testGetOutputFormatInInitState() local
925 if (!setupCodec(isAudio, isEncoder)) return false; in testGetOutputFormatInInitState()
946 bool isAudio = true; in testGetOutputFormatInRunningState() local
948 if (!setupCodec(isAudio, isEncoder)) return false; in testGetOutputFormatInRunningState()
970 bool isAudio = true; in testGetOutputFormatInUnInitState() local
972 if (!setupCodec(isAudio, isEncoder)) return false; in testGetOutputFormatInUnInitState()
1001 bool isAudio = false; in testSetParametersInInitState() local
1003 if (!setupCodec(isAudio, isEncoder)) return false; in testSetParametersInInitState()
1023 bool isAudio = false; in testSetParametersInRunningState() local
1025 if (!setupCodec(isAudio, isEncoder)) return false; in testSetParametersInRunningState()
1064 bool isAudio = false; in testSetParametersInUnInitState() local
1066 if (!setupCodec(isAudio, isEncoder)) return false; in testSetParametersInUnInitState()
1087 bool isAudio = true; in testStartInRunningState() local
1089 if (!setupCodec(isAudio, isEncoder)) return false; in testStartInRunningState()
1101 bool isAudio = true; in testStartInUnInitState() local
1103 if (!setupCodec(isAudio, isEncoder)) return false; in testStartInUnInitState()
1119 bool isAudio = true; in testStopInInitState() local
1121 if (!setupCodec(isAudio, isEncoder)) return false; in testStopInInitState()
1131 bool isAudio = true; in testStopInRunningState() local
1133 if (!setupCodec(isAudio, isEncoder)) return false; in testStopInRunningState()
1145 bool isAudio = true; in testStopInUnInitState() local
1147 if (!setupCodec(isAudio, isEncoder)) return false; in testStopInUnInitState()
1159 bool isAudio = true; in testQueueInputBufferInInitState() local
1161 if (!setupCodec(isAudio, isEncoder)) return false; in testQueueInputBufferInInitState()
1177 bool isAudio = true; in testQueueInputBufferWithBadIndex() local
1179 if (!setupCodec(isAudio, isEncoder)) return false; in testQueueInputBufferWithBadIndex()
1196 bool isAudio = true; in testQueueInputBufferWithBadSize() local
1198 if (!setupCodec(isAudio, isEncoder)) return false; in testQueueInputBufferWithBadSize()
1225 bool isAudio = true; in testQueueInputBufferWithBadBuffInfo() local
1227 if (!setupCodec(isAudio, isEncoder)) return false; in testQueueInputBufferWithBadBuffInfo()
1253 bool isAudio = true; in testQueueInputBufferWithBadOffset() local
1255 if (!setupCodec(isAudio, isEncoder)) return false; in testQueueInputBufferWithBadOffset()
1272 bool isAudio = true; in testQueueInputBufferInUnInitState() local
1274 if (!setupCodec(isAudio, isEncoder)) return false; in testQueueInputBufferInUnInitState()
1297 bool isAudio = true; in testReleaseOutputBufferInInitState() local
1299 if (!setupCodec(isAudio, isEncoder)) return false; in testReleaseOutputBufferInInitState()
1313 bool isAudio = true; in testReleaseOutputBufferInRunningState() local
1315 if (!setupCodec(isAudio, isEncoder)) return false; in testReleaseOutputBufferInRunningState()
1370 bool isAudio = true; in testReleaseOutputBufferInUnInitState() local
1372 if (!setupCodec(isAudio, isEncoder)) return false; in testReleaseOutputBufferInUnInitState()
1391 bool isAudio = true; in testGetBufferFormatInInitState() local
1393 if (!setupCodec(isAudio, isEncoder)) return false; in testGetBufferFormatInInitState()
1412 bool isAudio = true; in testGetBufferFormatInRunningState() local
1414 if (!setupCodec(isAudio, isEncoder)) return false; in testGetBufferFormatInRunningState()
1490 bool isAudio = true; in testGetBufferFormatInUnInitState() local
1492 if (!setupCodec(isAudio, isEncoder)) return false; in testGetBufferFormatInUnInitState()
1620 static jboolean nativeTestConfigureCodecForIncompleteFormat(JNIEnv*, jobject, jboolean isAudio, in nativeTestConfigureCodecForIncompleteFormat() argument
1623 bool isPass = nativeCodecUnitTest->testConfigureCodecForIncompleteFormat(isAudio, isEncoder); in nativeTestConfigureCodecForIncompleteFormat()