Home
last modified time | relevance | path

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

/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DCacheControl.java37 private final int maxAgeSeconds; field in CacheControl
49 private CacheControl(boolean noCache, boolean noStore, int maxAgeSeconds, int sMaxAgeSeconds, in CacheControl() argument
54 this.maxAgeSeconds = maxAgeSeconds; in CacheControl()
69 this.maxAgeSeconds = builder.maxAgeSeconds; in CacheControl()
101 public int maxAgeSeconds() { in maxAgeSeconds() method in CacheControl
102 return maxAgeSeconds; in maxAgeSeconds()
156 int maxAgeSeconds = -1; in parse() local
222 maxAgeSeconds = HeaderParser.parseSeconds(parameter, -1); in parse()
246 return new CacheControl(noCache, noStore, maxAgeSeconds, sMaxAgeSeconds, isPrivate, isPublic, in parse()
259 if (maxAgeSeconds != -1) result.append("max-age=").append(maxAgeSeconds).append(", "); in headerValue()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCacheControl.java35 private final int maxAgeSeconds; field in CacheControl
47 private CacheControl(boolean noCache, boolean noStore, int maxAgeSeconds, int sMaxAgeSeconds, in CacheControl() argument
52 this.maxAgeSeconds = maxAgeSeconds; in CacheControl()
67 this.maxAgeSeconds = builder.maxAgeSeconds; in CacheControl()
99 public int maxAgeSeconds() { in maxAgeSeconds() method in CacheControl
100 return maxAgeSeconds; in maxAgeSeconds()
154 int maxAgeSeconds = -1; in parse() local
220 maxAgeSeconds = HeaderParser.parseSeconds(parameter, -1); in parse()
244 return new CacheControl(noCache, noStore, maxAgeSeconds, sMaxAgeSeconds, isPrivate, isPublic, in parse()
257 if (maxAgeSeconds != -1) result.append("max-age=").append(maxAgeSeconds).append(", "); in headerValue()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheControlTest.java34 assertEquals(-1, cacheControl.maxAgeSeconds()); in emptyBuilderIsEmpty()
59 assertEquals(1, cacheControl.maxAgeSeconds()); in completeBuilder()
77 assertEquals(-1, cacheControl.maxAgeSeconds()); in parseEmpty()
95 assertEquals(1, cacheControl.maxAgeSeconds()); in parse()
115 assertEquals(-1, cacheControl.maxAgeSeconds()); in parseIgnoreCacheControlExtensions()
175 assertEquals(Integer.MAX_VALUE, cacheControl.maxAgeSeconds()); in timeDurationTruncatedToMaxValue()
191 assertEquals(4, cacheControl.maxAgeSeconds()); in timePrecisionIsTruncatedToSeconds()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DCacheStrategy.java72 || response.cacheControl().maxAgeSeconds() != -1 in isCacheable()
198 if (requestCaching.maxAgeSeconds() != -1) { in getCandidate()
199 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); in getCandidate()
247 if (responseCaching.maxAgeSeconds() != -1) { in computeFreshnessLifetime()
248 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); in computeFreshnessLifetime()
292 return cacheResponse.cacheControl().maxAgeSeconds() == -1 && expires == null; in isFreshnessLifetimeHeuristic()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DCacheStrategy.java74 || response.cacheControl().maxAgeSeconds() != -1 in isCacheable()
203 if (requestCaching.maxAgeSeconds() != -1) { in getCandidate()
204 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); in getCandidate()
252 if (responseCaching.maxAgeSeconds() != -1) { in computeFreshnessLifetime()
253 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); in computeFreshnessLifetime()
297 return cacheResponse.cacheControl().maxAgeSeconds() == -1 && expires == null; in isFreshnessLifetimeHeuristic()
/external/python/apitools/samples/storage_sample/storage_v1/
Dstorage_v1_messages.py82 maxAgeSeconds = _messages.IntegerField(1, variant=_messages.Variant.INT32) variable in Bucket.CorsValueListEntry