Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbHostManager.java441 UsbDirectMidiDevice midiDevice = UsbDirectMidiDevice.create(mContext, in usbDeviceAdded() local
443 if (midiDevice != null) { in usbDeviceAdded()
444 midiDevices.add(midiDevice); in usbDeviceAdded()
454 midiDevice = UsbDirectMidiDevice.create(mContext, in usbDeviceAdded()
456 if (midiDevice != null) { in usbDeviceAdded()
457 midiDevices.add(midiDevice); in usbDeviceAdded()
506 for (UsbDirectMidiDevice midiDevice : midiDevices) { in usbDeviceRemoved()
507 if (midiDevice != null) { in usbDeviceRemoved()
508 IoUtils.closeQuietly(midiDevice); in usbDeviceRemoved()
DUsbAlsaMidiDevice.java155 UsbAlsaMidiDevice midiDevice = new UsbAlsaMidiDevice(card, device, numInputs, numOutputs); in create() local
156 if (!midiDevice.register(context, properties)) { in create()
157 IoUtils.closeQuietly(midiDevice); in create()
161 return midiDevice; in create()
DUsbAlsaManager.java402 UsbAlsaMidiDevice midiDevice = UsbAlsaMidiDevice.create(mContext, properties, in addMidiDevice() local
405 if (midiDevice != null) { in addMidiDevice()
406 mMidiDevices.put(deviceAddress, midiDevice); in addMidiDevice()
434 UsbAlsaMidiDevice midiDevice = mMidiDevices.remove(deviceAddress); in usbDeviceRemoved() local
435 if (midiDevice != null) { in usbDeviceRemoved()
437 IoUtils.closeQuietly(midiDevice); in usbDeviceRemoved()
DUsbDirectMidiDevice.java188 UsbDirectMidiDevice midiDevice = new UsbDirectMidiDevice(usbDevice, parser, in create() local
190 if (!midiDevice.register(context)) { in create()
191 IoUtils.closeQuietly(midiDevice); in create()
195 return midiDevice; in create()
/frameworks/base/media/native/midi/include/amidi/
DAMidi.h168 media_status_t AMIDI_API AMidiDevice_release(const AMidiDevice *midiDevice) __INTRODUCED_IN(29);
/frameworks/base/media/java/android/media/midi/
DMidiManager.java436 public void closeBluetoothDevice(@NonNull MidiDevice midiDevice) { in closeBluetoothDevice() argument
438 midiDevice.close(); in closeBluetoothDevice()
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java1166 MidiDevice midiDevice; in closeBluetoothDevice() local
1168 midiDevice = mBleMidiDeviceMap.remove(bluetoothDevice); in closeBluetoothDevice()
1171 if (midiDevice != null) { in closeBluetoothDevice()
1173 midiDevice.close(); in closeBluetoothDevice()