Home
last modified time | relevance | path

Searched refs:isLocalhostIp (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DWebAddressesTest.java366 assertTrue(WebAddresses.isLocalhostIp(Uri.parse("https://127.0.0.1"))); in testIsLocalHostIp_success()
367 assertTrue(WebAddresses.isLocalhostIp(Uri.parse("https://127.0.0.1:5000/path"))); in testIsLocalHostIp_success()
368 assertTrue(WebAddresses.isLocalhostIp(Uri.parse("https://127.0.0.1/path"))); in testIsLocalHostIp_success()
373 assertFalse(WebAddresses.isLocalhostIp(Uri.parse("android-app://com.example"))); in testIsLocalHostIp_wrongScheme()
374 assertFalse(WebAddresses.isLocalhostIp(WebUtil.validUri("http://example.test:8000"))); in testIsLocalHostIp_wrongScheme()
375 assertFalse(WebAddresses.isLocalhostIp(Uri.parse("http://127.0.0.1:5000/path"))); in testIsLocalHostIp_wrongScheme()
376 assertFalse(WebAddresses.isLocalhostIp(Uri.parse("http://127.0.0.1/path"))); in testIsLocalHostIp_wrongScheme()
377 assertFalse(WebAddresses.isLocalhostIp(Uri.parse("127.0.0.1:5000/path"))); in testIsLocalHostIp_wrongScheme()
378 assertFalse(WebAddresses.isLocalhostIp(Uri.parse("127.0.0.1/path"))); in testIsLocalHostIp_wrongScheme()
383 assertFalse(WebAddresses.isLocalhostIp(Uri.parse("https://localhost"))); in testIsLocalHostIp_wrongHost()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/
DEnrollment.java56 WebAddresses.isLocalhostIp(registrationUri) in getValidEnrollmentId()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DWebAddresses.java111 public static boolean isLocalhostIp(Uri uri) { in isLocalhostIp() method in WebAddresses
DAbstractFledgeServiceFilter.java157 WebAddresses.isLocalhost(adTechUri) || WebAddresses.isLocalhostIp(adTechUri); in assertFledgeEnrollment()