Home
last modified time | relevance | path

Searched refs:usbDevice (Results 1 – 4 of 4) 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.java210 /* package */ void usbDeviceAdded(String deviceAddress, UsbDevice usbDevice, in usbDeviceAdded() argument
213 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()
259 addMidiDevice(deviceAddress, usbDevice, parser, cardRec); in usbDeviceAdded()
268 private void addMidiDevice(String deviceAddress, UsbDevice usbDevice, in addMidiDevice() argument
279 String manufacturer = usbDevice.getManufacturerName(); in addMidiDevice()
280 String product = usbDevice.getProductName(); in addMidiDevice()
281 String version = usbDevice.getVersion(); in addMidiDevice()
[all …]
DUsbDirectMidiDevice.java168 public static UsbDirectMidiDevice create(Context context, UsbDevice usbDevice, in create() argument
171 UsbDirectMidiDevice midiDevice = new UsbDirectMidiDevice(usbDevice, parser, in create()
181 private UsbDirectMidiDevice(UsbDevice usbDevice, UsbDescriptorParser parser, in UsbDirectMidiDevice() argument
183 mUsbDevice = usbDevice; in UsbDirectMidiDevice()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceVolumeManagerTest.java84 final AudioDeviceAttributes usbDevice = new AudioDeviceAttributes( in testSetDeviceVolume() local
87 mAudioService.setDeviceVolume(volMin, usbDevice, mPackageName); in testSetDeviceVolume()
92 mAudioService.setDeviceVolume(volMid, usbDevice, mPackageName); in testSetDeviceVolume()
97 final VolumeInfo vi = mAudioService.getDeviceVolume(volMin, usbDevice, mPackageName); in testSetDeviceVolume()