Searched refs:usbInterface (Results 1 – 3 of 3) sorted by relevance
140 final UsbInterface usbInterface = device.getInterface(i); in isMtpDevice() local141 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()
225 UsbInterface usbInterface = usbConfiguration.getInterface(interfaceIndex); in UsbDirectMidiDevice() local228 if (areEquivalent(usbInterface, midiInterface)) { in UsbDirectMidiDevice()300 UsbInterface usbInterface = interfaceDescriptor.toAndroid(mParser); in calculateDefaultMidiProtocol() local301 if (!updateUsbInterface(usbInterface, connection)) { in calculateDefaultMidiProtocol()355 UsbInterface usbInterface = interfaceDescriptor.toAndroid(mParser); in openLocked() local356 if (!updateUsbInterface(usbInterface, connection)) { in openLocked()811 private boolean updateUsbInterface(UsbInterface usbInterface, in updateUsbInterface() argument813 if (usbInterface == null) { in updateUsbInterface()821 if (!connection.claimInterface(usbInterface, true)) { in updateUsbInterface()826 if (!connection.setInterface(usbInterface)) { in updateUsbInterface()
49 UsbInterface usbInterface = device.getInterface(i); in possiblyAndroid() local50 String interfaceName = usbInterface.getName(); in possiblyAndroid()