Home
last modified time | relevance | path

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

/external/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()
/external/volley/src/main/java/com/android/volley/toolbox/
DDiskBasedCache.java187 entry.softTtl = 0; in invalidate()
364 public long softTtl; field in DiskBasedCache.CacheHeader
383 this.softTtl = entry.softTtl; in CacheHeader()
407 entry.softTtl = readLong(is); in readHeader()
423 e.softTtl = softTtl; in toCacheEntry()
440 writeLong(os, softTtl); in writeHeader()
DHttpHeaderParser.java114 entry.softTtl = softExpire; in parseCacheHeaders()
/external/volley/src/main/java/com/android/volley/
DCache.java84 public long softTtl; field in Cache.Entry
96 return this.softTtl < System.currentTimeMillis(); in refreshNeeded()
/external/volley/src/test/java/com/android/volley/utils/
DCacheTestUtils.java43 entry.softTtl = needsRefresh ? 0 : Long.MAX_VALUE; in makeRandomCacheEntry()