Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbMidiPacketConverter.java110 public void encodeMidiPackets(byte[] midiBytes, int size, int encoderId) { in encodeMidiPackets() argument
116 byte[] encodedPacket = mUsbMidiEncoders[encoderId].encode(midiBytes, size); in encodeMidiPackets()
237 public byte[] encode(byte[] midiBytes, int size) { in encode() argument
241 if (midiBytes[curLocation] >= 0) { // Data byte in encode()
244 midiBytes[curLocation]; in encode()
253 writeSingleByte(outputStream, midiBytes[curLocation]); in encode()
257 } else if (midiBytes[curLocation] != SYSEX_END_EXCLUSIVE) { in encode()
270 if (midiBytes[curLocation] < FIRST_SYSTEM_MESSAGE_VALUE) { // Channel message in encode()
271 byte codeIndexNumber = (byte) ((midiBytes[curLocation] >> 4) & 0x0f); in encode()
275 outputStream.write(midiBytes, curLocation, channelMessageSize); in encode()
[all …]