Searched refs:cache (Results 51 - 75 of 1307) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/tests/
H A DResourceCacheTest.cpp37 // Set the cache limits so we can fit 10 "src" images and the
95 void setDeleteWhenDestroyed(GrResourceCache* cache, TestResource* resource) { argument
96 fCache = cache;
118 GrResourceCache cache(5, 30000);
120 // Add two resources with the same key that delete each other from the cache when destroyed.
123 cache.addResource(key, a);
124 cache.addResource(key, b);
126 a->setDeleteWhenDestroyed(&cache, b);
127 b->setDeleteWhenDestroyed(&cache, a);
133 cache
[all...]
H A DImageCacheTest.cpp44 static void test_cache(skiatest::Reporter* reporter, SkResourceCache& cache, bool testPurge) { argument
49 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value));
52 cache.add(SkNEW_ARGS(TestingRec, (key, i)));
54 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value));
62 cache.add(SkNEW_ARGS(TestingRec, (key, i)));
69 (void)cache.find(TestingKey(i), TestingRec::Visitor, &value);
72 cache.setTotalByteLimit(0);
87 SkResourceCache cache(defLimit);
88 test_cache(reporter, cache, true);
94 SkResourceCache cache(pool_factor
[all...]
H A DGpuLayerCacheTest.cpp18 static int NumLayers(GrLayerCache* cache) { argument
19 return cache->numLayers();
21 static void Purge(GrLayerCache* cache, uint32_t pictureID) { argument
22 cache->purge(pictureID);
26 // Add several layers to the cache
28 GrLayerCache* cache,
34 GrCachedLayer* layer = cache->findLayerOrCreate(picture.uniqueID(),
40 GrCachedLayer* temp = cache->findLayer(picture.uniqueID(), idOffset+i+1, idOffset+i+2,
44 REPORTER_ASSERT(reporter, TestingAccess::NumLayers(cache) == idOffset + i + 1);
55 cache
27 create_layers(skiatest::Reporter* reporter, GrLayerCache* cache, const SkPicture& picture, int numToAdd, int idOffset) argument
58 lock_layer(skiatest::Reporter* reporter, GrLayerCache* cache, GrCachedLayer* layer) argument
[all...]
/external/skia/tests/
H A DResourceCacheTest.cpp36 // Set the cache limits so we can fit 10 "src" images and the
93 void setDeleteWhenDestroyed(GrResourceCache* cache, TestResource* resource) { argument
94 fCache = cache;
116 GrResourceCache cache(5, 30000);
118 // Add two resources with the same key that delete each other from the cache when destroyed.
121 cache.addResource(key, a);
122 cache.addResource(key, b);
124 a->setDeleteWhenDestroyed(&cache, b);
125 b->setDeleteWhenDestroyed(&cache, a);
131 cache
[all...]
H A DImageCacheTest.cpp19 static void test_cache(skiatest::Reporter* reporter, SkScaledImageCache& cache, argument
33 SkScaledImageCache::ID* id = cache.findAndLock(bm[i], scale, scale, &tmp);
37 id = cache.addAndLock(bm[i], scale, scale, tmp);
41 SkScaledImageCache::ID* id2 = cache.findAndLock(bm[i], scale, scale,
47 cache.unlock(id2);
49 cache.unlock(id);
61 SkScaledImageCache::ID* id = cache.addAndLock(bm[0], incScale,
64 cache.unlock(id);
71 id = cache.findAndLock(bm[i], scale, scale, &tmp);
73 cache
[all...]
H A DHashCacheTest.cpp62 GrTHashTable<HashElement, HashKey, 4> cache; local
91 cache.insert(HashKey(i), &negHashElements[i]);
94 REPORTER_ASSERT(reporter, 10 == cache.count());
98 HashElement* found = cache.find(i);
102 // look for something not in the cache
104 HashElement* found = cache.find(10);
110 cache.insert(i, &posHashElements[i]);
113 REPORTER_ASSERT(reporter, 20 == cache.count());
119 HashElement* found = cache.find(0, findPos);
123 found = cache
[all...]
/external/elfutils/0.153/libdw/
H A Dfde.c87 intern_fde (Dwarf_CFI *cache, const Dwarf_FDE *entry) argument
90 struct dwarf_cie *cie = __libdw_find_cie (cache, entry->CIE_pointer);
103 if (unlikely (read_encoded_value (cache, cie->fde_encoding,
105 || unlikely (read_encoded_value (cache, cie->fde_encoding & 0x0f,
132 if (tsearch (fde, &cache->fde_tree, &compare_fde) == NULL)
144 __libdw_fde_by_offset (Dwarf_CFI *cache, Dwarf_Off offset) argument
148 int result = INTUSE(dwarf_next_cfi) (cache->e_ident,
149 &cache->data->d, CFI_IS_EH (cache),
163 struct dwarf_fde *fde = intern_fde (cache,
176 binary_search_fde(Dwarf_CFI *cache, Dwarf_Addr address) argument
239 __libdw_find_fde(Dwarf_CFI *cache, Dwarf_Addr address) argument
[all...]
H A Dframe-cache.c1 /* Frame cache handling.
81 __libdw_destroy_frame_cache (Dwarf_CFI *cache) argument
84 tdestroy (cache->fde_tree, free_fde);
85 tdestroy (cache->cie_tree, free_cie);
86 tdestroy (cache->expr_tree, free_expr);
/external/chromium_org/net/ssl/
H A Dssl_client_auth_cache_unittest.cc14 SSLClientAuthCache cache; local
34 EXPECT_FALSE(cache.Lookup(server1, &cached_cert));
37 cache.Add(server1, cert1.get());
39 EXPECT_TRUE(cache.Lookup(server1, &cached_cert));
43 cache.Add(server2, cert2.get());
45 EXPECT_TRUE(cache.Lookup(server1, &cached_cert));
48 EXPECT_TRUE(cache.Lookup(server2, &cached_cert));
52 cache.Add(server1, cert3.get());
54 EXPECT_TRUE(cache.Lookup(server1, &cached_cert));
57 EXPECT_TRUE(cache
80 SSLClientAuthCache cache; local
106 SSLClientAuthCache cache; local
142 SSLClientAuthCache cache; local
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/common/
H A Dxmlconfig.h61 /** \brief Option cache
98 /** \brief Initialize option cache from info and parse configuration files
102 void driParseConfigFiles (driOptionCache *cache, const driOptionCache *info,
108 /** \brief Destroy option cache
111 void driDestroyOptionCache (driOptionCache *cache);
114 GLboolean driCheckOption (const driOptionCache *cache, const char *name,
118 GLboolean driQueryOptionb (const driOptionCache *cache, const char *name);
120 GLint driQueryOptioni (const driOptionCache *cache, const char *name);
122 GLfloat driQueryOptionf (const driOptionCache *cache, const char *name);
/external/guava/guava-tests/test/com/google/common/cache/
H A DCacheRefreshTest.java15 package com.google.common.cache;
17 import static com.google.common.cache.TestingCacheLoaders.incrementingLoader;
20 import com.google.common.cache.TestingCacheLoaders.IncrementingLoader;
26 * Tests relating to automatic cache refreshing.
34 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder()
43 assertEquals(Integer.valueOf(i), cache.getUnchecked(i));
50 assertEquals(Integer.valueOf(0), cache.getUnchecked(0));
51 assertEquals(Integer.valueOf(1), cache.getUnchecked(1));
52 assertEquals(Integer.valueOf(2), cache.getUnchecked(2));
58 assertEquals(Integer.valueOf(1), cache
[all...]
H A DPopulatedCachesTest.java15 package com.google.common.cache;
17 import static com.google.common.cache.CacheTesting.checkEmpty;
18 import static com.google.common.cache.CacheTesting.checkValidState;
19 import static com.google.common.cache.TestingCacheLoaders.identityLoader;
27 import com.google.common.cache.CacheBuilderFactory.DurationSpec;
28 import com.google.common.cache.LocalCache.Strength;
58 for (LoadingCache<Object, Object> cache : caches()) {
60 List<Entry<Object, Object>> warmed = warmUp(cache);
61 assertEquals(WARMUP_SIZE, cache.size());
62 assertMapSize(cache
336 warmUp(LoadingCache<Object, Object> cache) argument
344 warmUp( LoadingCache<Object, Object> cache, int minimum, int maximum) argument
[all...]
H A DCacheExpirationTest.java15 package com.google.common.cache;
17 import static com.google.common.cache.TestingCacheLoaders.identityLoader;
18 import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener;
23 import com.google.common.cache.TestingCacheLoaders.IdentityLoader;
24 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
37 * Tests relating to cache expiration: make sure entries expire at the right times, make sure
53 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder()
58 checkExpiration(cache, loader, ticker, removalListener);
65 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder()
70 checkExpiration(cache, loade
73 checkExpiration(LoadingCache<String, Integer> cache, WatchedCreatorLoader loader, FakeTicker ticker, CountingRemovalListener<String, Integer> removalListener) argument
122 runExpirationTest(LoadingCache<String, Integer> cache, WatchedCreatorLoader loader, FakeTicker ticker, CountingRemovalListener<String, Integer> removalListener) argument
397 runRemovalScheduler(LoadingCache<String, Integer> cache, CountingRemovalListener<String, Integer> removalListener, WatchedCreatorLoader loader, FakeTicker ticker, String keyPrefix, long ttl) argument
443 getAll(LoadingCache<Integer, Integer> cache, List<Integer> keys) argument
[all...]
/external/mesa3d/src/mesa/drivers/dri/common/
H A Dxmlconfig.h61 /** \brief Option cache
98 /** \brief Initialize option cache from info and parse configuration files
102 void driParseConfigFiles (driOptionCache *cache, const driOptionCache *info,
108 /** \brief Destroy option cache
111 void driDestroyOptionCache (driOptionCache *cache);
114 GLboolean driCheckOption (const driOptionCache *cache, const char *name,
118 GLboolean driQueryOptionb (const driOptionCache *cache, const char *name);
120 GLint driQueryOptioni (const driOptionCache *cache, const char *name);
122 GLfloat driQueryOptionf (const driOptionCache *cache, const char *name);
/external/chromium_org/components/policy/core/common/cloud/
H A Dresource_cache_unittest.cc39 ResourceCache cache(temp_dir.path(),
44 EXPECT_FALSE(cache.Load(kKey1, kSubA, &data));
47 EXPECT_TRUE(cache.Store(kKey1, kSubA, kData0));
48 EXPECT_TRUE(cache.Load(kKey1, kSubA, &data));
52 EXPECT_TRUE(cache.Store(kKey1, kSubB, kData1));
55 EXPECT_TRUE(cache.Store(kKey2, kSubA, kData0));
56 EXPECT_TRUE(cache.Store(kKey2, kSubB, kData1));
57 EXPECT_TRUE(cache.Store(kKey3, kSubA, kData0));
58 EXPECT_TRUE(cache.Store(kKey3, kSubB, kData1));
62 cache
[all...]
/external/libunwind/src/x86_64/
H A DGtrace.c56 /* Free memory for a thread's trace cache. */
60 unw_trace_cache_t *cache = arg; local
61 if (++cache->dtor_count < PTHREAD_DESTRUCTOR_ITERATIONS)
64 pthread_setspecific(trace_cache_key, cache);
65 Debug(5, "delayed freeing cache %p (%zx to go)\n", cache,
66 PTHREAD_DESTRUCTOR_ITERATIONS - cache->dtor_count);
71 munmap (cache->frames, (1u << cache->log_size) * sizeof(unw_tdep_frame_t));
72 mempool_free (&trace_cache_pool, cache);
105 unw_trace_cache_t *cache; local
140 trace_cache_expand(unw_trace_cache_t *cache) argument
163 unw_trace_cache_t *cache; local
182 unw_trace_cache_t *cache; local
273 trace_lookup(unw_cursor_t *cursor, unw_trace_cache_t *cache, unw_word_t cfa, unw_word_t rip, unw_word_t rbp, unw_word_t rsp) argument
401 unw_trace_cache_t *cache; local
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dprog_cache.h49 struct gl_program_cache *cache);
52 _mesa_search_program_cache(struct gl_program_cache *cache,
57 struct gl_program_cache *cache,
63 struct gl_program_cache *cache,
/external/libnl/include/netlink/route/cls/
H A Dpolice.h16 #include <netlink/cache.h>
/external/libnl/src/lib/
H A Drule.c35 struct nl_cache *cache; local
38 if ((err = rtnl_rule_alloc_cache(sk, AF_UNSPEC, &cache)) < 0)
39 nl_cli_fatal(err, "Unable to allocate routing rule cache: %s\n",
42 nl_cache_mngt_provide(cache);
44 return cache;
/external/mesa3d/src/mesa/program/
H A Dprog_cache.h49 struct gl_program_cache *cache);
52 _mesa_search_program_cache(struct gl_program_cache *cache,
57 struct gl_program_cache *cache,
63 struct gl_program_cache *cache,
/external/zopfli/src/zopfli/
H A Dcache.c20 #include "cache.h"
36 that this cache value is not filled in yet. */
54 unsigned char* cache; local
60 cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3];
64 cache[j * 3] = i - 3;
65 cache[j * 3 + 1] = sublen[i] % 256;
66 cache[j * 3 + 2] = (sublen[i] >> 8) % 256;
74 cache[(ZOPFLI_CACHE_LENGTH - 1) * 3] = bestlength - 3;
87 unsigned char* cache; local
92 cache
109 unsigned char* cache; local
[all...]
/external/chromium_org/content/browser/gpu/
H A Dshader_disk_cache_unittest.cc52 scoped_refptr<ShaderDiskCache> cache = local
54 ASSERT_TRUE(cache.get() != NULL);
57 int rv = cache->SetAvailableCallback(available_cb.callback());
59 EXPECT_EQ(0, cache->Size());
61 cache->Cache(kCacheKey, kCacheValue);
64 rv = cache->SetCacheCompleteCallback(complete_cb.callback());
66 EXPECT_EQ(1, cache->Size());
70 rv = cache->Clear(time, time, clear_cb.callback());
72 EXPECT_EQ(0, cache->Size());
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
H A Dsvga_screen_cache.c53 * against the cache size limit, so view them as zero-sized.
87 * Search the cache for a surface that matches the key. If a match is
88 * found, remove it from the cache and return the surface pointer.
95 struct svga_host_surface_cache *cache = &svgascreen->cache; local
107 pipe_mutex_lock(cache->mutex);
109 curr = cache->bucket[bucket].next;
111 while (curr != &cache->bucket[bucket]) {
131 LIST_ADD(&entry->head, &cache->empty);
133 /* update the cache siz
168 struct svga_host_surface_cache *cache = &svgascreen->cache; local
205 struct svga_host_surface_cache *cache = &svgascreen->cache; local
300 struct svga_host_surface_cache *cache = &svgascreen->cache; local
341 struct svga_host_surface_cache *cache = &svgascreen->cache; local
366 struct svga_host_surface_cache *cache = &svgascreen->cache; local
[all...]
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_screen_cache.c53 * against the cache size limit, so view them as zero-sized.
87 * Search the cache for a surface that matches the key. If a match is
88 * found, remove it from the cache and return the surface pointer.
95 struct svga_host_surface_cache *cache = &svgascreen->cache; local
107 pipe_mutex_lock(cache->mutex);
109 curr = cache->bucket[bucket].next;
111 while (curr != &cache->bucket[bucket]) {
131 LIST_ADD(&entry->head, &cache->empty);
133 /* update the cache siz
168 struct svga_host_surface_cache *cache = &svgascreen->cache; local
205 struct svga_host_surface_cache *cache = &svgascreen->cache; local
300 struct svga_host_surface_cache *cache = &svgascreen->cache; local
341 struct svga_host_surface_cache *cache = &svgascreen->cache; local
366 struct svga_host_surface_cache *cache = &svgascreen->cache; local
[all...]
/external/e2fsprogs/lib/blkid/
H A Dblkid.h37 * 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...]

Completed in 511 milliseconds

1234567891011>>