Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/cache/
DDBCacheEntry.java45 @TypeConverters({DBCacheEntry.Converters.class})
46 public abstract class DBCacheEntry { class
85 public static DBCacheEntry create( in create()
101 public static DBCacheEntry.Builder builder() { in builder()
110 public abstract DBCacheEntry.Builder setUrl(String url); in setUrl()
113 public abstract DBCacheEntry.Builder setResponseBody(String responseBody); in setResponseBody()
116 public abstract DBCacheEntry.Builder setResponseHeaders( in setResponseHeaders()
120 public abstract DBCacheEntry.Builder setCreationTimestamp(Instant creationTimestamp); in setCreationTimestamp()
123 public abstract DBCacheEntry.Builder setMaxAgeSeconds(long maxAgeSeconds); in setMaxAgeSeconds()
129 public abstract DBCacheEntry build(); in build()
DFledgeHttpCache.java82 public DBCacheEntry get(URL url) { in get()
85 DBCacheEntry entry = mCacheEntryDao.getCacheEntry(url.toString(), Instant.now()); in get()
125 DBCacheEntry entry = in put()
126 DBCacheEntry.builder() in put()
DCacheEntryDao.java35 long persistCacheEntry(DBCacheEntry cacheEntry); in persistCacheEntry()
50 DBCacheEntry getCacheEntry(String url, Instant curTime); in getCacheEntry()
DHttpCache.java27 DBCacheEntry get(URL url); in get()
DCacheDatabase.java37 entities = {DBCacheEntry.class},
DCacheProviderFactory.java62 public DBCacheEntry get(URL url) { in get()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/cache/
DDBCacheEntryTest.java43 assertEquals("", DBCacheEntry.Converters.serializeResponseHeaders(ImmutableMap.of())); in testSerializationHeadersMap_Empty_Empty()
48 assertEquals("", DBCacheEntry.Converters.serializeResponseHeaders(null)); in testSerializationHeadersMap_Null_Empty()
55 DBCacheEntry.Converters.serializeResponseHeaders(RESPONSE_HEADERS)); in testSerializationHeadersMap_Valid_Success()
70 DBCacheEntry.Converters.serializeResponseHeaders(mapWithEmptyList)); in testSerializationHeadersMap_EmptyListSkipped_Success()
75 assertEquals(Collections.EMPTY_MAP, DBCacheEntry.Converters.deserializeResponseHeaders("")); in testDeSerializationHeadersMap_Empty_Empty()
81 Collections.EMPTY_MAP, DBCacheEntry.Converters.deserializeResponseHeaders(null)); in testDeSerializationHeadersMap_Null_Empty()
88 DBCacheEntry.Converters.deserializeResponseHeaders(SERIALIZED_HEADERS)); in testDeSerializationHeadersMap_Valid_Success()
DCacheEntryDaoTest.java55 private final DBCacheEntry mCacheEntry =
56 DBCacheEntry.builder()
99 DBCacheEntry fetchedEntry = mCacheEntryDao.getCacheEntry(URL, Instant.now()); in test_CacheEntryGet_Succeeds()
115 DBCacheEntry cacheEntry = in test_CacheEntryGetStaleEntry_Failure()
116 DBCacheEntry.builder() in test_CacheEntryGetStaleEntry_Failure()
148 DBCacheEntry cacheEntry = in test_CacheEntryDeleteStaleQueries_SmallMaxAge_Succeeds()
149 DBCacheEntry.builder() in test_CacheEntryDeleteStaleQueries_SmallMaxAge_Succeeds()
173 DBCacheEntry entry = in test_CachePrunedToDesiredSizeAndFIFO_Success()
174 DBCacheEntry.builder() in test_CachePrunedToDesiredSizeAndFIFO_Success()
DFledgeHttpCacheTest.java71 private DBCacheEntry mCacheEntry;
80 @Captor private ArgumentCaptor<DBCacheEntry> mCacheEntryArgumentCaptor;
100 DBCacheEntry.builder() in setup()
146 verify(mCacheEntryDaoMock, times(0)).persistCacheEntry(any(DBCacheEntry.class)); in test_CachePutEntryNoCache_SkipsCache()
156 verify(mCacheEntryDaoMock, times(0)).persistCacheEntry(any(DBCacheEntry.class)); in test_CachePutEntryNoStoreCache_SkipsCache()
165 DBCacheEntry cacheFetchedResponse = mCache.get(mUrl); in test_CacheGetEntry_Succeeds()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/
DAdServicesHttpsClient.java37 import com.android.adservices.service.common.cache.DBCacheEntry;
456 DBCacheEntry cachedEntry = mCache.get(url); in getResultsFromCache()