Home
last modified time | relevance | path

Searched refs:isLocalhost (Results 1 – 11 of 11) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DWebAddressesTest.java332 assertTrue(WebAddresses.isLocalhost(Uri.parse("https://127.0.0.1"))); in testIsLocalHost_success()
333 assertTrue(WebAddresses.isLocalhost(Uri.parse("https://127.0.0.1:5000/path"))); in testIsLocalHost_success()
334 assertTrue(WebAddresses.isLocalhost(Uri.parse("https://127.0.0.1/path"))); in testIsLocalHost_success()
335 assertTrue(WebAddresses.isLocalhost(Uri.parse("https://localhost"))); in testIsLocalHost_success()
336 assertTrue(WebAddresses.isLocalhost(Uri.parse("https://localhost:5000/path"))); in testIsLocalHost_success()
337 assertTrue(WebAddresses.isLocalhost(Uri.parse("https://localhost/path"))); in testIsLocalHost_success()
342 assertFalse(WebAddresses.isLocalhost(Uri.parse("android-app://com.example"))); in testIsLocalHost_wrongScheme()
343 assertFalse(WebAddresses.isLocalhost(WebUtil.validUri("http://example.test:8000"))); in testIsLocalHost_wrongScheme()
344 assertFalse(WebAddresses.isLocalhost(Uri.parse("http://127.0.0.1:5000/path"))); in testIsLocalHost_wrongScheme()
345 assertFalse(WebAddresses.isLocalhost(Uri.parse("http://127.0.0.1/path"))); in testIsLocalHost_wrongScheme()
[all …]
/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()
65 if (WebAddresses.isLocalhost(uri)) { in DevContextAccessResolver()
78 if (WebAddresses.isLocalhost(params.getRegistrationUri())) { in DevContextAccessResolver()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DWebAddresses.java74 if (isLocalhost(uri)) { in domainAndScheme()
100 public static boolean isLocalhost(Uri uri) { in isLocalhost() method in WebAddresses
DAbstractFledgeServiceFilter.java157 WebAddresses.isLocalhost(adTechUri) || WebAddresses.isLocalhostIp(adTechUri); in assertFledgeEnrollment()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementServiceImplTest.java1821 private RegistrationRequest createRegistrationSourceRequest(boolean isLocalhost) { in createRegistrationSourceRequest() argument
1824 isLocalhost ? LOCALHOST : REGISTRATION_URI, in createRegistrationSourceRequest()
1834 private RegistrationRequest createRegistrationTriggerRequest(boolean isLocalhost) { in createRegistrationTriggerRequest() argument
1837 isLocalhost ? LOCALHOST : REGISTRATION_URI, in createRegistrationTriggerRequest()
1906 boolean isLocalhost) { in createSourcesRegistrationRequest() argument
1910 isLocalhost ? LOCALHOST : REGISTRATION_URI)) in createSourcesRegistrationRequest()
1922 boolean isLocalhost) { in createWebSourceRegistrationRequest() argument
1927 isLocalhost ? LOCALHOST : REGISTRATION_URI) in createWebSourceRegistrationRequest()
1944 boolean isLocalhost) { in createWebTriggerRegistrationRequest() argument
1949 isLocalhost ? LOCALHOST : REGISTRATION_URI) in createWebTriggerRegistrationRequest()
DMeasurementHttpClientTest.java372 Assert.assertTrue(WebAddresses.isLocalhost(Uri.parse(url.toString()))); in testSetup_connectLocalhostToUntrustedServer_success()
395 ExtendedMockito.doReturn(false).when(() -> WebAddresses.isLocalhost(any(Uri.class))); in testSetup_connectNonLocalhostToUntrustedServer_throws()
408 Assert.assertFalse(WebAddresses.isLocalhost(Uri.parse(url.toString()))); in testSetup_connectNonLocalhostToUntrustedServer_throws()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/
DEnrollment.java54 if (WebAddresses.isLocalhost(registrationUri)) { in getValidEnrollmentId()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyManager.java101 if (!WebAddresses.isLocalhost(aggregationCoordinatorUrl)) { in getAggregateEncryptionKeys()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DMeasurementHttpClient.java82 if (WebAddresses.isLocalhost(Uri.parse(url.toString()))) { in setup()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java186 if (WebAddresses.isLocalhost(uri) && devContext.getDevOptionsEnabled()) { in setupConnection()
189 } else if (WebAddresses.isLocalhost(uri)) { in setupConnection()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClientTest.java883 assertThat(WebAddresses.isLocalhost(Uri.parse(url.toString()))).isTrue(); in testFetchPayloadDomainIsLocalhost_DevOptionsDisabled()
905 assertThat(WebAddresses.isLocalhost(Uri.parse(url.toString()))).isTrue(); in testFetchPayloadDomainIsLocalhost_DevOptionsEnabled()