/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
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"));
|
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));
|
ResponseTest.java | 19 import com.android.volley.Cache; 37 assertNotNull(Response.class.getMethod("success", Object.class, Cache.Entry.class));
|
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/ |
OkCacheContainer.java | 20 * {@link Cache}. 23 Cache getCache();
|
AndroidShimResponseCache.java | 36 private final Cache delegate; 38 private AndroidShimResponseCache(Cache delegate) { 43 Cache cache = new Cache(directory, maxSize); local 44 return new AndroidShimResponseCache(cache); 48 Cache installedCache = getCache(); 54 public Cache getCache() { 84 * this cache. This may be greater than the {@link #maxSize} if a background 92 * Returns the maximum number of bytes that this cache should use to stor [all...] |
/external/compiler-rt/test/tsan/ |
static_init2.cc | 6 struct Cache { 8 explicit Cache(int x) 13 void foo(Cache *my) { 14 static Cache *c = my ? my : new Cache(rand()); 20 foo(new Cache(rand()));
|
static_init3.cc | 7 struct Cache { 11 Cache g_cache; 13 Cache *CreateCache() { 18 _Atomic(Cache*) queue; 21 static Cache *c = CreateCache(); 27 Cache *c = 0;
|
static_init5.cc | 7 struct Cache { 9 explicit Cache(int x) 15 return new Cache((int)(long)p); 18 Cache *CreateCache() { 23 return (Cache*)res; 27 static Cache *c = CreateCache();
|
static_init6.cc | 7 struct Cache { 9 explicit Cache(int x) 15 return new Cache((int)(long)p); 18 Cache *CreateCache() { 23 return (Cache*)res; 27 static Cache *c = CreateCache();
|
static_init4.cc | 7 struct Cache { 9 explicit Cache(int x) 16 Cache *CreateCache() { 18 return new Cache(rand()); 22 static Cache *c = CreateCache();
|
/frameworks/volley/src/test/java/com/android/volley/utils/ |
CacheTestUtils.java | 5 import com.android.volley.Cache; 12 * Makes a random cache entry. 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/ |
NoCache.java | 19 import com.android.volley.Cache; 22 * A cache that doesn't. 24 public class NoCache implements Cache {
|
ClearCacheRequest.java | 19 import com.android.volley.Cache; 28 * A synthetic request used for clearing the cache. 31 private final Cache mCache; 35 * Creates a synthetic request for clearing the cache. 36 * @param cache Cache to clear 37 * @param callback Callback to make on the main thread once the cache is clear, 40 public ClearCacheRequest(Cache cache, Runnable callback) { 42 mCache = cache; [all...] |
/external/ImageMagick/MagickCore/ |
cache-private.h | 16 MagickCore cache private methods. 21 #include "MagickCore/cache.h" 22 #include "MagickCore/distribute-cache.h" 34 *Cache; 116 *cache, member in struct:_NexusInfo 228 extern MagickPrivate Cache 230 ClonePixelCache(const Cache), 231 DestroyPixelCache(Cache), 232 ReferencePixelCache(Cache); 235 GetPixelCacheStorageClass(const Cache); [all...] |
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_dense_alloc_test.cc | 26 typedef Alloc::Cache Cache; 31 Cache cache; local 32 alloc.InitCache(&cache); 37 IndexT idx = alloc.Alloc(&cache); 48 alloc.Free(&cache, idx); 51 alloc.FlushCache(&cache);
|
/frameworks/volley/src/main/java/com/android/volley/ |
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) {
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
MCJITObjectCacheTest.cpp | 41 // Our test cache wants to maintain ownership of its object buffers 96 // We may be using a null cache, so ensure compilation is valid. 124 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); 131 TheJIT->setObjectCache(Cache.get()); 133 // Verify that our object cache does not contain the module yet. 134 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SavedModulePointer); 139 // Verify that MCJIT tried to look-up this module in the cache. 140 EXPECT_TRUE(Cache->wasModuleLookedUp(SavedModulePointer)); 142 // Verify that our object cache now contains the module. 143 ObjBuffer = Cache->getObjectInternal(SavedModulePointer) [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_dense_alloc.h | 13 // DenseSlabAllocCache is a thread-local cache for DenseSlabAlloc. 32 IndexT cache[kSize]; member in class:__tsan::DenseSlabAllocCache 39 typedef DenseSlabAllocCache Cache; 40 typedef typename Cache::IndexT IndexT; 61 IndexT Alloc(Cache *c) { 64 return c->cache[--c->pos]; 67 void Free(Cache *c, IndexT idx) { 69 if (c->pos == Cache::kSize) 71 c->cache[c->pos++] = idx; 80 void FlushCache(Cache *c) [all...] |
/external/curl/tests/ |
http_pipe.py | 221 'Cache-Control: no-store'], body) 228 'Cache-Control: no-store'], body) 233 '200 OK', ['Content-Length: 26', 'Cache-Control: no-store'], body) 242 '200 OK', ['Transfer-Encoding: chunked', 'Cache-Control: no-store'], 248 '200 OK', ['Content-Length: 26', 'Cache-Control: max-age=60'], body) 253 '200 OK', ['Content-Length: 26', 'Cache-Control: max-age=60', 'Connection: close'], body) 261 'Cache-Control: max-age=60'], body) 268 'Cache-Control: max-age=60'], body) 276 'Cache-Control: max-age=60'], 285 '200 OK', ['Transfer-Encoding: chunked', 'Cache-Control: no-store'], body [all...] |
/libcore/ojluni/src/main/java/java/nio/charset/ |
CoderResult.java | 195 private static abstract class Cache { 197 private Map<Integer,WeakReference<CoderResult>> cache = null; field in class:CoderResult.Cache 207 if (cache == null) { 208 cache = new HashMap<Integer,WeakReference<CoderResult>>(); 209 } else if ((w = cache.get(k)) != null) { 214 cache.put(k, new WeakReference<CoderResult>(e)); 221 private static Cache malformedCache 222 = new Cache() { 237 private static Cache unmappableCache 238 = new Cache() { [all...] |
/external/skia/tests/ |
ImageFilterCacheTest.cpp | 28 // Ensure the cache can return a cached image 33 SkAutoTUnref<SkImageFilter::Cache> cache(SkImageFilter::Cache::Create(kCacheSize)); 36 SkImageFilter::Cache::Key key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); 37 SkImageFilter::Cache::Key key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); 40 cache->set(key1, image, offset); 44 SkSpecialImage* foundImage = cache->get(key1, &foundOffset); 48 REPORTER_ASSERT(reporter, !cache->get(key2, &foundOffset)); 57 SkAutoTUnref<SkImageFilter::Cache> cache(SkImageFilter::Cache::Create(kCacheSize)) [all...] |
/libcore/ojluni/src/main/java/sun/nio/cs/ |
ThreadLocalCoders.java | 41 private static abstract class Cache { 44 private ThreadLocal cache = new ThreadLocal(); field in class:ThreadLocalCoders.Cache 47 Cache(int size) { 63 Object[] oa = (Object[])cache.get(); 66 cache.set(oa); 89 private static Cache decoderCache = new Cache(CACHE_SIZE) { 113 private static Cache encoderCache = new Cache(CACHE_SIZE) {
|
/external/llvm/lib/Analysis/ |
MemoryDependenceAnalysis.cpp | 497 // Create a numbered basic block to lazily compute and cache instruction 791 /// cache arrays are properly kept sorted. 792 static void AssertSorted(MemoryDependenceAnalysis::NonLocalDepInfo &Cache, 794 if (Count == -1) Count = Cache.size(); 798 assert(!(Cache[i] < Cache[i-1]) && "Cache isn't sorted!"); 819 NonLocalDepInfo &Cache = CacheP.first; [all...] |
/external/chromium-trace/catapult/third_party/gsutil/gslib/addlhelp/ |
metadata.py | 24 GET requests are handled, including Content-Type, Cache-Control, 34 would cause gsutil to set the Content-Type and Cache-Control for each 38 -h "Cache-Control:public, max-age=3600" cp -r images \\ 82 <B>CACHE-CONTROL</B> 83 Another commonly set piece of metadata is Cache-Control, which allows 85 allowed to cache your objects. Cache-Control only applies to objects with 90 gsutil -h "Cache-Control:public,max-age=3600" cp -a public-read \\ 94 and make them publicly readable and cacheable, with cache expiration of 101 browser to refresh its cache). If you want to prevent caching of publicl [all...] |
/frameworks/volley/src/test/java/com/android/volley/mock/ |
MockCache.java | 19 import com.android.volley.Cache; 21 public class MockCache implements Cache {
|