/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | CacheControlTest.java | 30 CacheControl cacheControl = new CacheControl.Builder().build(); in emptyBuilderIsEmpty() local 31 assertEquals("", cacheControl.toString()); in emptyBuilderIsEmpty() 32 assertFalse(cacheControl.noCache()); in emptyBuilderIsEmpty() 33 assertFalse(cacheControl.noStore()); in emptyBuilderIsEmpty() 34 assertEquals(-1, cacheControl.maxAgeSeconds()); in emptyBuilderIsEmpty() 35 assertEquals(-1, cacheControl.sMaxAgeSeconds()); in emptyBuilderIsEmpty() 36 assertFalse(cacheControl.isPrivate()); in emptyBuilderIsEmpty() 37 assertFalse(cacheControl.isPublic()); in emptyBuilderIsEmpty() 38 assertFalse(cacheControl.mustRevalidate()); in emptyBuilderIsEmpty() 39 assertEquals(-1, cacheControl.maxStaleSeconds()); in emptyBuilderIsEmpty() [all …]
|
D | RequestTest.java | 140 @Test public void cacheControl() throws Exception { in cacheControl() method in RequestTest 142 .cacheControl(new CacheControl.Builder().noCache().build()) in cacheControl() 151 .cacheControl(new CacheControl.Builder().build()) in emptyCacheControlClearsAllCacheControlHeaders()
|
D | CacheTest.java | 944 .cacheControl(new CacheControl.Builder().noStore().build()) in clientSideNoStore()
|
/external/exoplayer/tree/extensions/okhttp/src/main/java/com/google/android/exoplayer2/ext/okhttp/ |
D | OkHttpDataSourceFactory.java | 34 @Nullable private final CacheControl cacheControl; field in OkHttpDataSourceFactory 52 Call.Factory callFactory, @Nullable String userAgent, @Nullable CacheControl cacheControl) { in OkHttpDataSourceFactory() argument 53 this(callFactory, userAgent, /* listener= */ null, cacheControl); in OkHttpDataSourceFactory() 78 @Nullable CacheControl cacheControl) { in OkHttpDataSourceFactory() argument 82 this.cacheControl = cacheControl; in OkHttpDataSourceFactory() 92 cacheControl, in createDataSourceInternal()
|
D | OkHttpDataSource.java | 67 @Nullable private final CacheControl cacheControl; field in OkHttpDataSource 102 @Nullable CacheControl cacheControl, in OkHttpDataSource() argument 107 this.cacheControl = cacheControl; in OkHttpDataSource() 153 @Nullable CacheControl cacheControl, in OkHttpDataSource() argument 159 this.cacheControl = cacheControl; in OkHttpDataSource() 334 if (cacheControl != null) { in makeRequest() 335 builder.cacheControl(cacheControl); in makeRequest()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | CacheStrategy.java | 72 || response.cacheControl().maxAgeSeconds() != -1 in isCacheable() 73 || response.cacheControl().isPublic() in isCacheable() 74 || response.cacheControl().isPrivate()) { in isCacheable() 85 return !response.cacheControl().noStore() && !request.cacheControl().noStore(); in isCacheable() 163 if (candidate.networkRequest != null && request.cacheControl().onlyIfCached()) { in get() 190 CacheControl requestCaching = request.cacheControl(); in getCandidate() 208 CacheControl responseCaching = cacheResponse.cacheControl(); in getCandidate() 246 CacheControl responseCaching = cacheResponse.cacheControl(); 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() 75 || response.cacheControl().isPublic() in isCacheable() 76 || response.cacheControl().isPrivate()) { in isCacheable() 87 return !response.cacheControl().noStore() && !request.cacheControl().noStore(); in isCacheable() 168 if (candidate.networkRequest != null && request.cacheControl().onlyIfCached()) { in get() 195 CacheControl requestCaching = request.cacheControl(); in getCandidate() 213 CacheControl responseCaching = cacheResponse.cacheControl(); in getCandidate() 251 CacheControl responseCaching = cacheResponse.cacheControl(); in computeFreshnessLifetime() 297 return cacheResponse.cacheControl().maxAgeSeconds() == -1 && expires == null; in isFreshnessLifetimeHeuristic()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | Request.java | 37 private volatile CacheControl cacheControl; // Lazily initialized. field in Request 101 public CacheControl cacheControl() { in cacheControl() method in Request 102 CacheControl result = cacheControl; in cacheControl() 103 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl() 217 public Builder cacheControl(CacheControl cacheControl) { in cacheControl() method in Request.Builder 218 String value = cacheControl.toString(); in cacheControl()
|
D | Response.java | 48 private volatile CacheControl cacheControl; // Lazily initialized. field in Response 204 public CacheControl cacheControl() { in cacheControl() method in Response 205 CacheControl result = cacheControl; in cacheControl() 206 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | Request.java | 42 private volatile CacheControl cacheControl; // Lazily initialized. field in Request 106 public CacheControl cacheControl() { in cacheControl() method in Request 107 CacheControl result = cacheControl; in cacheControl() 108 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl() 225 public Builder cacheControl(CacheControl cacheControl) { in cacheControl() method in Request.Builder 226 String value = cacheControl.toString(); in cacheControl()
|
D | Response.java | 55 private volatile CacheControl cacheControl; // Lazily initialized. field in Response 211 public CacheControl cacheControl() { in cacheControl() method in Response 212 CacheControl result = cacheControl; in cacheControl() 213 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl()
|
/external/python/apitools/samples/storage_sample/storage_v1/ |
D | storage_v1_messages.py | 599 cacheControl = _messages.StringField(3) variable in Object
|