Home
last modified time | relevance | path

Searched refs:makeMIDICmd (Results 1 – 2 of 2) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/midilib/
DJavaMidiTestModule.java80 private byte[] mWarmUpMsg = {makeMIDICmd(MIDICMD_CONTROL, 0), 0, 0};
154 byte[] noteOnBytes = new byte[]{ makeMIDICmd(MIDICMD_NOTEON, 0), 64, 21 }; in setupTestMessages()
158 byte[] noteOffBytes = new byte[]{ makeMIDICmd(MIDICMD_NOTEOFF, 0), 73, 65 }; in setupTestMessages()
258 && (bytes[offset + index] != makeMIDICmd(MIDICMD_CONTROL, 0))) { in matchStream()
374 private static byte makeMIDICmd(int cmd, int channel) { in makeMIDICmd() method in JavaMidiTestModule
/cts/apps/CtsVerifier/jni/midi/
DMidiTestManager.cpp63 #define makeMIDICmd(cmd, channel) (uint8_t)((cmd << 4) | (channel & 0x0F)) macro
65 uint8_t warmupMsg[] = {makeMIDICmd(kMIDIChanCmd_Control, 0), 0, 0};
66 uint8_t msg0[] = {makeMIDICmd(kMIDIChanCmd_KeyDown, 0), 64, 120};
67 uint8_t msg1[] = {makeMIDICmd(kMIDIChanCmd_KeyUp, 0), 64, 35};
248 if ((mReceiveStreamPos == 0) && bytes[index] != makeMIDICmd(kMIDIChanCmd_Control, 0)) { in matchStream()