Home
last modified time | relevance | path

Searched refs:AdServicesStatusUtils (Results 1 – 25 of 157) sorted by relevance

1234567

/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/measurement/
DMeasurementErrorResponseTest.java19 import static android.adservices.common.AdServicesStatusUtils.STATUS_INTERNAL_ERROR;
20 import static android.adservices.common.AdServicesStatusUtils.STATUS_INVALID_ARGUMENT;
21 import static android.adservices.common.AdServicesStatusUtils.STATUS_IO_ERROR;
22 import static android.adservices.common.AdServicesStatusUtils.STATUS_PERMISSION_NOT_REQUESTED;
26 import android.adservices.common.AdServicesStatusUtils;
68 assertThat(AdServicesStatusUtils.asException(response)) in testAdServicesException_invalidArgument_expectIllegalArgumentException()
76 assertThat(AdServicesStatusUtils.asException(response)) in testAdServicesException_internalError_expectIllegalStateException()
84 assertThat(AdServicesStatusUtils.asException(response)).isInstanceOf(IOException.class); in testAdServicesException_ioError_expectIOException()
93 assertThat(AdServicesStatusUtils.asException(response)) in testAdServicesException_unauthorized_expectSecurityException()
101 assertThat(AdServicesStatusUtils.asException(response)) in testAdServicesException_unrecognized_expectIllegalStateException()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/
DFledgeErrorResponseTest.java36 .setStatusCode(AdServicesStatusUtils.STATUS_INTERNAL_ERROR) in testBuildFledgeErrorResponse()
41 .isEqualTo(AdServicesStatusUtils.STATUS_INTERNAL_ERROR); in testBuildFledgeErrorResponse()
50 .setStatusCode(AdServicesStatusUtils.STATUS_INTERNAL_ERROR) in testWriteToParcel()
60 .isEqualTo(AdServicesStatusUtils.STATUS_INTERNAL_ERROR); in testWriteToParcel()
68 .setStatusCode(AdServicesStatusUtils.STATUS_SUCCESS) in testWriteToParcelEmptyMessage()
76 expect.that(AdServicesStatusUtils.isSuccess(fromParcel.getStatusCode())).isTrue(); in testWriteToParcelEmptyMessage()
96 .setStatusCode(AdServicesStatusUtils.STATUS_INTERNAL_ERROR) in testFledgeErrorResponseDescribeContents()
108 .setStatusCode(AdServicesStatusUtils.STATUS_INTERNAL_ERROR) in testToString()
116 AdServicesStatusUtils.STATUS_INTERNAL_ERROR, in testToString()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/exception/
DFilterException.java19 import android.adservices.common.AdServicesStatusUtils;
47 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED; in getResultCode()
49 return AdServicesStatusUtils.STATUS_BACKGROUND_CALLER; in getResultCode()
52 return AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED; in getResultCode()
54 return AdServicesStatusUtils.STATUS_UNAUTHORIZED; in getResultCode()
56 return AdServicesStatusUtils.STATUS_RATE_LIMIT_REACHED; in getResultCode()
59 return AdServicesStatusUtils.STATUS_INTERNAL_ERROR; in getResultCode()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/devapi/
DAdSelectionOverrider.java29 import android.adservices.common.AdServicesStatusUtils;
415 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED; in callAddOverride()
423 return AdServicesStatusUtils.STATUS_SUCCESS; in callAddOverride()
434 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED; in callRemoveOverride()
439 return AdServicesStatusUtils.STATUS_SUCCESS; in callRemoveOverride()
450 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED;
454 return AdServicesStatusUtils.STATUS_SUCCESS;
468 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED;
473 return AdServicesStatusUtils.STATUS_SUCCESS;
485 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED;
[all …]
DCustomAudienceOverrider.java24 import android.adservices.common.AdServicesStatusUtils;
270 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED; in callAddOverride()
280 return AdServicesStatusUtils.STATUS_SUCCESS; in callAddOverride()
291 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED;
295 return AdServicesStatusUtils.STATUS_SUCCESS;
305 return AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED;
309 return AdServicesStatusUtils.STATUS_SUCCESS;
328 resultCode = AdServicesStatusUtils.STATUS_UNKNOWN_ERROR;
342 int resultCodeInt = AdServicesStatusUtils.STATUS_UNSET;
350 resultCodeInt = AdServicesStatusUtils.STATUS_UNKNOWN_ERROR;
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DTopicsServiceImpl.java18 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
19 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_ENROLLMENT_…
20 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_ENROLLMENT_…
21 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_ENROLLMENT_…
22 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_MANIFEST_AD…
23 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_PACKAGE_NOT…
24 import static android.adservices.common.AdServicesStatusUtils.STATUS_INTERNAL_ERROR;
25 import static android.adservices.common.AdServicesStatusUtils.STATUS_INVALID_ARGUMENT;
26 import static android.adservices.common.AdServicesStatusUtils.STATUS_PERMISSION_NOT_REQUESTED;
27 import static android.adservices.common.AdServicesStatusUtils.STATUS_RATE_LIMIT_REACHED;
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAppInstallAdvertisersSetterTest.java39 import android.adservices.common.AdServicesStatusUtils;
136 verifyLog(AdServicesStatusUtils.STATUS_SUCCESS); in testSetAppInstallAdvertisersSuccess()
171 verifyLog(AdServicesStatusUtils.STATUS_INTERNAL_ERROR); in testSetAppInstallAdvertisersFailure()
184 verifyLog(AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED); in testSetAppInstallAdvertisersRevokedConsent()
198 verifyLog(AdServicesStatusUtils.STATUS_INVALID_ARGUMENT); in testSetAppInstallAdvertisersBadInput()
214 verifyLog(AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, never()); in testSetAppInstallAdvertisersBackgroundCaller()
216 verifyLog(AdServicesStatusUtils.STATUS_BACKGROUND_CALLER); in testSetAppInstallAdvertisersBackgroundCaller()
232 verifyLog(AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED, never()); in testSetAppInstallAdvertisersAppNotAllowed()
234 verifyLog(AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED); in testSetAppInstallAdvertisersAppNotAllowed()
250 verifyLog(AdServicesStatusUtils.STATUS_UNAUTHORIZED, never()); in testSetAppInstallAdvertisersUidMismatch()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DForegroundEnforcementAccessResolver.java22 import android.adservices.common.AdServicesStatusUtils;
56 return new AccessInfo(true, AdServicesStatusUtils.STATUS_SUCCESS); in getAccessInfo()
62 return new AccessInfo(true, AdServicesStatusUtils.STATUS_SUCCESS); in getAccessInfo()
70 return new AccessInfo(false, AdServicesStatusUtils.STATUS_BACKGROUND_CALLER); in getAccessInfo()
78 return new AccessInfo(false, AdServicesStatusUtils.STATUS_BACKGROUND_CALLER); in getAccessInfo()
80 return new AccessInfo(true, AdServicesStatusUtils.STATUS_SUCCESS); in getAccessInfo()
DConsentNotifiedAccessResolver.java19 import android.adservices.common.AdServicesStatusUtils;
61 return new AccessInfo(true, AdServicesStatusUtils.STATUS_SUCCESS); in getAccessInfo()
66 return new AccessInfo(true, AdServicesStatusUtils.STATUS_SUCCESS); in getAccessInfo()
75 ? AdServicesStatusUtils.STATUS_SUCCESS in getAccessInfo()
76 : AdServicesStatusUtils.STATUS_USER_CONSENT_NOTIFICATION_NOT_DISPLAYED_YET; in getAccessInfo()
DAppPackageAccessResolver.java19 import android.adservices.common.AdServicesStatusUtils;
44 return new AccessInfo(true, AdServicesStatusUtils.STATUS_SUCCESS); in getAccessInfo()
49 ? AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_PACKAGE_NOT_IN_ALLOWLIST in getAccessInfo()
50 : AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_PACKAGE_BLOCKLISTED); in getAccessInfo()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DDebugReportingJobHandler.java25 import android.adservices.common.AdServicesStatusUtils;
111 @AdServicesStatusUtils.StatusCode in performScheduledPendingReports()
113 if (result == AdServicesStatusUtils.STATUS_SUCCESS) { in performScheduledPendingReports()
145 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
165 return AdServicesStatusUtils.STATUS_SUCCESS; in performReport()
169 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
176 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
187 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
208 return AdServicesStatusUtils.STATUS_UNKNOWN_ERROR; in performReport()
223 return AdServicesStatusUtils.STATUS_UNKNOWN_ERROR; in performReport()
DAggregateReportingJobHandler.java26 import android.adservices.common.AdServicesStatusUtils;
171 @AdServicesStatusUtils.StatusCode in performScheduledPendingReportsInWindow()
174 if (result == AdServicesStatusUtils.STATUS_SUCCESS) { in performScheduledPendingReportsInWindow()
229 @AdServicesStatusUtils.StatusCode
238 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
249 return AdServicesStatusUtils.STATUS_INVALID_ARGUMENT; in performReport()
253 return AdServicesStatusUtils.STATUS_INVALID_ARGUMENT; in performReport()
278 return AdServicesStatusUtils.STATUS_SUCCESS; in performReport()
281 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
286 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
[all …]
DEventReportingJobHandler.java25 import android.adservices.common.AdServicesStatusUtils;
161 @AdServicesStatusUtils.StatusCode in performScheduledPendingReportsInWindow()
164 if (result == AdServicesStatusUtils.STATUS_SUCCESS) { in performScheduledPendingReportsInWindow()
218 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
227 return AdServicesStatusUtils.STATUS_INVALID_ARGUMENT; in performReport()
232 return AdServicesStatusUtils.STATUS_INVALID_ARGUMENT; in performReport()
256 return AdServicesStatusUtils.STATUS_SUCCESS; in performReport()
259 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
265 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
276 return AdServicesStatusUtils.STATUS_IO_ERROR; in performReport()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/
DRunAdScoringProcessReportedStatsTest.java21 import android.adservices.common.AdServicesStatusUtils;
36 static final int GET_AD_SELECTION_LOGIC_RESULT_CODE = AdServicesStatusUtils.STATUS_SUCCESS;
37 static final int GET_AD_SCORES_RESULT_CODE = AdServicesStatusUtils.STATUS_SUCCESS;
38 static final int GET_TRUSTED_SCORING_SIGNALS_RESULT_CODE = AdServicesStatusUtils.STATUS_SUCCESS;
43 static final int RUN_AD_SCORING_RESULT_CODE = AdServicesStatusUtils.STATUS_SUCCESS;
44 static final int GET_AD_SELECTION_LOGIC_SCRIPT_TYPE = AdServicesStatusUtils.STATUS_SUCCESS;
DRunAdBiddingPerCAProcessReportedStatsTest.java24 import android.adservices.common.AdServicesStatusUtils;
35 static final int RUN_AD_BIDDING_PER_CA_RESULT_CODE = AdServicesStatusUtils.STATUS_SUCCESS;
37 static final int GET_BUYER_DECISION_LOGIC_RESULT_CODE = AdServicesStatusUtils.STATUS_SUCCESS;
46 static final int RUN_BIDDING_RESULT_CODE = AdServicesStatusUtils.STATUS_SUCCESS;
47 static final int GET_TRUSTED_BIDDING_SIGNALS_RESULT_CODE = AdServicesStatusUtils.STATUS_SUCCESS;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adid/
DAdIdServiceImpl.java18 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
19 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_PACKAGE_NOT…
20 import static android.adservices.common.AdServicesStatusUtils.STATUS_INTERNAL_ERROR;
21 import static android.adservices.common.AdServicesStatusUtils.STATUS_PERMISSION_NOT_REQUESTED;
22 import static android.adservices.common.AdServicesStatusUtils.STATUS_RATE_LIMIT_REACHED;
23 import static android.adservices.common.AdServicesStatusUtils.STATUS_SUCCESS;
24 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED;
25 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNSET;
26 import static android.adservices.common.AdServicesStatusUtils.StatusCode;
27 import static android.adservices.common.AdServicesStatusUtils.isSuccess;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsetid/
DAppSetIdServiceImpl.java18 import static android.adservices.common.AdServicesStatusUtils.STATUS_BACKGROUND_CALLER;
19 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_PACKAGE_NOT…
20 import static android.adservices.common.AdServicesStatusUtils.STATUS_INTERNAL_ERROR;
21 import static android.adservices.common.AdServicesStatusUtils.STATUS_RATE_LIMIT_REACHED;
22 import static android.adservices.common.AdServicesStatusUtils.STATUS_SUCCESS;
23 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED;
24 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNSET;
25 import static android.adservices.common.AdServicesStatusUtils.StatusCode;
26 import static android.adservices.common.AdServicesStatusUtils.isSuccess;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/stats/
DAdServicesLoggerUtil.java19 import static android.adservices.common.AdServicesStatusUtils.STATUS_INTERNAL_ERROR;
20 import static android.adservices.common.AdServicesStatusUtils.STATUS_INVALID_ARGUMENT;
21 import static android.adservices.common.AdServicesStatusUtils.STATUS_JS_SANDBOX_UNAVAILABLE;
22 import static android.adservices.common.AdServicesStatusUtils.STATUS_TIMEOUT;
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DProtectedSignalsServiceImplTest.java41 import android.adservices.common.AdServicesStatusUtils;
219 verifyUpdateSignalsApiUsageLog(AdServicesStatusUtils.STATUS_SUCCESS, PACKAGE); in testUpdateSignalsSuccess()
237 AdServicesStatusUtils.STATUS_INVALID_ARGUMENT, /* packageName */""); in testUpdateSignalsNullInput()
249 AdServicesStatusUtils.STATUS_INVALID_ARGUMENT, /* packageName */ ""); in testUpdateSignalsLogsPackageUidAndAdtech()
260 verifyUpdateSignalsApiUsageLog(AdServicesStatusUtils.STATUS_INVALID_ARGUMENT, PACKAGE); in testUpdateSignalsNullCallback()
272 verifyUpdateSignalsApiUsageLog(AdServicesStatusUtils.STATUS_INTERNAL_ERROR, PACKAGE); in testUpdateSignalsExceptionGettingUid()
295 assertEquals(AdServicesStatusUtils.STATUS_RATE_LIMIT_REACHED, actual.getStatusCode()); in testUpdateSignalsFilterException()
319 assertEquals(AdServicesStatusUtils.STATUS_INVALID_ARGUMENT, actual.getStatusCode()); in testUpdateSignalsIllegalArgumentException()
321 verifyUpdateSignalsApiUsageLog(AdServicesStatusUtils.STATUS_INVALID_ARGUMENT, PACKAGE); in testUpdateSignalsIllegalArgumentException()
340 verifyUpdateSignalsApiUsageLog(AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED, PACKAGE); in testUpdateSignalsNoConsentIfCallerNotHaveConsent()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAppImportanceFilter.java21 import android.adservices.common.AdServicesStatusUtils;
52 this(AdServicesStatusUtils.ILLEGAL_STATE_BACKGROUND_CALLER_ERROR_MESSAGE); in WrongCallingApplicationStateException()
165 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in assertCallerIsInForeground()
205 AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_TO_CROSS_USER_BOUNDARIES, in assertCallerIsInForeground()
208 AdServicesStatusUtils in assertCallerIsInForeground()
226 AdServicesStatusUtils.STATUS_BACKGROUND_CALLER, in assertCallerIsInForeground()
DFledgeAuthorizationFilter.java19 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_ENROLLMENT_…
20 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_ENROLLMENT_…
21 import static android.adservices.common.AdServicesStatusUtils.STATUS_CALLER_NOT_ALLOWED_MANIFEST_AD…
22 import static android.adservices.common.AdServicesStatusUtils.STATUS_PERMISSION_NOT_REQUESTED;
23 import static android.adservices.common.AdServicesStatusUtils.STATUS_UNAUTHORIZED;
29 import android.adservices.common.AdServicesStatusUtils;
187 AdServicesStatusUtils.SECURITY_EXCEPTION_PERMISSION_NOT_REQUESTED_ERROR_MESSAGE); in logAndThrowPermissionFailure()
199 AdServicesStatusUtils.SECURITY_EXCEPTION_PERMISSION_NOT_REQUESTED_ERROR_MESSAGE); in logAndThrowMultiplePermissionFailure()
497 AdServicesStatusUtils in CallerMismatchException()
515 super(AdServicesStatusUtils.SECURITY_EXCEPTION_CALLER_NOT_ALLOWED_ERROR_MESSAGE); in AdTechNotAllowedException()
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/
DTestAdSelectionManager.java23 import android.adservices.common.AdServicesStatusUtils;
104 AdServicesStatusUtils.asException( in overrideAdSelectionConfigRemoteInfo()
160 AdServicesStatusUtils.asException( in removeAdSelectionConfigRemoteInfoOverride()
211 AdServicesStatusUtils.asException( in resetAllAdSelectionConfigRemoteOverrides()
270 AdServicesStatusUtils.asException( in overrideAdSelectionFromOutcomesConfigRemoteInfo()
326 AdServicesStatusUtils.asException( in removeAdSelectionFromOutcomesConfigRemoteInfoOverride()
377 AdServicesStatusUtils.asException( in resetAllAdSelectionFromOutcomesConfigRemoteOverrides()
442 AdServicesStatusUtils.asException( in setAdCounterHistogramOverride()
504 AdServicesStatusUtils.asException( in removeAdCounterHistogramOverride()
559 AdServicesStatusUtils.asException( in resetAllAdCounterHistogramOverrides()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DScheduleCustomAudienceUpdateImpl.java22 import android.adservices.common.AdServicesStatusUtils;
249 resultCode = AdServicesStatusUtils.STATUS_INVALID_ARGUMENT; in notifyFailure()
251 resultCode = AdServicesStatusUtils.STATUS_INVALID_OBJECT; in notifyFailure()
253 resultCode = AdServicesStatusUtils.STATUS_SERVER_RATE_LIMIT_REACHED; in notifyFailure()
256 resultCode = AdServicesStatusUtils.STATUS_INTERNAL_ERROR; in notifyFailure()
277 AdServicesStatusUtils.STATUS_INTERNAL_ERROR, in notifyFailure()
288 AdServicesStatusUtils.STATUS_SUCCESS, in notifySuccess()
296 AdServicesStatusUtils.STATUS_INTERNAL_ERROR, in notifySuccess()
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/
DMeasurementErrorResponse.java19 import static android.adservices.common.AdServicesStatusUtils.STATUS_SUCCESS;
22 import android.adservices.common.AdServicesStatusUtils;
79 @AdServicesStatusUtils.StatusCode private int mStatusCode = STATUS_SUCCESS;
87 @AdServicesStatusUtils.StatusCode int statusCode) { in setStatusCode()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/
DProtectedSignalsServiceImpl.java28 import android.adservices.common.AdServicesStatusUtils;
217 .setResultCode(AdServicesStatusUtils.STATUS_INVALID_ARGUMENT) in updateSignals()
268 int resultCode = AdServicesStatusUtils.STATUS_UNSET; in doUpdateSignals()
333 resultCode = AdServicesStatusUtils.STATUS_SUCCESS; in doUpdateSignals()
336 resultCode = AdServicesStatusUtils.STATUS_USER_CONSENT_REVOKED; in doUpdateSignals()
353 resultCode = AdServicesStatusUtils.STATUS_INTERNAL_ERROR; in doUpdateSignals()
361 if (resultCode == AdServicesStatusUtils.STATUS_SUCCESS) { in doUpdateSignals()
392 AdServicesStatusUtils.STATUS_INTERNAL_ERROR); in getCallingUid()
406 resultCode = AdServicesStatusUtils.STATUS_INVALID_ARGUMENT; in notifyFailure()
409 resultCode = AdServicesStatusUtils.STATUS_INTERNAL_ERROR; in notifyFailure()

1234567