/external/guava/guava-tests/benchmark/com/google/common/cache/ |
MapMakerComparisonBenchmark.java | 17 package com.google.common.cache; 47 private final Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build(); field in class:MapMakerComparisonBenchmark 48 private final Cache<Object, Object> cacheNoStats = CacheBuilder.newBuilder().build(); 53 cache.put(TEST_KEY, TEST_VALUE); 83 cache.getIfPresent(TEST_KEY);
|
/external/pdfium/third_party/lcms/src/ |
cmsxform.c | 341 // Null transformation, only applies formatters. No cache 378 // No gamut check, no cache, 16 bits 439 // Gamut check, No cache, 16 bits. 476 // No gamut check, Cache, 16 bits, 488 _cmsCACHE Cache; 497 // Get copy of zero cache 498 memcpy(&Cache, &p->Cache, sizeof(Cache)); 512 if (memcmp(wIn, Cache.CacheIn, sizeof(Cache.CacheIn)) == 0) [all...] |
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/ |
ObjectReferenceImpl.java | 42 protected static class Cache { 46 private static final Cache noInitCache = new Cache(); 47 private static final Cache markerCache = new Cache(); 48 private Cache cache = noInitCache; field in class:ObjectReferenceImpl 52 cache = null; 58 cache = markerCache; 63 protected Cache newCache() [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
CFLSteensAliasAnalysis.cpp | 227 auto InsertPair = Cache.insert(std::make_pair(Fn, Optional<FunctionInfo>())); 232 // Note that we can't do Cache[Fn] = buildSetsFrom(Fn) here: the function call 236 Cache[Fn] = std::move(FunInfo); 241 void CFLSteensAAResult::evict(Function *Fn) { Cache.erase(Fn); } 243 /// Ensures that the given function is available in the cache, and returns the 247 auto Iter = Cache.find(Fn); 248 if (Iter == Cache.end()) { 250 Iter = Cache.find(Fn); 251 assert(Iter != Cache.end());
|
/external/volley/src/test/java/com/android/volley/ |
CacheDispatcherTest.java | 49 private @Mock Cache mCache; 94 // A cache miss does not post a response and puts the request on the network queue. 103 // A non-expired cache hit posts a response and does not queue to the network. 106 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, false); 113 // A soft-expired cache hit posts a response and queues to the network. 116 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, true); 132 // An expired cache hit does not post a response and queues to the network. 135 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, true, true); 181 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, true); 210 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, true) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
GenderInfo.java | 227 private static class Cache { 228 private final ICUCache<ULocale, GenderInfo> cache = field in class:GenderInfo.Cache 232 GenderInfo result = cache.get(locale); 238 // We call get() recursively so that we can leverage the cache 243 cache.put(locale, result); 263 private static Cache genderInfoCache = new Cache();
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
GenderInfo.java | 223 private static class Cache { 224 private final ICUCache<ULocale, GenderInfo> cache = field in class:GenderInfo.Cache 228 GenderInfo result = cache.get(locale); 234 // We call get() recursively so that we can leverage the cache 239 cache.put(locale, result); 259 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/python/google-api-python-client/googleapiclient/discovery_cache/ |
file_cache.py | 15 """File based cache for the discovery document. 17 The cache is stored in a single file so that multiple processes can 18 share the same cache. It locks the file whenever accesing to the 19 file. When the cache content is corrupted, it will be initialized with 20 an empty cache. 48 FILENAME = 'google-api-python-client-discovery-doc.cache' 66 cache = json.load(f.file_handle()) 68 # This means it opens the file for the first time, or the cache is 70 cache = {} 73 json.dump(cache, f.file_handle() 141 cache = Cache(max_age=DISCOVERY_DOC_MAX_AGE) variable [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/dependency/ |
CachedDependencyResolverTest.java | 22 import org.robolectric.internal.dependency.CachedDependencyResolver.Cache; 50 private Cache cache = new CacheStub(); field in class:CachedDependencyResolverTest 77 cache.write(CACHE_NAME, url); 91 DependencyResolver res = new CachedDependencyResolver(internalResolver, cache, cacheNamingStrategy, failStrategy); 92 cache.write(CACHE_NAME, this.url); 100 assertEquals(url, cache.load(CACHE_NAME, URL.class)); 104 return new CachedDependencyResolver(internalResolver, cache, cacheNamingStrategy, cacheValidationStrategy); 126 private static class CacheStub implements CachedDependencyResolver.Cache {
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
ImmutableList.h | 145 CacheTy Cache; 168 // Profile the new list to see if it already exists in our cache. 174 ListTy* L = Cache.FindNodeOrInsertPos(ID, InsertPos); 177 // The list does not exist in our cache. Create it. 182 // Insert the new list into the cache. 183 Cache.InsertNode(L, InsertPos);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
ImmutableList.h | 147 CacheTy Cache; 170 // Profile the new list to see if it already exists in our cache. 176 ListTy* L = Cache.FindNodeOrInsertPos(ID, InsertPos); 179 // The list does not exist in our cache. Create it. 184 // Insert the new list into the cache. 185 Cache.InsertNode(L, InsertPos);
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/ |
Ip4Route.c | 76 Allocate and initialize an IP4 route cache entry.
81 @param[in] Tag The tag from the caller. This marks all the cache
84 @return NULL if failed to allocate memory for the cache, other point
85 to the created route cache entry.
117 Free the route cache entry. It is reference counted.
119 @param RtCacheEntry The route cache entry to free.
136 Initialize an empty route cache table.
138 @param[in, out] RtCache The rotue cache table to initialize.
155 Clean up a route cache, that is free all the route cache
[all...] |
/external/autotest/server/site_tests/firmware_RecoveryCacheBootKeys/ |
firmware_RecoveryCacheBootKeys.py | 15 cache instead training memory every boot. 21 REBUILD_CACHE_MSG = "MRC: cache data 'RECOVERY_MRC_CACHE' needs update." 86 """Checks the firmware log to ensure that the recovery cache exists. 88 @return True if cache exists 96 """Checks the firmware log to ensure that the recovery cache was used 99 @return True if cache used 101 logging.info('Checking if cache was used.') 107 """Checks the firmware log to ensure that the recovery cache was rebuilt 110 @return True if cache rebuilt 112 logging.info('Checking if cache was rebuilt.' [all...] |
/external/cldr/tools/java/org/unicode/cldr/test/ |
SimpleTestCache.java | 16 import com.google.common.cache.Cache; 17 import com.google.common.cache.CacheBuilder; 33 private Cache<CheckCLDR.Options, TestResultBundle> cache = CacheBuilder.newBuilder().maximumSize(CLDRConfig.getInstance() field in class:SimpleTestCache 52 if (cache.asMap().isEmpty()) { 55 // Filter the cache to only keep the items where the locale matches 57 for (Options k : cache.asMap().keySet()) { 64 cache.invalidateAll(toRemove); 68 cache.invalidate(k) [all...] |
/external/llvm/lib/Transforms/ObjCARC/ |
PtrState.h | 172 bool InitBottomUp(ARCMDKindCache &Cache, Instruction *I); 198 bool MatchWithRelease(ARCMDKindCache &Cache, Instruction *Release);
|
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/ |
AndroidResponseCacheAdapter.java | 20 import com.squareup.okhttp.Cache; 35 * {@link CacheHolder} instead of a {@link Cache}. We want to keep the framework code that interacts 45 private final Cache okHttpCache; 50 // Avoid one level of dereferencing by storing the reference to the OkHttp cache for later. 56 * internal code to obtain the underlying OkHttp Cache object. 99 * this cache. This may be greater than the {@link #getMaxSize()} if a background 108 * Returns the maximum number of bytes that this cache should use to store 118 * written to the cache will be available the next time the cache is opened, 137 * cache. This may include conditional {@code GET} requests that wer [all...] |
/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...] |
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/ |
AndroidResponseCacheAdapter.java | 21 import com.android.okhttp.Cache; 36 * {@link CacheHolder} instead of a {@link Cache}. We want to keep the framework code that interacts 47 private final Cache okHttpCache; 52 // Avoid one level of dereferencing by storing the reference to the OkHttp cache for later. 58 * internal code to obtain the underlying OkHttp Cache object. 101 * this cache. This may be greater than the {@link #getMaxSize()} if a background 110 * Returns the maximum number of bytes that this cache should use to store 120 * written to the cache will be available the next time the cache is opened, 139 * cache. This may include conditional {@code GET} requests that wer [all...] |
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
InterferenceCache.h | 36 /// Entry - A cache entry containing interference information for all aliases 42 /// Tag - Cache tag is changed when any of the underlying LiveIntervalUnions 77 assert(!hasRefs() && "Cannot clear cache entry with references"); 108 // We don't keep a cache entry for every physical register, that would use too 109 // much memory. Instead, a fixed number of cache entries are used in a round- 120 // The actual cache entries. 129 /// init - Prepare cache for a new function. 137 /// Cursor - The primary query interface for the block interference cache. 169 void setPhysReg(InterferenceCache &Cache, unsigned PhysReg) { 174 setEntry(Cache.get(PhysReg)) [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
InterferenceCache.h | 44 /// Entry - A cache entry containing interference information for all aliases 50 /// Tag - Cache tag is changed when any of the underlying LiveIntervalUnions 105 assert(!hasRefs() && "Cannot clear cache entry with references"); 137 // We don't keep a cache entry for every physical register, that would use too 138 // much memory. Instead, a fixed number of cache entries are used in a round- 154 // The actual cache entries. 171 /// init - Prepare cache for a new function. 180 /// Cursor - The primary query interface for the block interference cache. 213 void setPhysReg(InterferenceCache &Cache, unsigned PhysReg) { 218 setEntry(Cache.get(PhysReg)) [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/ |
PtrState.h | 174 bool InitBottomUp(ARCMDKindCache &Cache, Instruction *I); 200 bool MatchWithRelease(ARCMDKindCache &Cache, Instruction *Release);
|
/external/volley/src/main/java/com/android/volley/ |
NetworkDispatcher.java | 31 * Network} interface. Responses are committed to cache, if eligible, using a specified {@link 32 * Cache} interface. Valid responses and errors are posted back to the caller via a {@link 41 /** The cache to write to. */ 42 private final Cache mCache; 54 * @param cache Cache interface to use for writing responses to cache 60 Cache cache, 64 mCache = cache; [all...] |
/external/volley/src/test/java/com/android/volley/toolbox/ |
RequestTest.java | 21 import com.android.volley.Cache; 55 assertNotNull(Request.class.getMethod("setCacheEntry", Cache.Entry.class));
|