Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DMidiJavaTestActivity.java141 private MidiIODevice mUSBLoopbackDevice = new MidiIODevice(MidiDeviceInfo.TYPE_USB); field in MidiJavaTestActivity.BTMidiTestModule
152 mUSBLoopbackDevice.scanDevices(devInfos); in scanDevices()
159 mUSBLoopbackDevice.mReceivePort = device.openOutputPort(0); in openUSBEchoDevice()
160 mUSBLoopbackDevice.mReceivePort.connect(new USBMidiEchoReceiver()); in openUSBEchoDevice()
165 mUSBLoopbackDevice.mSendPort = device.openInputPort(0); in openUSBEchoDevice()
171 mUSBLoopbackDevice.closePorts(); in closePorts()
183 mUSBLoopbackDevice.closePorts(); in startLoopbackTest()
187 mUSBLoopbackDevice.mSendDevInfo, new USBLoopbackOpenListener(), null); in startLoopbackTest()
200 mUSBLoopbackDevice.openPorts(device, new USBMidiEchoReceiver()); in onDeviceOpened()
223 if (mUSBLoopbackDevice.mSendPort == null) { in onSend()
[all …]
DMidiNativeTestActivity.java230 private MidiIODevice mUSBLoopbackDevice = new MidiIODevice(MidiDeviceInfo.TYPE_USB); field in MidiNativeTestActivity.BTMidiTestModule
241 mUSBLoopbackDevice.scanDevices(devInfos); in scanDevices()
246 if (mUSBLoopbackDevice != null) { in closePorts()
247 mUSBLoopbackDevice.closePorts(); in closePorts()
257 mUSBLoopbackDevice.closePorts(); in startLoopbackTest()
261 mUSBLoopbackDevice.mSendDevInfo, new USBLoopbackOpenListener(), null); in startLoopbackTest()
277 mUSBLoopbackDevice.openPorts(device, new USBMidiEchoReceiver()); in onDeviceOpened()
300 if (mUSBLoopbackDevice.mSendPort == null) { in onSend()
303 mUSBLoopbackDevice.mSendPort.onSend(msg, offset, count, timestamp); in onSend()