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

/frameworks/volley/src/main/java/com/android/volley/
H A DCache.java81 public long ttl; field in class:Cache.Entry
91 return this.ttl < System.currentTimeMillis();
/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java61 assertEquals(0, entry.ttl);
98 assertTrue(entry.ttl == entry.softTtl);
111 assertEquals(0, entry.ttl);
125 assertEqualsWithin(now + 3 * ONE_HOUR_MILLIS, entry.ttl, ONE_MINUTE_MILLIS);
126 assertEquals(entry.softTtl, entry.ttl);
139 assertEqualsWithin(now + ONE_DAY_MILLIS, entry.ttl, ONE_MINUTE_MILLIS);
140 assertEquals(entry.softTtl, entry.ttl);
149 // - stale-while-revalidate (entry.ttl) indicates that the asset may
158 assertEqualsWithin(now + ONE_DAY_MILLIS + ONE_WEEK_MILLIS, entry.ttl, ONE_MINUTE_MILLIS);
181 assertEqualsWithin(now, entry.ttl, ONE_MINUTE_MILLI
[all...]
H A DDiskBasedCacheTest.java39 e.ttl = 9876543L;
54 assertEquals(first.ttl, second.ttl);
/frameworks/volley/src/test/java/com/android/volley/utils/
H A DCacheTestUtils.java28 entry.ttl = isExpired ? 0 : Long.MAX_VALUE;
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DDiskBasedCache.java184 entry.ttl = 0;
356 public long ttl; field in class:DiskBasedCache.CacheHeader
377 this.ttl = entry.ttl;
401 entry.ttl = readLong(is);
417 e.ttl = ttl;
434 writeLong(os, ttl);
H A DHttpHeaderParser.java115 entry.ttl = finalExpire;
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DURLFetcher.java50 * Fetches the specified url and returns the content and ttl.
84 * Fetches the specified url and returns the content and ttl.
154 * Parses the HTTP headers to compute the ttl.
157 * @return the ttl in millisecond or null if the ttl is not specified in the header.
171 } else if (cachePolicy.ttl == 0) {
175 // cachePolicy.ttl is actually the expire timestamp in millisecond.
176 return cachePolicy.ttl;

Completed in 150 milliseconds