Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DEnqueueAsyncRegistrationTest.java229 AsyncRegistration asyncRegistration = in testAppSourceRegistrationRequest_event_isValid() local
231 Assert.assertNotNull(asyncRegistration); in testAppSourceRegistrationRequest_event_isValid()
232 Assert.assertNotNull(asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_event_isValid()
235 asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_event_isValid()
237 Uri.parse("android-app://test.destination"), asyncRegistration.getTopOrigin()); in testAppSourceRegistrationRequest_event_isValid()
238 Assert.assertNotNull(asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_event_isValid()
239 Assert.assertNotNull(asyncRegistration.getRegistrant()); in testAppSourceRegistrationRequest_event_isValid()
241 Uri.parse("android-app://test.destination"), asyncRegistration.getRegistrant()); in testAppSourceRegistrationRequest_event_isValid()
242 Assert.assertNotNull(asyncRegistration.getSourceType()); in testAppSourceRegistrationRequest_event_isValid()
243 Assert.assertEquals(Source.SourceType.EVENT, asyncRegistration.getSourceType()); in testAppSourceRegistrationRequest_event_isValid()
[all …]
DAsyncTriggerFetcherTest.java313 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in testBasicTriggerRequest() local
316 mFetcher.fetchTrigger(asyncRegistration, asyncFetchStatus, asyncRedirects); in testBasicTriggerRequest()
322 asyncRegistration.getTopOrigin().toString(), in testBasicTriggerRequest()
331 asyncRegistration, in testBasicTriggerRequest()
394 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in testBasicTriggerRequest_withAggregateDeduplicationKey() local
397 mFetcher.fetchTrigger(asyncRegistration, asyncFetchStatus, asyncRedirects); in testBasicTriggerRequest_withAggregateDeduplicationKey()
403 asyncRegistration.getTopOrigin().toString(), in testBasicTriggerRequest_withAggregateDeduplicationKey()
415 asyncRegistration, in testBasicTriggerRequest_withAggregateDeduplicationKey()
456 AsyncRegistration asyncRegistration = appTriggerRegistrationRequest(request); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails() local
459 mFetcher.fetchTrigger(asyncRegistration, asyncFetchStatus, asyncRedirects); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails()
[all …]
DFetcherUtilTest.java1010 AsyncRegistration asyncRegistration = in emitHeaderMetrics_headersSizeLessThanMaxAllowed_doesNotLogAdTechDomain() local
1023 maxAllowedHeadersSize, mLogger, asyncRegistration, asyncFetchStatus); in emitHeaderMetrics_headersSizeLessThanMaxAllowed_doesNotLogAdTechDomain()
1055 AsyncRegistration asyncRegistration = in emitHeaderMetrics_headersSizeExceedsMaxAllowed_logsAdTechDomain() local
1068 maxAllowedHeadersSize, mLogger, asyncRegistration, asyncFetchStatus); in emitHeaderMetrics_headersSizeExceedsMaxAllowed_logsAdTechDomain()
1103 AsyncRegistration asyncRegistration = in emitHeaderMetrics_headersWithNullValues_success() local
1116 maxAllowedHeadersSize, mLogger, asyncRegistration, asyncFetchStatus); in emitHeaderMetrics_headersWithNullValues_success()
DAsyncSourceFetcherTest.java294 AsyncRegistration asyncRegistration = appSourceRegistrationRequest(request); in testBasicSourceRequest() local
296 mFetcher.fetchSource(asyncRegistration, asyncFetchStatus, asyncRedirects); in testBasicSourceRequest()
312 assertEquals(asyncRegistration.getRegistrationId(), result.getRegistrationId()); in testBasicSourceRequest()
316 asyncRegistration, in testBasicSourceRequest()
3881 AsyncRegistration asyncRegistration = webSourceRegistrationRequest(request, true); in fetchWebSources_basic_success() local
3883 mFetcher.fetchSource(asyncRegistration, asyncFetchStatus, asyncRedirects); in fetchWebSources_basic_success()
3893 assertEquals(asyncRegistration.getRegistrationId(), result.getRegistrationId()); in fetchWebSources_basic_success()
5353 AsyncRegistration asyncRegistration = appSourceRegistrationRequest(request); in basicSourceRequest_headersMoreThanMaxResponseSize_emitsMetricsWithAdTechDomain() local
5356 mFetcher.fetchSource(asyncRegistration, asyncFetchStatus, asyncRedirects); in basicSourceRequest_headersMoreThanMaxResponseSize_emitsMetricsWithAdTechDomain()
5359 FetcherUtil.emitHeaderMetrics(5L, mLogger, asyncRegistration, asyncFetchStatus); in basicSourceRequest_headersMoreThanMaxResponseSize_emitsMetricsWithAdTechDomain()
[all …]
DAsyncRegistrationQueueRunnerTest.java1584 (asyncRegistration -> { in runAsyncRegistrationQueueWorker_appTrigger_nearMaxCount_addSomeRedirects()
1587 asyncRegistration.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appTrigger_nearMaxCount_addSomeRedirects()
4981 String redirectUri, AsyncRegistration asyncRegistration) { in getAsyncSourceAnswerForLocationTypeRedirectToWellKnown() argument
4991 asyncRedirects.configure(redirectHeaders, mFlags, asyncRegistration); in getAsyncSourceAnswerForLocationTypeRedirectToWellKnown()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncRegistrationQueueRunner.java194 AsyncRegistration asyncRegistration = fetchNext(retryLimit, failedOrigins); in runAsyncRegistrationQueueWorker() local
195 if (null == asyncRegistration) { in runAsyncRegistrationQueueWorker()
201 processAsyncRecord(asyncRegistration, failedOrigins); in runAsyncRegistrationQueueWorker()
214 private void processAsyncRecord(AsyncRegistration asyncRegistration, Set<Uri> failedOrigins) { in processAsyncRecord() argument
215 if (asyncRegistration.isSourceRequest()) { in processAsyncRecord()
218 processSourceRegistration(asyncRegistration, failedOrigins); in processAsyncRecord()
222 processTriggerRegistration(asyncRegistration, failedOrigins); in processAsyncRecord()
227 AsyncRegistration asyncRegistration = fetchNext(retryLimit, failedOrigins); in hasPendingRecords() local
228 if (null == asyncRegistration) { in hasPendingRecords()
249 AsyncRegistration asyncRegistration, Set<Uri> failedOrigins) { in processSourceRegistration() argument
[all …]
DAsyncSourceFetcher.java113 AsyncRegistration asyncRegistration, in parseCommonSourceParams() argument
121 long sourceEventTime = asyncRegistration.getRequestTime(); in parseCommonSourceParams()
144 if (asyncRegistration.getSourceType() == Source.SourceType.EVENT) { in parseCommonSourceParams()
300 if (asyncRegistration.isWebRequest() in parseCommonSourceParams()
302 && asyncRegistration.getOsDestination() != null in parseCommonSourceParams()
303 && !asyncRegistration.getOsDestination().equals(appUri)) { in parseCommonSourceParams()
314 asyncRegistration.isWebRequest() && asyncRegistration.getWebDestination() != null; in parseCommonSourceParams()
339 && asyncRegistration.getWebDestination().equals(destination)) { in parseCommonSourceParams()
450 asyncRegistration.getSourceType(), in parseCommonSourceParams()
459 asyncRegistration.getSourceType(), in parseCommonSourceParams()
[all …]
DFetcherUtil.java364 static String getSourceRegistrantToLog(AsyncRegistration asyncRegistration) { in getSourceRegistrantToLog() argument
365 if (asyncRegistration.isSourceRequest()) { in getSourceRegistrantToLog()
366 return asyncRegistration.getRegistrant().toString(); in getSourceRegistrantToLog()
375 AsyncRegistration asyncRegistration, in emitHeaderMetrics() argument
382 WebAddresses.topPrivateDomainAndScheme(asyncRegistration.getRegistrationUri()) in emitHeaderMetrics()
390 getRegistrationType(asyncRegistration), in emitHeaderMetrics()
392 getSourceType(asyncRegistration), in emitHeaderMetrics()
393 getSurfaceType(asyncRegistration), in emitHeaderMetrics()
397 getSourceRegistrantToLog(asyncRegistration), in emitHeaderMetrics()
447 private static int getRegistrationType(AsyncRegistration asyncRegistration) { in getRegistrationType() argument
[all …]
DAsyncTriggerFetcher.java117 AsyncRegistration asyncRegistration, in parseTrigger() argument
121 boolean arDebugPermission = asyncRegistration.getDebugKeyAllowed(); in parseTrigger()
128 asyncRegistration.getTopOrigin(), asyncRegistration.getType())); in parseTrigger()
129 builder.setRegistrant(asyncRegistration.getRegistrant()); in parseTrigger()
130 builder.setAdIdPermission(asyncRegistration.hasAdIdPermission()); in parseTrigger()
133 asyncRegistration.isWebRequest() ? EventSurfaceType.WEB : EventSurfaceType.APP); in parseTrigger()
134 builder.setTriggerTime(asyncRegistration.getRequestTime()); in parseTrigger()
136 WebAddresses.originAndScheme(asyncRegistration.getRegistrationUri()); in parseTrigger()
142 + asyncRegistration.getRegistrationUri()); in parseTrigger()
147 builder.setPlatformAdId(asyncRegistration.getPlatformAdId()); in parseTrigger()
[all …]
DEnqueueAsyncRegistration.java240 AsyncRegistration asyncRegistration =
261 dao.insertAsyncRegistration(asyncRegistration);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ondevicepersonalization/
DOdpDelegationWrapperImplTest.java114 AsyncRegistration asyncRegistration = in registerOdpTrigger_validParameters_success() local
137 odpDelegationWrapperImpl.registerOdpTrigger(asyncRegistration, header, true); in registerOdpTrigger_validParameters_success()
144 assertEquals(asyncRegistration.getTopOrigin(), params.getDestinationUrl()); in registerOdpTrigger_validParameters_success()
145 assertEquals(asyncRegistration.getRegistrant().toString(), params.getAppPackageName()); in registerOdpTrigger_validParameters_success()
170 AsyncRegistration asyncRegistration = in registerOdpTrigger_invalidEnrollment_fail() local
193 odpDelegationWrapperImpl.registerOdpTrigger(asyncRegistration, header, false); in registerOdpTrigger_invalidEnrollment_fail()
214 AsyncRegistration asyncRegistration = in registerOdpTrigger_headerSizeLimitExceeded_fail() local
237 odpDelegationWrapperImpl.registerOdpTrigger(asyncRegistration, header, true); in registerOdpTrigger_headerSizeLimitExceeded_fail()
257 AsyncRegistration asyncRegistration = in registerOdpTrigger_invalidHeaderFormat_fail() local
283 odpDelegationWrapperImpl.registerOdpTrigger(asyncRegistration, header, true); in registerOdpTrigger_invalidHeaderFormat_fail()
[all …]
DNoOdpDelegationWrapperTest.java57 AsyncRegistration asyncRegistration = in registerOdpTrigger_logMetrics() local
80 noOdpDelegationWrapper.registerOdpTrigger(asyncRegistration, header, false); in registerOdpTrigger_logMetrics()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DContentValueFixtures.java386 ContentValues asyncRegistration = new ContentValues(); in generateAsyncRegistrationContentValuesV1() local
388 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
390 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
393 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
396 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
399 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
402 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
405 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
408 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
411 asyncRegistration.put( in generateAsyncRegistrationContentValuesV1()
[all …]
DMeasurementDbMigratorV31Test.java89 ContentValues asyncRegistration = in createFakeDataV30() local
91 asyncRegistration.put( in createFakeDataV30()
93 asyncRegistrationRows.add(asyncRegistration); in createFakeDataV30()
DMeasurementDbMigratorV24Test.java93 ContentValues asyncRegistration = in createFakeDataV23() local
95 asyncRegistration.put( in createFakeDataV23()
97 asyncRegistrationRows.add(asyncRegistration); in createFakeDataV23()
DMeasurementDbMigratorV13Test.java110 ContentValues asyncRegistration = in createFakeDataV12() local
112 asyncRegistration.put( in createFakeDataV12()
114 asyncRegistrationRows.add(asyncRegistration); in createFakeDataV12()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DAbstractDbIntegrationTest.java626 private static void insertToDb(AsyncRegistration asyncRegistration, SQLiteDatabase db) in insertToDb() argument
629 values.put(MeasurementTables.AsyncRegistrationContract.ID, asyncRegistration.getId()); in insertToDb()
632 asyncRegistration.getRegistrationUri().toString()); in insertToDb()
635 getNullableUriString(asyncRegistration.getWebDestination())); in insertToDb()
638 getNullableUriString(asyncRegistration.getVerifiedDestination())); in insertToDb()
641 getNullableUriString(asyncRegistration.getOsDestination())); in insertToDb()
644 getNullableUriString(asyncRegistration.getRegistrant())); in insertToDb()
647 getNullableUriString(asyncRegistration.getTopOrigin())); in insertToDb()
650 asyncRegistration.getSourceType() == null in insertToDb()
652 : asyncRegistration.getSourceType().ordinal()); in insertToDb()
[all …]
DMeasurementDaoTest.java5367 asyncRegistration -> { in testDeleteExpiredRecordsForAsyncRegistrations()
5369 values.put(AsyncRegistrationContract.ID, asyncRegistration.getId()); in testDeleteExpiredRecordsForAsyncRegistrations()
5372 asyncRegistration.getRegistrant().toString()); in testDeleteExpiredRecordsForAsyncRegistrations()
5375 asyncRegistration.getTopOrigin().toString()); in testDeleteExpiredRecordsForAsyncRegistrations()
5378 asyncRegistration.getOsDestination().toString()); in testDeleteExpiredRecordsForAsyncRegistrations()
5381 asyncRegistration.getDebugKeyAllowed()); in testDeleteExpiredRecordsForAsyncRegistrations()
5383 AsyncRegistrationContract.TYPE, asyncRegistration.getType().toString()); in testDeleteExpiredRecordsForAsyncRegistrations()
5386 asyncRegistration.getRequestTime()); in testDeleteExpiredRecordsForAsyncRegistrations()
5389 asyncRegistration.getRetryCount()); in testDeleteExpiredRecordsForAsyncRegistrations()
5392 asyncRegistration.getRegistrationId()); in testDeleteExpiredRecordsForAsyncRegistrations()
[all …]
DDbState.java170 AsyncRegistration asyncRegistration = getAsyncRegistrationFrom(aJSON); in DbState() local
171 mAsyncRegistrationList.add(asyncRegistration); in DbState()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DE2EInteropMockTest.java259 AsyncRegistration asyncRegistration = in insertSourceOrAssertUnparsable() local
276 .parseSource(asyncRegistration, enrollmentId, headers, status); in insertSourceOrAssertUnparsable()
284 maybeSource.get(), asyncRegistration, measurementDao))); in insertSourceOrAssertUnparsable()
305 AsyncRegistration asyncRegistration = in insertTriggerOrAssertUnparsable() local
319 .parseTrigger(asyncRegistration, enrollmentId, headers, status); in insertTriggerOrAssertUnparsable()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ondevicepersonalization/
DOdpDelegationWrapperImpl.java88 AsyncRegistration asyncRegistration, in registerOdpTrigger() argument
91 Objects.requireNonNull(asyncRegistration); in registerOdpTrigger()
156 asyncRegistration.getTopOrigin(), in registerOdpTrigger()
157 asyncRegistration.getRegistrant().toString(), in registerOdpTrigger()
DIOdpDelegationWrapper.java28 AsyncRegistration asyncRegistration, in registerOdpTrigger() argument
DNoOdpDelegationWrapper.java45 AsyncRegistration asyncRegistration, in registerOdpTrigger() argument
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/
DMeasurementDao.java3072 public void insertAsyncRegistration(@NonNull AsyncRegistration asyncRegistration)
3075 values.put(MeasurementTables.AsyncRegistrationContract.ID, asyncRegistration.getId());
3078 asyncRegistration.getRegistrationUri().toString());
3081 getNullableUriString(asyncRegistration.getWebDestination()));
3084 getNullableUriString(asyncRegistration.getVerifiedDestination()));
3087 getNullableUriString(asyncRegistration.getOsDestination()));
3090 getNullableUriString(asyncRegistration.getRegistrant()));
3093 asyncRegistration.getTopOrigin().toString());
3096 asyncRegistration.getSourceType() == null
3098 : asyncRegistration.getSourceType().ordinal());
[all …]
DIMeasurementDao.java539 void insertAsyncRegistration(@NonNull AsyncRegistration asyncRegistration) in insertAsyncRegistration() argument
581 void updateRetryCount(@NonNull AsyncRegistration asyncRegistration) throws DatastoreException; in updateRetryCount() argument