Home
last modified time | relevance | path

Searched refs:usbManager (Results 1 – 5 of 5) sorted by relevance

/cts/common/device-side/bedstead/modules/usb/src/main/kotlin/com/android/bedstead/usb/
DUsb.kt25 private val usbManager = constant
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java137 UsbManager usbManager = getSystemService(UsbManager.class); in onAttached() local
151 assertTrue(Arrays.asList(usbManager.getAccessoryList()).contains(accessory)); in onAttached()
153 runAndAssertException(() -> usbManager.openAccessory(null), in onAttached()
156 ParcelFileDescriptor accessoryFd = usbManager.openAccessory(accessory); in onAttached()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DDeviceTestCompanion.java179 UsbManager usbManager = getContext().getSystemService(UsbManager.class); in runTest() local
180 ParcelFileDescriptor fd = usbManager.openAccessory(accessory); in runTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioDeviceUtils.java282 UsbManager usbManager = context.getSystemService(UsbManager.class); in getConnectedUsbDevice() local
284 if (usbManager == null) { in getConnectedUsbDevice()
287 HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList(); in getConnectedUsbDevice()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DBrailleDisplayControllerTest.java714 UsbManager usbManager = sInstrumentation.getContext().getSystemService(UsbManager.class); in connect_realUsbDevice_noPermission_throwsSecurityException() local
715 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()