Home
last modified time | relevance | path

Searched refs:mFetcher (Results 1 – 11 of 11) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DAsyncTriggerFetcherTest.java198 private AsyncTriggerFetcher mFetcher; field in AsyncTriggerFetcherTest
231 mFetcher = in setup()
302 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in testBasicTriggerRequest()
316 mFetcher.fetchTrigger(asyncRegistration, asyncFetchStatus, asyncRedirects); in testBasicTriggerRequest()
376 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in testBasicTriggerRequest_withAggregateDeduplicationKey()
397 mFetcher.fetchTrigger(asyncRegistration, asyncFetchStatus, asyncRedirects); in testBasicTriggerRequest_withAggregateDeduplicationKey()
439 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(TRIGGER_URI)); in triggerRequest_aggregateDeduplicationKey_dedupKeyNotAString_fails()
459 mFetcher.fetchTrigger(asyncRegistration, asyncFetchStatus, asyncRedirects); 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()
[all …]
DAsyncSourceFetcherTest.java177 private AsyncSourceFetcher mFetcher; field in AsyncSourceFetcherTest
197 mFetcher = in setup()
261 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in testBasicSourceRequest()
296 mFetcher.fetchSource(asyncRegistration, asyncFetchStatus, asyncRedirects); in testBasicSourceRequest()
352 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in testBasicSourceRequest_skipSourceWhenNotEnrolled()
382 mFetcher.fetchSource( 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()
427 mFetcher.fetchSource( in fetchSource_multipleWebDestinations_success()
449 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in fetchSource_emptyWebDestinations_success()
[all …]
DAsyncRegistrationQueueRunnerTest.java3187 AsyncSourceFetcher mFetcher = in testRegisterWebSource_failsWebAndOsDestinationVerification() local
3201 doReturn(mUrlConnection).when(mFetcher).openUrl(new URL(DEFAULT_REGISTRATION)); in testRegisterWebSource_failsWebAndOsDestinationVerification()
3225 mFetcher, in testRegisterWebSource_failsWebAndOsDestinationVerification()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyFetcherTest.java70 AggregateEncryptionKeyFetcher mFetcher = field in AggregateEncryptionKeyFetcherTest
87 mFetcher, mUrlConnection, AggregateEncryptionKeyTestUtil.getDefaultResponseBody()); in testBasicAggregateEncryptionKeyRequest()
89 mFetcher.fetch( in testBasicAggregateEncryptionKeyRequest()
114 mFetcher.fetch( in testBadSourceUrl()
125 mFetcher.fetch( in testMalformedUrl()
142 doThrow(new IOException("Bad internet things")).when(mFetcher).openUrl( in testBadConnection()
145 mFetcher.fetch( in testBadConnection()
163 .when(mFetcher) in testServerTimeout()
169 mFetcher.fetch( in testServerTimeout()
188 doReturn(mUrlConnection).when(mFetcher).openUrl( in testInvalidResponseBodyJson()
[all …]
DAggregateEncryptionKeyManagerTest.java71 AggregateEncryptionKeyFetcher mFetcher = field in AggregateEncryptionKeyManagerTest
92 mFetcher, in getAggregateEncryptionKeys_hasKeysInDatastore_doesNotCallFetcher()
106 verify(mFetcher, never()).fetch(any(), any(Uri.class), anyLong()); in getAggregateEncryptionKeys_hasKeysInDatastore_doesNotCallFetcher()
116 doReturn(mUrlConnection).when(mFetcher).openUrl(any()); in getAggregateEncryptionKeys_fetcherFails_returnsEmptyList()
121 mFetcher, in getAggregateEncryptionKeys_fetcherFails_returnsEmptyList()
144 doReturn(Optional.of(expectedKeys)).when(mFetcher).fetch(any(), any(Uri.class), anyLong()); in getAggregateEncryptionKeys_localhostCoordinator_doesNotCacheKeys()
148 mFetcher, in getAggregateEncryptionKeys_localhostCoordinator_doesNotCacheKeys()
DAggregateEncryptionKeyManagerIntegrationTest.java64 AggregateEncryptionKeyFetcher mFetcher = field in AggregateEncryptionKeyManagerIntegrationTest
88 mFetcher, mUrlConnection, AggregateEncryptionKeyTestUtil.getDefaultResponseBody()); in AggregateEncryptionKeyManagerIntegrationTest()
98 mFetcher, in runActionToTest()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DEntitlementManager.java111 private TetheringConfigurationFetcher mFetcher; field in EntitlementManager
151 mFetcher = fetcher; in setTetheringConfigurationFetcher()
168 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in isCellularUpstreamPermitted()
217 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in startProvisioningIfNeeded()
260 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in notifyUpstream()
267 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in maybeRunProvisioning()
341 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in isProvisioningNeededButUnavailable()
532 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in addDownstreamMapping()
543 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in removeDownstreamMapping()
552 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration();
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMergeAlbum.java44 private FetchCache[] mFetcher; field in LocalMergeAlbum
75 mFetcher = new FetchCache[mSources.length]; in updateData()
77 mFetcher[i] = new FetchCache(mSources[i]); in updateData()
87 mFetcher[i].invalidate(); in invalidateCache()
132 slot[i] = mFetcher[i].getItem(subPos[i]); in getMediaItem()
155 slot[k] = mFetcher[k].getItem(subPos[k]); in getMediaItem()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DImageResolver.java38 private final BitmapFetcher mFetcher; field in ImageResolver
59 mFetcher = fetcher; in ImageResolver()
104 bitmap = mFetcher.getBitmap(uri, adjusted.x, adjusted.y, offLanesAlpha); in getBitmap()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DImageResolver.java38 private final BitmapFetcher mFetcher; field in ImageResolver
44 mFetcher = fetcher; in ImageResolver()
89 bitmap = mFetcher.getBitmap(uri, adjusted.x, adjusted.y, offLanesAlpha); in getBitmap()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/encryptionkey/
DEncryptionKeyFetcherTest.java90 EncryptionKeyFetcher mFetcher; field in EncryptionKeyFetcherTest
110 mFetcher = new EncryptionKeyFetcher(mAdServicesLogger); in setUp()
111 mSpyFetcher = spy(mFetcher); in setUp()