/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/ |
D | DevContextAccessResolverTest.java | 75 when(mRegistrationRequest.getRegistrationUri()).thenReturn(REGISTRATION_URI); in isAllowed_register_nonLocalhost_devEnabled_returnsTrue() 86 when(mRegistrationRequest.getRegistrationUri()).thenReturn(REGISTRATION_URI); in isAllowed_register_nonLocalhost_devDisabled_returnsTrue() 97 when(mRegistrationRequest.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_register_localhost_devEnabled_returnsTrue() 108 when(mRegistrationRequest.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_register_localhost_devDisabled_returnsFalse() 121 when(mWebSourceParams.getRegistrationUri()).thenReturn(REGISTRATION_URI); in isAllowed_registerWebSource_nonLocalhost_devEnabled_returnsTrue() 133 when(mWebSourceParams.getRegistrationUri()).thenReturn(REGISTRATION_URI); in isAllowed_registerWebSource_nonLocalhost_devDisabled_returnsTrue() 145 when(mWebSourceParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebSource_allLocalhost_devEnabled_returnsTrue() 157 when(mWebSourceParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebSource_someLocalhost_devEnabled_returnsTrue() 158 when(mWebSourceParams2.getRegistrationUri()).thenReturn(REGISTRATION_URI); in isAllowed_registerWebSource_someLocalhost_devEnabled_returnsTrue() 171 when(mWebSourceParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebSource_allLocalhost_devDisabled_returnsFalse() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ |
D | MeasurementApiParamsCtsTest.java | 94 assertEquals("https://registration-uri", webSourceParams.getRegistrationUri().toString()); in testWebSourceParams() 108 exampleParams.getRegistrationUri().toString(), in testWebSourceParamsParceling() 109 webSourceParams.getRegistrationUri().toString()); in testWebSourceParamsParceling() 135 request.getSourceParams().get(0).getRegistrationUri().toString()); in testWebSourceRegistrationRequest() 157 exampleRequest.getSourceParams().get(0).getRegistrationUri().toString(), in testWebSourceRegistrationRequestParceling() 158 request.getSourceParams().get(0).getRegistrationUri().toString()); in testWebSourceRegistrationRequestParceling() 190 assertEquals("https://registration-uri", webTriggerParams.getRegistrationUri().toString()); in testWebTriggerParams() 204 exampleParams.getRegistrationUri().toString(), in testWebTriggerParamsParceling() 205 params.getRegistrationUri().toString()); in testWebTriggerParamsParceling() 227 request.getTriggerParams().get(0).getRegistrationUri().toString()); in testWebTriggerRegistrationRequest() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | EnqueueAsyncRegistrationTest.java | 232 Assert.assertNotNull(asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_event_isValid() 234 registrationRequest.getRegistrationUri(), in testAppSourceRegistrationRequest_event_isValid() 235 asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_event_isValid() 238 Assert.assertNotNull(asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_event_isValid() 291 Assert.assertNotNull(asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_navigation_isValid() 293 registrationRequest.getRegistrationUri(), in testAppSourceRegistrationRequest_navigation_isValid() 294 asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_navigation_isValid() 297 Assert.assertNotNull(asyncRegistration.getRegistrationUri()); in testAppSourceRegistrationRequest_navigation_isValid() 387 Assert.assertNotNull(asyncRegistration.getRegistrationUri()); in testAppTriggerRegistrationRequest_isValid() 389 registrationRequest.getRegistrationUri(), in testAppTriggerRegistrationRequest_isValid() [all …]
|
D | AsyncRegistrationQueueRunnerTest.java | 602 Assert.assertEquals(Uri.parse(LIST_TYPE_REDIRECT_URI_1), asyncReg1.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appSource_defaultRegistration_redirectTypeList() 607 Assert.assertEquals(Uri.parse(LIST_TYPE_REDIRECT_URI_2), asyncReg2.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appSource_defaultRegistration_redirectTypeList() 672 Assert.assertEquals(Uri.parse(LOCATION_TYPE_REDIRECT_URI), asyncReg.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appSource_defaultRegistration_redirectTypeLocation() 741 Assert.assertEquals(Uri.parse(LOCATION_TYPE_REDIRECT_URI), asyncReg.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appSource_middleRegistration_redirectTypeLocation() 795 asyncReg.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appSrc_defaultReg_redirectWellKnown_typeLocation() 945 Assert.assertEquals(expectedUri, asyncReg.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appSrc_defaultReg_redirectWithExistingPathAndQuery() 1023 Assert.assertEquals(expectedUri, asyncReg.getRegistrationUri()); in runAsyncRegistrationQueueWorker_noSourceReg_RedirectHasSource() 1032 Assert.assertEquals(expectedUri, asyncReg2.getRegistrationUri()); in runAsyncRegistrationQueueWorker_noSourceReg_RedirectHasSource() 1084 asyncReg.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appSrc_defaultReg_redirectAlreadyWellKnown() 1388 Assert.assertEquals(Uri.parse(LIST_TYPE_REDIRECT_URI_1), asyncReg1.getRegistrationUri()); in runAsyncRegistrationQueueWorker_appTrigger_defaultRegistration_redirectTypeList() [all …]
|
D | AsyncTriggerFetcherTest.java | 6944 registrationRequest.getRegistrationUri(), in appTriggerRegistrationRequest() 6965 registrationRequest.getRegistrationUri(), in appTriggerRegistrationRequestWithAdId() 6990 webTriggerParams.getRegistrationUri(), in webTriggerRegistrationRequest() 7055 assertEquals(asyncRegistration.getRegistrationUri(), result.getRegistrationOrigin()); in assertTriggerRegistration()
|
D | AsyncSourceFetcherTest.java | 10250 registrationRequest.getRegistrationUri(), in appSourceRegistrationRequest() 10273 registrationRequest.getRegistrationUri(), in appSourceRegistrationRequestWithAdId() 10296 registrationRequest.getRegistrationUri(), in appSourceRegistrationRequestWithPostBody() 10329 webSourceParams.getRegistrationUri(), in webSourceRegistrationRequest()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/ |
D | EnqueueAsyncRegistration.java | 63 if (hasValidScheme(registrationRequest.getRegistrationUri())) { in appSourceOrTriggerRegistrationRequest() 66 registrationRequest.getRegistrationUri(), in appSourceOrTriggerRegistrationRequest() 109 if (hasValidScheme(webSourceParams.getRegistrationUri())) { 112 webSourceParams.getRegistrationUri(), 152 if (hasValidScheme(webTriggerParams.getRegistrationUri())) { 155 webTriggerParams.getRegistrationUri(),
|
D | AsyncTriggerFetcher.java | 136 WebAddresses.originAndScheme(asyncRegistration.getRegistrationUri()); in parseTrigger() 142 + asyncRegistration.getRegistrationUri()); in parseTrigger() 367 asyncRegistration.getRegistrationUri(), in parseTrigger() 466 if (!asyncRegistration.getRegistrationUri().getScheme().equalsIgnoreCase("https")) { in fetchTrigger() 476 openUrl(new URL(asyncRegistration.getRegistrationUri().toString())); in fetchTrigger() 537 asyncRegistration.getRegistrationUri()); in fetchTrigger() 569 ? WebAddresses.topPrivateDomainAndScheme(asyncRegistration.getRegistrationUri()) in getEnrollmentId() 572 asyncRegistration.getRegistrationUri(), in getEnrollmentId()
|
D | AsyncSourceFetcher.java | 782 WebAddresses.originAndScheme(asyncRegistration.getRegistrationUri()); in parseSource() 788 + asyncRegistration.getRegistrationUri()); in parseSource() 857 asyncRegistration.getRegistrationUri(), in parseSource() 896 if (!asyncRegistration.getRegistrationUri().getScheme().equalsIgnoreCase("https")) { in fetchSource() 905 openUrl(new URL(asyncRegistration.getRegistrationUri().toString())); in fetchSource() 958 asyncRegistration.getRegistrationUri()) in fetchSource() 961 asyncRegistration.getRegistrationUri(), in fetchSource() 970 asyncRegistration.getRegistrationUri()); in fetchSource()
|
D | AsyncRegistration.java | 148 public Uri getRegistrationUri() { in getRegistrationUri() method in AsyncRegistration
|
D | FetcherUtil.java | 382 WebAddresses.topPrivateDomainAndScheme(asyncRegistration.getRegistrationUri()) in emitHeaderMetrics()
|
D | AsyncRegistrationQueueRunner.java | 937 failedOrigins.add(BaseUriExtractor.getBaseUri(asyncRegistration.getRegistrationUri())); in handleFailure()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/ |
D | DevContextAccessResolver.java | 42 mIsAllowed = WebAddresses.isLocalhost(registrationRequest.getRegistrationUri()) in DevContextAccessResolver() 52 if (WebAddresses.isLocalhost(params.getRegistrationUri())) { in DevContextAccessResolver() 78 if (WebAddresses.isLocalhost(params.getRegistrationUri())) { in DevContextAccessResolver()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/measurement/ |
D | RegistrationRequestTest.java | 43 expect.that(request.getRegistrationUri().toString()).isEqualTo("https://baz.test"); in verifyExampleAttribution() 139 expect.that(request.getRegistrationUri().toString()).isEqualTo("https://foo.test"); in testDefaults()
|
D | WebTriggerParamsTest.java | 39 expect.that(request.getRegistrationUri()).isEqualTo(REGISTRATION_URI); in verifyExampleRegistration()
|
D | WebSourceParamsTest.java | 39 expect.that(request.getRegistrationUri()).isEqualTo(REGISTRATION_URI); in verifyExampleRegistration()
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/ |
D | WebSourceParams.java | 80 public Uri getRegistrationUri() { in getRegistrationUri() method in WebSourceParams
|
D | WebTriggerParams.java | 80 public Uri getRegistrationUri() { in getRegistrationUri() method in WebTriggerParams
|
D | RegistrationRequest.java | 153 public Uri getRegistrationUri() { in getRegistrationUri() method in RegistrationRequest
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/ |
D | AbstractDbIntegrationTest.java | 632 asyncRegistration.getRegistrationUri().toString()); in insertToDb()
|
D | MeasurementDaoTest.java | 6687 assertNotNull(asyncRegistration.getRegistrationUri()); in testInsertAsyncRegistration() 6707 assertNotNull(asyncRegistration.getRegistrationUri()); in testInsertAsyncRegistration() 6709 asyncRegistration.getRegistrationUri(), in testInsertAsyncRegistration() 6710 validAsyncRegistration.getRegistrationUri()); in testInsertAsyncRegistration() 6783 assertEquals(regUri1, optAsyncRegistration.get().getRegistrationUri()); in testFetchNextQueuedAsyncRegistration_excludeByOrigin() 6791 assertEquals(regUri2, optAsyncRegistration.get().getRegistrationUri()); in testFetchNextQueuedAsyncRegistration_excludeByOrigin()
|
/packages/modules/AdServices/adservices/framework/api/ |
D | current.txt | 686 method @NonNull public android.net.Uri getRegistrationUri(); 721 method @NonNull public android.net.Uri getRegistrationUri();
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/ |
D | MeasurementDao.java | 3078 asyncRegistration.getRegistrationUri().toString());
|