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

/frameworks/volley/src/com/android/volley/
H A DCache.java78 public long ttl; field in class:Cache.Entry
88 return this.ttl < System.currentTimeMillis();
/frameworks/volley/tests/src/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java54 assertEquals(0, entry.ttl);
89 assertTrue(entry.ttl == entry.softTtl);
102 assertEquals(0, entry.ttl);
116 assertEqualsWithin(now + 3 * ONE_HOUR_MILLIS, entry.ttl, ONE_MINUTE_MILLIS);
117 assertEquals(entry.softTtl, entry.ttl);
130 assertEqualsWithin(now + 24 * ONE_HOUR_MILLIS, entry.ttl, ONE_MINUTE_MILLIS);
131 assertEquals(entry.softTtl, entry.ttl);
155 assertEqualsWithin(now, entry.ttl, ONE_MINUTE_MILLIS);
156 assertEquals(entry.softTtl, entry.ttl);
H A DDiskBasedCacheTest.java36 e.ttl = 9876543L;
50 assertEquals(first.ttl, second.ttl);
/frameworks/volley/tests/src/com/android/volley/utils/
H A DCacheTestUtils.java28 entry.ttl = isExpired ? 0 : Long.MAX_VALUE;
/frameworks/volley/src/com/android/volley/toolbox/
H A DDiskBasedCache.java183 entry.ttl = 0;
347 public long ttl; field in class:DiskBasedCache.CacheHeader
367 this.ttl = entry.ttl;
390 entry.ttl = readLong(is);
404 e.ttl = ttl;
420 writeLong(os, ttl);
H A DHttpHeaderParser.java97 entry.ttl = entry.softTtl;

Completed in 44 milliseconds