Home
last modified time | relevance | path

Searched refs:usbInterface (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/usb/java/com/android/server/usb/
DMtpNotificationManager.java140 final UsbInterface usbInterface = device.getInterface(i); in isMtpDevice() local
141 if ((usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_STILL_IMAGE && in isMtpDevice()
142 usbInterface.getInterfaceSubclass() == SUBCLASS_STILL_IMAGE_CAPTURE && in isMtpDevice()
143 usbInterface.getInterfaceProtocol() == PROTOCOL_PTP)) { in isMtpDevice()
146 if (usbInterface.getInterfaceClass() == UsbConstants.USB_SUBCLASS_VENDOR_SPEC && in isMtpDevice()
147 usbInterface.getInterfaceSubclass() == SUBCLASS_MTP && in isMtpDevice()
148 usbInterface.getInterfaceProtocol() == PROTOCOL_MTP && in isMtpDevice()
149 "MTP".equals(usbInterface.getName())) { in isMtpDevice()
DUsbDirectMidiDevice.java225 UsbInterface usbInterface = usbConfiguration.getInterface(interfaceIndex); in UsbDirectMidiDevice() local
228 if (areEquivalent(usbInterface, midiInterface)) { in UsbDirectMidiDevice()
300 UsbInterface usbInterface = interfaceDescriptor.toAndroid(mParser); in calculateDefaultMidiProtocol() local
301 if (!updateUsbInterface(usbInterface, connection)) { in calculateDefaultMidiProtocol()
355 UsbInterface usbInterface = interfaceDescriptor.toAndroid(mParser); in openLocked() local
356 if (!updateUsbInterface(usbInterface, connection)) { in openLocked()
811 private boolean updateUsbInterface(UsbInterface usbInterface, in updateUsbInterface() argument
813 if (usbInterface == null) { in updateUsbInterface()
821 if (!connection.claimInterface(usbInterface, true)) { in updateUsbInterface()
826 if (!connection.setInterface(usbInterface)) { in updateUsbInterface()
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbUtil.java49 UsbInterface usbInterface = device.getInterface(i); in possiblyAndroid() local
50 String interfaceName = usbInterface.getName(); in possiblyAndroid()