Searched refs:usbDevice (Results 1 – 2 of 2) sorted by relevance
67 UsbDevice usbDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);68 String deviceName = usbDevice.getDeviceName();75 mtpDevice = openDeviceLocked(usbDevice);95 mtpDevice = openDeviceLocked(usbDevice);171 private MtpDevice openDeviceLocked(UsbDevice usbDevice) { in openDeviceLocked() argument172 if (isCamera(usbDevice)) { in openDeviceLocked()173 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()174 mUsbManager.requestPermission(usbDevice, mPermissionIntent); in openDeviceLocked()176 UsbDeviceConnection connection = mUsbManager.openDevice(usbDevice); in openDeviceLocked()178 MtpDevice mtpDevice = new MtpDevice(usbDevice); in openDeviceLocked()[all …]
210 /* package */ void usbDeviceAdded(String deviceAddress, UsbDevice usbDevice, in usbDeviceAdded() argument213 Slog.d(TAG, "usbDeviceAdded(): " + usbDevice.getManufacturerName() in usbDeviceAdded()214 + " nm:" + usbDevice.getProductName()); in usbDeviceAdded()229 && !isDeviceDenylisted(usbDevice.getVendorId(), usbDevice.getProductId(), in usbDeviceAdded()232 && !isDeviceDenylisted(usbDevice.getVendorId(), usbDevice.getProductId(), in usbDeviceAdded()266 String manufacturer = usbDevice.getManufacturerName(); in usbDeviceAdded()267 String product = usbDevice.getProductName(); in usbDeviceAdded()268 String version = usbDevice.getVersion(); in usbDeviceAdded()282 usbDevice.getSerialNumber()); in usbDeviceAdded()285 properties.putParcelable(MidiDeviceInfo.PROPERTY_USB_DEVICE, usbDevice); in usbDeviceAdded()