/external/chromium_org/chrome/browser/android/thumbnail/ |
H A D | scoped_ptr_expiring_cache_unittest.cc | 43 TestScopedPtrExpiringCache cache(MAX_CACHE_SIZE); 44 EXPECT_EQ(MAX_CACHE_SIZE, cache.MaximumCacheSize()); 45 EXPECT_EQ(0u, cache.size()); 48 cache.Put(i, MockObject::Create(i).Pass()); 51 EXPECT_EQ(MAX_CACHE_SIZE, cache.size()); 55 // One cache entry should have been evicted. 56 cache.Put(next_key, MockObject::Create(next_key).Pass()); 57 EXPECT_EQ(MAX_CACHE_SIZE, cache.size()); 61 if (cache.Get(i)) { 62 EXPECT_EQ(GenerateValue(i), cache [all...] |
/external/chromium_org/net/dns/ |
H A D | host_cache_unittest.cc | 30 HostCache cache(kMaxCacheEntries); 39 EXPECT_EQ(0U, cache.size()); 42 EXPECT_FALSE(cache.Lookup(key1, now)); 43 cache.Set(key1, entry, now, kTTL); 44 EXPECT_TRUE(cache.Lookup(key1, now)); 45 EXPECT_TRUE(cache.Lookup(key1, now)->error == entry.error); 47 EXPECT_EQ(1U, cache.size()); 53 EXPECT_FALSE(cache.Lookup(key2, now)); 54 cache.Set(key2, entry, now, kTTL); 55 EXPECT_TRUE(cache [all...] |
/external/chromium_org/chrome/common/ |
H A D | instant_restricted_id_cache_unittest.cc | 35 InstantRestrictedIDCache<TestData> cache(7); 36 EXPECT_EQ(0u, cache.cache_.size()); 37 EXPECT_EQ(0, cache.last_restricted_id_); 44 cache.AddItems(input1); 45 EXPECT_EQ(3u, cache.cache_.size()); 46 EXPECT_EQ(3, cache.last_restricted_id_); 49 cache.GetCurrentItems(&output); 57 EXPECT_FALSE(cache.GetItemWithRestrictedID(4, &t)); 58 EXPECT_TRUE(cache.GetItemWithRestrictedID(3, &t)); 65 cache [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/translate/ |
H A D | translate_cache.c | 42 struct translate_cache *cache = MALLOC_STRUCT(translate_cache); local 43 if (cache == NULL) { 47 cache->hash = cso_hash_create(); 48 return cache; 52 static INLINE void delete_translates(struct translate_cache *cache) argument 54 struct cso_hash *hash = cache->hash; 65 void translate_cache_destroy(struct translate_cache *cache) argument 67 delete_translates(cache); 68 cso_hash_delete(cache->hash); 69 FREE(cache); 90 translate_cache_find(struct translate_cache *cache, struct translate_key *key) argument [all...] |
H A D | translate_cache.h | 29 * Translate cache. 30 * Simply used to cache created translates. Avoids unecessary creation of 42 void translate_cache_destroy(struct translate_cache *cache); 46 * If such a structure doesn't exist in the cache the function 47 * will automatically create it, insert it in the cache and 51 struct translate *translate_cache_find(struct translate_cache *cache,
|
/external/chromium_org/third_party/opus/src/celt/ |
H A D | rate.h | 57 const unsigned char *cache; local 60 cache = m->cache.bits + m->cache.index[LM*m->nbEBands+band]; 63 hi = cache[0]; 69 if ((int)cache[mid] >= bits) 74 if (bits- (lo == 0 ? -1 : (int)cache[lo]) <= (int)cache[hi]-bits) 82 const unsigned char *cache; local 85 cache [all...] |
/external/libopus/celt/ |
H A D | rate.h | 57 const unsigned char *cache; local 60 cache = m->cache.bits + m->cache.index[LM*m->nbEBands+band]; 63 hi = cache[0]; 69 if ((int)cache[mid] >= bits) 74 if (bits- (lo == 0 ? -1 : (int)cache[lo]) <= (int)cache[hi]-bits) 82 const unsigned char *cache; local 85 cache [all...] |
/external/mesa3d/src/gallium/auxiliary/translate/ |
H A D | translate_cache.c | 42 struct translate_cache *cache = MALLOC_STRUCT(translate_cache); local 43 if (cache == NULL) { 47 cache->hash = cso_hash_create(); 48 return cache; 52 static INLINE void delete_translates(struct translate_cache *cache) argument 54 struct cso_hash *hash = cache->hash; 65 void translate_cache_destroy(struct translate_cache *cache) argument 67 delete_translates(cache); 68 cso_hash_delete(cache->hash); 69 FREE(cache); 90 translate_cache_find(struct translate_cache *cache, struct translate_key *key) argument [all...] |
H A D | translate_cache.h | 29 * Translate cache. 30 * Simply used to cache created translates. Avoids unecessary creation of 42 void translate_cache_destroy(struct translate_cache *cache); 46 * If such a structure doesn't exist in the cache the function 47 * will automatically create it, insert it in the cache and 51 struct translate *translate_cache_find(struct translate_cache *cache,
|
/external/chromium_org/components/omnibox/ |
H A D | answers_cache_unittest.cc | 11 AnswersCache cache(1); 12 EXPECT_TRUE(cache.empty()); 16 AnswersCache cache(1); 17 cache.UpdateRecentAnswers(base::ASCIIToUTF16("weather los angeles"), 19 EXPECT_FALSE(cache.empty()); 23 AnswersCache cache(1); 27 cache.UpdateRecentAnswers(full_query_text, query_type); 30 AnswersQueryData data = cache.GetTopAnswerEntry(full_query_text.substr(0, 8)); 35 data = cache.GetTopAnswerEntry(full_query_text.substr(1, 8)); 39 data = cache [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
H A D | CacheManualTest.java | 15 package com.google.common.cache; 30 Cache<Object, Object> cache = CacheBuilder.newBuilder().build(); 31 CacheStats stats = cache.stats(); 40 assertNull(cache.getIfPresent(one)); 41 stats = cache.stats(); 46 assertNull(cache.asMap().get(one)); 47 assertFalse(cache.asMap().containsKey(one)); 48 assertFalse(cache.asMap().containsValue(two)); 50 assertNull(cache.getIfPresent(two)); 51 stats = cache [all...] |
H A D | EmptyCachesTest.java | 15 package com.google.common.cache; 17 import static com.google.common.cache.CacheTesting.checkEmpty; 18 import static com.google.common.cache.TestingCacheLoaders.identityLoader; 24 import com.google.common.cache.CacheBuilderFactory.DurationSpec; 25 import com.google.common.cache.LocalCache.Strength; 45 for (LoadingCache<Object, Object> cache : caches()) { 46 checkEmpty(cache); 51 for (LoadingCache<Object, Object> cache : caches()) { 52 cache.getUnchecked("a"); 53 cache 380 warmUp(LoadingCache<Object, Object> cache, int minimum, int maximum) argument [all...] |
H A D | CacheReferencesTest.java | 15 package com.google.common.cache; 17 import static com.google.common.cache.LocalCache.Strength.STRONG; 18 import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener; 23 import com.google.common.cache.LocalCache.Strength; 24 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener; 64 for (LoadingCache<Key, String> cache : caches()) { 65 // maintain strong refs so these won't be collected, regardless of cache's key/value strength 68 assertSame(value, cache.getUnchecked(key)); 69 assertTrue(cache.asMap().containsKey(key)); 70 assertTrue(cache 152 assertCleanup(LoadingCache<Integer, String> cache, CountingRemovalListener<Integer, String> removalListener) argument [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/x509v3/ |
H A D | pcy_cache.c | 69 /* Set cache entry according to CertificatePolicies extension. 78 X509_POLICY_CACHE *cache = x->policy_cache; local 83 cache->data = sk_X509_POLICY_DATA_new(policy_data_cmp); 84 if (!cache->data) 97 if (cache->anyPolicy) 102 cache->anyPolicy = data; 104 else if (sk_X509_POLICY_DATA_find(cache->data, NULL, data)) 109 else if (!sk_X509_POLICY_DATA_push(cache->data, data)) 122 sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free); 123 cache 131 X509_POLICY_CACHE *cache; local 235 policy_cache_free(X509_POLICY_CACHE *cache) argument 260 policy_cache_find_data(const X509_POLICY_CACHE *cache, const ASN1_OBJECT *id) argument [all...] |
/external/openssl/crypto/x509v3/ |
H A D | pcy_cache.c | 69 /* Set cache entry according to CertificatePolicies extension. 78 X509_POLICY_CACHE *cache = x->policy_cache; local 83 cache->data = sk_X509_POLICY_DATA_new(policy_data_cmp); 84 if (!cache->data) 97 if (cache->anyPolicy) 102 cache->anyPolicy = data; 104 else if (sk_X509_POLICY_DATA_find(cache->data, data) != -1) 109 else if (!sk_X509_POLICY_DATA_push(cache->data, data)) 122 sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free); 123 cache 131 X509_POLICY_CACHE *cache; local 235 policy_cache_free(X509_POLICY_CACHE *cache) argument 260 policy_cache_find_data(const X509_POLICY_CACHE *cache, const ASN1_OBJECT *id) argument [all...] |
/external/chromium_org/third_party/freetype/src/cache/ |
H A D | ftccback.h | 32 FTC_Cache cache ); 37 FTC_Cache cache ); 41 FTC_Cache cache ); 46 FTC_Cache cache ); 51 FTC_Cache cache ); 55 FTC_Cache cache ); 60 FTC_Cache cache, 67 FTC_Cache cache, 72 ftc_gcache_init( FTC_Cache cache ); variable 75 ftc_gcache_done( FTC_Cache cache ); variable 79 ftc_cache_init( FTC_Cache cache ); variable 82 ftc_cache_done( FTC_Cache cache ); variable [all...] |
H A D | ftcglyph.c | 5 /* FreeType Glyph Image (FT_Glyph) cache (body). */ 29 /* create a new chunk node, setting its cache index and ref count */ 43 FTC_Cache cache ) 50 FTC_FAMILY_FREE( family, cache ); 56 FTC_Cache cache ) 61 FTC_GNode_UnselectFamily( gnode, cache ); 68 FTC_Cache cache, 73 FT_UNUSED( cache ); 88 FTC_Cache cache, 92 cache, list_change 121 FTC_GCache cache = (FTC_GCache)ftccache; local 155 FTC_GCache cache = (FTC_GCache)ftccache; local [all...] |
/external/freetype/src/cache/ |
H A D | ftccback.h | 32 FTC_Cache cache ); 37 FTC_Cache cache ); 41 FTC_Cache cache ); 46 FTC_Cache cache ); 51 FTC_Cache cache ); 55 FTC_Cache cache ); 60 FTC_Cache cache, 67 FTC_Cache cache, 72 ftc_gcache_init( FTC_Cache cache ); variable 75 ftc_gcache_done( FTC_Cache cache ); variable 79 ftc_cache_init( FTC_Cache cache ); variable 82 ftc_cache_done( FTC_Cache cache ); variable [all...] |
H A D | ftcglyph.c | 5 /* FreeType Glyph Image (FT_Glyph) cache (body). */ 29 /* create a new chunk node, setting its cache index and ref count */ 43 FTC_Cache cache ) 50 FTC_FAMILY_FREE( family, cache ); 56 FTC_Cache cache ) 61 FTC_GNode_UnselectFamily( gnode, cache ); 68 FTC_Cache cache, 73 FT_UNUSED( cache ); 88 FTC_Cache cache, 92 cache, list_change 121 FTC_GCache cache = (FTC_GCache)ftccache; local 155 FTC_GCache cache = (FTC_GCache)ftccache; local [all...] |
/external/e2fsprogs/lib/blkid/ |
H A D | cache.c | 2 * cache.c - allocation/initialization/free routines for cache 64 static blkid_debug_dump_cache(int mask, blkid_cache cache) 68 if (!cache) { 69 printf("cache: NULL\n"); 73 printf("cache: time = %lu\n", cache->bic_time); 74 printf("cache: flags = 0x%08X\n", cache->bic_flags); 76 list_for_each(p, &cache 85 blkid_cache cache; local 120 blkid_put_cache(blkid_cache cache) argument 159 blkid_gc_cache(blkid_cache cache) argument 187 blkid_cache cache = NULL; local [all...] |
/external/chromium_org/net/http/ |
H A D | http_cache_unittest.cc | 89 explicit DeleteCacheCompletionCallback(MockHttpCache* cache) argument 90 : cache_(cache), 122 void RunTransactionTestBase(net::HttpCache* cache, argument 131 // write to the cache 134 int rv = cache->CreateTransaction(net::DEFAULT_PRIORITY, &trans); 166 void RunTransactionTestWithRequest(net::HttpCache* cache, argument 170 RunTransactionTestBase(cache, trans_info, request, response_info, 174 void RunTransactionTestAndGetTiming(net::HttpCache* cache, argument 178 RunTransactionTestBase(cache, trans_info, MockHttpRequest(trans_info), 182 void RunTransactionTest(net::HttpCache* cache, argument 187 RunTransactionTestWithResponseInfo(net::HttpCache* cache, const MockTransaction& trans_info, net::HttpResponseInfo* response) argument 194 RunTransactionTestWithResponseInfoAndGetTiming( net::HttpCache* cache, const MockTransaction& trans_info, net::HttpResponseInfo* response, const net::BoundNetLog& log, net::LoadTimingInfo* load_timing_info) argument 204 RunTransactionTestWithResponse(net::HttpCache* cache, const MockTransaction& trans_info, std::string* response_headers) argument 212 RunTransactionTestWithResponseAndGetTiming( net::HttpCache* cache, const MockTransaction& trans_info, std::string* response_headers, const net::BoundNetLog& log, net::LoadTimingInfo* load_timing_info) argument 444 CreateTruncatedEntry(std::string raw_headers, MockHttpCache* cache) argument 542 MockHttpCache cache; local 560 MockHttpCache cache; local 575 MockHttpCache cache; local 628 MockHttpCache cache; local 649 MockHttpCache cache; local 671 MockHttpCache cache; local 708 MockHttpCache cache; local 743 MockHttpCache cache; local 815 MockHttpCache cache; local 840 MockHttpCache cache; local 857 MockHttpCache cache; local 872 MockHttpCache cache; local 894 MockHttpCache cache; local 923 MockHttpCache cache; local 954 MockHttpCache cache; local 993 MockHttpCache cache; local 1023 MockHttpCache cache; local 1058 MockHttpCache cache; local 1074 MockHttpCache cache; local 1094 MockHttpCache cache; local 1140 MockHttpCache cache; local 1157 MockHttpCache cache; local 1174 MockHttpCache cache; local 1201 MockHttpCache cache; local 1230 MockHttpCache cache; local 1250 MockHttpCache cache; local 1270 MockHttpCache cache; local 1336 MockHttpCache cache; local 1468 MockHttpCache cache; local 1518 MockHttpCache cache; local 1578 MockHttpCache cache; local 1634 MockHttpCache cache; local 1658 MockHttpCache cache; local 1705 MockHttpCache cache; local 1730 MockHttpCache cache; local 1931 MockHttpCache* cache = new MockHttpCache(factory); local 1969 MockHttpCache cache; local 2004 MockHttpCache cache; local 2077 MockHttpCache cache; local 2110 MockHttpCache cache; local 2144 MockHttpCache cache; local 2185 MockHttpCache cache; local 2208 MockHttpCache cache; local 2244 MockHttpCache cache; local 2288 MockHttpCache cache; local 2477 MockHttpCache cache; local 2521 MockHttpCache cache; local 2707 MockHttpCache cache; local 2733 MockHttpCache cache; local 2743 MockHttpCache cache; local 2766 MockHttpCache cache; local 2798 MockHttpCache cache; local 2822 MockHttpCache cache; local 2850 MockHttpCache cache; local 2889 MockHttpCache cache; local 2949 MockHttpCache cache; local 2987 MockHttpCache cache; local 3013 MockHttpCache cache; local 3038 MockHttpCache cache; local 3060 MockHttpCache cache; local 3083 MockHttpCache cache; local 3104 MockHttpCache cache; local 3133 MockHttpCache cache; local 3166 MockHttpCache cache; local 3204 MockHttpCache cache; local 3244 MockHttpCache cache; local 3268 MockHttpCache cache; local 3290 MockHttpCache cache; local 3325 MockHttpCache cache; local 3363 MockHttpCache cache; local 3401 MockHttpCache cache; local 3423 MockHttpCache cache; local 3458 MockHttpCache cache; local 3490 MockHttpCache cache; local 3523 MockHttpCache cache; local 3550 MockHttpCache cache; local 3582 MockHttpCache cache; local 3616 MockHttpCache cache; local 3640 MockHttpCache cache; local 3658 MockHttpCache cache; local 3689 MockHttpCache cache; local 3718 MockHttpCache cache; local 3750 MockHttpCache cache; local 3811 MockHttpCache cache; local 3855 MockHttpCache cache; local 3882 MockHttpCache cache; local 3941 MockHttpCache cache; local 3990 MockHttpCache cache; local 4022 MockHttpCache cache; local 4052 MockHttpCache cache; local 4088 MockHttpCache cache; local 4114 MockHttpCache cache; local 4149 MockHttpCache cache; local 4187 MockHttpCache cache; local 4215 MockHttpCache cache; local 4253 MockHttpCache cache; local 4304 MockHttpCache cache; local 4350 MockHttpCache cache; local 4397 MockHttpCache cache; local 4439 MockHttpCache cache; local 4482 MockHttpCache cache; local 4552 MockHttpCache cache; local 4592 MockHttpCache cache; local 4625 MockHttpCache cache; local 4662 MockHttpCache cache; local 4707 MockHttpCache cache; local 4766 MockHttpCache cache; local 4794 MockHttpCache cache; local 4823 MockHttpCache cache; local 4917 MockHttpCache cache; local 4939 MockHttpCache cache; local 4966 MockHttpCache cache; local 5006 MockHttpCache cache; local 5044 MockHttpCache cache; local 5096 MockHttpCache cache; local 5126 MockHttpCache cache; local 5162 MockHttpCache cache; local 5206 MockHttpCache cache; local 5268 MockHttpCache cache; local 5307 MockHttpCache cache; local 5353 MockHttpCache cache; local 5399 MockHttpCache cache; local 5458 MockHttpCache cache; local 5495 MockHttpCache cache; local 5532 MockHttpCache cache; local 5582 MockHttpCache cache; local 5621 MockHttpCache cache; local 5672 MockHttpCache cache; local 5697 MockHttpCache cache; local 5735 MockHttpCache cache; local 5753 MockHttpCache cache; local 5829 MockHttpCache cache; local 5856 MockHttpCache cache; local 5882 MockHttpCache cache; local 5909 MockHttpCache cache; local 5937 MockHttpCache cache; local 5964 MockHttpCache cache; local 5990 MockHttpCache* cache = new MockHttpCache; local 6001 MockHttpCache cache; local 6025 MockHttpCache cache; local 6095 MockHttpCache cache; local 6136 MockHttpCache cache; local 6171 MockHttpCache cache; local 6235 MockHttpCache cache; local 6269 MockHttpCache cache; local 6298 MockHttpCache cache; local 6336 MockHttpCache cache; local 6376 MockHttpCache cache; local 6411 MockHttpCache cache; local 6456 MockHttpCache cache; local 6510 MockHttpCache cache; local 6531 MockHttpCache cache; local 6555 MockHttpCache cache; local 6596 MockHttpCache cache; local 6623 MockHttpCache cache; local 6666 RunTransactionAndGetReceivedBytes( MockHttpCache& cache, const MockTransaction& trans_info) argument 6682 MockHttpCache cache; local 6693 MockHttpCache cache; local 6706 MockHttpCache cache; local 6730 MockHttpCache cache; local 6772 MockHttpCache cache; local 6804 MockHttpCache cache; local 6829 MockHttpCache cache; local [all...] |
/external/chromium_org/chrome/browser/profiles/ |
H A D | avatar_menu_desktop.cc | 18 ProfileInfoCache& cache = local 20 size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 27 if (cache.IsUsingGAIAPictureOfProfileAtIndex(index)) { 28 const gfx::Image* gaia_image = cache.GetGAIAPictureOfProfileAtIndex(index); 37 const size_t icon_index = cache.GetAvatarIconIndexOfProfileAtIndex(index);
|
/external/chromium_org/net/ftp/ |
H A D | ftp_auth_cache_unittest.cc | 34 FtpAuthCache cache; local 40 EXPECT_TRUE(cache.Lookup(origin1) == NULL); 43 cache.Add(origin1, net::AuthCredentials(kUsername1, kPassword1)); 44 FtpAuthCache::Entry* entry1 = cache.Lookup(origin1); 51 cache.Add(origin2, net::AuthCredentials(kUsername2, kPassword2)); 52 FtpAuthCache::Entry* entry2 = cache.Lookup(origin2); 59 EXPECT_EQ(entry1, cache.Lookup(origin1)); 62 cache.Add(origin1, net::AuthCredentials(kUsername3, kPassword3)); 63 FtpAuthCache::Entry* entry3 = cache.Lookup(origin1); 70 cache 81 FtpAuthCache cache; local 97 FtpAuthCache cache; local 123 FtpAuthCache cache; local 138 FtpAuthCache cache; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nouveau/ |
H A D | nouveau_mm.c | 38 struct nouveau_mman *cache; member in struct:mm_slab 86 mm_bucket_by_order(struct nouveau_mman *cache, int order) argument 90 return &cache->bucket[MAX2(order, MM_MIN_ORDER) - MM_MIN_ORDER]; 94 mm_bucket_by_size(struct nouveau_mman *cache, unsigned size) argument 96 return mm_bucket_by_order(cache, mm_get_order(size)); 114 mm_slab_new(struct nouveau_mman *cache, int chunk_order) argument 131 ret = nouveau_bo_new(cache->dev, cache->domain, 0, size, &cache->config, 140 slab->cache 157 nouveau_mm_allocate(struct nouveau_mman *cache, uint32_t size, struct nouveau_bo **bo, uint32_t *offset) argument 239 struct nouveau_mman *cache = MALLOC_STRUCT(nouveau_mman); local 272 nouveau_mm_destroy(struct nouveau_mman *cache) argument [all...] |
/external/mesa3d/src/gallium/drivers/nouveau/ |
H A D | nouveau_mm.c | 38 struct nouveau_mman *cache; member in struct:mm_slab 86 mm_bucket_by_order(struct nouveau_mman *cache, int order) argument 90 return &cache->bucket[MAX2(order, MM_MIN_ORDER) - MM_MIN_ORDER]; 94 mm_bucket_by_size(struct nouveau_mman *cache, unsigned size) argument 96 return mm_bucket_by_order(cache, mm_get_order(size)); 114 mm_slab_new(struct nouveau_mman *cache, int chunk_order) argument 131 ret = nouveau_bo_new(cache->dev, cache->domain, 0, size, &cache->config, 140 slab->cache 157 nouveau_mm_allocate(struct nouveau_mman *cache, uint32_t size, struct nouveau_bo **bo, uint32_t *offset) argument 239 struct nouveau_mman *cache = MALLOC_STRUCT(nouveau_mman); local 272 nouveau_mm_destroy(struct nouveau_mman *cache) argument [all...] |