/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
H A D | CacheTest.java | 19 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 D | RequestQueueTest.java | 32 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 D | ResponseTest.java | 19 import com.android.volley.Cache; 37 assertNotNull(Response.class.getMethod("success", Object.class, Cache.Entry.class));
|
H A D | HttpHeaderParserTest.java | 19 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 D | RequestTest.java | 48 assertNotNull(Request.class.getMethod("setCacheEntry", Cache.Entry.class));
|
H A D | DiskBasedCacheTest.java | 19 import com.android.volley.Cache; 35 Cache.Entry e = new Cache.Entry();
|
/frameworks/volley/src/test/java/com/android/volley/utils/ |
H A D | CacheTestUtils.java | 5 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 D | NoCache.java | 19 import com.android.volley.Cache; 24 public class NoCache implements Cache {
|
H A D | ClearCacheRequest.java | 19 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 D | HttpHeaderParser.java | 19 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 D | BasicNetwork.java | 22 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 D | DiskBasedCache.java | 21 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 D | Response.java | 42 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 D | CacheDispatcher.java | 28 * {@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 D | Cache.java | 25 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 D | RequestQueue.java | 82 /** 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 D | NetworkDispatcher.java | 32 * 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 D | Request.java | 101 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 D | MockCache.java | 19 import com.android.volley.Cache; 21 public class MockCache implements Cache {
|
/frameworks/volley/src/test/java/com/android/volley/ |
H A D | CacheDispatcherTest.java | 83 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 D | ResponseDeliveryTest.java | 44 Cache.Entry cacheEntry = CacheTestUtils.makeRandomCacheEntry(data);
|
/frameworks/base/core/java/android/net/http/ |
H A D | HttpResponseCache.java | 19 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 D | URLFetcher.java | 21 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 D | VectorDrawable.h | 710 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 D | LockSettingsStorage.java | 72 private final Cache mCache = new Cache(); 516 * Cache consistency model: 529 private static class Cache { class in class:LockSettingsStorage
|