/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | AsyncTriggerFetcherTest.java | 302 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 …]
|
D | AsyncSourceFetcherTest.java | 261 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 …]
|
D | AsyncRegistrationQueueRunnerTest.java | 3201 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/ |
D | AggregateEncryptionKeyFetcherTest.java | 142 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()
|
D | AggregateEncryptionKeyTestUtil.java | 65 doReturn(urlConnection).when(fetcher).openUrl(any()); in prepareMockAggregateEncryptionKeyFetcher()
|
D | AggregateEncryptionKeyManagerTest.java | 116 doReturn(mUrlConnection).when(mFetcher).openUrl(any()); in getAggregateEncryptionKeys_fetcherFails_returnsEmptyList()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/display/ |
D | OdpWebViewClient.java | 102 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/ |
D | AggregateEncryptionKeyFetcher.java | 64 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/ |
D | E2EMockTest.java | 246 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/ |
D | OdpWebViewClientTests.java | 292 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/ |
D | AdServicesHttpsClient.java | 170 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/ |
D | AsyncTriggerFetcher.java | 440 public URLConnection openUrl(@NonNull URL url) throws IOException { in openUrl() method in AsyncTriggerFetcher 476 openUrl(new URL(asyncRegistration.getRegistrationUri().toString())); in fetchTrigger()
|
D | AsyncSourceFetcher.java | 879 public URLConnection openUrl(@NonNull URL url) throws IOException { in openUrl() method in AsyncSourceFetcher 905 openUrl(new URL(asyncRegistration.getRegistrationUri().toString())); in fetchSource()
|