Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java19 import static com.android.cts.verifier.usb.Util.runAndAssertException;
455 runAndAssertException(() -> connection.controlTransfer(0, 0, 0, 0, null, 1, 0), in ctrlTransferTests()
458 runAndAssertException(() -> connection.controlTransfer(0, 0, 0, 0, new byte[1], -1, 0), in ctrlTransferTests()
461 runAndAssertException(() -> connection.controlTransfer(0, 0, 0, 0, new byte[1], 2, 0), in ctrlTransferTests()
464 runAndAssertException(() -> connection.controlTransfer(0, 0, 0, 0, null, 0, 1, 0), in ctrlTransferTests()
467 runAndAssertException(() -> connection.controlTransfer(0, 0, 0, 0, new byte[1], 0, -1, 0), in ctrlTransferTests()
470 runAndAssertException(() -> connection.controlTransfer(0, 0, 0, 0, new byte[1], 1, 1, 0), in ctrlTransferTests()
844 runAndAssertException(() -> connection.requestWait(-1), IllegalArgumentException.class); in timeoutWhileWaitingForUsbRequest()
847 runAndAssertException(() -> connection.requestWait(100), TimeoutException.class); in timeoutWhileWaitingForUsbRequest()
852 runAndAssertException(() -> connection.requestWait(0), TimeoutException.class); in timeoutWhileWaitingForUsbRequest()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DUtil.java34 public static void runAndAssertException(@NonNull Invokable r, in runAndAssertException() method in Util
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java19 import static com.android.cts.verifier.usb.Util.runAndAssertException;
105 runAndAssertException(() -> usbManager.openAccessory(null), in onAttached()