/external/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_init4.cc | 7 struct Cache { 9 explicit Cache(int x) 16 Cache *CreateCache() { 18 return new Cache(rand()); 22 static Cache *c = CreateCache();
|
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();
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
LeaksContext.h | 33 Cache(0), Name(name) { } 36 Cache = 0; 51 if (Cache) { 52 assert(Cache != o && "Object already in set!"); 53 Ts.insert(Cache); 55 Cache = o; 59 if (o == Cache) 60 Cache = 0; // Cache hit 66 addGarbage(0); // Flush the Cache [all...] |
/external/volley/src/test/java/com/android/volley/utils/ |
CacheTestUtils.java | 19 import com.android.volley.Cache; 26 * Makes a random cache entry. 31 public static Cache.Entry makeRandomCacheEntry( 34 Cache.Entry entry = new Cache.Entry(); 51 public static Cache.Entry makeRandomCacheEntry(byte[] data) {
|
/libcore/ojluni/src/main/java/sun/security/provider/ |
X509Factory.java | 31 import sun.security.util.Cache; 63 private static final Cache<Object, X509CertImpl> certCache 64 = Cache.newSoftMemoryCache(750); 65 private static final Cache<Object, X509CRLImpl> crlCache 66 = Cache.newSoftMemoryCache(750); 135 * in the cert cache, the cached object is returned. Otherwise, 137 * Then the X509CertImpl is added to the cache and returned. 214 * Get the X509CertImpl or X509CRLImpl from the cache. 216 private static synchronized <K,V> V getFromCache(Cache<K,V> cache, [all...] |
/external/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);
|
/external/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...] |
/external/swiftshader/third_party/LLVM/lib/Support/ |
SourceMgr.cpp | 38 // Delete the line # cache if allocated. 39 if (LineNoCacheTy *Cache = getCache(LineNoCache)) 40 delete Cache; 96 // If we have a line number cache, and if the query is to a later point in the 99 if (LineNoCacheTy *Cache = getCache(LineNoCache)) 100 if (Cache->LastQueryBufferID == BufferID && 101 Cache->LastQuery <= Loc.getPointer()) { 102 Ptr = Cache->LastQuery; 103 LineNo = Cache->LineNoOfQuery; 112 // Allocate the line number cache if it doesn't exist [all...] |
/libcore/ojluni/src/main/java/java/nio/charset/ |
CoderResult.java | 194 private static abstract class Cache { 196 private Map<Integer,WeakReference<CoderResult>> cache = null; field in class:CoderResult.Cache 206 if (cache == null) { 207 cache = new HashMap<Integer,WeakReference<CoderResult>>(); 208 } else if ((w = cache.get(k)) != null) { 213 cache.put(k, new WeakReference<CoderResult>(e)); 220 private static Cache malformedCache 221 = new Cache() { 239 private static Cache unmappableCache 240 = new Cache() { [all...] |
/libcore/ojluni/src/main/java/sun/nio/cs/ |
ThreadLocalCoders.java | 40 private static abstract class Cache { 43 private ThreadLocal<Object[]> cache = new ThreadLocal<>(); field in class:ThreadLocalCoders.Cache 46 Cache(int size) { 62 Object[] oa = cache.get(); 65 cache.set(oa); 88 private static Cache decoderCache = new Cache(CACHE_SIZE) { 112 private static Cache encoderCache = new Cache(CACHE_SIZE) {
|
/external/volley/src/test/java/com/android/volley/mock/ |
MockCache.java | 19 import com.android.volley.Cache; 21 public class MockCache implements Cache {
|