Home
last modified time | relevance | path

Searched refs:usbDevice (Results 1 – 3 of 3) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUsbMicrophoneTester.java36 for(UsbDevice usbDevice : devicelist.values()) { in getUSBDeviceListString()
37 sb.append("Model : " + usbDevice.getDeviceName() + "\n"); in getUSBDeviceListString()
38 sb.append(" Id : " + usbDevice.getDeviceId() + "\n"); in getUSBDeviceListString()
39 sb.append(" Class : " + usbDevice.getDeviceClass() + "\n"); in getUSBDeviceListString()
40 sb.append(" Prod.Id : " + usbDevice.getProductId() + "\n"); in getUSBDeviceListString()
41 sb.append(" Vendor.Id : " + usbDevice.getVendorId() + "\n"); in getUSBDeviceListString()
42 int iCount = usbDevice.getInterfaceCount(); in getUSBDeviceListString()
44 UsbInterface usbInterface = usbDevice.getInterface(i); in getUSBDeviceListString()
56 for(UsbDevice usbDevice : devicelist.values()) { in getIsMicrophoneConnected()
57 int iCount = usbDevice.getInterfaceCount(); in getIsMicrophoneConnected()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioDeviceUtils.java305 public static boolean isUsbHeadsetValidForTest(UsbDevice usbDevice, in isUsbHeadsetValidForTest() argument
307 boolean isValid = usbDevice != null in isUsbHeadsetValidForTest()
308 && usbDevice.getVendorId() == USBVENDORID_GOOGLE in isUsbHeadsetValidForTest()
309 && usbDevice.getProductId() == USBPRODUCTID_GOOGLEADAPTER; in isUsbHeadsetValidForTest()
346 UsbDevice usbDevice = AudioDeviceUtils.getConnectedUsbDevice(context); in validateUsbDevice() local
347 if (usbDevice != null) { in validateUsbDevice()
348 AudioDeviceUtils.isUsbHeadsetValidForTest(usbDevice, true, context); in validateUsbDevice()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DBrailleDisplayControllerTest.java719 for (UsbDevice usbDevice : deviceList.values()) { in connect_realUsbDevice_noPermission_throwsSecurityException()
720 if (!usbManager.hasPermission(usbDevice)) { in connect_realUsbDevice_noPermission_throwsSecurityException()
723 () -> mController.connect(usbDevice, mExecutor, in connect_realUsbDevice_noPermission_throwsSecurityException()