Searched refs:usbInterface (Results 1 – 2 of 2) sorted by relevance
133 final UsbInterface usbInterface = device.getInterface(i); in isMtpDevice() local134 if ((usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_STILL_IMAGE && in isMtpDevice()135 usbInterface.getInterfaceSubclass() == SUBCLASS_STILL_IMAGE_CAPTURE && in isMtpDevice()136 usbInterface.getInterfaceProtocol() == PROTOCOL_PTP)) { in isMtpDevice()139 if (usbInterface.getInterfaceClass() == UsbConstants.USB_SUBCLASS_VENDOR_SPEC && in isMtpDevice()140 usbInterface.getInterfaceSubclass() == SUBCLASS_MTP && in isMtpDevice()141 usbInterface.getInterfaceProtocol() == PROTOCOL_MTP && in isMtpDevice()142 "MTP".equals(usbInterface.getName())) { in isMtpDevice()
298 final UsbInterface usbInterface = device.getInterface(i); in isMtpDevice() local299 if ((usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_STILL_IMAGE && in isMtpDevice()300 usbInterface.getInterfaceSubclass() == SUBCLASS_STILL_IMAGE_CAPTURE && in isMtpDevice()301 usbInterface.getInterfaceProtocol() == PROTOCOL_PICTURE_TRANSFER)) { in isMtpDevice()304 if (usbInterface.getInterfaceClass() == UsbConstants.USB_SUBCLASS_VENDOR_SPEC && in isMtpDevice()305 usbInterface.getInterfaceSubclass() == SUBCLASS_MTP && in isMtpDevice()306 usbInterface.getInterfaceProtocol() == PROTOCOL_MTP && in isMtpDevice()307 "MTP".equals(usbInterface.getName())) { in isMtpDevice()