Searched refs:midiDevice (Results 1 – 6 of 6) sorted by relevance
440 UsbDirectMidiDevice midiDevice = UsbDirectMidiDevice.create(mContext, in usbDeviceAdded() local442 if (midiDevice != null) { in usbDeviceAdded()443 midiDevices.add(midiDevice); in usbDeviceAdded()453 midiDevice = UsbDirectMidiDevice.create(mContext, in usbDeviceAdded()455 if (midiDevice != null) { in usbDeviceAdded()456 midiDevices.add(midiDevice); in usbDeviceAdded()506 for (UsbDirectMidiDevice midiDevice : midiDevices) { in usbDeviceRemoved()507 if (midiDevice != null) { in usbDeviceRemoved()508 IoUtils.closeQuietly(midiDevice); in usbDeviceRemoved()
149 UsbMidiDevice midiDevice = new UsbMidiDevice(card, device, numInputs, numOutputs); in create() local150 if (!midiDevice.register(context, properties)) { in create()151 IoUtils.closeQuietly(midiDevice); in create()155 return midiDevice; in create()
171 UsbDirectMidiDevice midiDevice = new UsbDirectMidiDevice(usbDevice, parser, in create() local173 if (!midiDevice.register(context)) { in create()174 IoUtils.closeQuietly(midiDevice); in create()178 return midiDevice; in create()
168 media_status_t AMIDI_API AMidiDevice_release(const AMidiDevice *midiDevice) __INTRODUCED_IN(29);
437 public void closeBluetoothDevice(@NonNull MidiDevice midiDevice) { in closeBluetoothDevice() argument439 midiDevice.close(); in closeBluetoothDevice()
994 MidiDevice midiDevice; in closeBluetoothDevice() local996 midiDevice = mBleMidiDeviceMap.remove(bluetoothDevice); in closeBluetoothDevice()999 if (midiDevice != null) { in closeBluetoothDevice()1001 midiDevice.close(); in closeBluetoothDevice()