Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DMtpHostTestActivity.java109 private UsbManager mUsbManager; field in MtpHostTestActivity
157 mUsbManager = getSystemService(UsbManager.class); in onCreate()
227 for (final UsbDevice candidate : mUsbManager.getDeviceList().values()) {
238 if (!mUsbManager.hasPermission(mUsbDevice)) {
249 mUsbManager.requestPermission(
255 assertTrue(mUsbManager.hasPermission(mUsbDevice));
258 final UsbDeviceConnection connection = mUsbManager.openDevice(mUsbDevice);
DUsbAccessoryTestActivity.java76 private UsbManager mUsbManager; field in UsbAccessoryTestActivity
123 mUsbManager = (UsbManager) getSystemService(USB_SERVICE); in onCreate()
223 mFileDescriptor = mUsbManager.openAccessory(accessory); in openAccessory()
397 UsbAccessory[] accessories = mUsbManager.getAccessoryList(); in onResume()
402 if (mUsbManager.hasPermission(accessory)) { in onResume()
406 mUsbManager.requestPermission(accessory, mPermissionIntent); in onResume()