Searched refs:mUsbManager (Results 1 – 2 of 2) sorted by relevance
109 private UsbManager mUsbManager; field in MtpHostTestActivity157 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);
76 private UsbManager mUsbManager; field in UsbAccessoryTestActivity123 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()