/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | EnqueueAsyncRegistrationTest.java | 229 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 …]
|
D | AsyncTriggerFetcherTest.java | 313 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 …]
|
D | FetcherUtilTest.java | 1010 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()
|
D | AsyncSourceFetcherTest.java | 294 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 …]
|
D | AsyncRegistrationQueueRunnerTest.java | 1584 (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/ |
D | AsyncRegistrationQueueRunner.java | 194 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 …]
|
D | AsyncSourceFetcher.java | 113 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 …]
|
D | FetcherUtil.java | 364 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 …]
|
D | AsyncTriggerFetcher.java | 117 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 …]
|
D | EnqueueAsyncRegistration.java | 240 AsyncRegistration asyncRegistration = 261 dao.insertAsyncRegistration(asyncRegistration);
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ondevicepersonalization/ |
D | OdpDelegationWrapperImplTest.java | 114 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 …]
|
D | NoOdpDelegationWrapperTest.java | 57 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/ |
D | ContentValueFixtures.java | 386 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 …]
|
D | MeasurementDbMigratorV31Test.java | 89 ContentValues asyncRegistration = in createFakeDataV30() local 91 asyncRegistration.put( in createFakeDataV30() 93 asyncRegistrationRows.add(asyncRegistration); in createFakeDataV30()
|
D | MeasurementDbMigratorV24Test.java | 93 ContentValues asyncRegistration = in createFakeDataV23() local 95 asyncRegistration.put( in createFakeDataV23() 97 asyncRegistrationRows.add(asyncRegistration); in createFakeDataV23()
|
D | MeasurementDbMigratorV13Test.java | 110 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/ |
D | AbstractDbIntegrationTest.java | 626 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 …]
|
D | MeasurementDaoTest.java | 5367 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 …]
|
D | DbState.java | 170 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/ |
D | E2EInteropMockTest.java | 259 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/ |
D | OdpDelegationWrapperImpl.java | 88 AsyncRegistration asyncRegistration, in registerOdpTrigger() argument 91 Objects.requireNonNull(asyncRegistration); in registerOdpTrigger() 156 asyncRegistration.getTopOrigin(), in registerOdpTrigger() 157 asyncRegistration.getRegistrant().toString(), in registerOdpTrigger()
|
D | IOdpDelegationWrapper.java | 28 AsyncRegistration asyncRegistration, in registerOdpTrigger() argument
|
D | NoOdpDelegationWrapper.java | 45 AsyncRegistration asyncRegistration, in registerOdpTrigger() argument
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | MeasurementDao.java | 3072 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 …]
|
D | IMeasurementDao.java | 539 void insertAsyncRegistration(@NonNull AsyncRegistration asyncRegistration) in insertAsyncRegistration() argument 581 void updateRetryCount(@NonNull AsyncRegistration asyncRegistration) throws DatastoreException; in updateRetryCount() argument
|