Home
last modified time | relevance | path

Searched refs:cacheControl (Results 1 – 12 of 12) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheControlTest.java30 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 …]
DRequestTest.java140 @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()
DCacheTest.java944 .cacheControl(new CacheControl.Builder().noStore().build()) in clientSideNoStore()
/external/exoplayer/tree/extensions/okhttp/src/main/java/com/google/android/exoplayer2/ext/okhttp/
DOkHttpDataSourceFactory.java34 @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()
DOkHttpDataSource.java67 @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/
DCacheStrategy.java72 || 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/
DCacheStrategy.java74 || 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/
DRequest.java37 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()
DResponse.java48 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/
DRequest.java42 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()
DResponse.java55 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/
Dstorage_v1_messages.py599 cacheControl = _messages.StringField(3) variable in Object