Home
last modified time | relevance | path

Searched refs:getRegistrationUri (Results 1 – 23 of 23) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DDevContextAccessResolverTest.java75 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/
DMeasurementApiParamsCtsTest.java94 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/
DEnqueueAsyncRegistrationTest.java232 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 …]
DAsyncRegistrationQueueRunnerTest.java602 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 …]
DAsyncTriggerFetcherTest.java6944 registrationRequest.getRegistrationUri(), in appTriggerRegistrationRequest()
6965 registrationRequest.getRegistrationUri(), in appTriggerRegistrationRequestWithAdId()
6990 webTriggerParams.getRegistrationUri(), in webTriggerRegistrationRequest()
7055 assertEquals(asyncRegistration.getRegistrationUri(), result.getRegistrationOrigin()); in assertTriggerRegistration()
DAsyncSourceFetcherTest.java10250 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/
DEnqueueAsyncRegistration.java63 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(),
DAsyncTriggerFetcher.java136 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()
DAsyncSourceFetcher.java782 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()
DAsyncRegistration.java148 public Uri getRegistrationUri() { in getRegistrationUri() method in AsyncRegistration
DFetcherUtil.java382 WebAddresses.topPrivateDomainAndScheme(asyncRegistration.getRegistrationUri()) in emitHeaderMetrics()
DAsyncRegistrationQueueRunner.java937 failedOrigins.add(BaseUriExtractor.getBaseUri(asyncRegistration.getRegistrationUri())); in handleFailure()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DDevContextAccessResolver.java42 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/
DRegistrationRequestTest.java43 expect.that(request.getRegistrationUri().toString()).isEqualTo("https://baz.test"); in verifyExampleAttribution()
139 expect.that(request.getRegistrationUri().toString()).isEqualTo("https://foo.test"); in testDefaults()
DWebTriggerParamsTest.java39 expect.that(request.getRegistrationUri()).isEqualTo(REGISTRATION_URI); in verifyExampleRegistration()
DWebSourceParamsTest.java39 expect.that(request.getRegistrationUri()).isEqualTo(REGISTRATION_URI); in verifyExampleRegistration()
/packages/modules/AdServices/adservices/framework/java/android/adservices/measurement/
DWebSourceParams.java80 public Uri getRegistrationUri() { in getRegistrationUri() method in WebSourceParams
DWebTriggerParams.java80 public Uri getRegistrationUri() { in getRegistrationUri() method in WebTriggerParams
DRegistrationRequest.java153 public Uri getRegistrationUri() { in getRegistrationUri() method in RegistrationRequest
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DAbstractDbIntegrationTest.java632 asyncRegistration.getRegistrationUri().toString()); in insertToDb()
DMeasurementDaoTest.java6687 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/
Dcurrent.txt686 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/
DMeasurementDao.java3078 asyncRegistration.getRegistrationUri().toString());