Home
last modified time | relevance | path

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

12345678910>>...12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DCustomAudienceBlobValidatorTest.java400 Exception exception = in testValidator_invalidName_exceedsSizeLimit() local
431 Exception exception = in testValidator_invalidUserBiddingSignals_malformedJson() local
468 Exception exception = in testValidator_invalidUserBiddingSignals_exceedsSizeLimit() local
504 Exception exception = in testValidator_invalidActivationTime_exceedsDelayLimit() local
543 Exception exception = in testValidator_invalidExpirationTime_beforeNow() local
562 Exception exception = in testValidator_invalidExpirationTime_beforeActivationTime() local
582 Exception exception = in testValidator_invalidExpirationTime_exceedsExpiryLimit() local
612 Exception exception = in testValidator_invalidBuyer_emptyIdentifier() local
633 Exception exception = in testValidator_invalidBuyer_missingHost() local
653 Exception exception = in testValidator_invalidBuyer_domainHasPath() local
[all …]
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DCustomAudienceApiCtsTest.java177 Exception exception = in testJoinCustomAudience_withMissingEnrollment_fail() local
258 Exception exception = in testJoinCustomAudience_invalidAdsMetadata_fail() local
283 Exception exception = in testJoinCustomAudience_invalidAdsRenderUris_fail() local
321 Exception exception = in testJoinCustomAudience_adRenderIdEnabled_invalidAdRenderIds_fail() local
342 Exception exception = in testJoinCustomAudience_invalidNumberOfAds_fail() local
359 Exception exception = in testJoinCustomAudience_mismatchDailyFetchUriDomain_fail() local
373 Exception exception = in testJoinCustomAudience_illegalExpirationTime_fail() local
391 Exception exception = in testJoinCustomAudience_maxTotalCustomAudiences_fail() local
415 Exception exception = in testJoinCustomAudience_maxCustomAudiencesPerApp_fail() local
441 Exception exception = in testFetchAndJoinCustomAudience_validFetchUri_validRequest() local
[all …]
DTestAdSelectionManagerTest.java176 Exception exception = in assertInvalidAdSelectionIdFailsImpressionReporting() local
196 Exception exception = in testAddOverrideFailsWithDebugModeDisabled() local
223 Exception exception = in testRemoveOverrideFailsWithDebugModeDisabled() local
270 Exception exception = in assertResetAllOverridesFailsWithDebugModeDisabled() local
315 Exception exception = in assertNoBuyersConfigFailsAdSelection() local
344 Exception exception = in testAddFromOutcomesOverrideFailsWithDebugModeDisabled() local
364 Exception exception = in testRemoveFromOutcomesOverrideFailsWithDebugModeDisabled() local
380 Exception exception = in testResetAllFromOutcomesOverridesFailsWithDebugModeDisabled() local
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/noperm/src/com/android/adservices/tests/permissions/
DPermissionsNoPermTest.java89 ExecutionException exception = in testNoPerm_topics() local
111 ExecutionException exception = in testPermissionNotRequested_fledgeJoinCustomAudience() local
132 ExecutionException exception = in testPermissionNotRequested_fledgeFetchAndJoinCustomAudience() local
147 ExecutionException exception = in testPermissionNotRequested_fledgeLeaveCustomAudience() local
177 ExecutionException exception = in testPermissionNotRequested_fledgeOverrideCustomAudienceRemoteInfo() local
203 ExecutionException exception = in testPermissionNotRequested_fledgeRemoveCustomAudienceRemoteInfoOverride() local
223 ExecutionException exception = in testPermissionNotRequested_fledgeResetAllCustomAudienceOverrides() local
240 ExecutionException exception = in testPermissionNotRequested_selectAds_adSelectionConfig() local
258 ExecutionException exception = in testPermissionNotRequested_selectAds_adSelectionFromOutcomesConfig() local
279 ExecutionException exception = in testPermissionNotRequested_reportImpression() local
[all …]
/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/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/AdServices/adservices/tests/cts/endtoends/permissions/appoptout/src/com/android/adservices/tests/permissions/
DPermissionsAppOptOutTest.java77 ExecutionException exception = in testAppOptOut_topics() local
99 ExecutionException exception = in testNoEnrollment_fledgeJoinCustomAudience() local
120 ExecutionException exception = in testNoEnrollment_fledgeFetchAndJoinCustomAudience() local
157 ExecutionException exception = in testNoEnrollment_fledgeLeaveCustomAudience() local
199 ExecutionException exception = in testNoEnrollment_selectAds_adSelectionConfig() local
222 ExecutionException exception = in testWithEnrollment_selectAds_adSelectionConfig() local
242 ExecutionException exception = in testNoEnrollment_selectAds_adSelectionFromOutcomesConfig() local
264 ExecutionException exception = in testWithEnrollment_selectAds_adSelectionFromOutcomesConfig() local
288 ExecutionException exception = in testNoEnrollment_reportImpression() local
316 ExecutionException exception = in testWithEnrollment_reportImpression() local
[all …]
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/notallowed/src/com/android/adservices/tests/permissions/
DNotInAllowListTest.java78 ExecutionException exception = in testNotInAllowList_getTopics() local
101 ExecutionException exception = in testNotInAllowList_fledgeJoinCustomAudience() local
121 ExecutionException exception = in testNotInAllowList_fledgeFetchAndJoinCustomAudience() local
136 ExecutionException exception = in testNotInAllowList_fledgeLeaveCustomAudience() local
157 ExecutionException exception = in testNotInAllowList_selectAds_adSelectionConfig() local
174 ExecutionException exception = in testNotInAllowList_selectAds_adSelectionFromOutcomesConfig() local
192 ExecutionException exception = in testNotInAllowList_reportImpression() local
218 ExecutionException exception = in testNotInAllowList_reportEvent() local
240 ExecutionException exception = in testNotInAllowList_updateAdCounterHistogram() local
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/exceptions/
DRetryableAdServicesNetworkExceptionTest.java48 RetryableAdServicesNetworkException exception = in testExceptionWithErrorCodeAndRetryAfter_valid() local
62 Exception exception = in testExceptionWithErrorCodeAndRetryAfter_errorCodeInvalid() local
73 Exception exception = in testExceptionWithErrorCodeAndRetryAfter_retryAfterUnset() local
84 Exception exception = in testExceptionWithErrorCodeAndRetryAfter_retryAfterNegative() local
96 RetryableAdServicesNetworkException exception = in testSetRetryAfterToValidDurationStaysSame() local
108 RetryableAdServicesNetworkException exception = in testSetRetryAfterToValidDurationGetsCappedToDefault() local
120 RetryableAdServicesNetworkException exception = in testSetRetryAfterToValidDurationGetsCappedToMax() local
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/src/com/android/adservices/common/logging/
DAdServicesErrorLogUtilWithExceptionVerifierTest.java77 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationNegativeTimes_throwsException() local
93 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationZeroTimes_throwsException() local
117 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationMissingThrowable_throwsException() local
138 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationMissingErrorCode_throwsException() local
159 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationMissingPpapiName_throwsException() local
239 Exception exception = in testGetExpectedLogCalls_withMultipleAnnotationZeroTimes_throwsException() local
264 Exception exception = in testGetExpectedLogCalls_withMultipleAnnotationNegativeTimes_throwsException() local
297 Exception exception = in testGetExpectedLogCalls_withMultipleAnnotationsSameInvocation_throwsException() local
DAdServicesErrorLogUtilVerifierTest.java72 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationNegativeTimes_throwsException() local
88 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationZeroTimes_throwsException() local
110 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationMissingErrorCode_throwsException() local
129 Exception exception = in testGetExpectedLogCalls_withSingleAnnotationMissingPpapiName_throwsException() local
199 Exception exception = in testGetExpectedLogCalls_withMultipleAnnotationZeroTimes_throwsException() local
222 Exception exception = in testGetExpectedLogCalls_withMultipleAnnotationNegativeTimes_throwsException() local
252 Exception exception = in testGetExpectedLogCalls_withMultipleAnnotationsSameInvocation_throwsException() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdSelectionFromOutcomesConfigValidatorTest.java86 NullPointerException exception = in testVerifyAdSelectionFromOutcomesConfigCannotBeNull() local
93 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigAdOutcomeIdsCannotBeEmpty() local
109 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigUriCannotBeEmpty() local
125 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigUriCannotBeRelative() local
142 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigUriMustBeHttps() local
162 IllegalArgumentException exception = in testVerifyAdSelectionFromOutcomesConfigUriHostShouldBeSameAsSellerHost() local
DReportImpressionScriptEngineTest.java181 Exception exception = in testThrowsJSExecutionExceptionIfFunctionNotFound() local
199 Exception exception = in testThrowsIllegalStateExceptionIfScriptIsNotReturningJson() local
339 Exception exception = in testReportResultFailsWhenCallingRegisterAdBeaconWhenFlagDisabled() local
367 Exception exception = in testReportResultFailsInvalidInteractionKeyType() local
395 Exception exception = in testReportResultFailsInvalidInteractionReportingUriType() local
425 Exception exception = in testReportResultFailsWhenRegisterAdBeaconCalledMoreThanOnce() local
452 Exception exception = in testReportResultFailsWhenRegisterAdBeaconInputNotAnObject__Null() local
479 Exception exception = in testReportResultFailsWhenRegisterAdBeaconInputNotAnObject__Int() local
507 Exception exception = in testReportResultFailsWhenRegisterAdBeaconInputNotAnObject__String() local
535 Exception exception = in testReportResultFailsWhenRegisterAdBeaconInputNotAnObject__Array() local
[all …]
/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/common/
DAdSelectionServiceFilterTest.java130 FilterException exception = in testFilterRequestThrowsCallerMismatchExceptionWithInvalidPackageName() local
154 FilterException exception = in testFilterRequest_throttled_throwsLimitExceededException() local
177 FilterException exception = in testFilterRequestThrowsWrongCallingApplicationStateExceptionIfForegroundCheckFails() local
233 FilterException exception = in testFilterRequestThrowsAdTechNotAllowedExceptionWhenAdTechNotAuthorized() local
256 FilterException exception = in testFilterRequestThrowsAppNotAllowedExceptionWhenAppNotInAllowlist() local
280 FilterException exception = in testFilterRequest_apiConsentRevoked_throwsRevokedConsentException() local
344 FilterException exception = in testFilterRequest_withLocalhostDomain_doesNotPass() local
DFledgeAuthorizationFilterTest.java142 SecurityException exception = in testAssertCallingPackageName_isNotCallingPackageName_throwSecurityException() local
166 SecurityException exception = in testAssertCallingPackageName_packageNotExist_throwSecurityException() local
350 SecurityException exception = in testAssertAppHasCaPermission_appDoesNotHavePermission_throwSecurityException() local
392 SecurityException exception = in testAssertAppHasAnyPermission_appDoesNotHaveAnyPermissions_throwSecurityException() local
436 SecurityException exception = in testAssertAppHasCaPermission_mismatchedAppPackageName_throwSecurityException() local
473 SecurityException exception = in testAssertAppHasPasPermission_mismatchedAppPackageName_throwSecurityException() local
634 IllegalStateException exception = in testAssertAdTechHasPermission_badApiType_throwsIllegalState() local
659 SecurityException exception = in testAssertAdTechHasPermission_noEnrollmentForAdTech_throwSecurityException() local
709 SecurityException exception = in testAssertAdTechHasPermission_appManifestNoPermission_throwSecurityException() local
1157 IllegalStateException exception = in testGetAndAssertAdTechFromUriAllowed_badApiType_throwsIllegalState() local
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DAbstractLogVerifierTest.java61 Exception exception = in testValidateTimes_withLessThanZeroTimes_throwsException() local
75 Exception exception = in testValidateTimes_withZeroTimes_throwsException() local
128 Exception exception = in testVerify_withNoExpectedAndNonEmptyActualCalls_throwsException() local
157 Exception exception = in testVerify_withNoActualAndNonEmptyExpectedCalls_throwsException() local
197 Exception exception = in testVerify_withSomeCommonButAdditionalActualCalls_throwsException() local
236 Exception exception = in testVerify_withSomeCommonButAdditionalExpectedCalls_throwsException() local
345 Exception exception = in testVerify_withAdditionalAnyCalls_throwsException() local
382 Exception exception = in testVerify_withAdditionalAnyCallsWithActualCallMatchingMultiple_throwsException() local
422 Exception exception = in testVerify_withMismatchInLongList_throwsException() local
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/errorlogging/
DAbstractAdServicesErrorLoggerTest.java86 Exception exception = in testLogErrorInternal() local
116 Exception exception = createSQLiteException(CLASS_NAME, METHOD_NAME, LINE_NUMBER); in testLogErrorWithExceptionInfo_errorLoggingFlagEnabled() local
139 Exception exception = createSQLiteException(fullClassName, METHOD_NAME, LINE_NUMBER); in testLogErrorWithExceptionInfo_fullyQualifiedClassName_errorLoggingFlagEnabled() local
161 Exception exception = createSQLiteException(/* className = */ "", METHOD_NAME, LINE_NUMBER); in testLogErrorWithExceptionInfo_emptyClassName_errorLoggingFlagEnabled() local
186 Exception exception = new SQLiteException(); in createSQLiteException() local
200 Exception exception = new SQLiteException(); in createSQLiteExceptionWith3StackTraceElements() local
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/valid/src/com/android/adservices/tests/permissions/
DPermissionsValidTest.java112 ExecutionException exception = in testValidPermissions_fledgeFetchAndJoinCustomAudience() local
131 ExecutionException exception = in testValidPermissions_selectAds_adSelectionConfig() local
151 ExecutionException exception = in testValidPermissions_selectAds_adSelectionFromOutcomesConfig() local
174 ExecutionException exception = in testValidPermissions_reportImpression() local
203 ExecutionException exception = in testValidPermissions_reportEvent() local
227 ExecutionException exception = in testValidPermissions_updateAdCounterHistogram() local
/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/AdServices/shared/tests/device-side/java/com/android/adservices/shared/common/
DServiceUnavailableExceptionTest.java30 ServiceUnavailableException exception = new ServiceUnavailableException(); in testAdServicesUnavailableException_default() local
37 ServiceUnavailableException exception = new ServiceUnavailableException(ERROR_MESSAGE); in testAdServicesUnavailableException_correctErrorMsg() local
44 ServiceUnavailableException exception = new ServiceUnavailableException(ERROR_MESSAGE); in testAdServicesUnavailableException_isOfTypeIllegalStateException() local
DProviderServiceInternalExceptionTest.java31 ProviderServiceInternalException exception = new ProviderServiceInternalException(); in testProviderServiceInternalException_default() local
38 ProviderServiceInternalException exception = in testProviderServiceInternalException_correctErrorMsg() local
46 ProviderServiceInternalException exception = in testProviderServiceInternalException_isOfTypeIllegalStateException() local
/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

12345678910>>...12