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.java138 final UsbInterface usbInterface = device.getInterface(i); in isMtpDevice() local
139 if ((usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_STILL_IMAGE && in isMtpDevice()
140 usbInterface.getInterfaceSubclass() == SUBCLASS_STILL_IMAGE_CAPTURE && in isMtpDevice()
141 usbInterface.getInterfaceProtocol() == PROTOCOL_PTP)) { in isMtpDevice()
144 if (usbInterface.getInterfaceClass() == UsbConstants.USB_SUBCLASS_VENDOR_SPEC && in isMtpDevice()
145 usbInterface.getInterfaceSubclass() == SUBCLASS_MTP && in isMtpDevice()
146 usbInterface.getInterfaceProtocol() == PROTOCOL_MTP && in isMtpDevice()
147 "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()
/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()