Home
last modified time | relevance | path

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

/cts/tests/tests/secure_element/src/android/secure_element/cts/
DSeFrameworkInitializerTest.java33 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() argument
36 fail("Expected " + exceptionClass + " to be thrown."); in assertThrows()
38 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.java39 public static <E extends Throwable> E assertThrows(Class<E> exceptionClass, Runnable action) { in assertThrows() argument
44 if (exceptionClass.isInstance(e)) { in assertThrows()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/
DTestApisTest.java226 private <T extends Exception> void assertSpecificExceptionIsNotThrown(Class<T> exceptionClass, in assertSpecificExceptionIsNotThrown() argument
231 if (exceptionClass.isInstance(e)) { in assertSpecificExceptionIsNotThrown()
232 fail(exceptionClass.getName() + " was thrown"); in assertSpecificExceptionIsNotThrown()
236 exceptionClass.getName()); in assertSpecificExceptionIsNotThrown()
/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.java982 String msg, Class<? extends Throwable> exceptionClass, int propertyId, int areaId) { in assertGetPropertyThrowsException() argument
984 msg, exceptionClass, () -> mCarPropertyManager.getProperty(propertyId, areaId)); in assertGetPropertyThrowsException()
987 exceptionClass, in assertGetPropertyThrowsException()
990 msg, exceptionClass, () -> mCarPropertyManager.getIntProperty(propertyId, areaId)); in assertGetPropertyThrowsException()
993 exceptionClass, in assertGetPropertyThrowsException()
997 exceptionClass, in assertGetPropertyThrowsException()