Home
last modified time | relevance | path

Searched refs:HttpCache (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/cache/
DCacheProviderFactory.java36 public static HttpCache create(Context context, Flags flags) { in create()
50 public static HttpCache createNoOpCache() { in createNoOpCache()
59 static class NoOpCache implements HttpCache {
DHttpCache.java24 public interface HttpCache { interface
DFledgeHttpCache.java40 public class FledgeHttpCache implements HttpCache {
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/cache/
DFledgeHttpCacheTest.java79 @Mock private HttpCache.CacheObserver mObserver;
137 verify(mObserver).update(HttpCache.CacheEventType.PUT); in test_CachePutEntry_Succeeds()
147 verify(mObserver, never()).update(HttpCache.CacheEventType.PUT); in test_CachePutEntryNoCache_SkipsCache()
157 verify(mObserver, never()).update(HttpCache.CacheEventType.PUT); in test_CachePutEntryNoStoreCache_SkipsCache()
170 verify(mObserver).update(HttpCache.CacheEventType.GET); in test_CacheGetEntry_Succeeds()
190 verify(mObserver).update(HttpCache.CacheEventType.CLEANUP); in test_CacheCleanUp_Succeeds()
197 verify(mObserver).update(HttpCache.CacheEventType.DELETE); in test_CacheDelete_DeletesAll()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java38 import com.android.adservices.service.common.cache.HttpCache;
103 private final HttpCache mCache;
142 @NonNull ExecutorService executorService, @NonNull HttpCache cache) { in AdServicesHttpsClient()
159 @NonNull HttpCache cache) { in AdServicesHttpsClient()
930 public HttpCache getAssociatedCache() { in getAssociatedCache()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/
DKAnonCallerImplFullIntegrationTests.java54 import com.android.adservices.service.common.cache.HttpCache;
149 HttpCache cache = new FledgeHttpCache(cacheEntryDao, MAX_AGE_SECONDS, MAX_ENTRIES); in setup()
DKAnonCallerImplTest.java67 import com.android.adservices.service.common.cache.HttpCache;
168 HttpCache cache = new FledgeHttpCache(cacheEntryDao, MAX_AGE_SECONDS, MAX_ENTRIES); in setup()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClientTest.java72 import com.android.adservices.service.common.cache.HttpCache;
152 private HttpCache mCache;
695 HttpCache cache = CacheProviderFactory.create(CONTEXT, disableCacheFlags); in testFetchPayloadCacheDisabledSkipsCache()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DFrequencyCapFilteringE2ETest.java87 import com.android.adservices.service.common.cache.HttpCache;
187 @Mock private HttpCache mHttpCacheMock;
DAdSelectionE2ETest.java148 import com.android.adservices.service.common.cache.HttpCache;
4341 HttpCache cache = CacheProviderFactory.create(mSpyContext, mFlags); in testRunAdSelectionMultipleCAsJSCachedSuccess_preV3BiddingLogic()
4396 verify(mCacheObserver, timeout(3000)).update(HttpCache.CacheEventType.CLEANUP); in testRunAdSelectionMultipleCAsJSCachedSuccess_preV3BiddingLogic()
4469 HttpCache cache = CacheProviderFactory.create(mSpyContext, mFlags); in testRunAdSelectionMultipleCAsJSCachedSuccess_v3BiddingLogic()
4524 verify(mCacheObserver, timeout(3000)).update(HttpCache.CacheEventType.CLEANUP); in testRunAdSelectionMultipleCAsJSCachedSuccess_v3BiddingLogic()