Home
last modified time | relevance | path

Searched refs:API_NAME (Results 1 – 11 of 11) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DCustomAudienceServiceFilterTest.java97 private static final int API_NAME = 0; field in CustomAudienceServiceFilterTest
125 API_NAME, in testFilterRequest_invalidPackageName_throws()
145 API_NAME, in testFilterRequest_throttled_throws()
154 .assertCallerIsInForeground(MY_UID, API_NAME, null); in testFilterRequest_enforceForegroundTrue_foregroundCheckFails_throws()
165 API_NAME, in testFilterRequest_enforceForegroundTrue_foregroundCheckFails_throws()
174 .assertCallerIsInForeground(Process.myUid(), API_NAME, null); in testFilterRequest_enforceForegroundFalse_foregroundCheckFails_succeeds() local
182 API_NAME, in testFilterRequest_enforceForegroundFalse_foregroundCheckFails_succeeds()
206 API_NAME, in testFilterRequest_adTechNotAuthorized_throws()
218 API_NAME, in testFilterRequest_adTechNotAuthorized_throws()
244 API_NAME, in testFilterRequest_withLocalhostDomain_doesNotPass()
[all …]
DProtectedSignalsServiceFilterTest.java88 private static final int API_NAME = 0; field in ProtectedSignalsServiceFilterTest
117 API_NAME, in testFilterRequestAndExtractIdentifier_invalidPackageName_throws()
138 API_NAME, in testFilterRequestAndExtractIdentifier_throttled_throws()
147 .assertCallerIsInForeground(MY_UID, API_NAME, null); in testFilterRequestAndExtractIdentifier_enforceForegroundTrue_foregroundCheckFails()
159 API_NAME, in testFilterRequestAndExtractIdentifier_enforceForegroundTrue_foregroundCheckFails()
173 API_NAME, in testFilterRequestAndExtractIdentifier_enforceForegroundFalse_foregroundCheckFails()
178 .assertCallerIsInForeground(Process.myUid(), API_NAME, null); in testFilterRequestAndExtractIdentifier_enforceForegroundFalse_foregroundCheckFails() local
187 API_NAME, in testFilterRequestAndExtractIdentifier_enforceForegroundFalse_foregroundCheckFails() local
200 API_NAME, in testFilterRequestAndExtractIdentifier_enableEnrollmentCheck_invalidAdTech_throws()
209 API_NAME, in testFilterRequestAndExtractIdentifier_enableEnrollmentCheck_invalidAdTech_throws()
[all …]
DAdSelectionServiceFilterTest.java98 private static final int API_NAME = 0; field in AdSelectionServiceFilterTest
123 API_NAME, in testFilterRequest_noExceptionsThrown_succeeds()
140 API_NAME, in testFilterRequestThrowsCallerMismatchExceptionWithInvalidPackageName()
164 API_NAME, in testFilterRequest_throttled_throwsLimitExceededException()
176 .assertCallerIsInForeground(Process.myUid(), API_NAME, null); in testFilterRequestThrowsWrongCallingApplicationStateExceptionIfForegroundCheckFails() local
187 API_NAME, in testFilterRequestThrowsWrongCallingApplicationStateExceptionIfForegroundCheckFails()
199 .assertCallerIsInForeground(Process.myUid(), API_NAME, null); in testFilterRequestSucceedsForBackgroundAppsWhenEnforceForegroundFalse() local
207 API_NAME, in testFilterRequestSucceedsForBackgroundAppsWhenEnforceForegroundFalse()
231 API_NAME, in testFilterRequestThrowsAdTechNotAllowedExceptionWhenAdTechNotAuthorized()
243 API_NAME, in testFilterRequestThrowsAdTechNotAllowedExceptionWhenAdTechNotAuthorized()
[all …]
DAppImportanceFilterTest.java66 private static final int API_NAME = AD_SERVICES_API_CALLED__API_NAME__GET_TOPICS; field in AppImportanceFilterTest
95 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundAppPackageName_onSMinus_succeedBySkippingCheck()
108 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundAppPackageName_succeed()
120 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundServiceImportanceAppPackageName_succeed()
136 APP_PACKAGE_NAME, API_NAME, SDK_NAME)); in testCalledWithLessThanForegroundImportanceAppPackageName_throwsIllegalStateException()
151 APP_PACKAGE_NAME, API_NAME, SDK_NAME)); in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure()
158 .hasApiName(API_NAME) in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure()
178 APP_PACKAGE_NAME, API_NAME, SDK_NAME)); in testFailureTryingToRetrievePackageImportancePackageName_throwsIllegalStateException()
186 mAppImportanceFilter.assertCallerIsInForeground(APP_UID, API_NAME, SDK_NAME); in testCalledWithForegroundAppUid_onSMinus_succeedBySkippingCheck()
198 mAppImportanceFilter.assertCallerIsInForeground(APP_UID, API_NAME, SDK_NAME); in testCalledWithForegroundAppUid_succeed()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DFetchCustomAudienceImplTest.java170 private static final int API_NAME = field in FetchCustomAudienceImplTest
239 API_NAME, in setup()
251 API_NAME, in setup()
305 eq(API_NAME), eq(TEST_PACKAGE_NAME), eq(STATUS_INTERNAL_ERROR), anyInt()); in testImpl_disabled()
321 API_NAME, in testImpl_invalidPackageName_throws()
339 eq(API_NAME), eq(TEST_PACKAGE_NAME), eq(STATUS_UNAUTHORIZED), anyInt()); in testImpl_invalidPackageName_throws()
353 API_NAME, in testImpl_throttled_throws()
368 eq(API_NAME), in testImpl_throttled_throws()
385 API_NAME, in testImpl_failedForegroundCheck_throws()
401 eq(API_NAME), in testImpl_failedForegroundCheck_throws()
[all …]
DScheduleCustomAudienceUpdateImplTest.java72 private static final int API_NAME = field in ScheduleCustomAudienceUpdateImplTest
119 eq(API_NAME), in setup()
172 eq(API_NAME), in testScheduleCustomAudienceUpdate_Success()
205 eq(API_NAME), in testScheduleCustomAudienceUpdate_OverDelay_Failure()
245 eq(API_NAME), in testScheduleCustomAudienceUpdate_MissingBuyer_Failure()
271 eq(API_NAME), in testScheduleCustomAudienceUpdate_MissingBuyer_Failure()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DScheduleCustomAudienceUpdateImpl.java69 private static final int API_NAME = field in ScheduleCustomAudienceUpdateImpl
189 API_NAME, in filterAndValidateRequest()
264 API_NAME, mCallerAppPackageName, resultCode, /*latencyMs=*/ 0); in notifyFailure()
275 API_NAME, in notifyFailure()
286 API_NAME, in notifySuccess()
294 API_NAME, in notifySuccess()
DFetchCustomAudienceImpl.java88 private static final int API_NAME = field in FetchCustomAudienceImpl
331 API_NAME, in filterAndValidateRequest()
579 API_NAME, mCallerAppPackageName, resultCode, 0);
590 API_NAME,
601 API_NAME, mCallerAppPackageName, AdServicesStatusUtils.STATUS_SUCCESS, 0);
606 API_NAME,
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/
DAggregateReportBody.java54 private static final String API_NAME = "attribution-reporting"; field in AggregateReportBody
74 String API_NAME = "api"; field
134 sharedInfoJson.put(SharedInfoKeys.API_NAME, API_NAME); in sharedInfoToJson()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DProtectedSignalsServiceImplTest.java87 private static final int API_NAME = AD_SERVICES_API_CALLED__API_NAME__UPDATE_SIGNALS; field in ProtectedSignalsServiceImplTest
163 eq(API_NAME), in setup()
200 eq(API_NAME), in testUpdateSignalsSuccess()
212 eq(API_NAME), in testUpdateSignalsSuccess()
287 eq(API_NAME), in testUpdateSignalsFilterException()
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/
DTopicsApiLoggingHostTest.java78 private static final String API_NAME = "GET_TOPICS"; field in TopicsApiLoggingHostTest
128 assertThat(adServicesApiCalled.getApiName().toString()).isEqualTo(API_NAME); in testGetTopicsLog()