Searched refs:usbManager (Results 1 – 5 of 5) sorted by relevance
25 private val usbManager = constant
137 UsbManager usbManager = getSystemService(UsbManager.class); in onAttached() local151 assertTrue(Arrays.asList(usbManager.getAccessoryList()).contains(accessory)); in onAttached()153 runAndAssertException(() -> usbManager.openAccessory(null), in onAttached()156 ParcelFileDescriptor accessoryFd = usbManager.openAccessory(accessory); in onAttached()
179 UsbManager usbManager = getContext().getSystemService(UsbManager.class); in runTest() local180 ParcelFileDescriptor fd = usbManager.openAccessory(accessory); in runTest()
282 UsbManager usbManager = context.getSystemService(UsbManager.class); in getConnectedUsbDevice() local284 if (usbManager == null) { in getConnectedUsbDevice()287 HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList(); in getConnectedUsbDevice()
714 UsbManager usbManager = sInstrumentation.getContext().getSystemService(UsbManager.class); in connect_realUsbDevice_noPermission_throwsSecurityException() local715 assumeTrue(usbManager != null); in connect_realUsbDevice_noPermission_throwsSecurityException()716 HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList(); in connect_realUsbDevice_noPermission_throwsSecurityException()720 if (!usbManager.hasPermission(usbDevice)) { in connect_realUsbDevice_noPermission_throwsSecurityException()