Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DMtpNotificationManager.java133 final UsbInterface usbInterface = device.getInterface(i); in isMtpDevice() local
134 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()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpManager.java298 final UsbInterface usbInterface = device.getInterface(i); in isMtpDevice() local
299 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()