/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 ---------|---+ 48 * #include <netlink/cache.h> 54 #include <netlink/cache.h> 65 * Return the number of items in the cache 66 * @arg cache cache handle 68 int nl_cache_nitems(struct nl_cache *cache) in nl_cache_nitems() argument 70 return cache->c_nitems; in nl_cache_nitems() [all …]
|
D | cache_mngt.c | 2 * lib/cache_mngt.c Cache Management 24 * #include <netlink/cache.h> 30 #include <netlink/cache.h> 37 * @name Cache Operations Sets 54 * @arg ops Cache operations 63 * @arg ops Cache operations 71 * Lookup cache operations by name 72 * @arg name name of the cache type 77 * @return The cache operations or NULL if not found. 91 * Lookup cache operations by name [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/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 | 98 const UnifiedCache *cache = UnifiedCache::getInstance(status); in TestEvictionUnderStress() local 99 int64_t evictedCountBefore = cache->autoEvictedCount(); in TestEvictionUnderStress() 103 int64_t evictedCountAfter = cache->autoEvictedCount(); in TestEvictionUnderStress() 105 dataerrln("%s:%d Items should have been evicted from cache", in TestEvictionUnderStress() 116 // cache API incorrectly by creating their own cache instances. in TestEvictionPolicy() 121 // their own cache! in TestEvictionPolicy() 122 UnifiedCache cache(status); in TestEvictionPolicy() local 126 cache.setEvictionPolicy(0, 100, status); in TestEvictionPolicy() 137 cache.get( in TestEvictionPolicy() 139 &cache, in TestEvictionPolicy() [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/skia/tests/ |
D | ResourceCacheTest.cpp | 59 // Set the cache limits so we can fit 10 "src" images and the in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 256 REPORTER_ASSERT(reporter, adoptedAndCachedIsAlive); // Still alive because it's in the cache in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 260 // We can't delete texHandles[2] - we've given control of the lifetime to the context/cache in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 264 // Purge the cache. This should force texHandles[2] to be deleted in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 372 GrResourceCache* cache = fContext->getResourceCache(); in Mock() local 373 cache->purgeAllUnlocked(); in Mock() 374 SkASSERT(0 == cache->getResourceCount() && 0 == cache->getResourceBytes()); in Mock() 377 GrResourceCache* cache() { return fContext->getResourceCache(); } in cache() function in Mock 388 GrResourceCache* cache = mock.cache(); in test_no_key() local 401 REPORTER_ASSERT(reporter, 4 == cache->getResourceCount()); in test_no_key() [all …]
|
/external/clang/cmake/caches/ |
D | Apple-stage2.cmake | 4 set(LLVM_TARGETS_TO_BUILD X86 ARM AArch64 CACHE STRING "") 5 set(PACKAGE_VENDOR Apple CACHE STRING "") 6 set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "") 7 set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "") 8 set(LLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD OFF CACHE BOOL "") 9 set(CLANG_TOOL_SCAN_BUILD_BUILD OFF CACHE BOOL "") 10 set(CLANG_TOOL_SCAN_VIEW_BUILD OFF CACHE BOOL "") 11 set(CLANG_LINKS_TO_CREATE clang++ cc c++ CACHE STRING "") 12 set(CMAKE_MACOSX_RPATH ON CACHE BOOL "") 13 set(LLVM_ENABLE_ZLIB ON CACHE BOOL "") [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/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 …]
|
D | CacheBuilderGwtTest_gwt.java | 16 package com.google.common.cache; 19 return "com.google.common.cache.testModule"; in getModuleName() 22 …com.google.common.cache.CacheBuilderGwtTest testCase = new com.google.common.cache.CacheBuilderGwt… in testAsMapEntrySet() 28 …com.google.common.cache.CacheBuilderGwtTest testCase = new com.google.common.cache.CacheBuilderGwt… in testAsMapKeySet() 34 …com.google.common.cache.CacheBuilderGwtTest testCase = new com.google.common.cache.CacheBuilderGwt… in testAsMapKeySet_contains() 40 …com.google.common.cache.CacheBuilderGwtTest testCase = new com.google.common.cache.CacheBuilderGwt… in testAsMapValues_contains() 46 …com.google.common.cache.CacheBuilderGwtTest testCase = new com.google.common.cache.CacheBuilderGwt… in testAsMapValues_iteratorRemove() 52 …com.google.common.cache.CacheBuilderGwtTest testCase = new com.google.common.cache.CacheBuilderGwt… in testAsMap_containsKey() 58 …com.google.common.cache.CacheBuilderGwtTest testCase = new com.google.common.cache.CacheBuilderGwt… in testAsMap_containsValue() 64 …com.google.common.cache.CacheBuilderGwtTest testCase = new com.google.common.cache.CacheBuilderGwt… in testExpireAfterAccess() [all …]
|
/external/e2fsprogs/lib/blkid/ |
D | cache.c | 2 * cache.c - allocation/initialization/free routines for cache 62 static blkid_debug_dump_cache(int mask, blkid_cache cache) 66 if (!cache) { 67 printf("cache: NULL\n"); 71 printf("cache: time = %lu\n", cache->bic_time); 72 printf("cache: flags = 0x%08X\n", cache->bic_flags); 74 list_for_each(p, &cache->bic_devs) { 83 blkid_cache cache; in blkid_get_cache() local 95 DBG(DEBUG_CACHE, printf("creating blkid cache (using %s)\n", in blkid_get_cache() 96 filename ? filename : "default cache")); in blkid_get_cache() [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/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 …]
|