Searched refs:usbDevice (Results 1 – 2 of 2) sorted by relevance
72 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() argument184 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 …]
75 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() argument186 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 …]