Home
last modified time | relevance | path

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

/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiOutputPortSelector.java35 private MidiOutputPort mOutputPort; field in MidiOutputPortSelector
64 mOutputPort = device.openOutputPort(wrapper.getPortIndex()); in onPortSelected()
65 if (mOutputPort == null) { in onPortSelected()
70 mOutputPort.connect(mDispatcher); in onPortSelected()
81 if (mOutputPort != null) { in onClose()
82 mOutputPort.disconnect(mDispatcher); in onClose()
84 mOutputPort = null; in onClose()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiOutputPortSelector.java35 private MidiOutputPort mOutputPort; field in MidiOutputPortSelector
64 mOutputPort = device.openOutputPort(wrapper.getPortIndex()); in onPortSelected()
65 if (mOutputPort == null) { in onPortSelected()
70 mOutputPort.connect(mDispatcher); in onPortSelected()
81 if (mOutputPort != null) { in onClose()
82 mOutputPort.disconnect(mDispatcher); in onClose()
84 mOutputPort = null; in onClose()