HomeSort by relevance Sort by last modified time
    Searched refs:cache (Results 1 - 25 of 1877) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/third_party/tcmalloc/chromium/src/tests/
packed-cache_test.cc 35 #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.GetOrDefault(0, 1), 17)
    [all...]
  /external/chromium_org/third_party/tcmalloc/vendor/src/tests/
packed-cache_test.cc 35 #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.GetOrDefault(0, 1), 17)
    [all...]
  /external/iptables/
autogen.sh 4 rm -Rf autom4te*.cache;
  /system/core/libnl_2/
cache.c 19 #include "netlink/cache.h"
22 void nl_cache_free(struct nl_cache *cache)
27 void nl_cache_clear(struct nl_cache *cache)
  /external/chromium_org/chrome/browser/net/
connect_interceptor_unittest.cc 14 // 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.WasRecentlySeen(ssl_url))
    [all...]
  /external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
u_cache.c 30 * 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->size = size
    [all...]
u_cache.h 30 * 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/
u_cache.c 30 * 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->size = size
    [all...]
  /system/core/libutils/tests/
LruCache_test.cpp 117 LruCache<SimpleKey, StringValue> cache(100);
119 EXPECT_EQ(NULL, cache.get(0));
120 EXPECT_EQ(0u, cache.size());
124 LruCache<SimpleKey, StringValue> cache(100);
126 cache.put(1, "one");
127 cache.put(2, "two");
128 cache.put(3, "three");
129 EXPECT_STREQ("one", cache.get(1));
130 EXPECT_STREQ("two", cache.get(2));
131 EXPECT_STREQ("three", cache.get(3))
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
LruCacheTest.java 34 LruCache<String, String> cache = new LruCache<String, String>(3); local
35 assertStatistics(cache);
37 assertEquals(null, cache.put("a", "A"));
39 assertStatistics(cache);
40 assertHit(cache, "a", "A");
41 assertSnapshot(cache, "a", "A");
43 assertEquals(null, cache.put("b", "B"));
45 assertStatistics(cache);
46 assertHit(cache, "a", "A");
47 assertHit(cache, "b", "B")
83 LruCache<String, String> cache = newCreatingCache(); local
107 LruCache<String, String> cache = newCreatingCache(); local
113 LruCache<String, String> cache = newCreatingCache(); local
127 LruCache<String, String> cache = new LruCache<String, String>(3); local
136 LruCache<String, String> cache = new LruCache<String, String>(3); local
145 LruCache<String, String> cache = new LruCache<String, String>(3); local
163 LruCache<String, String> cache = new LruCache<String, String>(1); local
171 LruCache<String, String> cache = newRemovalLogCache(log); local
188 LruCache<String, String> cache = newRemovalLogCache(log); local
199 LruCache<String, String> cache = new LruCache<String, String>(10) { local
215 LruCache<String, String> cache = new LruCache<String, String>(4) { local
244 LruCache<String, int[]> cache = new LruCache<String, int[]>(4) { local
266 LruCache<String, String> cache = new LruCache<String, String>(4) { local
285 LruCache<String, String> cache = new LruCache<String, String>(10) { local
303 LruCache<String, String> cache = newRemovalLogCache(log); local
313 LruCache<String, String> cache = new LruCache<String, String>(10) { local
326 LruCache<String, String> cache = new LruCache<String, String>(10) { local
338 LruCache<String, String> cache = new LruCache<String, String>(10); local
346 LruCache<String, String> cache = new LruCache<String, String>(10); local
356 LruCache<String, String> cache = newRemovalLogCache(log); local
364 LruCache<String, String> cache = newRemovalLogCache(log); local
371 LruCache<String, String> cache = new LruCache<String, String>(3) { local
388 LruCache<String, String> cache = new LruCache<String, String>(3) { local
405 LruCache<String, String> cache = new LruCache<String, String>(3) { local
427 LruCache<String, Integer> cache = new LruCache<String, Integer>(3) { local
    [all...]
  /external/chromium/chrome/browser/notifications/
notifications_prefs_cache_unittest.cc 13 scoped_refptr<NotificationsPrefsCache> cache(new NotificationsPrefsCache());
23 cache->SetCacheAllowedOrigins(allowed_origins);
24 cache->SetCacheDeniedOrigins(denied_origins);
25 cache->SetCacheDefaultContentSetting(CONTENT_SETTING_DEFAULT);
28 cache->set_is_initialized(true);
34 cache->CacheAllowedOrigin(GURL("http://allowed2.com"));
35 cache->CacheDeniedOrigin(GURL("http://denied2.com"));
37 EXPECT_EQ(cache->HasPermission(GURL("http://allowed.com")),
39 EXPECT_EQ(cache->HasPermission(GURL("http://allowed2.com")),
42 EXPECT_EQ(cache->HasPermission(GURL("http://denied.com"))
    [all...]
  /external/chromium_org/net/base/
expiring_cache_unittest.cc 25 std::less<base::TimeTicks> > Cache;
39 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)
    [all...]
  /external/guava/guava-tests/test/com/google/common/cache/
CacheEvictionTest.java 15 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 eviction: what does and doesn't count toward maximumSize, what happen
46 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() local
56 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() local
66 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
81 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
98 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
117 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
136 final LoadingCache<Integer, Integer> cache = local
149 final LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
166 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
198 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
241 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
264 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local
    [all...]
  /external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
brw_state_cache.c 34 * 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,
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->n_items)
324 struct brw_cache *cache = &brw->cache; local
    [all...]
  /external/mesa3d/src/mesa/drivers/dri/i965/
brw_state_cache.c 34 * 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,
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->n_items)
324 struct brw_cache *cache = &brw->cache; local
    [all...]
  /bionic/libc/kernel/arch-mips/asm/
dma-mapping.h 22 #include <asm/cache.h>
  /development/ndk/platforms/android-9/arch-mips/include/asm/
dma-mapping.h 22 #include <asm/cache.h>
  /external/chromium_org/android_webview/tools/
known_issues.py 13 "cache" of the output of webview_licenses.GetIncompatibleDirectories() for the
  /external/guava/guava/src/com/google/common/cache/
package-info.java 20 * <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;
  /prebuilts/ndk/8/platforms/android-14/arch-mips/usr/include/asm/
dma-mapping.h 22 #include <asm/cache.h>
  /prebuilts/ndk/8/platforms/android-9/arch-mips/usr/include/asm/
dma-mapping.h 22 #include <asm/cache.h>
  /prebuilts/ndk/9/platforms/android-14/arch-mips/usr/include/asm/
dma-mapping.h 22 #include <asm/cache.h>
  /prebuilts/ndk/9/platforms/android-18/arch-mips/usr/include/asm/
dma-mapping.h 22 #include <asm/cache.h>
  /prebuilts/ndk/9/platforms/android-9/arch-mips/usr/include/asm/
dma-mapping.h 22 #include <asm/cache.h>
  /external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/
CharCache.java 24 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;

Completed in 1136 milliseconds

1 2 3 4 5 6 7 8 91011>>