/external/guava/guava/src/com/google/common/cache/ |
H A D | Weigher.java | 17 package com.google.common.cache; 22 * Calculates the weights of cache entries. 31 * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply
|
/external/icu/icu4c/source/test/intltest/ |
H A D | lrucachetest.cpp | 105 LRUCacheForTesting cache(3, "little", status); 107 cache.get("boo", ptr, status); 132 LRUCacheForTesting cache(3, "little", status); 137 LRUCacheForTesting cache(3, "little", status); 143 cache.get("foo", ptr1, status); 144 cache.get("bar", ptr2, status); 145 cache.get("baz", ptr3, status); 152 // cache itself also has a reference to "little" 159 cache.get("full", ptr4, status); 165 cache [all...] |
/external/libnl/include/netlink/route/cls/ |
H A D | cgroup.h | 16 #include <netlink/cache.h>
|
/external/libnl/include/netlink/route/sch/ |
H A D | cbq.h | 16 #include <netlink/cache.h>
|
/external/guava/guava-tests/test/com/google/common/cache/ |
H A D | CacheTesting.java | 15 package com.google.common.cache; 26 import com.google.common.cache.LocalCache.LocalLoadingCache; 27 import com.google.common.cache.LocalCache.ReferenceEntry; 28 import com.google.common.cache.LocalCache.Segment; 29 import com.google.common.cache.LocalCache.ValueReference; 64 static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) { argument 65 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key); 83 static <K, V> void simulateKeyReclamation(Cache<K, V> cache, K key) { argument 84 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key); 93 static <K, V> ReferenceEntry<K, V> getReferenceEntry(Cache<K, V> cache, argument 102 forceExpandSegment(Cache<K, V> cache, K key) argument 113 toLocalCache(Cache<K, V> cache) argument 125 hasLocalCache(Cache<?, ?> cache) argument 129 drainRecencyQueues(Cache<?, ?> cache) argument 147 drainReferenceQueues(Cache<?, ?> cache) argument 168 getTotalSegmentSize(Cache<?, ?> cache) argument 183 checkValidState(Cache<?, ?> cache) argument 213 checkExpiration(Cache<?, ?> cache) argument 274 checkEviction(Cache<?, ?> cache) argument 327 writeQueueSize(Cache<?, ?> cache) argument 341 accessQueueSize(Cache<?, ?> cache) argument 354 expirationQueueSize(Cache<?, ?> cache) argument 358 processPendingNotifications(Cache<?, ?> cache) argument 376 checkRecency(LoadingCache<Integer, Integer> cache, int maxSize, Receiver<ReferenceEntry<Integer, Integer>> operation) argument 408 expireEntries(Cache<?, ?> cache, long expiringTime, FakeTicker ticker) argument 440 checkEmpty(Cache<?, ?> cache) argument [all...] |
H A D | CacheLoadingTest.java | 15 package com.google.common.cache; 17 import static com.google.common.cache.TestingCacheLoaders.bulkLoader; 18 import static com.google.common.cache.TestingCacheLoaders.constantLoader; 19 import static com.google.common.cache.TestingCacheLoaders.errorLoader; 20 import static com.google.common.cache.TestingCacheLoaders.exceptionLoader; 21 import static com.google.common.cache.TestingCacheLoaders.identityLoader; 22 import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener; 27 import com.google.common.cache.CacheLoader.InvalidCacheLoadException; 28 import com.google.common.cache.TestingCacheLoaders.CountingLoader; 29 import com.google.common.cache 1979 doConcurrentGet(final LoadingCache<K, ?> cache, final K key, int nThreads, final CountDownLatch gettersStartedSignal) argument [all...] |
/external/pixman/pixman/ |
H A D | pixman-glyph.c | 95 lookup_glyph (pixman_glyph_cache_t *cache, argument 103 while ((g = cache->glyphs[idx++ & HASH_MASK])) 117 insert_glyph (pixman_glyph_cache_t *cache, argument 130 loc = &cache->glyphs[idx++ & HASH_MASK]; 134 cache->n_tombstones--; 135 cache->n_glyphs++; 141 remove_glyph (pixman_glyph_cache_t *cache, argument 147 while (cache->glyphs[idx & HASH_MASK] != glyph) 150 cache->glyphs[idx & HASH_MASK] = TOMBSTONE; 151 cache 167 clear_table(pixman_glyph_cache_t *cache) argument 188 pixman_glyph_cache_t *cache; local 204 pixman_glyph_cache_destroy(pixman_glyph_cache_t *cache) argument 214 pixman_glyph_cache_freeze(pixman_glyph_cache_t *cache) argument 220 pixman_glyph_cache_thaw(pixman_glyph_cache_t *cache) argument 244 pixman_glyph_cache_lookup(pixman_glyph_cache_t *cache, void *font_key, void *glyph_key) argument 252 pixman_glyph_cache_insert(pixman_glyph_cache_t *cache, void *font_key, void *glyph_key, int origin_x, int origin_y, pixman_image_t *image) argument 305 pixman_glyph_cache_remove(pixman_glyph_cache_t *cache, void *font_key, void *glyph_key) argument 320 pixman_glyph_get_extents(pixman_glyph_cache_t *cache, int n_glyphs, pixman_glyph_t *glyphs, pixman_box32_t *extents) argument 355 pixman_glyph_get_mask_format(pixman_glyph_cache_t *cache, int n_glyphs, const pixman_glyph_t *glyphs) argument 395 pixman_composite_glyphs_no_mask(pixman_op_t op, pixman_image_t *src, pixman_image_t *dest, int32_t src_x, int32_t src_y, int32_t dest_x, int32_t dest_y, pixman_glyph_cache_t *cache, int n_glyphs, const pixman_glyph_t *glyphs) argument 499 add_glyphs(pixman_glyph_cache_t *cache, pixman_image_t *dest, int off_x, int off_y, int n_glyphs, const pixman_glyph_t *glyphs) argument 634 pixman_composite_glyphs(pixman_op_t op, pixman_image_t *src, pixman_image_t *dest, pixman_format_code_t mask_format, int32_t src_x, int32_t src_y, int32_t mask_x, int32_t mask_y, int32_t dest_x, int32_t dest_y, int32_t width, int32_t height, pixman_glyph_cache_t *cache, int n_glyphs, const pixman_glyph_t *glyphs) argument [all...] |
H A D | pixman-implementation.c | 63 } cache [N_CACHED_FAST_PATHS]; member in struct:__anon28837 87 cache_t *cache; local 90 /* Check cache for fast paths */ 91 cache = PIXMAN_GET_THREAD_LOCAL (fast_path_cache); 95 const pixman_fast_path_t *info = &(cache->cache[i].fast_path); 111 *out_imp = cache->cache[i].imp; 112 *out_func = cache->cache[ [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
H A D | ChunkedOutputStream.java | 60 private byte[] cache; field in class:ChunkedOutputStream 79 this.cache = new byte[bufferSize]; 97 * Writes the cache out onto the underlying stream 103 this.out.write(this.cache, 0, this.cachePosition); 110 * Writes the cache and bufferToAppend to the underlying stream 119 this.out.write(this.cache, 0, this.cachePosition); 133 * Must be called to ensure the internal cache is flushed and the closing chunk is written. 149 this.cache[this.cachePosition] = (byte) b; 151 if (this.cachePosition == this.cache.length) flushCache(); 168 if (len >= this.cache [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/x509v3/ |
H A D | pcy_map.c | 66 /* Set policy mapping entries in cache. 74 X509_POLICY_CACHE *cache = x->policy_cache; local 94 data = policy_cache_find_data(cache, map->issuerDomainPolicy); 96 if (!data && !cache->anyPolicy) 103 cache->anyPolicy->flags 107 data->qualifier_set = cache->anyPolicy->qualifier_set; 111 if (!sk_X509_POLICY_DATA_push(cache->data, data))
|
/external/chromium_org/third_party/mesa/src/src/gallium/tests/unit/ |
H A D | u_cache_test.c | 72 struct util_cache * cache; local 78 printf("Testing cache size of %d with %d values.\n", cache_size, cache_count); 80 cache = util_cache_create(cache_test_hash, 86 * Retrieve a value from an empty cache. 90 value_out = (cache_test_value *) util_cache_get(cache, key); 96 * Repeatedly insert into and retrieve values from the cache. 104 util_cache_set(cache, key, value_in); 106 value_out = util_cache_get(cache, key); 113 * In debug builds, this will trigger a self-check by the cache of 114 * the distribution of hits in its internal cache entrie [all...] |
/external/mesa3d/src/gallium/tests/unit/ |
H A D | u_cache_test.c | 72 struct util_cache * cache; local 78 printf("Testing cache size of %d with %d values.\n", cache_size, cache_count); 80 cache = util_cache_create(cache_test_hash, 86 * Retrieve a value from an empty cache. 90 value_out = (cache_test_value *) util_cache_get(cache, key); 96 * Repeatedly insert into and retrieve values from the cache. 104 util_cache_set(cache, key, value_in); 106 value_out = util_cache_get(cache, key); 113 * In debug builds, this will trigger a self-check by the cache of 114 * the distribution of hits in its internal cache entrie [all...] |
/external/objenesis/main/src/org/objenesis/ |
H A D | ObjenesisBase.java | 35 /** Strategy cache. Key = Class, Value = InstantiatorStrategy */
36 protected Map cache;
field in class:ObjenesisBase 39 * Constructor allowing to pick a strategy and using cache
58 this.cache = useCache ? new HashMap() : null;
63 + (cache == null ? " without" : " with") + " caching";
85 if(cache == null) {
88 ObjectInstantiator instantiator = (ObjectInstantiator) cache.get(clazz.getName());
91 cache.put(clazz.getName(), instantiator);
|
/external/openssl/crypto/x509v3/ |
H A D | pcy_map.c | 65 /* Set policy mapping entries in cache. 73 X509_POLICY_CACHE *cache = x->policy_cache; local 93 data = policy_cache_find_data(cache, map->issuerDomainPolicy); 95 if (!data && !cache->anyPolicy) 102 cache->anyPolicy->flags 106 data->qualifier_set = cache->anyPolicy->qualifier_set; 110 if (!sk_X509_POLICY_DATA_push(cache->data, data))
|
/external/libunwind/src/ia64/ |
H A D | Gscript.c | 77 flush_script_cache (struct ia64_script_cache *cache) argument 81 cache->lru_head = IA64_UNW_CACHE_SIZE - 1; 82 cache->lru_tail = 0; 87 cache->buckets[i].lru_chain = (i - 1); 88 cache->buckets[i].coll_chain = -1; 89 cache->buckets[i].ip = 0; 92 cache->hash[i] = -1; 98 struct ia64_script_cache *cache = &as->global_cache; local 105 if (!spin_trylock_irqsave (&cache->busy, *saved_maskp)) 110 cache 133 put_script_cache(unw_addr_space_t as, struct ia64_script_cache *cache, intrmask_t *saved_maskp) argument 152 script_lookup(struct ia64_script_cache *cache, struct cursor *c) argument 194 script_new(struct ia64_script_cache *cache, unw_word_t ip) argument 642 struct ia64_script_cache *cache = NULL; local 719 struct ia64_script_cache *cache; local 751 struct ia64_script_cache *cache; local [all...] |
/external/chromium_org/content/browser/appcache/ |
H A D | appcache_host.cc | 21 void FillCacheInfo(const AppCache* cache, argument 27 if (!cache) 30 info->cache_id = cache->cache_id(); 32 if (!cache->is_complete()) 35 DCHECK(cache->owning_group()); 37 info->group_id = cache->owning_group()->group_id(); 38 info->last_update_time = cache->update_time(); 39 info->creation_time = cache->owning_group()->creation_time(); 40 info->size = cache->cache_size(); 97 // 6.9.6 The application cache selectio 318 AppCache* cache = associated_cache(); local 357 OnCacheLoaded(AppCache* cache, int64 cache_id) argument 367 FinishCacheSelection( AppCache *cache, AppCacheGroup* group) argument 517 AssociateIncompleteCache(AppCache* cache, const GURL& manifest_url) argument 524 AssociateCompleteCache(AppCache* cache) argument 529 AssociateCacheHelper(AppCache* cache, const GURL& manifest_url) argument [all...] |
/external/e2fsprogs/lib/blkid/ |
H A D | devname.c | 43 * Find a dev struct in the cache by device name, if available. 48 blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, int flags) argument 53 if (!cache || !devname) 56 list_for_each(p, &cache->bic_devs) { 62 printf("found devname %s in cache\n", tmp->bid_name)); 75 dev->bid_cache = cache; 76 list_add_tail(&dev->bid_devs, &cache->bic_devs); 77 cache->bic_flags |= BLKID_BIC_FL_CHANGED; 81 dev = blkid_verify(cache, dev); 86 * cache fo 182 probe_one(blkid_cache cache, const char *ptname, dev_t devno, int pri, int only_if_new) argument 300 lvm_probe_all(blkid_cache cache, int only_if_new) argument 365 evms_probe_all(blkid_cache cache, int only_if_new) argument 394 probe_all(blkid_cache cache, int only_if_new) argument 512 blkid_probe_all(blkid_cache cache) argument 524 blkid_probe_all_new(blkid_cache cache) argument 538 blkid_cache cache = NULL; local [all...] |
H A D | blkid.h.in | 37 * in the cache. 43 * cache or by probing the device. 50 /* cache.c */ 51 extern void blkid_put_cache(blkid_cache cache); 52 extern int blkid_get_cache(blkid_cache *cache, const char *filename); 53 extern void blkid_gc_cache(blkid_cache cache); 58 extern blkid_dev_iterate blkid_dev_iterate_begin(blkid_cache cache); 68 extern int blkid_probe_all(blkid_cache cache); 69 extern int blkid_probe_all_new(blkid_cache cache); 70 extern blkid_dev blkid_get_dev(blkid_cache cache, cons [all...] |
H A D | save.c | 2 * save.c - write the cache struct to disk 55 * Write out the cache struct to the cache file on disk. 57 int blkid_flush_cache(blkid_cache cache) argument 67 if (!cache) 70 if (list_empty(&cache->bic_devs) || 71 !(cache->bic_flags & BLKID_BIC_FL_CHANGED)) { 72 DBG(DEBUG_SAVE, printf("skipping cache file write\n")); 76 filename = cache->bic_filename ? cache 163 blkid_cache cache = NULL; local [all...] |
/external/skia/src/core/ |
H A D | SkGlyphCache.cpp | 494 SkGlyphCache* cache; local 498 for (cache = globals.internalGetHead(); cache != NULL; cache = cache->fNext) { 499 if (proc(cache, context)) { 511 - call a fontscaler (which might call into the cache) 524 SkGlyphCache* cache; local 529 for (cache = globals.internalGetHead(); cache ! 572 AttachCache(SkGlyphCache* cache) argument 581 attachCacheToHead(SkGlyphCache* cache) argument 592 SkGlyphCache* cache = fHead; local 631 SkGlyphCache* cache = this->internalGetTail(); local 655 internalAttachCacheToHead(SkGlyphCache* cache) argument 667 internalDetachCache(SkGlyphCache* cache) argument [all...] |
/external/chromium_org/chrome/test/chromedriver/js/ |
H A D | call_function.js | 38 * A cache which maps IDs <-> cached objects for the purpose of identifying 51 * Stores a given item in the cache and returns a unique ID. 53 * @param {!Object} item The item to store in the cache. 77 var error = new Error('not in cache'); 84 * Clears stale items from the cache. 124 * Returns the global object cache for the page. 125 * @param {Document=} opt_doc The document whose cache to retrieve. Defaults to 127 * @return {!Cache} The page's object cache. 168 * @param {Cache} cache The cache t [all...] |
/external/chromium_org/chrome/browser/profiles/ |
H A D | profile_list_desktop_browsertest.cc | 37 scoped_ptr<AvatarMenu> CreateAvatarMenu(ProfileInfoCache* cache) { argument 38 return scoped_ptr<AvatarMenu>(new AvatarMenu(cache, NULL, browser())); 63 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 64 size_t index = cache.GetIndexOfProfileWithPath(current_profile->GetPath()); 66 scoped_ptr<AvatarMenu> menu = CreateAvatarMenu(&cache); 76 EXPECT_FALSE(cache.ProfileIsSigninRequiredAtIndex(index)); 80 EXPECT_TRUE(cache.ProfileIsSigninRequiredAtIndex(index)); 106 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 108 base::FilePath user_dir = cache.GetUserDataDir(); 121 ASSERT_EQ(cache [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
H A D | LruCache.java | 7 * A general purpose size limited cache that evicts items using an LRU algorithm. By default every item is assumed to 14 private final LinkedHashMap<T, Y> cache = new LinkedHashMap<T, Y>(100, 0.75f, true); field in class:LruCache 43 return cache.containsKey(key); 47 return cache.get(key); 57 final Y result = cache.put(key, item); 66 final Y value = cache.remove(key); 80 last = cache.entrySet().iterator().next(); 84 cache.remove(key);
|
/external/ltrace/ |
H A D | prototype.h | 143 /* A cache of prototype libraries. Can load prototype libraries on 149 * That would mean that the cache needs ABI tagging--each ABI should 150 * have a separate prototype cache, because the types will potentially 151 * differ between the ABI's. protolib cache would then naturally be 163 /* For tracking uses of cache during cache's own 170 int protolib_cache_init(struct protolib_cache *cache, 174 void protolib_cache_destroy(struct protolib_cache *cache); 178 * If none has been loaded yet, load a new protolib, cache and return 201 struct protolib *protolib_cache_load(struct protolib_cache *cache, [all...] |
/external/chromium_org/net/tools/crash_cache/ |
H A D | crash_cache.cc | 6 // cache unit tests (DiskCacheTest,CacheBackend_Recover*). This program only 8 // on release builds of the cache. 130 void FlushQueue(disk_cache::Backend* cache) { argument 133 reinterpret_cast<disk_cache::BackendImpl*>(cache)->FlushQueueForTest( 140 disk_cache::Backend** cache, 149 *cache = backend; 150 return (cb->GetResult(rv) == net::OK && !(*cache)->GetEntryCount()); 153 // Generates the files for an empty and one item cache. 157 disk_cache::Backend* cache; local 158 if (!CreateCache(path, cache_thread, &cache, 138 CreateCache(const base::FilePath& path, base::Thread* thread, disk_cache::Backend** cache, net::TestCompletionCallback* cb) argument 194 disk_cache::Backend* cache; local 233 disk_cache::Backend* cache; local 269 disk_cache::BackendImpl* cache = new disk_cache::BackendImpl( local [all...] |