Searched refs:maxAgeSeconds (Results 1 – 6 of 6) sorted by relevance
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | CacheControl.java | 37 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/ |
D | CacheControl.java | 35 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/ |
D | CacheControlTest.java | 34 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/ |
D | CacheStrategy.java | 72 || 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/ |
D | CacheStrategy.java | 74 || 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/ |
D | storage_v1_messages.py | 82 maxAgeSeconds = _messages.IntegerField(1, variant=_messages.Variant.INT32) variable in Bucket.CorsValueListEntry
|