/external/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_allocator.cc | 34 static void *RawInternalAlloc(uptr size, InternalAllocatorCache *cache) { argument 35 (void)cache; 39 static void RawInternalFree(void *ptr, InternalAllocatorCache *cache) { argument 40 (void)cache; 71 static void *RawInternalAlloc(uptr size, InternalAllocatorCache *cache) { 72 if (cache == 0) { 77 return internal_allocator()->Allocate(cache, size, 8, false); 80 static void RawInternalFree(void *ptr, InternalAllocatorCache *cache) { 81 if (cache == 0) { 85 internal_allocator()->Deallocate(cache, pt 92 InternalAlloc(uptr size, InternalAllocatorCache *cache) argument 102 InternalFree(void *addr, InternalAllocatorCache *cache) argument [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_dense_alloc.h | 13 // DenseSlabAllocCache is a thread-local cache for DenseSlabAlloc. 32 IndexT cache[kSize]; member in class:__tsan::DenseSlabAllocCache 64 return c->cache[--c->pos]; 70 c->cache[c->pos++] = idx; 82 IndexT idx = c->cache[--c->pos]; 90 internal_memset(c->cache, 0, sizeof(c->cache)); 119 c->cache[c->pos++] = idx; 127 IndexT idx = c->cache[--c->pos];
|
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
H A D | CstInteger.java | 28 private static final CstInteger[] cache = new CstInteger[511]; field in class:CstInteger 64 int idx = (value & 0x7fffffff) % cache.length; 65 CstInteger obj = cache[idx]; 72 cache[idx] = obj;
|
/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/emma/core/java12/com/vladium/emma/report/ |
H A D | AbstractReportGenerator.java | 58 final SourcePathCache cache, final IProperties properties) 66 m_cache = cache; 57 initialize(final IMetaData mdata, final ICoverageData cdata, final SourcePathCache cache, final IProperties properties) argument
|
/external/emma/core/java12/com/vladium/emma/report/lcov/ |
H A D | ReportGenerator.java | 63 final SourcePathCache cache, 67 initialize(mdata, cdata, cache, properties); 61 process(final IMetaData mdata, final ICoverageData cdata, final SourcePathCache cache, final IProperties properties) argument
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
H A D | DiskLruCacheWrapper.java | 5 package com.bumptech.glide.load.engine.cache; 31 * Get a DiskCache in the given directory and size. If a disk cache has alread been created with 35 * @param directory The directory for the disk cache 36 * @param maxSize The max size for the disk cache 37 * @return The new disk cache with the given arguments, or the current cache if one already exists 78 Log.w(TAG, "Unable to get from disk cache", e); 108 Log.w(TAG, "Unable to put to disk cache", e); 120 Log.w(TAG, "Unable to delete from disk cache", e);
|
H A D | MemoryCache.java | 1 package com.bumptech.glide.load.engine.cache; 8 * An interface for adding and removing resources from an in memory cache 12 * An interface that will be called whenever a bitmap is removed from the cache. 19 * Adjust the maximum size of the cache by multiplying the original size of the cache by the given multiplier. 22 * If the size multiplier causes the size of the cache to be decreased, items will be evicted until the cache 37 * Add bitmap to the cache with the given key 45 * Set the listener to be called when a bitmap is removed from the cache 51 * Evict all items from the memory cache [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
H A D | ModelCache.java | 9 * A simple cache that can be used by {@link ModelLoader} and {@link ModelLoaderFactory} to cache some data for a given 10 * model, width and height. For a loader that takes a model and returns a url, the cache could be used to safely memoize 73 private final LruCache<ModelKey<A>, B> cache; field in class:ModelCache 80 cache = new LruCache<ModelKey<A>, B>(size) { 99 B result = cache.get(key); 114 cache.put(key, value);
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
H A D | LruCache.java | 7 * A general purpose size limited cache that evicts items using an LRU algorithm. By default every item is assumed to 14 private final LinkedHashMap<T, Y> cache = new LinkedHashMap<T, Y>(100, 0.75f, true); field in class:LruCache 43 return cache.containsKey(key); 47 return cache.get(key); 57 final Y result = cache.put(key, item); 66 final Y value = cache.remove(key); 80 last = cache.entrySet().iterator().next(); 84 cache.remove(key);
|
/external/guava/guava/src/com/google/common/cache/ |
H A D | Cache.java | 17 package com.google.common.cache; 34 * {@link #get(K, Callable)} or {@link #put(K, V)}, and are stored in the cache until either 54 * Returns the value associated with {@code key} in this cache, or {@code null} if there is no 63 * Returns the value associated with {@code key} in this cache, obtaining that value from 64 * {@code valueLoader} if necessary. No observable state associated with this cache is modified 66 * "if cached, return; otherwise create, cache and return" pattern. 81 * Returns a map of the values associated with {@code keys} in this cache. The returned map will 82 * only contain entries which are already present in the cache. 89 * Associates {@code value} with {@code key} in this cache. If the cache previousl [all...] |
H A D | CacheLoader.java | 17 package com.google.common.cache; 59 * method is called when an existing cache entry is refreshed by
|
H A D | CacheStats.java | 17 package com.google.common.cache; 33 * <li>When a cache lookup encounters an existing cache entry {@code hitCount} is incremented. 34 * <li>When a cache lookup first encounters a missing cache entry, a new entry is loaded. 42 * <li>Cache lookups that encounter a missing cache entry that is still loading will wait 45 * <li>When an entry is evicted from the cache, {@code evictionCount} is incremented. 46 * <li>No stats are modified when a cache entry is invalidated or manually removed. 48 * the cache. 103 * Returns the ratio of cache request [all...] |
H A D | ForwardingCache.java | 17 package com.google.common.cache; 31 * A cache which forwards all its method calls to another cache. Subclasses should override one or 32 * more methods to modify the behavior of the backing cache as desired per the
|
/external/guava/guava-tests/test/com/google/common/cache/ |
H A D | ForwardingLoadingCacheTest.java | 17 package com.google.common.cache;
|
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/ |
H A D | LoadPathToFileCache.java | 26 * This class implements a cache of a list of loadpaths and a file name to the absolute file name 34 private final LRUCache<String, String> cache; field in class:LoadPathToFileCache 38 cache = new LRUCache<String, String>(capacity); 42 * Lookup in the cache to see if we have a mapping from the given loadpaths and filename to an 47 * @return the absolute filepath location of the file, or {@code null} if not in the cache. 53 return cache.get(filePathMapKey); 60 * Add a new mapping to the cache. 70 cache.put(filePathMapKey, filePath); 110 * This code is copied from {@link com.google.common.cache.LRUCache} but is distilled to basics in
|
/external/junit/src/junit/framework/ |
H A D | JUnit4TestAdapter.java | 28 JUnit4TestAdapterCache cache) { 29 fCache = cache; 27 JUnit4TestAdapter(final Class<?> newTestClass, JUnit4TestAdapterCache cache) argument
|
/external/libnl/lib/ |
H A D | cache_mngt.c | 20 #include <netlink/cache.h> 31 * Lookup the set cache operations of a certain cache type 32 * @arg name name of the cache type 34 * @return The cache operations or NULL if no operations 49 * Associate a message type to a set of cache operations 54 * a registered set of cache operations. 56 * @return The cache operations or NULL if no association 77 * Lookup message type cache association 78 * @arg ops cache operation 190 nl_cache_mngt_provide(struct nl_cache *cache) argument 209 nl_cache_mngt_unprovide(struct nl_cache *cache) argument [all...] |
/external/libnl/src/lib/ |
H A D | utils.c | 135 struct nl_cache *cache; local 138 if ((err = ac(sock, &cache)) < 0) 139 nl_cli_fatal(err, "Unable to allocate %s cache: %s", 142 nl_cache_mngt_provide(cache); 144 return cache;
|
/external/libopus/celt/ |
H A D | modes.h | 79 PulseCache cache; member in struct:OpusCustomMode
|
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/draw/ |
H A D | draw_pt_fetch.c | 45 struct translate_cache *cache; member in struct:pt_fetch 144 fetch->translate = translate_cache_find(fetch->cache, &key); 211 fetch->cache = translate_cache_create(); 212 if (!fetch->cache) { 224 if (fetch->cache) 225 translate_cache_destroy(fetch->cache);
|
/external/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_screen.h | 75 struct svga_host_surface_cache cache; member in struct:svga_screen
|
/external/mesa3d/src/mesa/program/ |
H A D | prog_cache.c | 82 rehash(struct gl_program_cache *cache) argument 88 cache->last = NULL; 90 size = cache->size * 3; 94 for (i = 0; i < cache->size; i++) 95 for (c = cache->items[i]; c; c = next) { 101 free(cache->items); 102 cache->items = items; 103 cache->size = size; 108 clear_cache(struct gl_context *ctx, struct gl_program_cache *cache, argument 114 cache 141 struct gl_program_cache *cache = CALLOC_STRUCT(gl_program_cache); local 156 _mesa_delete_program_cache(struct gl_context *ctx, struct gl_program_cache *cache) argument 164 _mesa_delete_shader_cache(struct gl_context *ctx, struct gl_program_cache *cache) argument 174 _mesa_search_program_cache(struct gl_program_cache *cache, const void *key, GLuint keysize) argument 198 _mesa_program_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_program *program) argument 226 _mesa_shader_cache_insert(struct gl_context *ctx, struct gl_program_cache *cache, const void *key, GLuint keysize, struct gl_shader_program *program) argument [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
H A D | AsyncApiTest.java | 47 private HttpResponseCache cache; field in class:AsyncApiTest 52 cache = new HttpResponseCache(cacheDir, Integer.MAX_VALUE); 57 cache.delete(); 162 client.setOkResponseCache(cache); 184 client.setOkResponseCache(cache);
|