Home
last modified time | relevance | path

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

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DAssert.kt31 val exceptionType = exception?.toString() ?: "an exception" in assertThrows() constant
34 throw AssertionError(message ?: "Expected to throw $exceptionType but nothing thrown") in assertThrows()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DBugreportManagerTest.java483 int mode, Class<T> exceptionType) { in assertExceptionThrownForMode() argument
492 fail("BugreportMode " + mode + " should cause " + exceptionType.getSimpleName()); in assertExceptionThrownForMode()
494 if (!exceptionType.isInstance(thrown)) { in assertExceptionThrownForMode()
/cts/tests/app/FgsTest/src/android/app/cts/fgstest/
DActivityManagerForegroundServiceTypeTest.java298 private void testForegroundServiceTypeDisabledCommon(int type, int exceptionType, in testForegroundServiceTypeDisabledCommon() argument
324 assertEquals(exceptionType, startForegroundServiceWithType(apiCurComp, type)); in testForegroundServiceTypeDisabledCommon()