Java Code Examples for android.media.midi.MidiDeviceInfo.PortInfo#getPortNumber()
The following examples show how to use
android.media.midi.MidiDeviceInfo.PortInfo#getPortNumber() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MidiPortWrapper.java From media-samples with Apache License 2.0 | 5 votes |
/** * @param info * @param portIndex * @return */ private PortInfo findPortInfo() { PortInfo[] ports = mInfo.getPorts(); for (PortInfo portInfo : ports) { if (portInfo.getPortNumber() == mPortIndex && portInfo.getType() == mType) { return portInfo; } } return null; }
Example 2
Source File: MidiPortWrapper.java From media-samples with Apache License 2.0 | 5 votes |
/** * @param info * @param portIndex * @return */ private PortInfo findPortInfo() { PortInfo[] ports = mInfo.getPorts(); for (PortInfo portInfo : ports) { if (portInfo.getPortNumber() == mPortIndex && portInfo.getType() == mType) { return portInfo; } } return null; }
Example 3
Source File: MidiPortWrapper.java From android-MidiSynth with Apache License 2.0 | 5 votes |
/** * @param info * @param portIndex * @return */ private PortInfo findPortInfo() { PortInfo[] ports = mInfo.getPorts(); for (PortInfo portInfo : ports) { if (portInfo.getPortNumber() == mPortIndex && portInfo.getType() == mType) { return portInfo; } } return null; }
Example 4
Source File: MidiPortWrapper.java From android-MidiScope with Apache License 2.0 | 5 votes |
/** * @param info * @param portIndex * @return */ private PortInfo findPortInfo() { PortInfo[] ports = mInfo.getPorts(); for (PortInfo portInfo : ports) { if (portInfo.getPortNumber() == mPortIndex && portInfo.getType() == mType) { return portInfo; } } return null; }
Example 5
Source File: MidiPortWrapper.java From android-midisuite with Apache License 2.0 | 5 votes |
/** * @param info * @param portIndex * @return */ private PortInfo findPortInfo() { PortInfo[] ports = mInfo.getPorts(); for (PortInfo portInfo : ports) { if (portInfo.getPortNumber() == mPortIndex && portInfo.getType() == mType) { return portInfo; } } return null; }