/external/libnl/lib/ |
D | cache.c | 2 * lib/cache.c Caching Module 14 * @defgroup cache Cache 17 * Cache Management | | Type Specific Cache Operations 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) in nl_cache_nitems() argument 60 return cache->c_nitems; in nl_cache_nitems() 64 * Return the number of items matching a filter in the cache [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderGwtTest.java | 17 package com.google.common.cache; 57 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testLoader() local 69 cache.put(0, 10); in testLoader() 71 assertEquals(Integer.valueOf(10), cache.get(0, loader)); in testLoader() 72 assertEquals(Integer.valueOf(1), cache.get(20, loader)); in testLoader() 73 assertEquals(Integer.valueOf(2), cache.get(34, loader)); in testLoader() 75 cache.invalidate(0); in testLoader() 76 assertEquals(Integer.valueOf(3), cache.get(0, loader)); in testLoader() 78 cache.put(0, 10); in testLoader() 79 cache.invalidateAll(); in testLoader() [all …]
|
D | 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 happens [all …]
|
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; 47 for (LoadingCache<Object, Object> cache : caches()) { in testEmpty() 48 checkEmpty(cache); in testEmpty() 53 for (LoadingCache<Object, Object> cache : caches()) { in testInvalidate_empty() 54 cache.getUnchecked("a"); in testInvalidate_empty() 55 cache.getUnchecked("b"); in testInvalidate_empty() [all …]
|
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; 28 import com.google.common.cache.CacheLoader.InvalidCacheLoadException; 29 import com.google.common.cache.TestingCacheLoaders.CountingLoader; 30 import com.google.common.cache.TestingCacheLoaders.IdentityLoader; [all …]
|
D | CacheTesting.java | 15 package com.google.common.cache; 27 import com.google.common.cache.LocalCache.LocalLoadingCache; 28 import com.google.common.cache.LocalCache.ReferenceEntry; 29 import com.google.common.cache.LocalCache.Segment; 30 import com.google.common.cache.LocalCache.ValueReference; 52 * A collection of utilities for {@link Cache} testing. 59 * Poke into the Cache internals to simulate garbage collection of the value associated with the 65 static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) { in simulateValueReclamation() argument 66 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key); in simulateValueReclamation() 79 * Poke into the Cache internals to simulate garbage collection of the given key. This assumes [all …]
|
D | PopulatedCachesTest.java | 15 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; 25 import com.google.common.cache.CacheBuilderFactory.DurationSpec; 26 import com.google.common.cache.LocalCache.Strength; 57 for (LoadingCache<Object, Object> cache : caches()) { in testSize_populated() 59 List<Entry<Object, Object>> warmed = warmUp(cache); in testSize_populated() 60 assertEquals(WARMUP_SIZE, cache.size()); in testSize_populated() 61 assertMapSize(cache.asMap(), WARMUP_SIZE); in testSize_populated() [all …]
|
D | CacheManualTest.java | 15 package com.google.common.cache; 30 Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build(); in testGetIfPresent() local 31 CacheStats stats = cache.stats(); in testGetIfPresent() 40 assertNull(cache.getIfPresent(one)); in testGetIfPresent() 41 stats = cache.stats(); in testGetIfPresent() 46 assertNull(cache.asMap().get(one)); in testGetIfPresent() 47 assertFalse(cache.asMap().containsKey(one)); in testGetIfPresent() 48 assertFalse(cache.asMap().containsValue(two)); in testGetIfPresent() 50 assertNull(cache.getIfPresent(two)); in testGetIfPresent() 51 stats = cache.stats(); in testGetIfPresent() [all …]
|
/external/v8/test/cctest/ |
D | test-asm-validator.cc | 12 #include "src/type-cache.h" 20 #define FUNC_I_TYPE Bounds(Type::Function(cache.kAsmSigned, zone)) 21 #define FUNC_F_TYPE Bounds(Type::Function(cache.kAsmFloat, zone)) 22 #define FUNC_D_TYPE Bounds(Type::Function(cache.kAsmDouble, zone)) 24 Bounds(Type::Function(cache.kAsmDouble, cache.kAsmDouble, zone)) 26 Bounds(Type::Function(cache.kAsmFloat, Type::Number(zone), zone)) 28 Bounds(Type::Function(cache.kAsmSigned, cache.kAsmInt, zone)) 30 Bounds(Type::Function(cache.kAsmDouble, cache.kAsmInt, cache.kAsmInt, zone)) 32 Bounds(Type::Function(cache.kAsmSigned, cache.kAsmInt, cache.kAsmInt, zone)) 34 Bounds(Type::Function(cache.kAsmDouble, cache.kAsmDouble, cache.kAsmDouble, \ [all …]
|
/external/squashfs-tools/squashfs-tools/ |
D | caches-queues-lists.c | 148 /* Called with the cache mutex held */ 265 /* define cache hash tables */ 268 /* Called with the cache mutex held */ 269 INSERT_HASH_TABLE(cache, struct cache, CALCULATE_CACHE_HASH, index, hash) 271 /* Called with the cache mutex held */ 272 REMOVE_HASH_TABLE(cache, struct cache, CALCULATE_CACHE_HASH, index, hash); 274 /* define cache free list */ 276 /* Called with the cache mutex held */ 279 /* Called with the cache mutex held */ in INSERT_LIST() 283 struct cache *cache_init(int buffer_size, int max_buffers, int noshrink_lookup, in INSERT_LIST() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_cache.c | 30 * Improved cache implementation. 85 ensure_sanity(const struct util_cache *cache); 95 struct util_cache *cache; in util_cache_create() local 97 cache = CALLOC_STRUCT(util_cache); in util_cache_create() 98 if(!cache) in util_cache_create() 101 cache->hash = hash; in util_cache_create() 102 cache->compare = compare; in util_cache_create() 103 cache->destroy = destroy; in util_cache_create() 105 make_empty_list(&cache->lru); in util_cache_create() 108 cache->size = size; in util_cache_create() [all …]
|
/external/freetype/src/cache/ |
D | ftccache.c | 5 /* The FreeType internal cache interface (body). */ 42 /***** CACHE NODE DEFINITIONS *****/ 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, in ftc_get_top_node_for_hash() argument 98 idx = hash & cache->mask; in ftc_get_top_node_for_hash() 99 if ( idx < cache->p ) in ftc_get_top_node_for_hash() 100 idx = hash & ( 2 * cache->mask + 1 ); in ftc_get_top_node_for_hash() 101 pnode = cache->buckets + idx; in ftc_get_top_node_for_hash() 113 ftc_cache_resize( FTC_Cache cache ) in ftc_cache_resize() argument [all …]
|
/external/squashfs-tools/kernel/fs/squashfs/ |
D | cache.c | 21 * cache.c 28 * This file implements a generic cache implementation used for both caches, 29 * plus functions layered ontop of the generic cache implementation to 32 * To avoid out of memory and fragmentation isssues with vmalloc the cache 35 * It should be noted that the cache is not used for file datablocks, these 36 * are decompressed and cached in the page-cache in the normal way. The 37 * cache is only used to temporarily cache fragment and metadata blocks 63 * Look-up block in cache, and increment usage count. If not in cache, read 67 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument 72 spin_lock(&cache->lock); in squashfs_cache_get() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | 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, in search_cache() argument 90 for (c = cache->items[hash % cache->size]; c; c = c->next) in search_cache() 93 fprintf(stderr, "bucket %d/%d = %d/%d items\n", hash % cache->size, in search_cache() 94 cache->size, bucketcount, cache->n_items); in search_cache() 97 for (c = cache->items[hash % cache->size]; c; c = c->next) { in search_cache() 107 rehash(struct brw_cache *cache) in rehash() argument [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | unifiedcachetest.cpp | 96 const UnifiedCache *cache = UnifiedCache::getInstance(status); in TestEvictionUnderStress() local 97 int64_t evictedCountBefore = cache->autoEvictedCount(); in TestEvictionUnderStress() 101 int64_t evictedCountAfter = cache->autoEvictedCount(); in TestEvictionUnderStress() 103 dataerrln("%s:%d Items should have been evicted from cache", in TestEvictionUnderStress() 114 // cache API incorrectly by creating their own cache instances. in TestEvictionPolicy() 119 // their own cache! in TestEvictionPolicy() 120 UnifiedCache cache(status); in TestEvictionPolicy() local 124 cache.setEvictionPolicy(0, 100, status); in TestEvictionPolicy() 135 cache.get( in TestEvictionPolicy() 137 &cache, in TestEvictionPolicy() [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/elasticache/ |
D | layer1.py | 33 up, operate, and scale a distributed cache in the cloud. 36 performance, in-memory cache with far less of the administrative 37 burden of launching and managing a distributed cache. The service 39 than in a self-managed cache deployment. 43 associated with their cache and can receive alarms if a part of 44 their cache runs hot. 70 network ingress to a cache security group. Applications using 77 :param cache_security_group_name: The cache security group which will 82 authorized for ingress to the cache security group. 113 The CreateCacheCluster operation creates a new cache cluster. [all …]
|
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 58 // Set the cache limits so we can fit 10 "src" images and the in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 91 GrTextureProvider* cache = context->textureProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 94 SkAutoTUnref<GrTexture> smallRT0(cache->createTexture(smallDesc, SkBudgeted::kYes)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 99 SkAutoTUnref<GrTexture> smallRT1(cache->createTexture(smallDesc, SkBudgeted::kYes)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 111 SkAutoTUnref<GrTexture> smallRT2(cache->createTexture(smallDesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 128 SkAutoTUnref<GrTexture> bigRT(cache->createTexture(bigDesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 142 SkAutoTUnref<GrTexture> smallMSAART0(cache->createTexture(smallMSAADesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 158 SkAutoTUnref<GrTexture> smallMSAART1(cache->createTexture(smallMSAADesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 174 smallMSAART1.reset(cache->createTexture(smallMSAADesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 176 cache->createTexture(smallMSAADesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | prog_cache.c | 82 rehash(struct gl_program_cache *cache) in rehash() argument 88 cache->last = NULL; in rehash() 90 size = cache->size * 3; in rehash() 94 for (i = 0; i < cache->size; i++) in rehash() 95 for (c = cache->items[i]; c; c = next) { in rehash() 101 free(cache->items); in rehash() 102 cache->items = items; in rehash() 103 cache->size = size; in rehash() 108 clear_cache(struct gl_context *ctx, struct gl_program_cache *cache, in clear_cache() argument 114 cache->last = NULL; in clear_cache() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | DiskLruCacheTest.java | 62 private DiskLruCache cache; field in DiskLruCacheTest 70 cache = new DiskLruCache(fileSystem, cacheDir, appVersion, 2, maxSize, executor); in createNewCacheWithSize() 71 synchronized (cache) { in createNewCacheWithSize() 72 cache.initialize(); in createNewCacheWithSize() 74 toClose.add(cache); in createNewCacheWithSize() 91 cache.close(); in emptyCache() 99 cache.edit(key); in validateKey() 106 cache.edit(key); in validateKey() 113 cache.edit(key); in validateKey() 120 cache.edit(key); in validateKey() [all …]
|
/external/jetty/src/java/org/eclipse/jetty/http/ |
D | HttpHeaders.java | 34 CACHE_CONTROL= "Cache-Control", 174 public final static HttpHeaders CACHE= new HttpHeaders(); field in HttpHeaders 177 HOST_BUFFER=CACHE.add(HOST,HOST_ORDINAL), 178 ACCEPT_BUFFER=CACHE.add(ACCEPT,ACCEPT_ORDINAL), 179 ACCEPT_CHARSET_BUFFER=CACHE.add(ACCEPT_CHARSET,ACCEPT_CHARSET_ORDINAL), 180 ACCEPT_ENCODING_BUFFER=CACHE.add(ACCEPT_ENCODING,ACCEPT_ENCODING_ORDINAL), 181 ACCEPT_LANGUAGE_BUFFER=CACHE.add(ACCEPT_LANGUAGE,ACCEPT_LANGUAGE_ORDINAL), 183 CONTENT_LENGTH_BUFFER=CACHE.add(CONTENT_LENGTH,CONTENT_LENGTH_ORDINAL), 184 CONNECTION_BUFFER=CACHE.add(CONNECTION,CONNECTION_ORDINAL), 185 CACHE_CONTROL_BUFFER=CACHE.add(CACHE_CONTROL,CACHE_CONTROL_ORDINAL), [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_screen_cache.c | 53 * against the cache size limit, so view them as zero-sized. in surface_size() 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; in svga_screen_cache_lookup() local 107 pipe_mutex_lock(cache->mutex); in svga_screen_cache_lookup() 109 curr = cache->bucket[bucket].next; in svga_screen_cache_lookup() 111 while (curr != &cache->bucket[bucket]) { in svga_screen_cache_lookup() 131 LIST_ADD(&entry->head, &cache->empty); in svga_screen_cache_lookup() 133 /* update the cache size */ in svga_screen_cache_lookup() 135 assert(surf_size <= cache->total_size); in svga_screen_cache_lookup() [all …]
|
/external/autotest/scheduler/ |
D | rdb_cache_unittests.py | 19 """Get the cache line with the hosts that match given labels. 23 be more than one, since we use acls in the cache key. 26 @cache_lines: A list of cache lines to look through. 28 @return: A list of the cache lines with the requested labels. 36 raise AssertionError('Mismatch in deps within a cache line') 61 # r1 should cache h2 and use h1; r2 should cach [] and use h2 62 # at the end the cache should contain one stale line, with 76 if not (self.cache.hits == 0 and self.cache.misses == 2): 78 'cache, but both should have inserted into it.') 82 self.cache._cache_backend._cache.values()) [all …]
|
/external/guava/guava-gwt/test/com/google/common/cache/ |
D | CacheBuilderTest_gwt.java | 16 package com.google.common.cache; 19 return "com.google.common.cache.testModule"; in getModuleName() 22 …com.google.common.cache.CacheBuilderTest testCase = new com.google.common.cache.CacheBuilderTest(); in testConcurrencyLevel_large() 27 …com.google.common.cache.CacheBuilderTest testCase = new com.google.common.cache.CacheBuilderTest(); in testConcurrencyLevel_setTwice() 32 …com.google.common.cache.CacheBuilderTest testCase = new com.google.common.cache.CacheBuilderTest(); in testConcurrencyLevel_zero() 37 …com.google.common.cache.CacheBuilderTest testCase = new com.google.common.cache.CacheBuilderTest(); in testInitialCapacity_large() 42 …com.google.common.cache.CacheBuilderTest testCase = new com.google.common.cache.CacheBuilderTest(); in testInitialCapacity_negative() 47 …com.google.common.cache.CacheBuilderTest testCase = new com.google.common.cache.CacheBuilderTest(); in testInitialCapacity_setTwice() 52 …com.google.common.cache.CacheBuilderTest testCase = new com.google.common.cache.CacheBuilderTest(); in testMaximumSize_negative() 57 …com.google.common.cache.CacheBuilderTest testCase = new com.google.common.cache.CacheBuilderTest(); in testMaximumSize_setTwice() [all …]
|
/external/e2fsprogs/lib/blkid/ |
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->bic_devs) { 85 blkid_cache cache; in blkid_get_cache() local 97 DBG(DEBUG_CACHE, printf("creating blkid cache (using %s)\n", in blkid_get_cache() 98 filename ? filename : "default cache")); in blkid_get_cache() [all …]
|
/external/clang/test/Modules/ |
D | macro-hiding.cpp | 2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 3 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 4 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 5 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 6 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 7 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 8 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 9 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 10 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… 11 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/macro-hidin… [all …]
|