Home
last modified time | relevance | path

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

/packages/modules/Nfc/tests/cts/tests/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()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/storage/
DAtomicFileDatastoreTest.java164 private void testKeyFails(Class<? extends Exception> exceptionClass, String key) { in testKeyFails() argument
165 assertThrows(exceptionClass, () -> mDatastore.putBoolean(key, true)); in testKeyFails()
166 assertThrows(exceptionClass, () -> mDatastore.putInt(key, 7)); in testKeyFails()
167 assertThrows(exceptionClass, () -> mDatastore.putString(key, "foo")); in testKeyFails()
169 assertThrows(exceptionClass, () -> mDatastore.putBooleanIfNew(key, true)); in testKeyFails()
170 assertThrows(exceptionClass, () -> mDatastore.putIntIfNew(key, 7)); in testKeyFails()
171 assertThrows(exceptionClass, () -> mDatastore.putStringIfNew(key, "foo")); in testKeyFails()
173 assertThrows(exceptionClass, () -> mDatastore.getBoolean(key)); in testKeyFails()
174 assertThrows(exceptionClass, () -> mDatastore.getInt(key)); in testKeyFails()
175 assertThrows(exceptionClass, () -> mDatastore.getString(key)); in testKeyFails()
[all …]
/packages/modules/SdkExtensions/javatests/com/android/sdkext/extensions/apps/
DReceiver.java103 private static void expectException(Class exceptionClass, String type, Runnable runnable) { in expectException() argument
109 if (!e.getClass().equals(exceptionClass)) { in expectException()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DRetryStrategyTest.java103 RetryStrategyTestHelper test, Class<? extends Exception> exceptionClass) { in retryAndWaitForException() argument
116 assertThat(exception).hasCauseThat().isInstanceOf(exceptionClass); in retryAndWaitForException()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayloadTest.java274 int errorType, Class<T> exceptionClass) throws Exception { in verifyValidateAndBuildIkeExceptionWithoutData() argument
277 payload.validateAndBuildIkeException(), errorType, exceptionClass); in verifyValidateAndBuildIkeExceptionWithoutData() local
281 IkeProtocolException exception, int errorType, Class<T> exceptionClass) in verifyIkeExceptionWithoutData() argument
283 assertTrue(exceptionClass.isInstance(exception)); in verifyIkeExceptionWithoutData()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DAppSearchResult.java257 String exceptionClass = t.getClass().getSimpleName(); in throwableToFailedResult() local
270 return AppSearchResult.newFailedResult(resultCode, exceptionClass + ": " + t.getMessage()); in throwableToFailedResult()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java706 IState state, Class<T> exceptionClass, int metricsExceptionType) { in verifyHandleFatalErrorAndQuit() argument
711 verify(mMockChildSessionCallback).onClosedWithException(any(exceptionClass)); in verifyHandleFatalErrorAndQuit()
894 Class<? extends IkeException> exceptionClass, in verifyNotifyUsersDeleteSession() argument
904 if (exceptionClass == null) { in verifyNotifyUsersDeleteSession()
909 .onClosedWithException(any(exceptionClass)); in verifyNotifyUsersDeleteSession()
1360 Class<T> exceptionClass, IState expectedState, int expectedErrorCode) { in verifyIkeSessionFatalErrorAndSendOutboundIkeDeletePayload() argument
1364 verify(mMockChildSessionSmCallback).onFatalIkeSessionError(any(exceptionClass)); in verifyIkeSessionFatalErrorAndSendOutboundIkeDeletePayload()
/packages/modules/OnDevicePersonalization/tests/cts/service/src/com/android/ondevicepersonalization/testing/sampleservice/
DSampleWorker.java410 String exceptionClass = in createException() local
413 var clazz = Class.forName(exceptionClass); in createException()