Home
last modified time | relevance | path

Searched refs:openUrl (Results 1 – 13 of 13) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncTriggerFetcherTest.java302 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in testBasicTriggerRequest()
376 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in testBasicTriggerRequest_withAggregateDeduplicationKey()
439 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails()
465 verify(mFetcher, times(1)).openUrl(any()); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails()
487 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in triggerRequest_aggregateDeduplicationKey_dedupKeyNegative_fails()
513 verify(mFetcher, times(1)).openUrl(any()); in triggerRequest_aggregateDeduplicationKey_dedupKeyNegative_fails()
535 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in triggerRequest_aggregateDeduplicationKey_dedupKeyTooLarge_fails()
561 verify(mFetcher, times(1)).openUrl(any()); in triggerRequest_aggregateDeduplicationKey_dedupKeyTooLarge_fails()
583 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAnInt_fails()
609 verify(mFetcher, times(1)).openUrl(any()); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAnInt_fails()
[all …]
DAsyncSourceFetcherTest.java261 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in testBasicSourceRequest()
352 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in testBasicSourceRequest_skipSourceWhenNotEnrolled()
387 verify(mFetcher, times(1)).openUrl(any()); in testBasicSourceRequest_skipSourceWhenNotEnrolled()
404 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in fetchSource_multipleWebDestinations_success()
449 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in fetchSource_emptyWebDestinations_success()
487 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in fetchSource_duplicateWebDestinationsInList_removesDuplicates()
535 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in fetchSource_invalidWebDestinationInList_fails()
583 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in fetchSource_tooManyWebDestinationInList_fails()
614 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in fetchSource_noDestinations_fail()
643 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in fetchSource_noAppDestination_emptyWebDestination_fail()
[all …]
DAsyncRegistrationQueueRunnerTest.java3201 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in testRegisterWebSource_failsWebAndOsDestinationVerification()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyFetcherTest.java142 doThrow(new IOException("Bad internet things")).when(mFetcher).openUrl( in testBadConnection()
164 .openUrl(new URL(AggregateEncryptionKeyTestUtil.DEFAULT_TARGET.toString())); in testServerTimeout()
188 doReturn(mUrlConnection).when(mFetcher).openUrl( in testInvalidResponseBodyJson()
214 doReturn(mUrlConnection).when(mFetcher).openUrl( in testMissingCacheControlHeader()
233 doReturn(mUrlConnection).when(mFetcher).openUrl( in testMissingAgeHeader()
265 doReturn(mUrlConnection).when(mFetcher).openUrl( in testBrokenAgeHeader()
296 doReturn(mUrlConnection).when(mFetcher).openUrl( in testCachedAgeGreaterThanMaxAge()
319 verify(mFetcher, never()).openUrl(any()); in testNotOverHttps()
DAggregateEncryptionKeyTestUtil.java65 doReturn(urlConnection).when(fetcher).openUrl(any()); in prepareMockAggregateEncryptionKeyFetcher()
DAggregateEncryptionKeyManagerTest.java116 doReturn(mUrlConnection).when(mFetcher).openUrl(any()); in getAggregateEncryptionKeys_fetcherFails_returnsEmptyList()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/display/
DOdpWebViewClient.java102 void openUrl(String landingPage, Context context) { in openUrl() method in OdpWebViewClient.Injector
169 mInjector.openUrl(landingPage, webView.getContext()); in shouldOverrideUrlLoading()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyFetcher.java64 public @NonNull URLConnection openUrl(@NonNull URL url) throws IOException { in openUrl() method in AggregateEncryptionKeyFetcher
174 urlConnection = (HttpURLConnection) openUrl(url); in fetch()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DE2EMockTest.java246 Mockito.doReturn(urlConnection).when(mAsyncSourceFetcher).openUrl(new URL(uri)); in prepareRegistrationServer()
261 Mockito.doReturn(urlConnection).when(mAsyncSourceFetcher).openUrl(new URL(uri)); in prepareRegistrationServer()
277 Mockito.doReturn(urlConnection).when(mAsyncTriggerFetcher).openUrl(new URL(uri)); in prepareRegistrationServer()
292 Mockito.doReturn(urlConnection).when(mAsyncSourceFetcher).openUrl(new URL(uri)); in prepareRegistrationServer()
308 Mockito.doReturn(urlConnection).when(mAsyncTriggerFetcher).openUrl(new URL(uri)); in prepareRegistrationServer()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/display/
DOdpWebViewClientTests.java292 injector.openUrl("https://google.com", mockContext); in testDefaultInjector()
307 void openUrl(String url, Context context) { in openUrl() method in OdpWebViewClientTests.TestInjector
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java170 private URLConnection openUrl(@NonNull URL url) throws IOException { in openUrl() method in AdServicesHttpsClient
181 HttpsURLConnection urlConnection = (HttpsURLConnection) openUrl(url); in setupConnection()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/
DAsyncTriggerFetcher.java440 public URLConnection openUrl(@NonNull URL url) throws IOException { in openUrl() method in AsyncTriggerFetcher
476 openUrl(new URL(asyncRegistration.getRegistrationUri().toString())); in fetchTrigger()
DAsyncSourceFetcher.java879 public URLConnection openUrl(@NonNull URL url) throws IOException { in openUrl() method in AsyncSourceFetcher
905 openUrl(new URL(asyncRegistration.getRegistrationUri().toString())); in fetchSource()