Home
last modified time | relevance | path

Searched refs:Cache (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/volley/src/test/java/com/android/volley/toolbox/
DCacheTest.java19 import com.android.volley.Cache;
32 assertNotNull(Cache.class.getMethod("get", String.class)); in publicMethods()
33 assertNotNull(Cache.class.getMethod("put", String.class, Cache.Entry.class)); in publicMethods()
34 assertNotNull(Cache.class.getMethod("initialize")); in publicMethods()
35 assertNotNull(Cache.class.getMethod("invalidate", String.class, boolean.class)); in publicMethods()
36 assertNotNull(Cache.class.getMethod("remove", String.class)); in publicMethods()
37 assertNotNull(Cache.class.getMethod("clear")); in publicMethods()
DHttpHeaderParserTest.java19 import com.android.volley.Cache;
55 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_noHeaders()
68 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_headersSet()
79 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_etag()
91 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_normalExpire()
106 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_expiresInPast()
123 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_serverRelative()
135 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_cacheControlOverridesExpires()
153 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in testParseCacheHeaders_staleWhileRevalidate()
167 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_cacheControlNoCache()
[all …]
DRequestQueueTest.java32 assertNotNull(RequestQueue.class.getConstructor(Cache.class, Network.class, int.class, in publicMethods()
34 assertNotNull(RequestQueue.class.getConstructor(Cache.class, Network.class, int.class)); in publicMethods()
35 assertNotNull(RequestQueue.class.getConstructor(Cache.class, Network.class)); in publicMethods()
DResponseTest.java19 import com.android.volley.Cache;
37 assertNotNull(Response.class.getMethod("success", Object.class, Cache.Entry.class)); in publicMethods()
DDiskBasedCacheTest.java19 import com.android.volley.Cache;
35 Cache.Entry e = new Cache.Entry(); in cacheHeaderSerialization()
DRequestTest.java48 assertNotNull(Request.class.getMethod("setCacheEntry", Cache.Entry.class)); in publicMethods()
/frameworks/volley/src/test/java/com/android/volley/utils/
DCacheTestUtils.java5 import com.android.volley.Cache;
17 public static Cache.Entry makeRandomCacheEntry( in makeRandomCacheEntry()
20 Cache.Entry entry = new Cache.Entry(); in makeRandomCacheEntry()
37 public static Cache.Entry makeRandomCacheEntry(byte[] data) { in makeRandomCacheEntry()
/frameworks/volley/src/main/java/com/android/volley/
DResponse.java42 public static <T> Response<T> success(T result, Cache.Entry cacheEntry) { in success()
58 public final Cache.Entry cacheEntry;
74 private Response(T result, Cache.Entry cacheEntry) { in Response()
DRequestQueue.java83 private final Cache mCache;
108 public RequestQueue(Cache cache, Network network, int threadPoolSize, in RequestQueue()
123 public RequestQueue(Cache cache, Network network, int threadPoolSize) { in RequestQueue()
134 public RequestQueue(Cache cache, Network network) { in RequestQueue()
180 public Cache getCache() { in getCache()
DCacheDispatcher.java43 private final Cache mCache;
62 Cache cache, ResponseDelivery delivery) { in CacheDispatcher()
100 Cache.Entry entry = mCache.get(request.getCacheKey()); in run()
DNetworkDispatcher.java41 private final Cache mCache;
57 Network network, Cache cache, in NetworkDispatcher()
DRequest.java107 private Cache.Entry mCacheEntry = null;
303 public Request<?> setCacheEntry(Cache.Entry entry) { in setCacheEntry()
311 public Cache.Entry getCacheEntry() { in getCacheEntry()
DCache.java25 public interface Cache { interface
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DClearCacheRequest.java19 import com.android.volley.Cache;
31 private final Cache mCache;
40 public ClearCacheRequest(Cache cache, Runnable callback) { in ClearCacheRequest()
DHttpHeaderParser.java19 import com.android.volley.Cache;
39 public static Cache.Entry parseCacheHeaders(NetworkResponse response) { in parseCacheHeaders()
111 Cache.Entry entry = new Cache.Entry(); in parseCacheHeaders()
DNoCache.java19 import com.android.volley.Cache;
24 public class NoCache implements Cache {
DBasicNetwork.java22 import com.android.volley.Cache;
23 import com.android.volley.Cache.Entry;
205 private void addCacheHeaders(Map<String, String> headers, Cache.Entry entry) { in addCacheHeaders()
/frameworks/volley/src/test/java/com/android/volley/mock/
DMockCache.java19 import com.android.volley.Cache;
21 public class MockCache implements Cache {
/frameworks/volley/src/test/java/com/android/volley/
DCacheDispatcherTest.java83 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, false); in nonExpiredCacheHit()
93 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, true); in softExpiredCacheHit()
106 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, true, true); in expiredCacheHit()
DResponseDeliveryTest.java44 Cache.Entry cacheEntry = CacheTestUtils.makeRandomCacheEntry(data); in setUp()
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java19 import com.android.okhttp.Cache;
295 public Cache getCache() { in getCache()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DURLFetcher.java21 import com.android.volley.Cache;
166 Cache.Entry cachePolicy = HttpHeaderParser.parseCacheHeaders(response); in getExpirationTimeMillisFromHTTPHeader()
/frameworks/base/docs/html/training/efficient-downloads/
Dredundant_redundant.jd18 <li><a href="#LocalCache">Cache files locally</a></li>
34 <h2 id="LocalCache">Cache Files Locally</h2>
67 <h2 id="ResponseCache">Use the HttpURLConnection Response Cache</h2>
/frameworks/base/docs/html/training/volley/
Drequestqueue.jd13 <li><a href="#network">Set Up a Network and Cache</a></li>
36 <h2 id="network">Set Up a Network and Cache</h2>
80 Cache cache = new DiskBasedCache(getCacheDir(), 1024 * 1024); // 1MB cap
/frameworks/native/opengl/specs/
DEGL_ANDROID_blob_cache.txt118 semantics of these callback functions are described in Section 3.9.1 (Cache
121 Cache functions may only be specified once during the lifetime of an
135 3.9.1 Cache Operations

12