Searched refs:isLocalhost (Results 1 – 11 of 11) sorted by relevance
332 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 …]
42 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()
74 if (isLocalhost(uri)) { in domainAndScheme()100 public static boolean isLocalhost(Uri uri) { in isLocalhost() method in WebAddresses
157 WebAddresses.isLocalhost(adTechUri) || WebAddresses.isLocalhostIp(adTechUri); in assertFledgeEnrollment()
1821 private RegistrationRequest createRegistrationSourceRequest(boolean isLocalhost) { in createRegistrationSourceRequest() argument1824 isLocalhost ? LOCALHOST : REGISTRATION_URI, in createRegistrationSourceRequest()1834 private RegistrationRequest createRegistrationTriggerRequest(boolean isLocalhost) { in createRegistrationTriggerRequest() argument1837 isLocalhost ? LOCALHOST : REGISTRATION_URI, in createRegistrationTriggerRequest()1906 boolean isLocalhost) { in createSourcesRegistrationRequest() argument1910 isLocalhost ? LOCALHOST : REGISTRATION_URI)) in createSourcesRegistrationRequest()1922 boolean isLocalhost) { in createWebSourceRegistrationRequest() argument1927 isLocalhost ? LOCALHOST : REGISTRATION_URI) in createWebSourceRegistrationRequest()1944 boolean isLocalhost) { in createWebTriggerRegistrationRequest() argument1949 isLocalhost ? LOCALHOST : REGISTRATION_URI) in createWebTriggerRegistrationRequest()
372 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()
54 if (WebAddresses.isLocalhost(registrationUri)) { in getValidEnrollmentId()
101 if (!WebAddresses.isLocalhost(aggregationCoordinatorUrl)) { in getAggregateEncryptionKeys()
82 if (WebAddresses.isLocalhost(Uri.parse(url.toString()))) { in setup()
186 if (WebAddresses.isLocalhost(uri) && devContext.getDevOptionsEnabled()) { in setupConnection()189 } else if (WebAddresses.isLocalhost(uri)) { in setupConnection()
883 assertThat(WebAddresses.isLocalhost(Uri.parse(url.toString()))).isTrue(); in testFetchPayloadDomainIsLocalhost_DevOptionsDisabled()905 assertThat(WebAddresses.isLocalhost(Uri.parse(url.toString()))).isTrue(); in testFetchPayloadDomainIsLocalhost_DevOptionsEnabled()