Searched refs:Cache (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/volley/src/test/java/com/android/volley/toolbox/
H A DCacheTest.java19 import com.android.volley.Cache;
32 assertNotNull(Cache.class.getMethod("get", String.class));
33 assertNotNull(Cache.class.getMethod("put", String.class, Cache.Entry.class));
34 assertNotNull(Cache.class.getMethod("initialize"));
35 assertNotNull(Cache.class.getMethod("invalidate", String.class, boolean.class));
36 assertNotNull(Cache.class.getMethod("remove", String.class));
37 assertNotNull(Cache.class.getMethod("clear"));
H A DRequestQueueTest.java32 assertNotNull(RequestQueue.class.getConstructor(Cache.class, Network.class, int.class,
34 assertNotNull(RequestQueue.class.getConstructor(Cache.class, Network.class, int.class));
35 assertNotNull(RequestQueue.class.getConstructor(Cache.class, Network.class));
H A DResponseTest.java19 import com.android.volley.Cache;
37 assertNotNull(Response.class.getMethod("success", Object.class, Cache.Entry.class));
H A DHttpHeaderParserTest.java19 import com.android.volley.Cache;
55 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
68 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
79 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
91 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
106 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
123 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
133 headers.put("Cache-Control", "public, max-age=86400");
135 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
151 headers.put("Cache
[all...]
H A DRequestTest.java48 assertNotNull(Request.class.getMethod("setCacheEntry", Cache.Entry.class));
H A DDiskBasedCacheTest.java19 import com.android.volley.Cache;
35 Cache.Entry e = new Cache.Entry();
/frameworks/volley/src/test/java/com/android/volley/utils/
H A DCacheTestUtils.java5 import com.android.volley.Cache;
17 public static Cache.Entry makeRandomCacheEntry(
20 Cache.Entry entry = new Cache.Entry();
37 public static Cache.Entry makeRandomCacheEntry(byte[] data) {
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DNoCache.java19 import com.android.volley.Cache;
24 public class NoCache implements Cache {
H A DClearCacheRequest.java19 import com.android.volley.Cache;
31 private final Cache mCache;
36 * @param cache Cache to clear
40 public ClearCacheRequest(Cache cache, Runnable callback) {
H A DHttpHeaderParser.java19 import com.android.volley.Cache;
34 * Extracts a {@link Cache.Entry} from a {@link NetworkResponse}.
39 public static Cache.Entry parseCacheHeaders(NetworkResponse response) {
62 headerValue = headers.get("Cache-Control");
98 // Cache-Control takes precedence over an Expires header, even if both exist and Expires
111 Cache.Entry entry = new Cache.Entry();
H A 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) {
H A DDiskBasedCache.java21 import com.android.volley.Cache;
41 * Cache implementation that caches files directly onto the hard disk in the specified
44 public class DiskBasedCache implements Cache {
100 VolleyLog.d("Cache cleared.");
176 * @param key Cache key
/frameworks/volley/src/main/java/com/android/volley/
H A DResponse.java42 public static <T> Response<T> success(T result, Cache.Entry cacheEntry) {
57 /** Cache metadata for this response, or null in the case of error. */
58 public final Cache.Entry cacheEntry;
74 private Response(T result, Cache.Entry cacheEntry) {
H A DCacheDispatcher.java28 * {@link ResponseDelivery}. Cache misses and responses that require
43 private final Cache mCache;
57 * @param cache Cache interface to use for resolution
62 Cache cache, ResponseDelivery delivery) {
100 Cache.Entry entry = mCache.get(request.getCacheKey());
103 // Cache miss; send off to the network dispatcher.
H A DCache.java25 public interface Cache { interface
28 * @param key Cache key
35 * @param key Cache key
48 * @param key Cache key
55 * @param key Cache key
H A DRequestQueue.java82 /** Cache interface for retrieving and storing responses. */
83 private final Cache mCache;
103 * @param cache A Cache to use for persisting responses to disk
108 public RequestQueue(Cache cache, Network network, int threadPoolSize,
119 * @param cache A Cache to use for persisting responses to disk
123 public RequestQueue(Cache cache, Network network, int threadPoolSize) {
131 * @param cache A Cache to use for persisting responses to disk
134 public RequestQueue(Cache cache, Network network) {
178 * Gets the {@link Cache} instance being used.
180 public Cache getCach
[all...]
H A DNetworkDispatcher.java32 * eligible, using a specified {@link Cache} interface. Valid responses and
41 private final Cache mCache;
53 * @param cache Cache interface to use for writing responses to cache
57 Network network, Cache cache,
H A DRequest.java101 private Cache.Entry mCacheEntry = null;
290 public Request<?> setCacheEntry(Cache.Entry entry) {
298 public Cache.Entry getCacheEntry() {
/frameworks/volley/src/test/java/com/android/volley/mock/
H A DMockCache.java19 import com.android.volley.Cache;
21 public class MockCache implements Cache {
/frameworks/volley/src/test/java/com/android/volley/
H A DCacheDispatcherTest.java83 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, false);
93 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, true);
106 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, true, true);
H A DResponseDeliveryTest.java44 Cache.Entry cacheEntry = CacheTestUtils.makeRandomCacheEntry(data);
/frameworks/base/core/java/android/net/http/
H A DHttpResponseCache.java19 import com.android.okhttp.Cache;
87 * <h3>Cache Optimization</h3>
112 * connection.addRequestProperty("Cache-Control", "no-cache");
116 * connection.addRequestProperty("Cache-Control", "max-age=0");
119 * <h3>Force a Cache Response</h3>
126 * connection.addRequestProperty("Cache-Control", "only-if-cached");
137 * connection.addRequestProperty("Cache-Control", "max-stale=" + maxStale);
296 public Cache getCache() {
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DURLFetcher.java21 import com.android.volley.Cache;
105 connection.addRequestProperty("Cache-Control", "max-stale=60");
166 Cache.Entry cachePolicy = HttpHeaderParser.parseCacheHeaders(response);
169 // Cache is disabled, set the expire time to 0.
172 // Cache policy is not specified, set the expire time to 0.
/frameworks/base/libs/hwui/
H A DVectorDrawable.h710 struct Cache { struct in class:android::uirenderer::VectorDrawable::Tree
715 Cache mStagingCache;
716 Cache mCache;
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java72 private final Cache mCache = new Cache();
516 * Cache consistency model:
529 private static class Cache { class in class:LockSettingsStorage

Completed in 2232 milliseconds

12