Home
last modified time | relevance | path

Searched refs:ttl (Results 1 – 7 of 7) sorted by relevance

/frameworks/volley/src/test/java/com/android/volley/toolbox/
DHttpHeaderParserTest.java61 assertEquals(0, entry.ttl); in parseCacheHeaders_noHeaders()
98 assertTrue(entry.ttl == entry.softTtl); in parseCacheHeaders_normalExpire()
111 assertEquals(0, entry.ttl); in parseCacheHeaders_expiresInPast()
125 assertEqualsWithin(now + 3 * ONE_HOUR_MILLIS, entry.ttl, ONE_MINUTE_MILLIS); in parseCacheHeaders_serverRelative()
126 assertEquals(entry.softTtl, entry.ttl); in parseCacheHeaders_serverRelative()
139 assertEqualsWithin(now + ONE_DAY_MILLIS, entry.ttl, ONE_MINUTE_MILLIS); in parseCacheHeaders_cacheControlOverridesExpires()
140 assertEquals(entry.softTtl, entry.ttl); in parseCacheHeaders_cacheControlOverridesExpires()
158 assertEqualsWithin(now + ONE_DAY_MILLIS + ONE_WEEK_MILLIS, entry.ttl, ONE_MINUTE_MILLIS); in testParseCacheHeaders_staleWhileRevalidate()
181 assertEqualsWithin(now, entry.ttl, ONE_MINUTE_MILLIS); in parseCacheHeaders_cacheControlMustRevalidateNoMaxAge()
182 assertEquals(entry.softTtl, entry.ttl); in parseCacheHeaders_cacheControlMustRevalidateNoMaxAge()
[all …]
DDiskBasedCacheTest.java39 e.ttl = 9876543L; in cacheHeaderSerialization()
54 assertEquals(first.ttl, second.ttl); in cacheHeaderSerialization()
/frameworks/volley/src/main/java/com/android/volley/
DCache.java81 public long ttl; field in Cache.Entry
91 return this.ttl < System.currentTimeMillis(); in isExpired()
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DDiskBasedCache.java184 entry.ttl = 0; in invalidate()
356 public long ttl; field in DiskBasedCache.CacheHeader
377 this.ttl = entry.ttl; in CacheHeader()
401 entry.ttl = readLong(is); in readHeader()
417 e.ttl = ttl; in toCacheEntry()
434 writeLong(os, ttl); in writeHeader()
DHttpHeaderParser.java115 entry.ttl = finalExpire; in parseCacheHeaders()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DURLFetcher.java171 } else if (cachePolicy.ttl == 0) { in getExpirationTimeMillisFromHTTPHeader()
176 return cachePolicy.ttl; in getExpirationTimeMillisFromHTTPHeader()
/frameworks/volley/src/test/java/com/android/volley/utils/
DCacheTestUtils.java28 entry.ttl = isExpired ? 0 : Long.MAX_VALUE; in makeRandomCacheEntry()