Home
last modified time | relevance | path

Searched refs:exceptionClass (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/nfc/src/android/nfc/cts/
DNfcFrameworkInitializerTest.java44 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() argument
47 fail("Expected " + exceptionClass + " to be thrown."); in assertThrows()
49 assertThat(exception).isInstanceOf(exceptionClass); in assertThrows()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothFrameworkInitializerTest.java55 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() argument
58 fail("Expected " + exceptionClass + " to be thrown."); in assertThrows()
60 assertThat(exception).isInstanceOf(exceptionClass); in assertThrows()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/logcat/
DSystemServerException.java28 String exceptionClass, String exceptionMessage, in SystemServerException() argument
30 super(exceptionClass + ": " + exceptionMessage, cause); in SystemServerException()
DLogcat.java142 String exceptionClass = exceptionTitlePaths[0]; in findSystemServerExceptions() local
145 if (exceptionClass.equals(t.getClass().getName())) { in findSystemServerExceptions()
163 exceptionClass, exceptionMessage, traceLines, t)); in findSystemServerExceptions()
179 String exceptionClass, String exceptionMessage, List<String> traceLines, in extractStackTraceFromStrings() argument
185 exceptionClass, exceptionMessage, traceElements, cause); in extractStackTraceFromStrings()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DCtsTestUtils.java33 public static <E extends Throwable> E assertThrows(Class<E> exceptionClass, Runnable action) { in assertThrows() argument
38 if (exceptionClass.isInstance(e)) { in assertThrows()
/cts/tests/framework/base/windowmanager/src/android/server/wm/taskfragment/
DTaskFragmentTrustedModeTest.java253 @NonNull Class<? extends Throwable> exceptionClass) { in assertTaskFragmentError() argument
255 assertThat(mTaskFragmentOrganizer.getThrowable()).isInstanceOf(exceptionClass); in assertTaskFragmentError()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DServiceStateTest.java466 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() argument
469 Assert.fail("Expected " + exceptionClass + " to be thrown."); in assertThrows()
471 assertThat(exception).isInstanceOf(exceptionClass); in assertThrows()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerStartShortcutTest.java84 Class<? extends Throwable> exceptionClass) { in assertShortcutCantStart() argument
86 assertExpectException(exceptionClass, "", () -> { in assertShortcutCantStart()
/cts/tests/tests/car/lib/CarIntegrationTestUtilsLib/src/android/car/cts/utils/
DVehiclePropertyVerifier.java574 Class<? extends Throwable> exceptionClass, int propertyId, int areaId) { in assertGetPropertyThrowsException() argument
575 assertThrows(msg, exceptionClass, in assertGetPropertyThrowsException()
577 assertThrows(msg, exceptionClass, in assertGetPropertyThrowsException()
579 assertThrows(msg, exceptionClass, in assertGetPropertyThrowsException()
581 assertThrows(msg, exceptionClass, in assertGetPropertyThrowsException()
583 assertThrows(msg, exceptionClass, in assertGetPropertyThrowsException()