Home
last modified time | relevance | path

Searched refs:LOCALHOST (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DDevContextAccessResolverTest.java53 private static final Uri LOCALHOST = Uri.parse("https://localhost"); field in DevContextAccessResolverTest
97 when(mRegistrationRequest.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_register_localhost_devEnabled_returnsTrue()
108 when(mRegistrationRequest.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_register_localhost_devDisabled_returnsFalse()
145 when(mWebSourceParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebSource_allLocalhost_devEnabled_returnsTrue()
157 when(mWebSourceParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebSource_someLocalhost_devEnabled_returnsTrue()
171 when(mWebSourceParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebSource_allLocalhost_devDisabled_returnsFalse()
185 when(mWebSourceParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebSource_someLocalhost_devDisabled_returnsFalse()
227 when(mWebTriggerParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebTrigger_allLocalhost_devEnabled_returnsTrue()
240 when(mWebTriggerParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebTrigger_someLocalhost_devEnabled_returnsTrue()
254 when(mWebTriggerParams.getRegistrationUri()).thenReturn(LOCALHOST); in isAllowed_registerWebTrigger_allLocalhost_devDisabled_returnsFalse()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DWebAddressesTest.java42 private static final String LOCALHOST = "localhost"; field in WebAddressesTest
83 Uri.parse(String.format("%s://%s", HTTPS_SCHEME, LOCALHOST));
102 Uri.parse(String.format("%s://%s/%s", HTTPS_SCHEME, LOCALHOST, "path")); in testTopPrivateDomainAndScheme_validLocalhost()
107 Uri.parse(String.format("%s://%s:%s", HTTPS_SCHEME, LOCALHOST, "4000")); in testTopPrivateDomainAndScheme_validLocalhost()
139 Uri.parse(String.format("%s://%s/%s", HTTPS_SCHEME, LOCALHOST, "path")); in testOriginAndScheme_validLocalhost()
143 Uri.parse(String.format("%s://%s:%s", HTTPS_SCHEME, LOCALHOST, "4000")); in testOriginAndScheme_validLocalhost()
253 Uri inputUrl = Uri.parse(String.format("%s://%s", HTTP_SCHEME, LOCALHOST)); in testTopPrivateDomainAndScheme_invalidLocalhostScheme_returnsEmptyOptional()
309 Uri inputUrl = Uri.parse(String.format("%s://%s", HTTP_SCHEME, LOCALHOST)); in testOriginAndScheme_invalidLocalhostScheme()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyManagerTest.java66 private static final String LOCALHOST = "https://localhost"; field in AggregateEncryptionKeyManagerTest
142 List<AggregateEncryptionKey> expectedKeys = getExpectedKeys(LOCALHOST); in getAggregateEncryptionKeys_localhostCoordinator_doesNotCacheKeys()
150 LOCALHOST, in getAggregateEncryptionKeys_localhostCoordinator_doesNotCacheKeys()
154 Uri.parse(LOCALHOST), NUM_KEYS_REQUESTED); in getAggregateEncryptionKeys_localhostCoordinator_doesNotCacheKeys()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DWebAddresses.java29 private static final String LOCALHOST = "localhost"; field in WebAddresses
103 && (LOCALHOST.equals(host) || LOCALHOST_IP.equals(host)); in isLocalhost()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DMeasurementServiceImplTest.java125 private static final Uri LOCALHOST = Uri.parse("https://localhost"); field in MeasurementServiceImplTest
1824 isLocalhost ? LOCALHOST : REGISTRATION_URI, in createRegistrationSourceRequest()
1837 isLocalhost ? LOCALHOST : REGISTRATION_URI, in createRegistrationTriggerRequest()
1910 isLocalhost ? LOCALHOST : REGISTRATION_URI)) in createSourcesRegistrationRequest()
1927 isLocalhost ? LOCALHOST : REGISTRATION_URI) in createWebSourceRegistrationRequest()
1949 isLocalhost ? LOCALHOST : REGISTRATION_URI) in createWebTriggerRegistrationRequest()
/packages/modules/AdServices/adservices/tests/cts/endtoends/measurement/src/com/android/adservices/tests/cts/measurement/
DMeasurementManagerCtsTest.java78 private static final Uri LOCALHOST = Uri.parse("https://localhost"); field in MeasurementManagerCtsTest
170 LOCALHOST, /* inputEvent= */ null, CALLBACK_EXECUTOR, osCallback); in testRegisterSource_withLocalhostUriNonDebuggableCallerWithOsReceiver_fails()
195 LOCALHOST, /* inputEvent= */ null, CALLBACK_EXECUTOR, osCallback); in testRegisterSource_withLocalhostUriNonDebuggableCallerWithCustomReceiver_fails()