Home
last modified time | relevance | path

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

123456789

/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/bluetooth/fastpair/
DAdditionalDataEncoderTest.java69 GeneralSecurityException exception = in inputNullSecretKeyToEncode_mustThrowException() local
85 GeneralSecurityException exception = in inputIncorrectKeySizeToEncode_mustThrowException() local
101 GeneralSecurityException exception = in inputNullAdditionalDataToEncode_mustThrowException() local
117 GeneralSecurityException exception = in inputInvalidAdditionalDataSizeToEncode_mustThrowException() local
133 GeneralSecurityException exception = in inputTooLargeAdditionalDataSizeToEncode_mustThrowException() local
149 GeneralSecurityException exception = in inputIncorrectKeySizeToDecode_mustThrowException() local
165 GeneralSecurityException exception = in inputTooSmallPacketSize_mustThrowException() local
179 GeneralSecurityException exception = in inputTooLargePacketSize_mustThrowException() local
197 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
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DQosCallbackExceptionTest.java48 final QosCallbackException exception = new QosCallbackException(testcause); in testQosCallbackException() local
58 final QosCallbackException exception = new QosCallbackException(netReleasedException); in testNetworkReleasedExceptions() local
66 final QosCallbackException exception = new QosCallbackException(sockNotBoundException); in testSocketNotBoundExceptions() local
74 final QosCallbackException exception = in testSocketLocalAddressChangedExceptions() local
84 final QosCallbackException exception = new QosCallbackException(sockNotConnectedException); in testSocketNotConnectedExceptions() local
93 final QosCallbackException exception = in testSocketRemoteAddressChangedExceptions() local
120 private void assertThrowableMessageContains(QosCallbackException exception, String errorMsg) in assertThrowableMessageContains()
130 private void triggerException(QosCallbackException exception) throws Exception { in triggerException()
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/noperm/src/com/android/adservices/tests/permissions/
DPermissionsNoPermTest.java105 ExecutionException exception = in testNoPerm_topics() local
127 ExecutionException exception = in testPermissionNotRequested_fledgeJoinCustomAudience() local
142 ExecutionException exception = in testPermissionNotRequested_fledgeLeaveCustomAudience() local
170 ExecutionException exception = in testPermissionNotRequested_fledgeOverrideCustomAudienceRemoteInfo() local
194 ExecutionException exception = in testPermissionNotRequested_fledgeRemoveCustomAudienceRemoteInfoOverride() local
212 ExecutionException exception = in testPermissionNotRequested_fledgeResetAllCustomAudienceOverrides() local
229 ExecutionException exception = in testPermissionNotRequested_selectAds_adSelectionConfig() local
251 ExecutionException exception = in testPermissionNotRequested_reportImpression() local
310 Exception exception = in testPermissionNotRequested_fledgeOverrideAdSelectionConfigRemoteInfo() local
334 Exception exception = in testPermissionNotRequested_fledgeRemoveAdSelectionConfigRemoteInfo() local
[all …]
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DCustomAudienceApiCtsTest.java145 Exception exception = in testJoinCustomAudience_withMissingEnrollment_fail() local
174 Exception exception = in testJoinCustomAudience_invalidAdsMetadata_fail() local
199 Exception exception = in testJoinCustomAudience_invalidAdsRenderUris_fail() local
223 Exception exception = in testJoinCustomAudience_invalidNumberOfAds_fail() local
243 Exception exception = in testJoinCustomAudience_mismatchDailyFetchUriDomain_fail() local
257 Exception exception = in testJoinCustomAudience_illegalExpirationTime_fail() local
282 Exception exception = in testJoinCustomAudience_maxTotalCustomAudiences_fail() local
328 Exception exception = in testJoinCustomAudience_maxCustomAudiencesPerApp_fail() local
377 Exception exception = in testLeaveCustomAudience_withMissingEnrollment_fail() local
406 Exception exception = in testAddOverrideFailsWithDebugModeDisabled() local
[all …]
/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/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyEventTest.kt80 val exception = in build_actionFailed_withMissingIssueActionId_throwsIllegalArgumentException() constant
97 val exception = in build_actionFailed_withMissingIssueId_throwsIllegalArgumentException() constant
114 val exception = in build_actionSucceeded_withMissingIssueActionId_throwsIllegalArgumentException() constant
131 val exception = in build_actionSucceeded_withMissingIssueId_throwsIllegalArgumentException() constant
148 val exception = in build_refreshRequested_withMissingRefreshBroadcastId_throwsIllegalArgumentException() constant
160 val exception = assertFailsWith(IllegalArgumentException::class) { SafetyEvent.Builder(-1) } in build_withInvalidType_throwsIllegalArgumentException() constant
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdSelectionFromOutcomesConfigValidatorTest.java101 NullPointerException exception = in testVerifyAdSelectionFromOutcomesConfigCannotBeNull() local
108 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigAdOutcomeIdsCannotBeEmpty() local
124 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigAdOutcomeIdsShouldExistInTheDB() local
146 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigUriCannotBeEmpty() local
162 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigUriCannotBeRelative() local
179 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigUriMustBeHttps() local
199 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigUriHostShouldBeSameAsSellerHost() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAdSelectionServiceFilterTest.java185 FilterException exception = in testFilterRequestThrowsCallerMismatchExceptionWithInvalidPackageName() local
205 FilterException exception = in testFilterRequestThrowsLimitExceededExceptionIfThrottled() local
226 FilterException exception = in testFilterRequestThrowsWrongCallingApplicationStateExceptionIfForegroundCheckFails() local
275 FilterException exception = in testFilterRequestThrowsAdTechNotAllowedExceptionWhenAdTechNotAuthorized() local
296 FilterException exception = in testFilterRequestThrowsAppNotAllowedExceptionWhenAppNotInAllowlist() local
315 FilterException exception = in testFilterRequestThrowsRevokedConsentExceptionAppDoesNotHaveConsentGaUxDisabled() local
359 FilterException exception = in testFilterRequestThrowsRevokedConsentExceptionAppDoesNotHaveConsentGaUxEnabled() local
DFledgeAuthorizationFilterTest.java119 SecurityException exception = in testAssertCallingPackageName_isNotCallingPackageName_throwSecurityException() local
139 SecurityException exception = in testAssertCallingPackageName_packageNotExist_throwSecurityException() local
168 SecurityException exception = in testAssertAppHasPermission_appDoesNotHavePermission_throwSecurityException() local
217 SecurityException exception = in testAssertAdTechHasPermission_noEnrollmentForAdTech_throwSecurityException() local
248 SecurityException exception = in testAssertAdTechHasPermission_appManifestNoPermission_throwSecurityException() local
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/appoptout/src/com/android/adservices/tests/permissions/
DPermissionsAppOptOutTest.java117 ExecutionException exception = in testAppOptOut_topics() local
139 ExecutionException exception = in testNoEnrollment_fledgeJoinCustomAudience() local
176 ExecutionException exception = in testNoEnrollment_fledgeLeaveCustomAudience() local
218 ExecutionException exception = in testNoEnrollment_selectAds_adSelectionConfig() local
241 ExecutionException exception = in testWithEnrollment_selectAds_adSelectionConfig() local
266 ExecutionException exception = in testNoEnrollment_reportImpression() local
294 ExecutionException exception = in testWithEnrollment_reportImpression() local
/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.java114 IllegalStateException exception = assertThrows(IllegalStateException.class, in testGetResult_timeoutException() local
127 IllegalStateException exception = assertThrows(IllegalStateException.class, in testGetResult_executionException() local
140 IllegalStateException exception = assertThrows(IllegalStateException.class, in testGetResult_interruptedException() local
175 IllegalStateException exception = assertThrows(IllegalStateException.class, in testGetResult_withCustomTimeout_timeoutException() local
188 IllegalStateException exception = assertThrows(IllegalStateException.class, in testGetResult_withCustomTimeout_executionException() local
201 IllegalStateException exception = assertThrows(IllegalStateException.class, in testGetResult_withCustomTimeout_interruptedException() local
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanError.java99 public IwlanError(@IwlanErrorType int err, @NonNull Exception exception) { in IwlanError()
112 public IwlanError(@NonNull Exception exception) { in IwlanError()
128 private void IwlanErrorIkeProtocolException(@NonNull IkeProtocolException exception) { in IwlanErrorIkeProtocolException()
133 private void IwlanErrorIkeInternalException(@NonNull IkeInternalException exception) { in IwlanErrorIkeInternalException()
142 private void IwlanErrorIkeIOException(@NonNull IkeIOException exception) { in IwlanErrorIkeIOException()
147 private void IwlanErrorIkeNetworkLostException(@NonNull IkeNetworkLostException exception) { in IwlanErrorIkeNetworkLostException()
/packages/modules/Permission/SafetyCenter/Persistence/tests/java/com/android/safetycenter/persistence/
DPersistenceExceptionTest.kt32 val exception = PersistenceException(message) in propagatesMessage() constant
43 val exception = PersistenceException(message, cause) in propagatesMessageAndCause() constant
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/
DParseExceptionTest.kt32 val exception = ParseException(message) in propagatesMessage() constant
43 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/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZonesHelperLegacyTest.java124 RuntimeException exception = assertThrows(RuntimeException.class, in constructor_checksForNoDuplicateBusNumbers() local
138 RuntimeException exception = assertThrows(RuntimeException.class, in constructor_throwsIfLegacyContextNotAssignedToBus() local
153 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullInputDevices() local
167 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullContext() local
179 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioDeviceInfo() local
193 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioControl() local
207 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioSettings() local
221 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioContexts() local
DCarAudioZonesValidatorTest.java50 RuntimeException exception = assertThrows(RuntimeException.class, in validate_thereIsAtLeastOneZone() local
64 IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, in validate_failsOnEmptyInputDevices() local
76 NullPointerException exception = assertThrows(NullPointerException.class, in validate_failsOnNullInputDevices() local
90 RuntimeException exception = assertThrows(RuntimeException.class, in validate_failsOnMissingMicrophoneInputDevices() local
105 RuntimeException exception = assertThrows(RuntimeException.class, in validate_zoneConfigsForEachZone() local
137 RuntimeException exception = assertThrows(RuntimeException.class, in validate_eachAddressAppearsInOnlyOneZone() local
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallExceptionTests.java57 CallException exception = new CallException(message, CODE_CALL_CANNOT_BE_SET_TO_ACTIVE); in testExceptionWithCode() local
65 CallException exception = new CallException(message, CODE_ERROR_UNKNOWN); in testDescribeContents() local
73 CallException exception = new CallException(message, CODE_ERROR_UNKNOWN); in testWriteToParcel() local
/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/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/examplestore/
DFederatedExampleIteratorTest.java154 ExecutionException exception = in testGetNextResultSuccess() local
173 ExecutionException exception = in testNextResultSuccess() local
212 ExecutionException exception = in testStartQueryReturnsErrorWhenCallHasNext() local
225 ExecutionException exception = in testStartQueryReturnsErrorWhenCallNext() local
244 ExecutionException exception = in testExampleStoreIteratorReturnsErrorWhenCallNext() local
266 ExecutionException exception = in testExampleStoreIteratorReturnsErrorWhenCallHasNext() local
283 ExecutionException exception = in testCallsAfterClose() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/errorlogging/
DAdServicesErrorLoggerImplTest.java136 Exception exception = createSQLiteException(CLASS_NAME, METHOD_NAME, LINE_NUMBER); in testLogErrorWithExceptionInfo_errorLoggingFlagEnabled() local
161 Exception exception = createSQLiteException(fullClassName, METHOD_NAME, LINE_NUMBER); in testLogErrorWithExceptionInfo_fullyQualifiedClassName_errorLoggingFlagEnabled() local
185 Exception exception = createSQLiteException(/* className = */ "", METHOD_NAME, LINE_NUMBER); in testLogErrorWithExceptionInfo_emptyClassName_errorLoggingFlagEnabled() local
210 Exception exception = new SQLiteException(); in createSQLiteException() local
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/config/
DSafetySourcesGroupTest.kt222 val exception = assertFailsWith(IllegalStateException::class) { builder.build() } in build_hiddenGroupWithDynamicSource_throwsIllegalStateException() constant
239 val exception = assertFailsWith(IllegalStateException::class) { builder.build() } in build_hiddenGroupWithStaticSource_throwsIllegalStateException() constant
257 val exception = assertFailsWith(IllegalStateException::class) { builder.build() } in build_statefulGroupWithIssueOnlySource_throwsIllegalStateException() constant
276 val exception = assertFailsWith(IllegalStateException::class) { builder.build() } in build_statelessGroupWithIssueOnlySource_throwsIllegalStateException() constant
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPropertyManagerUnitTest.java336 CarInternalErrorException exception = assertThrows(CarInternalErrorException.class, in testGetProperty_internalErrorEqualAfterU_withVendorErrorCode() local
514 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableEqualAfterU_withVendorErrorCode() local
536 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableDisabledAfterU() local
549 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableDisabledAfterU_withVendorErrorCode() local
573 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableSafetyAfterU() local
586 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableSafetyAfterU_withVendorErrorCode() local
610 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableSpeedHighAfterU() local
623 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableSpeedHighAfterU_withVendorErrorCode() local
647 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableSpeedLowAfterU() local
660 PropertyNotAvailableException exception = assertThrows(PropertyNotAvailableException.class, in testGetProperty_notAvailableSpeedLowAfterU_withVendorErrorCode() local
[all …]

123456789