Home
last modified time | relevance | path

Searched defs:exception (Results 1 – 25 of 121) sorted by relevance

12345

/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeExceptionTest.java52 final IkeInternalException exception = new IkeInternalException(cause); in testIkeInternalException() local
64 final IkeNetworkLostException exception = in testIkeNetworkLostException() local
72 final IkeTimeoutException exception = new IkeTimeoutException(ERROR_MSG); in testIkeTimeoutException() local
79 final IkeIOException exception = new IkeIOException(cause); in testIkeIOException() local
94 final InvalidKeException exception = new InvalidKeException(DH_GROUP_1024_BIT_MODP); in testInvalidKeException() local
101 final InvalidMajorVersionException exception = in testInvalidMajorVersionException() local
112 final InvalidSelectorsException exception = new InvalidSelectorsException(spi, packetInfo); in testInvalidSelectorsException() local
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/bluetooth/fastpair/
DAdditionalDataEncoderTest.java70 GeneralSecurityException exception = in inputIncorrectKeySizeToEncode_mustThrowException() local
86 GeneralSecurityException exception = in inputIncorrectKeySizeToDecode_mustThrowException() local
102 GeneralSecurityException exception = in inputTooSmallPacketSize_mustThrowException() local
116 GeneralSecurityException exception = in inputTooLargePacketSize_mustThrowException() local
134 GeneralSecurityException exception = in inputIncorrectHmacToDecode_mustThrowException() local
DNamingEncoderTest.java65 GeneralSecurityException exception = in inputIncorrectKeySizeToEncode_mustThrowException() local
80 GeneralSecurityException exception = in inputIncorrectKeySizeToDecode_mustThrowException() local
95 GeneralSecurityException exception = in inputTooSmallPacketSize_mustThrowException() local
109 GeneralSecurityException exception = in inputTooLargePacketSize_mustThrowException() local
126 GeneralSecurityException exception = in inputIncorrectHmacToDecode_mustThrowException() local
DAesCtrMultipleBlockEncryptionTest.java112 IllegalArgumentException exception = in inputIncorrectKeySizeToEncrypt_mustThrowException() local
128 IllegalArgumentException exception = in inputIncorrectKeySizeToDecrypt_mustThrowException() local
148 GeneralSecurityException exception = in inputIncorrectDataSizeToDecrypt_mustThrowException() local
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DQosCallbackExceptionTest.java49 final QosCallbackException exception = new QosCallbackException(testcause); in testQosCallbackException() local
59 final QosCallbackException exception = new QosCallbackException(netReleasedException); in testNetworkReleasedExceptions() local
70 final QosCallbackException exception = new QosCallbackException(sockNotBoundException); in testSocketNotBoundExceptions() local
81 final QosCallbackException exception = new QosCallbackException(localAddrChangedException); in testSocketLocalAddressChangedExceptions() local
89 private void assertThrowableMessageContains(QosCallbackException exception, String errorMsg) in assertThrowableMessageContains()
99 private void triggerException(QosCallbackException exception) throws Exception { in triggerException()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyEventTest.kt81 val exception = in build_actionFailed_withMissingIssueActionId_throwsIllegalArgumentException() constant
95 val exception = in build_actionFailed_withMissingIssueId_throwsIllegalArgumentException() constant
109 val exception = in build_actionSucceeded_withMissingIssueActionId_throwsIllegalArgumentException() constant
123 val exception = in build_actionSucceeded_withMissingIssueId_throwsIllegalArgumentException() constant
137 val exception = in build_refreshRequested_withMissingRefreshBroadcastId_throwsIllegalArgumentException() constant
149 val exception = assertFailsWith(IllegalArgumentException::class) { SafetyEvent.Builder(-1) } in build_withInvalidType_throwsIllegalArgumentException() constant
DSafetyCenterEntryTest.kt159 val exception = in build_withInvalidEntrySeverityLevel_throwsIllegalArgumentException() constant
171 val exception = in build_withInvalidSeverityUnspecifiedIconType_throwsIllegalArgumentException() constant
272 val exception = in iconAction_withInvalidIconActionType_throwsIllegalArgumentException() constant
DSafetyCenterStatusTest.kt118 val exception = in build_withInvalidOverallSeverityLevel_throwsIllegalArgumentException() constant
130 val exception = in build_withInvalidRefreshStatus_throwsIllegalArgumentException() constant
DSafetySourceIssueTest.kt425 val exception = in build_withUnspecifiedSeverityLevel_throwsIllegalArgumentException() constant
441 val exception = in build_withInvalidSeverityLevel_throwsIllegalArgumentException() constant
472 val exception = in build_withInvalidIssueCategory_throwsIllegalArgumentException() constant
488 val exception = in build_withInvalidOnDismissPendingIntent_throwsIllegalArgumentException() constant
512 val exception = in build_withNoActions_throwsIllegalArgumentException() constant
532 val exception = in build_withMoreThanTwoActions_throwsIllegalArgumentException() constant
DSafetySourceStatusTest.kt71 val exception = in iconAction_build_withInvalidIconType_throwsIllegalArgumentException() constant
209 val exception = in build_withInvalidSeverityLevel_throwsIllegalArgumentException() constant
222 val exception = in build_withInvalidPendingIntent_throwsIllegalArgumentException() constant
240 val exception = in build_withInvalidEnabledState_throwsIllegalArgumentException() constant
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSessionCallback.java69 default void onClosedExceptionally(@NonNull IkeException exception) {} in onClosedExceptionally()
77 default void onClosedWithException(@NonNull IkeException exception) { in onClosedWithException()
94 default void onError(@NonNull IkeProtocolException exception) {} in onError()
104 default void onError(@NonNull IkeException exception) { in onError()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DJavaMockitoHelperTest.java115 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_timeoutException() local
128 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_executionException() local
141 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_interruptedException() local
176 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_withCustomTimeout_timeoutException() local
189 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_withCustomTimeout_executionException() local
202 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_withCustomTimeout_interruptedException() local
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/
DParseExceptionTest.kt35 val exception = ParseException(message) in propagatesMessage() constant
46 val exception = ParseException(message, cause) in propagatesMessageAndCause() constant
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionCallbackTest.java64 public void onClosedExceptionally(IkeException exception) {} in onClosedExceptionally()
74 public void onError(IkeProtocolException exception) { in onError()
83 public void onError(IkeProtocolException exception) { in onError()
88 public void onError(IkeException exception) { in onError()
/packages/modules/Connectivity/tests/common/java/
DParseExceptionTest.kt40 val exception = ParseException(testMessage, base) in testConstructor_WithCause() constant
49 val exception = ParseException(testMessage) in testConstructor_NoCause() constant
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperLegacyTest.java123 RuntimeException exception = assertThrows(RuntimeException.class, in constructor_checksForNoDuplicateBusNumbers() local
137 RuntimeException exception = assertThrows(RuntimeException.class, in constructor_throwsIfLegacyContextNotAssignedToBus() local
152 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullInputDevices() local
166 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullContext() local
178 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioDeviceInfo() local
192 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioControl() local
206 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioSettings() local
220 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioContexts() local
DCarAudioZonesValidatorTest.java50 RuntimeException exception = expectThrows(RuntimeException.class, in validate_thereIsAtLeastOneZone() local
63 IllegalArgumentException exception = expectThrows(IllegalArgumentException.class, in validate_failsOnEmptyInputDevices() local
75 NullPointerException exception = expectThrows(NullPointerException.class, in validate_failsOnNullInputDevices() local
89 RuntimeException exception = expectThrows(RuntimeException.class, in validate_failsOnMissingMicrophoneInputDevices() local
104 RuntimeException exception = expectThrows(RuntimeException.class, in validate_volumeGroupsForEachZone() local
130 RuntimeException exception = expectThrows(RuntimeException.class, in validate_eachAddressAppearsInOnlyOneZone() local
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanError.java94 public IwlanError(@NonNull Exception exception) { in IwlanError()
111 private void IwlanErrorIkeProtocolException(@NonNull IkeProtocolException exception) { in IwlanErrorIkeProtocolException()
116 private void IwlanErrorIkeInternalException(@NonNull IkeInternalException exception) { in IwlanErrorIkeInternalException()
125 private void IwlanErrorIkeIOException(@NonNull IkeIOException exception) { in IwlanErrorIkeIOException()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DPermissionHelperTest.java88 SecurityException exception = expectThrows(SecurityException.class, () -> PermissionHelper in testCheckHasAtLeastOnePermission_none() local
116 SecurityException exception = expectThrows(SecurityException.class, in testCheckHasDumpPermissionGranted_notGranted() local
130 private void assertExceptionMessageContains(Exception exception, String subString) { in assertExceptionMessageContains()
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/testcases/
DMatchers.java33 public static <T extends Exception> T exception(final Class<T> clazz, final String... msgs) { in exception() method in Matchers
41 Throwable exception = clazz.cast(obj); in exception() field in Matchers
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolExceptionTest.java39 UnsupportedCriticalPayloadException exception = in buildNotifyPayloadWithData() local
49 NoValidProposalChosenException exception = in buildNotifyPayloadWithoutData() local
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/shim/
DShimUtilsMinTTest.java45 final Exception exception = in testGetRetransmissionFailedException() local
52 final IOException exception = mShim.getDnsFailedException("testGetDnsFailedException"); in testGetDnsFailedException() local
DShimUtilsRAndSTest.java54 final Exception exception = in testGetRetransmissionFailedException() local
61 final IOException exception = mShim.getDnsFailedException("testGetDnsFailedException"); in testGetDnsFailedException() local
/packages/services/Car/tests/carservice_unit_test/src/android/car/util/concurrent/
DAndroidFutureTest.java184 UnsupportedOperationException exception = new UnsupportedOperationException( in testWriteToParcel_completedExceptionally() local
214 UnsupportedOperationException exception = new UnsupportedOperationException( in testWriteToParcel_uncompleted_Exception() local
231 UnsupportedOperationException exception = new UnsupportedOperationException( in testSupply_futureThrowingException() local
255 UnsupportedOperationException exception = new UnsupportedOperationException( in testThenApply_functionThrowingException() local
281 UnsupportedOperationException exception = new UnsupportedOperationException( in testThenCompose_functionThrowingException() local
313 UnsupportedOperationException exception = new UnsupportedOperationException( in testThenCombine_functionThrowingException() local
/packages/services/Car/tests/carservice_unit_test/src/android/car/
DPlatformVersionMismatchExceptionTest.java31 PlatformVersionMismatchException exception = new PlatformVersionMismatchException( in testExpectedVersionAndMessage() local
50 PlatformVersionMismatchException exception = new PlatformVersionMismatchException( in testExceptionParceable() local

12345