Home
last modified time | relevance | path

Searched refs:msgIndex (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/nativemidi/java/android/nativemidi/cts/
DNativeMidiEchoTest.java315 for (int msgIndex = 0; msgIndex < numMessages; msgIndex++) { in test_D_EchoNMessages()
316 writeMidiWithTimestamp(mTestContext, buffers[msgIndex], 0, buffers[msgIndex].length, in test_D_EchoNMessages()
317 timestamps[msgIndex]); in test_D_EchoNMessages()
329 for (int msgIndex = 0; msgIndex < numMessages; msgIndex++) { in test_D_EchoNMessages()
330 NativeMidiMessage message = getReceivedMessageAt(mTestContext, msgIndex); in test_D_EchoNMessages()
331 compareMessages(buffers[msgIndex], timestamps[msgIndex], message); in test_D_EchoNMessages()
345 for (int msgIndex = 0; msgIndex < numMessages; msgIndex++) { in test_E_FlushMessages()
346 writeMidiWithTimestamp(mTestContext, buffers[msgIndex], 0, buffers[msgIndex].length, in test_E_FlushMessages()
347 timestamps[msgIndex]); in test_E_FlushMessages()
362 for (int msgIndex = 0; msgIndex < numMessages; msgIndex++) { in test_E_FlushMessages()
[all …]
/cts/apps/CtsVerifier/jni/midi/
DMidiTestManager.cpp125 for(int msgIndex = 0; msgIndex < mNumTestMsgs; msgIndex++) { in buildMatchStream() local
126 for(int byteIndex = 0; byteIndex < mTestMsgs[msgIndex].mNumMsgBytes; byteIndex++) { in buildMatchStream()
127 mMatchStream.push_back(mTestMsgs[msgIndex].mMsgBytes[byteIndex]); in buildMatchStream()
222 for(int msgIndex = 0; msgIndex < mNumTestMsgs; msgIndex++) { in sendMessages() local
225 for(int byteIndex = 0; byteIndex < mTestMsgs[msgIndex].mNumMsgBytes; byteIndex++) { in sendMessages()
226 ALOGI(" 0x%X", mTestMsgs[msgIndex].mMsgBytes[byteIndex]); in sendMessages()
236 for(int msgIndex = 0; msgIndex < mNumTestMsgs; msgIndex++) { in sendMessages() local
238 portSend(mMidiSendPort, mTestMsgs[msgIndex].mMsgBytes, mTestMsgs[msgIndex].mNumMsgBytes, in sendMessages()
/cts/tests/tests/nativemidi/jni/
Dnative-lib.cpp225 for (size_t msgIndex = 0; msgIndex < numMessages; msgIndex++) { in compareInsAndOuts() local
227 if (mReceivedMsgs[msgIndex].numDataBytes != mSentMsgs[msgIndex].numDataBytes) { in compareInsAndOuts()
230 mReceivedMsgs[msgIndex].numDataBytes, mSentMsgs[msgIndex].numDataBytes); in compareInsAndOuts()
235 if (mReceivedMsgs[msgIndex].timestamp != mSentMsgs[msgIndex].timestamp) { in compareInsAndOuts()
241 int dataLen = mReceivedMsgs[msgIndex].numDataBytes; in compareInsAndOuts()
244 if (mReceivedMsgs[msgIndex].dataBuff[dataIndex] != in compareInsAndOuts()
245 mSentMsgs[msgIndex].dataBuff[dataIndex]) { in compareInsAndOuts()
248 (int)mReceivedMsgs[msgIndex].dataBuff[dataIndex], in compareInsAndOuts()
249 (int)mSentMsgs[msgIndex].dataBuff[dataIndex]); in compareInsAndOuts()
267 for (int msgIndex = 0; msgIndex < numMessages; msgIndex++) { in checkInOutLatency() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DMidiJavaTestActivity.java275 for (int msgIndex = 0; msgIndex < mTestMessages.length; msgIndex++) { in setupTestMessages()
276 … for(int byteIndex = 0; byteIndex < mTestMessages[msgIndex].mMsgBytes.length; byteIndex++) { in setupTestMessages()
277 mMatchStream.add(mTestMessages[msgIndex].mMsgBytes[byteIndex]); in setupTestMessages()