Home
last modified time | relevance | path

Searched refs:AsyncRegistration (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncRegistrationTest.java64 private static AsyncRegistration createAsyncRegistrationForAppSource() { in createAsyncRegistrationForAppSource()
65 return new AsyncRegistration.Builder() in createAsyncRegistrationForAppSource()
70 .setType(AsyncRegistration.RegistrationType.APP_SOURCE) in createAsyncRegistrationForAppSource()
80 private static AsyncRegistration createAsyncRegistrationForAppTrigger() { in createAsyncRegistrationForAppTrigger()
81 return new AsyncRegistration.Builder() in createAsyncRegistrationForAppTrigger()
86 .setType(AsyncRegistration.RegistrationType.APP_TRIGGER) in createAsyncRegistrationForAppTrigger()
95 private static AsyncRegistration createAsyncRegistrationForWebSource() { in createAsyncRegistrationForWebSource()
96 return new AsyncRegistration.Builder() in createAsyncRegistrationForWebSource()
104 .setType(AsyncRegistration.RegistrationType.WEB_SOURCE) in createAsyncRegistrationForWebSource()
114 private static AsyncRegistration createAsyncRegistrationForWebTrigger() { in createAsyncRegistrationForWebTrigger()
[all …]
DAsyncRegistrationQueueRunnerTest.java319 AsyncRegistration validAsyncRegistration = createAsyncRegistrationForAppSource(); in test_runAsyncRegistrationQueueWorker_appSource_success()
322 AsyncRegistration.RedirectType.LIST, in test_runAsyncRegistrationQueueWorker_appSource_success()
354 .fetchSource(any(AsyncRegistration.class), any(), any()); in test_runAsyncRegistrationQueueWorker_appSource_success()
356 verify(mMeasurementDao, times(2)).insertAsyncRegistration(any(AsyncRegistration.class)); in test_runAsyncRegistrationQueueWorker_appSource_success()
373 AsyncRegistration validAsyncRegistration = createAsyncRegistrationForAppSource(); in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
376 AsyncRegistration.RedirectType.LIST, in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
406 .fetchSource(any(AsyncRegistration.class), any(), any()); in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
408 verify(mMeasurementDao, times(2)).insertAsyncRegistration(any(AsyncRegistration.class)); in test_runAsyncRegistrationQueueWorker_emptyNoisedState_sendsDebugReport()
425 AsyncRegistration validAsyncRegistration = createAsyncRegistrationForAppSource(); in test_runAsyncRegistrationQueueWorker_nullFakeReports_doesNotSendDebugReport()
428 AsyncRegistration.RedirectType.LIST, in test_runAsyncRegistrationQueueWorker_nullFakeReports_doesNotSendDebugReport()
[all …]
DEnqueueAsyncRegistrationTest.java229 AsyncRegistration asyncRegistration = in testAppSourceRegistrationRequest_event_isValid()
246 AsyncRegistration.RegistrationType.APP_SOURCE, asyncRegistration.getType()); in testAppSourceRegistrationRequest_event_isValid()
288 AsyncRegistration asyncRegistration = in testAppSourceRegistrationRequest_navigation_isValid()
305 AsyncRegistration.RegistrationType.APP_SOURCE, asyncRegistration.getType()); in testAppSourceRegistrationRequest_navigation_isValid()
384 AsyncRegistration asyncRegistration = in testAppTriggerRegistrationRequest_isValid()
440 AsyncRegistration asyncRegistration = in testAppRegistrationRequestWithAdId_isValid()
485 AsyncRegistration asyncRegistration = in testAppRegistrationRequestWithPostBody_isValid()
525 AsyncRegistration asyncRegistration1 = in testWebSourceRegistrationRequest_event_isValid()
537 AsyncRegistration asyncRegistration2 = in testWebSourceRegistrationRequest_event_isValid()
597 AsyncRegistration asyncRegistration1 = in testWebSourceRegistrationRequest_navigation_isValid()
[all …]
DFetcherUtilTest.java122 Map<AsyncRegistration.RedirectType, List<Uri>> redirectMap = in parseRedirects_noRedirectHeaders_returnsEmpty()
125 assertTrue(redirectMap.get(AsyncRegistration.RedirectType.LIST).isEmpty()); in parseRedirects_noRedirectHeaders_returnsEmpty()
126 assertTrue(redirectMap.get(AsyncRegistration.RedirectType.LOCATION).isEmpty()); in parseRedirects_noRedirectHeaders_returnsEmpty()
131 Map<AsyncRegistration.RedirectType, List<Uri>> redirectMap = in parseRedirects_bothHeaderTypes()
138 List<Uri> redirects = redirectMap.get(AsyncRegistration.RedirectType.LIST); in parseRedirects_bothHeaderTypes()
143 redirects = redirectMap.get(AsyncRegistration.RedirectType.LOCATION); in parseRedirects_bothHeaderTypes()
150 Map<AsyncRegistration.RedirectType, List<Uri>> redirectMap = in parseRedirects_locationHeaderOnly()
153 List<Uri> redirects = redirectMap.get(AsyncRegistration.RedirectType.LOCATION); in parseRedirects_locationHeaderOnly()
156 assertTrue(redirectMap.get(AsyncRegistration.RedirectType.LIST).isEmpty()); in parseRedirects_locationHeaderOnly()
161 Map<AsyncRegistration.RedirectType, List<Uri>> redirectMap = in parseRedirects_lsitHeaderOnly()
[all …]
DAsyncTriggerFetcherTest.java313 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in testBasicTriggerRequest()
394 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in testBasicTriggerRequest_withAggregateDeduplicationKey()
456 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails()
504 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in triggerRequest_aggregateDeduplicationKey_dedupKeyNegative_fails()
552 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in triggerRequest_aggregateDeduplicationKey_dedupKeyTooLarge_fails()
600 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAnInt_fails()
647 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in triggerRequest_aggregateDeduplicationKey_dedupKeyMissing_succeeds()
676 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in testRedirectType_bothRedirectHeaderTypes_choosesListType()
690 .getRedirectsByType(AsyncRegistration.RedirectType.LIST) in testRedirectType_bothRedirectHeaderTypes_choosesListType()
697 .getRedirectsByType(AsyncRegistration.RedirectType.LOCATION) in testRedirectType_bothRedirectHeaderTypes_choosesListType()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ondevicepersonalization/
DOdpDelegationWrapperImplTest.java47 import com.android.adservices.service.measurement.registration.AsyncRegistration;
114 AsyncRegistration asyncRegistration = in registerOdpTrigger_validParameters_success()
115 new AsyncRegistration.Builder() in registerOdpTrigger_validParameters_success()
170 AsyncRegistration asyncRegistration = in registerOdpTrigger_invalidEnrollment_fail()
171 new AsyncRegistration.Builder() in registerOdpTrigger_invalidEnrollment_fail()
214 AsyncRegistration asyncRegistration = in registerOdpTrigger_headerSizeLimitExceeded_fail()
215 new AsyncRegistration.Builder() in registerOdpTrigger_headerSizeLimitExceeded_fail()
257 AsyncRegistration asyncRegistration = in registerOdpTrigger_invalidHeaderFormat_fail()
258 new AsyncRegistration.Builder() in registerOdpTrigger_invalidHeaderFormat_fail()
305 AsyncRegistration asyncRegistration = in registerOdpTrigger_missingRequiredField_fail()
[all …]
DNoOdpDelegationWrapperTest.java28 import com.android.adservices.service.measurement.registration.AsyncRegistration;
57 AsyncRegistration asyncRegistration = in registerOdpTrigger_logMetrics()
58 new AsyncRegistration.Builder() in registerOdpTrigger_logMetrics()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncRedirects.java54 public List<AsyncRedirect> getRedirectsByType(AsyncRegistration.RedirectType redirectType) { in getRedirectsByType()
55 if (redirectType == AsyncRegistration.RedirectType.LOCATION) { in getRedirectsByType()
64 Map<String, List<String>> headers, Flags flags, AsyncRegistration parentRegistration) { in configure()
69 Map<AsyncRegistration.RedirectType, List<Uri>> urisByType = in configure()
72 for (Uri locationRedirectUri : urisByType.get(AsyncRegistration.RedirectType.LOCATION)) { in configure()
85 for (Uri listRedirectUri : urisByType.get(AsyncRegistration.RedirectType.LIST)) { in configure()
92 Map<String, List<String>> headers, Flags flags, AsyncRegistration parentRegistration) { in shouldRedirect302ToWellKnown()
DAsyncRegistration.java30 public class AsyncRegistration { class
63 public AsyncRegistration(@NonNull AsyncRegistration.Builder builder) { in AsyncRegistration() method in AsyncRegistration
86 if (!(o instanceof AsyncRegistration)) return false; in equals()
87 AsyncRegistration that = (AsyncRegistration) o; in equals()
267 private AsyncRegistration.RegistrationType mType;
404 public AsyncRegistration build() { in build()
406 return new AsyncRegistration(this); in build()
DEnqueueAsyncRegistration.java74 ? AsyncRegistration.RegistrationType.APP_SOURCE in appSourceOrTriggerRegistrationRequest()
75 : AsyncRegistration.RegistrationType.APP_TRIGGER, in appSourceOrTriggerRegistrationRequest()
118 AsyncRegistration.RegistrationType.WEB_SOURCE,
161 AsyncRegistration.RegistrationType.WEB_TRIGGER,
206 AsyncRegistration.RegistrationType.APP_SOURCES,
229 AsyncRegistration.RegistrationType registrationType,
240 AsyncRegistration asyncRegistration =
241 new AsyncRegistration.Builder()
DAsyncRegistrationQueueRunner.java194 AsyncRegistration asyncRegistration = fetchNext(retryLimit, failedOrigins); in runAsyncRegistrationQueueWorker()
207 private AsyncRegistration fetchNext(int retryLimit, Set<Uri> failedOrigins) { in fetchNext()
214 private void processAsyncRecord(AsyncRegistration asyncRegistration, Set<Uri> failedOrigins) { in processAsyncRecord()
227 AsyncRegistration asyncRegistration = fetchNext(retryLimit, failedOrigins); in hasPendingRecords()
249 AsyncRegistration asyncRegistration, Set<Uri> failedOrigins) { in processSourceRegistration()
289 Source source, AsyncRegistration asyncRegistration, IMeasurementDao dao) in storeSource()
292 asyncRegistration.getType() == AsyncRegistration.RegistrationType.WEB_SOURCE in storeSource()
297 asyncRegistration.getType() == AsyncRegistration.RegistrationType.WEB_SOURCE in storeSource()
327 AsyncRegistration asyncRegistration, Set<Uri> failedOrigins) { in processTriggerRegistration()
777 private AsyncRegistration createAsyncRegistrationFromRedirect( in createAsyncRegistrationFromRedirect()
[all …]
DFetcherUtil.java60 static Map<AsyncRegistration.RedirectType, List<Uri>> parseRedirects( in parseRedirects()
62 Map<AsyncRegistration.RedirectType, List<Uri>> uriMap = new HashMap<>(); in parseRedirects()
63 uriMap.put(AsyncRegistration.RedirectType.LOCATION, parseLocationRedirects(headers)); in parseRedirects()
64 uriMap.put(AsyncRegistration.RedirectType.LIST, parseListRedirects(headers)); in parseRedirects()
364 static String getSourceRegistrantToLog(AsyncRegistration asyncRegistration) { in getSourceRegistrantToLog()
375 AsyncRegistration asyncRegistration, in emitHeaderMetrics()
447 private static int getRegistrationType(AsyncRegistration asyncRegistration) { in getRegistrationType()
457 private static int getSourceType(AsyncRegistration asyncRegistration) { in getSourceType()
467 private static int getSurfaceType(AsyncRegistration asyncRegistration) { in getSurfaceType()
DAsyncTriggerFetcher.java117 AsyncRegistration asyncRegistration, in parseTrigger()
445 Uri registrant, AsyncRegistration.RegistrationType registrationType) { in isXnaAllowedForTriggerRegistrant()
448 return !AsyncRegistration.RegistrationType.WEB_TRIGGER.equals(registrationType) in isXnaAllowedForTriggerRegistrant()
461 AsyncRegistration asyncRegistration, in fetchTrigger()
567 private Optional<String> getEnrollmentId(AsyncRegistration asyncRegistration) { in getEnrollmentId()
859 AsyncRegistration.RegistrationType registrationType) { in getAttributionDestination()
860 return registrationType == AsyncRegistration.RegistrationType.APP_TRIGGER in getAttributionDestination()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/
DAsyncRegistrationFixture.java22 import com.android.adservices.service.measurement.registration.AsyncRegistration;
29 public static AsyncRegistration.Builder getValidAsyncRegistrationBuilder() { in getValidAsyncRegistrationBuilder()
30 return new AsyncRegistration.Builder() in getValidAsyncRegistrationBuilder()
48 public static AsyncRegistration getValidAsyncRegistration() { in getValidAsyncRegistration()
62 public static final AsyncRegistration.RegistrationType TYPE =
63 AsyncRegistration.RegistrationType.APP_SOURCE;
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DE2EInteropMockTest.java32 import com.android.adservices.service.measurement.registration.AsyncRegistration;
259 AsyncRegistration asyncRegistration = in insertSourceOrAssertUnparsable()
260 new AsyncRegistration.Builder() in insertSourceOrAssertUnparsable()
268 .setType(AsyncRegistration.RegistrationType.WEB_SOURCE) in insertSourceOrAssertUnparsable()
305 AsyncRegistration asyncRegistration = in insertTriggerOrAssertUnparsable()
306 new AsyncRegistration.Builder() in insertTriggerOrAssertUnparsable()
311 .setType(AsyncRegistration.RegistrationType.WEB_TRIGGER) in insertTriggerOrAssertUnparsable()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV11Test.java84 MeasurementTablesDeprecated.AsyncRegistration.ENROLLMENT_ID, in performMigration_v10ToV11WithData_maintainsDataIntegrity()
85 MeasurementTablesDeprecated.AsyncRegistration.REDIRECT_TYPE, in performMigration_v10ToV11WithData_maintainsDataIntegrity()
86 MeasurementTablesDeprecated.AsyncRegistration.REDIRECT_COUNT, in performMigration_v10ToV11WithData_maintainsDataIntegrity()
87 MeasurementTablesDeprecated.AsyncRegistration in performMigration_v10ToV11WithData_maintainsDataIntegrity()
DMeasurementDbMigratorV3Test.java40 import com.android.adservices.service.measurement.registration.AsyncRegistration;
444 values.put(MeasurementTablesDeprecated.AsyncRegistration.ENROLLMENT_ID, "enrollment_id"); in getAsyncRegistrationEntry()
463 values.put(MeasurementTablesDeprecated.AsyncRegistration.REDIRECT_COUNT, 0); in getAsyncRegistrationEntry()
466 values.put(MeasurementTablesDeprecated.AsyncRegistration.LAST_PROCESSING_TIME, 0L); in getAsyncRegistrationEntry()
469 AsyncRegistration.RegistrationType.APP_SOURCE.ordinal()); in getAsyncRegistrationEntry()
472 AsyncRegistration.RegistrationType.APP_SOURCE.ordinal()); in getAsyncRegistrationEntry()
494 MeasurementTablesDeprecated.AsyncRegistration in assertDbContainsAsyncRegistrationValues()
496 .isEqualTo(values.get(MeasurementTablesDeprecated.AsyncRegistration.ENROLLMENT_ID)); in assertDbContainsAsyncRegistrationValues()
537 MeasurementTablesDeprecated.AsyncRegistration in assertDbContainsAsyncRegistrationValues()
540 values.get(MeasurementTablesDeprecated.AsyncRegistration.REDIRECT_COUNT)); in assertDbContainsAsyncRegistrationValues()
[all …]
DContentValueFixtures.java30 import com.android.adservices.service.measurement.registration.AsyncRegistration;
57 public static final long TYPE = AsyncRegistration.RegistrationType.WEB_TRIGGER.ordinal();
406 MeasurementTablesDeprecated.AsyncRegistration.REDIRECT, in generateAsyncRegistrationContentValuesV1()
409 MeasurementTablesDeprecated.AsyncRegistration.INPUT_EVENT, in generateAsyncRegistrationContentValuesV1()
415 MeasurementTablesDeprecated.AsyncRegistration.SCHEDULED_TIME, in generateAsyncRegistrationContentValuesV1()
421 MeasurementTablesDeprecated.AsyncRegistration.LAST_PROCESSING_TIME, in generateAsyncRegistrationContentValuesV1()
438 asyncRegistration.remove(MeasurementTablesDeprecated.AsyncRegistration.REDIRECT); in generateAsyncRegistrationContentValuesV3()
439 asyncRegistration.remove(MeasurementTablesDeprecated.AsyncRegistration.INPUT_EVENT); in generateAsyncRegistrationContentValuesV3()
440 asyncRegistration.remove(MeasurementTablesDeprecated.AsyncRegistration.SCHEDULED_TIME); in generateAsyncRegistrationContentValuesV3()
444 MeasurementTablesDeprecated.AsyncRegistration.ENROLLMENT_ID, in generateAsyncRegistrationContentValuesV3()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ondevicepersonalization/
DIOdpDelegationWrapper.java19 import com.android.adservices.service.measurement.registration.AsyncRegistration;
28 AsyncRegistration asyncRegistration, in registerOdpTrigger()
DNoOdpDelegationWrapper.java22 import com.android.adservices.service.measurement.registration.AsyncRegistration;
45 AsyncRegistration asyncRegistration, in registerOdpTrigger()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DDbHelperV1.java50 + MeasurementTablesDeprecated.AsyncRegistration.REDIRECT
52 + MeasurementTablesDeprecated.AsyncRegistration.INPUT_EVENT
56 + MeasurementTablesDeprecated.AsyncRegistration.SCHEDULED_TIME
60 + MeasurementTablesDeprecated.AsyncRegistration.LAST_PROCESSING_TIME
DDbState.java34 import com.android.adservices.service.measurement.registration.AsyncRegistration;
66 List<AsyncRegistration> mAsyncRegistrationList;
170 AsyncRegistration asyncRegistration = getAsyncRegistrationFrom(aJSON); in DbState()
347 mAsyncRegistrationList.sort(Comparator.comparing(AsyncRegistration::getRequestTime)); in sortAll()
599 private AsyncRegistration getAsyncRegistrationFrom(JSONObject aJSON) throws JSONException { in getAsyncRegistrationFrom()
600 return new AsyncRegistration.Builder() in getAsyncRegistrationFrom()
610 AsyncRegistration.RegistrationType.values()[ in getAsyncRegistrationFrom()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DIMeasurementDao.java35 import com.android.adservices.service.measurement.registration.AsyncRegistration;
539 void insertAsyncRegistration(@NonNull AsyncRegistration asyncRegistration) in insertAsyncRegistration()
555 AsyncRegistration fetchNextQueuedAsyncRegistration(int retryLimit, Set<Uri> failedOrigins) in fetchNextQueuedAsyncRegistration()
581 void updateRetryCount(@NonNull AsyncRegistration asyncRegistration) throws DatastoreException; in updateRetryCount()
DSqliteObjectMapper.java31 import com.android.adservices.service.measurement.registration.AsyncRegistration;
438 public static AsyncRegistration constructAsyncRegistration(Cursor cursor) { in constructAsyncRegistration()
439 AsyncRegistration.Builder builder = new AsyncRegistration.Builder(); in constructAsyncRegistration()
486 : AsyncRegistration.RegistrationType.values()[enumValue])); in constructAsyncRegistration()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV3.java76 + MeasurementTablesDeprecated.AsyncRegistration.ENROLLMENT_ID
88 + MeasurementTablesDeprecated.AsyncRegistration.REDIRECT_TYPE
90 + MeasurementTablesDeprecated.AsyncRegistration.REDIRECT_COUNT
100 + MeasurementTablesDeprecated.AsyncRegistration.LAST_PROCESSING_TIME

12