Searched refs:cache (Results 1 - 25 of 1307) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dpacked-cache_test.cc35 #include "packed-cache-inl.h"
41 PackedCache<32, uint32> cache(0);
42 CHECK_EQ(cache.GetOrDefault(0, 1), 0);
43 cache.Put(0, 17);
44 CHECK(cache.Has(0));
45 CHECK_EQ(cache.GetOrDefault(0, 1), 17);
46 cache.Put(19, 99);
47 CHECK(cache.Has(0) && cache.Has(19));
48 CHECK_EQ(cache
[all...]
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dpacked-cache_test.cc35 #include "packed-cache-inl.h"
41 PackedCache<32, uint32> cache(0);
42 CHECK_EQ(cache.GetOrDefault(0, 1), 0);
43 cache.Put(0, 17);
44 CHECK(cache.Has(0));
45 CHECK_EQ(cache.GetOrDefault(0, 1), 17);
46 cache.Put(19, 99);
47 CHECK(cache.Has(0) && cache.Has(19));
48 CHECK_EQ(cache
[all...]
/external/elfutils/0.153/libdw/
H A Ddwarf_cfi_end.c59 dwarf_cfi_end (cache)
60 Dwarf_CFI *cache;
62 if (cache != NULL)
64 __libdw_destroy_frame_cache (cache);
65 free (cache);
H A Ddwarf_cfi_addrframe.c57 dwarf_cfi_addrframe (cache, address, frame)
58 Dwarf_CFI *cache;
63 if (cache == NULL)
66 struct dwarf_fde *fde = __libdw_find_fde (cache, address);
70 int error = __libdw_frame_at_address (cache, fde, address, frame);
H A Dencoded-value.h93 __libdw_cfi_read_address_inc (const Dwarf_CFI *cache, argument
97 width = width ?: cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
99 if (cache->dbg != NULL)
100 return __libdw_read_address_inc (cache->dbg, IDX_debug_frame,
107 *ret = read_4ubyte_unaligned_inc (cache, *addrp);
109 *ret = read_8ubyte_unaligned_inc (cache, *addrp);
114 read_encoded_value (const Dwarf_CFI *cache, uint8_t encoding, const uint8_t **p, argument
123 *result = (cache->frame_vaddr
124 + (*p - (const uint8_t *) cache->data->d.d_buf));
128 *result = cache
[all...]
/external/iptables/
H A Dautogen.sh4 rm -Rf autom4te*.cache;
/external/libnl/
H A Dautogen.sh4 rm -Rf autom4te.cache;
/external/chromium_org/chrome/browser/net/
H A Dconnect_interceptor_unittest.cc14 // Creat a cache that has a long expiration so that we can test basic recall.
15 ConnectInterceptor::TimedCache cache(base::TimeDelta::FromHours(1));
19 EXPECT_FALSE(cache.WasRecentlySeen(url));
20 EXPECT_FALSE(cache.WasRecentlySeen(ssl_url));
22 cache.SetRecentlySeen(url);
24 EXPECT_TRUE(cache.WasRecentlySeen(url));
25 EXPECT_FALSE(cache.WasRecentlySeen(ssl_url));
27 cache.SetRecentlySeen(ssl_url);
29 EXPECT_TRUE(cache.WasRecentlySeen(url));
30 EXPECT_TRUE(cache
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_cache.c30 * Improved cache implementation.
85 ensure_sanity(const struct util_cache *cache);
95 struct util_cache *cache; local
97 cache = CALLOC_STRUCT(util_cache);
98 if(!cache)
101 cache->hash = hash;
102 cache->compare = compare;
103 cache->destroy = destroy;
105 make_empty_list(&cache->lru);
108 cache
122 util_cache_entry_get(struct util_cache *cache, uint32_t hash, const void *key) argument
159 util_cache_entry_destroy(struct util_cache *cache, struct util_cache_entry *entry) argument
181 util_cache_set(struct util_cache *cache, void *key, void *value) argument
217 util_cache_get(struct util_cache *cache, const void *key) argument
239 util_cache_clear(struct util_cache *cache) argument
259 util_cache_destroy(struct util_cache *cache) argument
288 util_cache_remove(struct util_cache *cache, const void *key) argument
312 ensure_sanity(const struct util_cache *cache) argument
[all...]
H A Du_cache.h30 * Simple cache.
48 * Least Recently Used (LRU) cache.
54 * Create a cache.
68 util_cache_set(struct util_cache *cache,
73 util_cache_get(struct util_cache *cache,
77 util_cache_clear(struct util_cache *cache);
80 util_cache_destroy(struct util_cache *cache);
83 util_cache_remove(struct util_cache *cache,
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_cache.c30 * Improved cache implementation.
85 ensure_sanity(const struct util_cache *cache);
95 struct util_cache *cache; local
97 cache = CALLOC_STRUCT(util_cache);
98 if(!cache)
101 cache->hash = hash;
102 cache->compare = compare;
103 cache->destroy = destroy;
105 make_empty_list(&cache->lru);
108 cache
122 util_cache_entry_get(struct util_cache *cache, uint32_t hash, const void *key) argument
159 util_cache_entry_destroy(struct util_cache *cache, struct util_cache_entry *entry) argument
181 util_cache_set(struct util_cache *cache, void *key, void *value) argument
217 util_cache_get(struct util_cache *cache, const void *key) argument
239 util_cache_clear(struct util_cache *cache) argument
259 util_cache_destroy(struct util_cache *cache) argument
288 util_cache_remove(struct util_cache *cache, const void *key) argument
312 ensure_sanity(const struct util_cache *cache) argument
[all...]
H A Du_cache.h30 * Simple cache.
48 * Least Recently Used (LRU) cache.
54 * Create a cache.
68 util_cache_set(struct util_cache *cache,
73 util_cache_get(struct util_cache *cache,
77 util_cache_clear(struct util_cache *cache);
80 util_cache_destroy(struct util_cache *cache);
83 util_cache_remove(struct util_cache *cache,
/external/libnl/lib/
H A Dcache.c2 * lib/cache.c Caching Module
14 * @defgroup cache Cache
26 * 2) destroy old cache +----------- pp_cb ---------|---+
45 #include <netlink/cache.h>
55 * Return the number of items in the cache
56 * @arg cache cache handle
58 int nl_cache_nitems(struct nl_cache *cache) argument
60 return cache->c_nitems;
64 * Return the number of items matching a filter in the cache
68 nl_cache_nitems_filter(struct nl_cache *cache, struct nl_object *filter) argument
94 nl_cache_is_empty(struct nl_cache *cache) argument
103 nl_cache_get_ops(struct nl_cache *cache) argument
112 nl_cache_get_first(struct nl_cache *cache) argument
125 nl_cache_get_last(struct nl_cache *cache) argument
175 struct nl_cache *cache; local
192 struct nl_cache *cache; local
215 struct nl_cache *cache; local
237 struct nl_cache *cache; local
266 nl_cache_clear(struct nl_cache *cache) argument
284 nl_cache_free(struct nl_cache *cache) argument
301 __cache_add(struct nl_cache *cache, struct nl_object *obj) argument
324 nl_cache_add(struct nl_cache *cache, struct nl_object *obj) argument
353 nl_cache_move(struct nl_cache *cache, struct nl_object *obj) argument
380 struct nl_cache *cache = obj->ce_cache; local
405 nl_cache_search(struct nl_cache *cache, struct nl_object *needle) argument
439 nl_cache_request_full_dump(struct nl_sock *sk, struct nl_cache *cache) argument
464 __cache_pickup(struct nl_sock *sk, struct nl_cache *cache, struct nl_parser_param *param) argument
509 nl_cache_pickup(struct nl_sock *sk, struct nl_cache *cache) argument
519 cache_include(struct nl_cache *cache, struct nl_object *obj, struct nl_msgtype *type, change_func_t cb, void *data) argument
557 nl_cache_include(struct nl_cache *cache, struct nl_object *obj, change_func_t change_cb, void *data) argument
581 nl_cache_resync(struct nl_sock *sk, struct nl_cache *cache, change_func_t change_cb, void *data) argument
667 nl_cache_parse_and_add(struct nl_cache *cache, struct nl_msg *msg) argument
687 nl_cache_refill(struct nl_sock *sk, struct nl_cache *cache) argument
713 nl_cache_mark_all(struct nl_cache *cache) argument
738 nl_cache_dump(struct nl_cache *cache, struct nl_dump_params *params) argument
752 nl_cache_dump_filter(struct nl_cache *cache, struct nl_dump_params *params, struct nl_object *filter) argument
798 nl_cache_foreach(struct nl_cache *cache, void (*cb)(struct nl_object *, void *), void *arg) argument
815 nl_cache_foreach_filter(struct nl_cache *cache, struct nl_object *filter, void (*cb)(struct nl_object *, void *), void *arg) argument
[all...]
/external/chromium_org/net/base/
H A Dexpiring_cache_unittest.cc39 Cache cache(kMaxCacheEntries);
43 EXPECT_EQ(0U, cache.size());
46 EXPECT_FALSE(cache.Get("entry1", now));
47 cache.Put("entry1", "test1", now, now + kTTL);
48 EXPECT_THAT(cache.Get("entry1", now), Pointee(StrEq("test1")));
49 EXPECT_EQ(1U, cache.size());
55 EXPECT_FALSE(cache.Get("entry2", now));
56 cache.Put("entry2", "test2", now, now + kTTL);
57 EXPECT_THAT(cache.Get("entry2", now), Pointee(StrEq("test2")));
58 EXPECT_EQ(2U, cache
[all...]
/external/guava/guava-tests/test/com/google/common/cache/
H A DCacheEvictionTest.java15 package com.google.common.cache;
17 import static com.google.common.cache.TestingCacheLoaders.identityLoader;
18 import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener;
19 import static com.google.common.cache.TestingWeighers.constantWeigher;
20 import static com.google.common.cache.TestingWeighers.intKeyWeigher;
24 import com.google.common.cache.CacheTesting.Receiver;
25 import com.google.common.cache.LocalCache.ReferenceEntry;
26 import com.google.common.cache.TestingCacheLoaders.IdentityLoader;
27 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
35 * Tests relating to cache evictio
288 getAll(LoadingCache<Integer, Integer> cache, List<Integer> keys) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
H A Dbrw_state_cache.c34 * This file implements a simple static state cache for 965. The
38 * the cache may not have relocations (pointers to other BOs) in them.
43 * Replacement is not implemented. Instead, when the cache gets too
44 * big we throw out all of the cache data and let it get regenerated.
82 search_cache(struct brw_cache *cache, GLuint hash, argument
90 for (c = cache->items[hash % cache->size]; c; c = c->next)
93 fprintf(stderr, "bucket %d/%d = %d/%d items\n", hash % cache->size,
94 cache->size, bucketcount, cache
107 rehash(struct brw_cache *cache) argument
133 brw_search_cache(struct brw_cache *cache, enum brw_cache_id cache_id, const void *key, GLuint key_size, uint32_t *inout_offset, void *out_aux) argument
165 brw_cache_new_bo(struct brw_cache *cache, uint32_t new_size) argument
195 brw_try_upload_using_copy(struct brw_cache *cache, struct brw_cache_item *result_item, const void *data, const void *aux) argument
234 brw_upload_item_data(struct brw_cache *cache, struct brw_cache_item *item, const void *data) argument
262 brw_upload_cache(struct brw_cache *cache, enum brw_cache_id cache_id, const void *key, GLuint key_size, const void *data, GLuint data_size, const void *aux, GLuint aux_size, uint32_t *out_offset, void *out_aux) argument
324 struct brw_cache *cache = &brw->cache; local
339 brw_clear_cache(struct brw_context *brw, struct brw_cache *cache) argument
387 brw_destroy_cache(struct brw_context *brw, struct brw_cache *cache) argument
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_state_cache.c34 * This file implements a simple static state cache for 965. The
38 * the cache may not have relocations (pointers to other BOs) in them.
43 * Replacement is not implemented. Instead, when the cache gets too
44 * big we throw out all of the cache data and let it get regenerated.
82 search_cache(struct brw_cache *cache, GLuint hash, argument
90 for (c = cache->items[hash % cache->size]; c; c = c->next)
93 fprintf(stderr, "bucket %d/%d = %d/%d items\n", hash % cache->size,
94 cache->size, bucketcount, cache
107 rehash(struct brw_cache *cache) argument
133 brw_search_cache(struct brw_cache *cache, enum brw_cache_id cache_id, const void *key, GLuint key_size, uint32_t *inout_offset, void *out_aux) argument
165 brw_cache_new_bo(struct brw_cache *cache, uint32_t new_size) argument
195 brw_try_upload_using_copy(struct brw_cache *cache, struct brw_cache_item *result_item, const void *data, const void *aux) argument
234 brw_upload_item_data(struct brw_cache *cache, struct brw_cache_item *item, const void *data) argument
262 brw_upload_cache(struct brw_cache *cache, enum brw_cache_id cache_id, const void *key, GLuint key_size, const void *data, GLuint data_size, const void *aux, GLuint aux_size, uint32_t *out_offset, void *out_aux) argument
324 struct brw_cache *cache = &brw->cache; local
339 brw_clear_cache(struct brw_context *brw, struct brw_cache *cache) argument
387 brw_destroy_cache(struct brw_context *brw, struct brw_cache *cache) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebCache.cpp52 MemoryCache* cache = memoryCache(); local
53 if (cache)
54 cache->setCapacities(static_cast<unsigned>(minDeadCapacity), static_cast<unsigned>(maxDeadCapacity), static_cast<unsigned>(capacity));
59 MemoryCache* cache = memoryCache(); local
60 if (cache)
61 cache->evictResources();
68 MemoryCache* cache = memoryCache(); local
69 if (cache) {
70 result->minDeadCapacity = cache->minDeadCapacity();
71 result->maxDeadCapacity = cache
81 MemoryCache* cache = memoryCache(); local
[all...]
/external/guava/guava/src/com/google/common/cache/
H A Dpackage-info.java20 * <p>The core interface used to represent caches is {@link com.google.common.cache.Cache}.
22 * {@link com.google.common.cache.CacheBuilder}, with cache entries being loaded by
23 * {@link com.google.common.cache.CacheLoader}. Statistics about cache performance are exposed using
24 * {@link com.google.common.cache.CacheStats}.
32 package com.google.common.cache;
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/
H A DCharCache.java24 private char[] cache; field in class:CharCache
28 cache = new char[capacity];
33 int available = cache.length - pos;
35 System.arraycopy(chars, 0, cache, pos, toWrite);
40 return new String(cache, 0, pos);
48 if (pos < cache.length - 1) {
49 cache[pos] = c;
/external/chromium_org/third_party/freetype/src/cache/
H A Dftccache.c5 /* The FreeType internal cache interface (body). */
87 /* get a top bucket for specified hash from cache,
88 * body for FTC_NODE__TOP_FOR_HASH( cache, hash )
91 ftc_get_top_node_for_hash( FTC_Cache cache, argument
98 idx = (FT_UInt)( hash & cache->mask );
99 if ( idx < cache->p )
100 idx = (FT_UInt)( hash & ( 2 * cache->mask + 1 ) );
101 pnode = cache->buckets + idx;
113 ftc_cache_resize( FTC_Cache cache )
118 FT_UFast p = cache
276 FTC_Cache cache; local
416 ftc_cache_add( FTC_Cache cache, FT_PtrDist hash, FTC_Node node ) argument
564 FTC_Cache_RemoveFaceID( FTC_Cache cache, FTC_FaceID face_id ) argument
[all...]
/external/freetype/src/cache/
H A Dftccache.c5 /* The FreeType internal cache interface (body). */
87 /* get a top bucket for specified hash from cache,
88 * body for FTC_NODE__TOP_FOR_HASH( cache, hash )
91 ftc_get_top_node_for_hash( FTC_Cache cache, argument
98 idx = (FT_UInt)( hash & cache->mask );
99 if ( idx < cache->p )
100 idx = (FT_UInt)( hash & ( 2 * cache->mask + 1 ) );
101 pnode = cache->buckets + idx;
113 ftc_cache_resize( FTC_Cache cache )
118 FT_UFast p = cache
276 FTC_Cache cache; local
416 ftc_cache_add( FTC_Cache cache, FT_PtrDist hash, FTC_Node node ) argument
564 FTC_Cache_RemoveFaceID( FTC_Cache cache, FTC_FaceID face_id ) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dprog_cache.c82 rehash(struct gl_program_cache *cache) argument
88 cache->last = NULL;
90 size = cache->size * 3;
94 for (i = 0; i < cache->size; i++)
95 for (c = cache->items[i]; c; c = next) {
101 free(cache->items);
102 cache->items = items;
103 cache->size = size;
108 clear_cache(struct gl_context *ctx, struct gl_program_cache *cache, argument
114 cache
141 struct gl_program_cache *cache = CALLOC_STRUCT(gl_program_cache); local
156 _mesa_delete_program_cache(struct gl_context *ctx, struct gl_program_cache *cache) argument
164 _mesa_delete_shader_cache(struct gl_context *ctx, struct gl_program_cache *cache) argument
174 _mesa_search_program_cache(struct gl_program_cache *cache, const void *key, GLuint keysize) argument
198 _mesa_program_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_program *program) argument
226 _mesa_shader_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_shader_program *program) argument
[all...]
/external/mesa3d/src/mesa/program/
H A Dprog_cache.c82 rehash(struct gl_program_cache *cache) argument
88 cache->last = NULL;
90 size = cache->size * 3;
94 for (i = 0; i < cache->size; i++)
95 for (c = cache->items[i]; c; c = next) {
101 free(cache->items);
102 cache->items = items;
103 cache->size = size;
108 clear_cache(struct gl_context *ctx, struct gl_program_cache *cache, argument
114 cache
141 struct gl_program_cache *cache = CALLOC_STRUCT(gl_program_cache); local
156 _mesa_delete_program_cache(struct gl_context *ctx, struct gl_program_cache *cache) argument
164 _mesa_delete_shader_cache(struct gl_context *ctx, struct gl_program_cache *cache) argument
174 _mesa_search_program_cache(struct gl_program_cache *cache, const void *key, GLuint keysize) argument
198 _mesa_program_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_program *program) argument
226 _mesa_shader_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_shader_program *program) argument
[all...]
/external/chromium_org/base/containers/
H A Dmru_cache_unittest.cc37 Cache cache(Cache::NO_AUTO_EVICT);
42 EXPECT_TRUE(cache.Get(0) == cache.end());
43 EXPECT_TRUE(cache.Peek(0) == cache.end());
48 Cache::iterator inserted_item = cache.Put(kItem1Key, item1);
49 EXPECT_EQ(1U, cache.size());
53 Cache::iterator found = cache.Get(kItem1Key);
54 EXPECT_TRUE(inserted_item == cache.begin());
55 EXPECT_TRUE(found != cache
[all...]

Completed in 627 milliseconds

1234567891011>>