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

/frameworks/support/volley/tests/src/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/support/volley/src/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) {
58 headerValue = headers.get("Cache-Control");
84 // Cache-Control takes precedence over an Expires header, even if both exist and Expires
93 Cache.Entry entry = new Cache.Entry();
H A DBasicNetwork.java22 import com.android.volley.Cache;
179 private void addCacheHeaders(Map<String, String> headers, Cache.Entry entry) {
H A DDiskBasedCache.java21 import com.android.volley.Cache;
38 * Cache implementation that caches files directly onto the hard disk in the specified
41 public class DiskBasedCache implements Cache {
97 VolleyLog.d("Cache cleared.");
166 * @param key Cache key
/frameworks/support/volley/src/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 DCache.java22 public interface Cache { interface
25 * @param key Cache key
32 * @param key Cache key
45 * @param key Cache key
52 * @param key Cache key
H A DCacheDispatcher.java28 * {@link ResponseDelivery}. Cache misses and responses that require
44 private final Cache mCache;
58 * @param cache Cache interface to use for resolution
63 Cache cache, ResponseDelivery delivery) {
101 Cache.Entry entry = mCache.get(request.getCacheKey());
104 // Cache miss; send off to the network dispatcher.
H A DRequestQueue.java75 /** Cache interface for retrieving and storing respones. */
76 private final Cache mCache;
93 * @param cache A Cache to use for persisting responses to disk
98 public RequestQueue(Cache cache, Network network, int threadPoolSize,
109 * @param cache A Cache to use for persisting responses to disk
113 public RequestQueue(Cache cache, Network network, int threadPoolSize) {
121 * @param cache A Cache to use for persisting responses to disk
124 public RequestQueue(Cache cache, Network network) {
H A DNetworkDispatcher.java28 * eligible, using a specified {@link Cache} interface. Valid responses and
38 private final Cache mCache;
50 * @param cache Cache interface to use for writing responses to cache
54 Network network, Cache cache,
H A DRequest.java78 private Cache.Entry mCacheEntry = null;
207 public void setCacheEntry(Cache.Entry entry) {
214 public Cache.Entry getCacheEntry() {
/frameworks/support/volley/tests/src/com/android/volley/mock/
H A DMockCache.java19 import com.android.volley.Cache;
21 public class MockCache implements Cache {
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java21 import com.android.volley.Cache;
49 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
61 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
72 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
86 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
103 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
113 headers.put("Cache-Control", "public, max-age=86400");
115 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
127 headers.put("Cache-Control", "no-cache");
129 Cache
[all...]
/frameworks/support/volley/tests/src/com/android/volley/
H A DCacheDispatcherTest.java84 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, false);
94 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, true);
107 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, true, true);
H A DResponseDeliveryTest.java43 Cache.Entry cacheEntry = CacheTestUtils.makeRandomCacheEntry(data);
/frameworks/native/opengl/libagl/
H A Darray.cpp449 #pragma mark Vertex Cache

Completed in 67 milliseconds