/libcore/ojluni/src/main/java/sun/security/provider/ |
X509Factory.java | 37 import sun.security.util.Cache; 67 private static final Cache certCache = Cache.newSoftMemoryCache(750); 68 private static final Cache crlCache = Cache.newSoftMemoryCache(750); 132 * in the cert cache, the cached object is returned. Otherwise, 134 * Then the X509CertImpl is added to the cache and returned. 199 * Get the X509CertImpl or X509CRLImpl from the cache. 201 private static synchronized Object getFromCache(Cache cache, [all...] |
/frameworks/volley/src/main/java/com/android/volley/ |
RequestQueue.java | 37 * resolving from either cache or network on a worker thread, and then delivering 55 * <li>containsKey(cacheKey) indicates that there is a request in flight for the given cache 57 * <li>get(cacheKey) returns waiting requests for the given cache key. The in flight request 71 /** The cache triage queue. */ 82 /** Cache interface for retrieving and storing responses. */ 83 private final Cache mCache; 94 /** The cache dispatcher. */ 103 * @param cache A Cache to use for persisting responses to disk 108 public RequestQueue(Cache cache, Network network, int threadPoolSize [all...] |
NetworkDispatcher.java | 31 * specified {@link Network} interface. Responses are committed to cache, if 32 * eligible, using a specified {@link Cache} interface. Valid responses and 40 /** The cache to write to. */ 41 private final Cache mCache; 53 * @param cache Cache interface to use for writing responses to cache 57 Network network, Cache cache, 61 mCache = cache; [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
X509CertificatePair.java | 39 import sun.security.util.Cache; 82 private static final Cache<Object, X509CertificatePair> cache field in class:X509CertificatePair 83 = Cache.newSoftMemoryCache(750); 129 * Clear the cache for debugging. 132 cache.clear(); 136 * Create a X509CertificatePair from its encoding. Uses cache lookup 141 Object key = new Cache.EqualByteArray(encoded); 142 X509CertificatePair pair = cache.get(key); 147 key = new Cache.EqualByteArray(pair.encoded) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
GenderInfo.java | 222 private static class Cache { 223 private final ICUCache<ULocale, GenderInfo> cache = field in class:GenderInfo.Cache 227 GenderInfo result = cache.get(locale); 233 // We call get() recursively so that we can leverage the cache 238 cache.put(locale, result); 258 private static Cache genderInfoCache = new Cache();
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
GenderInfo.java | 220 private static class Cache { 221 private final ICUCache<ULocale, GenderInfo> cache = field in class:GenderInfo.Cache 225 GenderInfo result = cache.get(locale); 231 // We call get() recursively so that we can leverage the cache 236 cache.put(locale, result); 256 private static Cache genderInfoCache = new Cache();
|
/external/llvm/include/llvm/ADT/ |
ImmutableList.h | 144 CacheTy Cache; 167 // Profile the new list to see if it already exists in our cache. 173 ListTy* L = Cache.FindNodeOrInsertPos(ID, InsertPos); 176 // The list does not exist in our cache. Create it. 181 // Insert the new list into the cache. 182 Cache.InsertNode(L, InsertPos);
|
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/ |
Crawler.java | 18 import com.squareup.okhttp.Cache; 95 : "(cache)"; 116 System.out.println("Usage: Crawler <cache dir> <root>"); 124 Cache cache = new Cache(new File(args[0]), cacheByteCount); local 125 client.setCache(cache);
|
/external/llvm/lib/Transforms/ObjCARC/ |
PtrState.h | 172 bool InitBottomUp(ARCMDKindCache &Cache, Instruction *I); 198 bool MatchWithRelease(ARCMDKindCache &Cache, Instruction *Release);
|
PtrState.cpp | 165 bool BottomUpPtrState::InitBottomUp(ARCMDKindCache &Cache, Instruction *I) { 180 I->getMetadata(Cache.get(ARCMDKindID::ImpreciseRelease)); 321 bool TopDownPtrState::MatchWithRelease(ARCMDKindCache &Cache, 328 Release->getMetadata(Cache.get(ARCMDKindID::ImpreciseRelease));
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/ |
HttpResponseCache.java | 19 import com.squareup.okhttp.Cache; 53 * there is no cache installed or it is not a {@code HttpResponseCache}. 64 * Creates a new HTTP response cache and sets it as the system default cache. 66 * @param directory the directory to hold cache data. 67 * @param maxSize the maximum size of the cache in bytes. 68 * @return the newly-installed cache 69 * @throws java.io.IOException if {@code directory} cannot be used for this cache. 79 // don't close and reopen if an equivalent cache is already installed 107 * this cache. This may be greater than the {@link #maxSize} if a backgroun [all...] |
/frameworks/base/core/java/android/net/http/ |
HttpResponseCache.java | 19 import com.android.okhttp.Cache; 38 * there is no platform-provided cache for {@code DefaultHttpClient} or 42 * <h3>Installing an HTTP response cache</h3> 44 * cache at application startup. For example, this code installs a 10 MiB cache 46 * cache directory} of the filesystem}: <pre> {@code 55 * Log.i(TAG, "HTTP response cache installation failed:" + e); 62 * HttpResponseCache cache = HttpResponseCache.getInstalled(); 63 * if (cache != null) { 64 * cache.flush() [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Cache.java | 53 * <h3>Cache Optimization</h3> 54 * To measure cache effectiveness, this class tracks three statistics: 57 * requests issued since this cache was created. 61 * responses were served by the cache. 64 * Sometimes a request will result in a conditional cache hit. If the cache contains a stale copy of 69 * <p>The best way to improve the cache hit rate is by configuring the web server to return 71 * href="http://tools.ietf.org/html/rfc7234">HTTP/1.1 (RFC 7234)</a> cache headers, it doesn't cache 76 * the cache, and fetch data directly from the server. To force a full refresh, add the {@cod 158 private final DiskLruCache cache; field in class:Cache [all...] |
/external/doclava/src/com/google/doclava/ |
Converter.java | 275 private static Cache mClasses = new Cache() { 395 private static Cache mMethods = new Cache() { 496 private static Cache mFields = new Cache() { 514 private static Cache mPackagees = new Cache() { 526 private static Cache mTypes = new Cache() { [all...] |
/external/chromium-trace/catapult/third_party/gsutil/gslib/addlhelp/ |
acls.py | 94 NOTE: By default, publicly readable objects are served with a Cache-Control 97 Cache-Control header of "Cache-Control:private, max-age=0, no-transform" on
|
/external/freetype/include/ |
ftmoderr.h | 146 FT_MODERRDEF( Cache, 0x400, "cache module" )
|
/external/guava/guava/src/com/google/common/cache/ |
Cache.java | 17 package com.google.common.cache; 33 * A semi-persistent mapping from keys to values. Cache entries are manually added using 34 * {@link #get(Object, Callable)} or {@link #put(Object, Object)}, and are stored in the cache until 50 public interface Cache<K, V> { 53 * Returns the value associated with {@code key} in this cache, or {@code null} if there is no 62 * Returns the value associated with {@code key} in this cache, obtaining that value from 63 * {@code valueLoader} if necessary. No observable state associated with this cache is modified 65 * "if cached, return; otherwise create, cache and return" pattern. 80 * Returns a map of the values associated with {@code keys} in this cache. The returned map will 81 * only contain entries which are already present in the cache [all...] |
LoadingCache.java | 17 package com.google.common.cache; 30 * A semi-persistent mapping from keys to values. Values are automatically loaded by the cache, 31 * and are stored in the cache until either evicted or manually invalidated. 36 * <p>When evaluated as a {@link Function}, a cache yields the same result as invoking 49 public interface LoadingCache<K, V> extends Cache<K, V>, Function<K, V> { 52 * Returns the value associated with {@code key} in this cache, first loading that value if 53 * necessary. No observable state associated with this cache is modified until loading completes. 60 * into the cache. Newly loaded values are added to the cache using 61 * {@code Cache.asMap().putIfAbsent} after loading has completed; if another value was associate [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
AbstractCacheTest.java | 17 package com.google.common.cache; 19 import com.google.common.cache.AbstractCache.SimpleStatsCounter; 20 import com.google.common.cache.AbstractCache.StatsCounter; 39 Cache<Object, Object> cache = new AbstractCache<Object, Object>() { local 46 assertNull(cache.getIfPresent(new Object())); 50 assertSame(newValue, cache.getIfPresent(new Object())); 54 Cache<Object, Object> cache = new AbstractCache<Object, Object>() { local 63 cache.getAllPresent(ImmutableList.of(new Object()))) 69 Cache<Object, Object> cache = new AbstractCache<Object, Object>() { local 83 Cache<Integer, Integer> cache = new AbstractCache<Integer, Integer>() { local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
BaseLocale.java | 21 private static final Cache CACHE = new Cache(); 63 BaseLocale baseLocale = CACHE.get(key); 247 private static class Cache extends LocaleObjectCache<Key, BaseLocale> { 249 public Cache() {
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/ |
BaseLocale.java | 17 private static final Cache CACHE = new Cache(); 59 BaseLocale baseLocale = CACHE.get(key); 243 private static class Cache extends LocaleObjectCache<Key, BaseLocale> { 245 public Cache() {
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
BaseLocale.java | 17 private static final Cache CACHE = new Cache(); 59 BaseLocale baseLocale = CACHE.get(key); 243 private static class Cache extends LocaleObjectCache<Key, BaseLocale> { 245 public Cache() {
|
/external/pdfium/third_party/freetype/include/freetype/ |
ftmoderr.h | 146 FT_MODERRDEF( Cache, 0x400, "cache module" )
|
/frameworks/volley/src/test/java/com/android/volley/ |
ResponseDeliveryTest.java | 44 Cache.Entry cacheEntry = CacheTestUtils.makeRandomCacheEntry(data);
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
BaseLocale.java | 40 private static final Cache CACHE = new Cache(); 68 CACHE.put(new Key(language, region), base); 86 BaseLocale baseLocale = CACHE.get(key); 290 private static class Cache extends LocaleObjectCache<Key, BaseLocale> { 292 public Cache() {
|