Home
last modified time | relevance | path

Searched refs:usbDevice (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java72 UsbDevice usbDevice = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
73 String deviceName = usbDevice.getDeviceName();
80 mtpDevice = openDeviceLocked(usbDevice);
103 mtpDevice = openDeviceLocked(usbDevice);
183 private MtpDevice openDeviceLocked(UsbDevice usbDevice) { in openDeviceLocked() argument
184 String deviceName = usbDevice.getDeviceName(); in openDeviceLocked()
188 if (isCamera(usbDevice) && !mIgnoredDevices.contains(deviceName) in openDeviceLocked()
190 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
191 mUsbManager.requestPermission(usbDevice, mPermissionIntent); in openDeviceLocked()
194 UsbDeviceConnection connection = mUsbManager.openDevice(usbDevice); in openDeviceLocked()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java75 UsbDevice usbDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
76 String deviceName = usbDevice.getDeviceName();
83 mtpDevice = openDeviceLocked(usbDevice);
106 mtpDevice = openDeviceLocked(usbDevice);
185 private MtpDevice openDeviceLocked(UsbDevice usbDevice) { in openDeviceLocked() argument
186 String deviceName = usbDevice.getDeviceName(); in openDeviceLocked()
190 if (isCamera(usbDevice) && !mIgnoredDevices.contains(deviceName) in openDeviceLocked()
192 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
193 mUsbManager.requestPermission(usbDevice, mPermissionIntent); in openDeviceLocked()
196 UsbDeviceConnection connection = mUsbManager.openDevice(usbDevice); in openDeviceLocked()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbHostController.java137 private static String generateTitle(Context context, UsbDevice usbDevice) { in generateTitle() argument
138 String manufacturer = usbDevice.getManufacturerName(); in generateTitle()
139 String product = usbDevice.getProductName(); in generateTitle()
281 UsbDevice usbDevice, UsbDeviceSettings usbDeviceSettings, in UsbHostControllerHandlerDispatchData() argument
283 mUsbDevice = usbDevice; in UsbHostControllerHandlerDispatchData()
/packages/modules/adb/client/
Dusb_osx.cpp137 io_service_t usbDevice; in AndroidInterfaceAdded() local
190 kr = (*iface)->GetDevice(iface, &usbDevice); in AndroidInterfaceAdded()
191 if (kIOReturnSuccess != kr || !usbDevice) { in AndroidInterfaceAdded()
200 kr = IOCreatePlugInInterfaceForService(usbDevice, in AndroidInterfaceAdded()
205 (void)IOObjectRelease(usbDevice); in AndroidInterfaceAdded()