Home
last modified time | relevance | path

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

/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java67 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() argument
172 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 …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbAlsaManager.java350 /* package */ void usbDeviceAdded(UsbDevice usbDevice) { in usbDeviceAdded() argument
352 Slog.d(TAG, "deviceAdded(): " + usbDevice.getManufacturerName() + in usbDeviceAdded()
353 " nm:" + usbDevice.getProductName()); in usbDeviceAdded()
360 int interfaceCount = usbDevice.getInterfaceCount(); in usbDeviceAdded()
363 UsbInterface ntrface = usbDevice.getInterface(ntrfaceIndex); in usbDeviceAdded()
387 mAudioDevices.put(usbDevice, audioDevice); in usbDeviceAdded()
403 String manufacturer = usbDevice.getManufacturerName(); in usbDeviceAdded()
404 String product = usbDevice.getProductName(); in usbDeviceAdded()
405 String version = usbDevice.getVersion(); in usbDeviceAdded()
419 usbDevice.getSerialNumber()); in usbDeviceAdded()
[all …]