Home
last modified time | relevance | path

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

/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbHostManagementActivity.java61 private UsbDevice mUsbDevice = null; field in UsbHostManagementActivity
80 mUsbDevice = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate()
83 if (mUsbDevice == null) { in onCreate()
86 mUsbDevice = devices.getLast(); in onCreate()
89 updateDevice(mUsbDevice); in onCreate()
99 if (mUsbDevice == null) { in onCreate()
102 startAoap(mUsbDevice); in onCreate()
108 if (mUsbDevice == null) { in onCreate()
111 startAoapActivity(mUsbDevice); in onCreate()
117 if (mUsbDevice == null) { in onCreate()
[all …]
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestHost/src/com/android/hardware/usb/aoaphosttest/
DUsbAoapHostTestActivity.java45 private UsbDevice mUsbDevice; field in UsbAoapHostTestActivity
63 mUsbDevice = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate()
64 mUsbConnection = mUsbManager.openDevice(mUsbDevice); in onCreate()
65 mReaderThread = new ReaderThread(mUsbDevice, mUsbConnection); in onCreate()
159 if (isDevicesMatching(mUsbDevice, device)) { in onReceive()
/frameworks/base/tests/UsbManagerTests/src/com/android/server/usbtest/
DUsbProfileGroupSettingsManagerTest.java98 private UsbDevice mUsbDevice; field in UsbProfileGroupSettingsManagerTest
176 mUsbProfileGroupSettingsManager.deviceAttached(mUsbDevice); in testDeviceAttached_foregroundActivityWithManifestField_resolveActivityNotCalled()
185 mUsbProfileGroupSettingsManager.deviceAttached(mUsbDevice); in testDeviceAttached_noForegroundActivity_resolveActivityCalled()
197 mUsbProfileGroupSettingsManager.deviceAttached(mUsbDevice); in testDeviceAttached_noForegroundActivityWithUsbPermission_resolveActivityCalled()
206 mUsbProfileGroupSettingsManager.deviceAttached(mUsbDevice); in testDeviceAttached_restricUsbOverlayPropertyDisabled_resolveActivityCalled()
215 mUsbProfileGroupSettingsManager.deviceAttached(mUsbDevice); in testDeviceAttached_flagFalse_resolveActivityCalled()
226 mUsbProfileGroupSettingsManager.deviceAttached(mUsbDevice); in testDeviceAttached_setupNotCompleteAndNoBlockingActivities_resolveActivityNotCalled()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDirectMidiDevice.java66 private UsbDevice mUsbDevice; field in UsbDirectMidiDevice
200 mUsbDevice = usbDevice; in UsbDirectMidiDevice()
217 if (mUsbDevice.getConfigurationCount() > 0) { in UsbDirectMidiDevice()
222 UsbConfiguration usbConfiguration = mUsbDevice.getConfiguration(0); in UsbDirectMidiDevice()
235 if (mUsbDevice.getConfigurationCount() > 1) { in UsbDirectMidiDevice()
237 + mUsbDevice.getConfigurationCount()); in UsbDirectMidiDevice()
299 UsbDeviceConnection connection = manager.openDevice(mUsbDevice); in calculateDefaultMidiProtocol()
354 UsbDeviceConnection connection = manager.openDevice(mUsbDevice); in openLocked()
684 String manufacturer = mUsbDevice.getManufacturerName(); in register()
685 String product = mUsbDevice.getProductName(); in register()
[all …]