Searched refs:mUsbManager (Results 1 – 4 of 4) sorted by relevance
63 private UsbManager mUsbManager; field in USBRestrictRecordAActivity82 mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE); in onCreate()159 HashMap<String, UsbDevice> deviceList = mUsbManager.getDeviceList(); in connectUSB()176 mUsbManager.requestPermission(theDevice, permissionIntent); in connectUSB()
48 private UsbManager mUsbManager; field in AccessoryTestCompanion63 mUsbManager = getContext().getSystemService(UsbManager.class); in runTest()73 if (mUsbManager.hasPermission(device)) { in runTest()76 mUsbManager.requestPermission(device, in runTest()120 UsbDeviceConnection connection = mUsbManager.openDevice(mDevice); in runTest()270 UsbDeviceConnection connection = mUsbManager.openDevice(device); in onDeviceAccessPermitted()
111 private UsbManager mUsbManager; field in MtpHostTestActivity159 mUsbManager = getSystemService(UsbManager.class); in onCreate()240 for (final UsbDevice candidate : mUsbManager.getDeviceList().values()) {251 if (!mUsbManager.hasPermission(mUsbDevice)) {262 mUsbManager.requestPermission(271 assertTrue(mUsbManager.hasPermission(mUsbDevice));274 final UsbDeviceConnection connection = mUsbManager.openDevice(mUsbDevice);
80 private UsbManager mUsbManager; field in UsbDeviceTestActivity120 mUsbManager = getSystemService(UsbManager.class); in onCreate()153 mUsbManager.requestPermission(device, in onCreate()167 UsbDeviceConnection connection = mUsbManager.openDevice(device); in onCreate()1551 UsbDeviceConnection connection = mUsbManager.openDevice(device); in reconnectTest()1600 mUsbManager.requestPermission(device, in attachedTask()1628 mUsbManager.openDevice(device); in attachedTask()1640 mUsbManager.openDevice(device); in attachedTask()2067 UsbDeviceConnection connection = mUsbManager.openDevice(device); in setConfigurationTests()2126 for (Map.Entry<String, UsbDevice> entry : mUsbManager.getDeviceList().entrySet()) { in enumerateDevices()[all …]