Home
last modified time | relevance | path

Searched refs:softTtl (Results 1 – 6 of 6) sorted by relevance

/frameworks/volley/src/test/java/com/android/volley/toolbox/
DHttpHeaderParserTest.java62 assertEquals(0, entry.softTtl); in parseCacheHeaders_noHeaders()
97 assertTrue(entry.softTtl >= (now + ONE_HOUR_MILLIS)); in parseCacheHeaders_normalExpire()
98 assertTrue(entry.ttl == entry.softTtl); in parseCacheHeaders_normalExpire()
112 assertEquals(0, entry.softTtl); in parseCacheHeaders_expiresInPast()
126 assertEquals(entry.softTtl, entry.ttl); in parseCacheHeaders_serverRelative()
140 assertEquals(entry.softTtl, entry.ttl); in parseCacheHeaders_cacheControlOverridesExpires()
157 assertEqualsWithin(now + ONE_DAY_MILLIS, entry.softTtl, ONE_MINUTE_MILLIS); in testParseCacheHeaders_staleWhileRevalidate()
182 assertEquals(entry.softTtl, entry.ttl); in parseCacheHeaders_cacheControlMustRevalidateNoMaxAge()
195 assertEquals(entry.softTtl, entry.ttl); in parseCacheHeaders_cacheControlMustRevalidateWithMaxAge()
213 assertEqualsWithin(now + ONE_DAY_MILLIS, entry.softTtl, ONE_MINUTE_MILLIS); in parseCacheHeaders_cacheControlMustRevalidateWithMaxAgeAndStale()
[all …]
DDiskBasedCacheTest.java40 e.softTtl = 8765432L; in cacheHeaderSerialization()
55 assertEquals(first.softTtl, second.softTtl); in cacheHeaderSerialization()
/frameworks/volley/src/main/java/com/android/volley/
DCache.java84 public long softTtl; field in Cache.Entry
96 return this.softTtl < System.currentTimeMillis(); in refreshNeeded()
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DDiskBasedCache.java182 entry.softTtl = 0; in invalidate()
359 public long softTtl; field in DiskBasedCache.CacheHeader
378 this.softTtl = entry.softTtl; in CacheHeader()
402 entry.softTtl = readLong(is); in readHeader()
418 e.softTtl = softTtl; in toCacheEntry()
435 writeLong(os, softTtl); in writeHeader()
DHttpHeaderParser.java114 entry.softTtl = softExpire; in parseCacheHeaders()
/frameworks/volley/src/test/java/com/android/volley/utils/
DCacheTestUtils.java29 entry.softTtl = needsRefresh ? 0 : Long.MAX_VALUE; in makeRandomCacheEntry()