HomeSort by relevance Sort by last modified time
    Searched defs:cache (Results 51 - 75 of 1400) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/apache-harmony/support/src/test/java/tests/support/
Support_GetLocal.java 35 static Hashtable<String, File> cache = new Hashtable<String, File>(20); field in class:Support_GetLocal
40 File temp = cache.get(url);
53 cache.put(url, temp);
60 File temp = cache.get(url);
73 cache.put(url, temp);
  /external/guava/guava-tests/benchmark/com/google/common/cache/
LoadingCacheSingleThreadBenchmark.java 17 package com.google.common.cache;
44 LoadingCache<Integer, Integer> cache; field in class:LoadingCacheSingleThreadBenchmark
56 cache = CacheBuilder.newBuilder()
66 // To start, fill up the cache.
70 while (cache.getUnchecked(nextRandomKey()) < maximumSize) {}
79 dummy += cache.getUnchecked(nextRandomKey());
  /external/icu/android_icu4j/src/main/java/android/icu/text/
NormalizationTransliterator.java 149 SourceTargetUtility cache; local
152 cache = SOURCE_CACHE.get(norm2);
153 if (cache == null) {
154 cache = new SourceTargetUtility(new NormalizingTransform(norm2), norm2);
155 SOURCE_CACHE.put(norm2, cache);
158 cache.addSourceTargetSet(this, inputFilter, sourceSet, targetSet);
  /external/jsilver/src/com/google/clearsilver/jsilver/adaptor/
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
  /libcore/support/src/test/java/tests/support/
Support_GetLocal.java 35 static Hashtable<String, File> cache = new Hashtable<String, File>(20); field in class:Support_GetLocal
40 File temp = cache.get(url);
53 cache.put(url, temp);
60 File temp = cache.get(url);
73 cache.put(url, temp);
  /packages/apps/Gallery/tests/src/com/android/camera/gallery/
LruCacheUnitTests.java 9 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); local
12 cache.put(key, value);
13 assertEquals(value, cache.get(key));
17 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); local
20 cache.put(key, value);
22 cache.put(i + 10, i * i);
25 assertEquals(value, cache.get(key));
29 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); local
30 cache.put(0, new Integer(0));
32 cache.put(i + 1, i * i)
60 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(4); local
    [all...]
  /art/runtime/jit/
profiling_info.cc 81 // interested in. The JIT code cache internally uses it.
89 InlineCache* cache = nullptr; local
93 cache = &cache_[i];
97 return cache;
101 InlineCache* cache = GetInlineCache(dex_pc); local
102 CHECK(cache != nullptr) << PrettyMethod(method_) << "@" << dex_pc;
104 mirror::Class* existing = cache->classes_[i].Read();
106 // Receiver type is already in the cache, nothing else to do.
109 // Cache entry is empty, try to put `cls` in it.
112 if (!reinterpret_cast<Atomic<GcRoot<mirror::Class>>*>(&cache->classes_[i])-
    [all...]
  /external/compiler-rt/lib/tsan/tests/unit/
tsan_dense_alloc_test.cc 26 typedef Alloc::Cache Cache;
31 Cache cache; local
32 alloc.InitCache(&cache);
37 IndexT idx = alloc.Alloc(&cache);
48 alloc.Free(&cache, idx);
51 alloc.FlushCache(&cache);
  /external/conscrypt/src/test/java/org/conscrypt/
FileClientSessionCacheTest.java 32 + "/" + FileClientSessionCacheTest.class.getName() + "/cache");
33 final SSLClientSessionCache cache local
43 cache.putSessionData(new FakeSSLSession(id + "" + i), new byte[10]);
  /external/e2fsprogs/lib/blkid/
resolve.c 27 char *blkid_get_tag_value(blkid_cache cache, const char *tagname,
32 blkid_cache c = cache;
40 if (!cache) {
49 if (!cache)
61 char *blkid_get_devname(blkid_cache cache, const char *token,
65 blkid_cache c = cache;
72 if (!cache) {
79 value ? value : "", cache ? "in cache" : "from disk"));
102 if (!cache) {
112 blkid_cache cache; local
    [all...]
save.c 2 * save.c - write the cache struct to disk
55 * Write out the cache struct to the cache file on disk.
57 int blkid_flush_cache(blkid_cache cache)
67 if (!cache)
70 if (list_empty(&cache->bic_devs) ||
71 !(cache->bic_flags & BLKID_BIC_FL_CHANGED)) {
72 DBG(DEBUG_SAVE, printf("skipping cache file write\n"));
76 filename = cache->bic_filename ? cache->bic_filename: BLKID_CACHE_FILE
163 blkid_cache cache = NULL; local
    [all...]
  /external/freetype/src/cache/
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_changed )
121 FTC_GCache cache = (FTC_GCache)ftccache; local
155 FTC_GCache cache = (FTC_GCache)ftccache; local
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DiskCache.java 1 package com.bumptech.glide.load.engine.cache;
8 * An interface for writing to and reading from a disk cache.
12 * An interface to actually write data to a key in the disk cache.
25 * Get the cache for the value at the given key.
32 * @param key The key in the cache.
38 * Write to a key in the cache. {@link Writer} is used so that the cache implementation can perform actions after
47 * Remove the key and value from the cache.
LruResourceCache.java 1 package com.bumptech.glide.load.engine.cache;
10 * An LRU in memory cache for {@link com.bumptech.glide.load.engine.Resource}s.
18 * @param size The maximum size in bytes the in memory cache can use.
46 // Evict our entire bitmap cache
50 // Evict oldest half of our bitmap cache
MemoryCacheAdapter.java 1 package com.bumptech.glide.load.engine.cache;
SafeKeyGenerator.java 1 package com.bumptech.glide.load.engine.cache;
  /external/guava/guava/src/com/google/common/cache/
AbstractLoadingCache.java 17 package com.google.common.cache;
29 * This class provides a skeletal implementation of the {@code Cache} interface to minimize the
32 * <p>To implement a cache, the programmer needs only to extend this class and provide an
Cache.java 17 package com.google.common.cache;
33 * A semi-persistent mapping from keys to values. Cache entries are manually added using
34 * {@link #get(Object, Callable)} or {@link #put(Object, Object)}, and are stored in the cache until
50 public interface Cache<K, V> {
53 * Returns the value associated with {@code key} in this cache, or {@code null} if there is no
62 * Returns the value associated with {@code key} in this cache, obtaining that value from
63 * {@code valueLoader} if necessary. No observable state associated with this cache is modified
65 * "if cached, return; otherwise create, cache and return" pattern.
80 * Returns a map of the values associated with {@code keys} in this cache. The returned map will
81 * only contain entries which are already present in the cache
    [all...]
CacheLoader.java 17 package com.google.common.cache;
48 * LoadingCache<Key, Graph> cache = CacheBuilder.newBuilder().build(loader);}</pre>
74 * method is called when an existing cache entry is refreshed by
129 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
134 * @return a cache loader that loads values by passing each key to {@code function}
158 * Returns a cache loader based on an <i>existing</i> supplier instance. Note that there's no need
163 * @return a cache loader that loads values by calling {@link Supplier#get}, irrespective of the
ForwardingLoadingCache.java 17 package com.google.common.cache;
26 * A cache which forwards all its method calls to another cache. Subclasses should override one or
27 * more methods to modify the behavior of the backing cache as desired per the
LoadingCache.java 17 package com.google.common.cache;
30 * A semi-persistent mapping from keys to values. Values are automatically loaded by the cache,
31 * and are stored in the cache until either evicted or manually invalidated.
36 * <p>When evaluated as a {@link Function}, a cache yields the same result as invoking
49 public interface LoadingCache<K, V> extends Cache<K, V>, Function<K, V> {
52 * Returns the value associated with {@code key} in this cache, first loading that value if
53 * necessary. No observable state associated with this cache is modified until loading completes.
60 * into the cache. Newly loaded values are added to the cache using
61 * {@code Cache.asMap().putIfAbsent} after loading has completed; if another value was associate
    [all...]
LongAddables.java 17 package com.google.common.cache;
RemovalCause.java 17 package com.google.common.cache;
37 * {@link Cache#invalidate}, {@link Cache#invalidateAll(Iterable)}, {@link Cache#invalidateAll()},
49 * result from the user invoking {@link Cache#put}, {@link LoadingCache#refresh}, {@link Map#put},
  /external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
CacheLoader.java 17 package com.google.common.cache;
42 * LoadingCache<Key, Graph> cache = CacheBuilder.newBuilder().build(loader);}</pre>
95 * Returns a cache loader based on an <i>existing</i> function instance. Note that there's no need
100 * @return a cache loader that loads values by passing each key to {@code function}
124 * Returns a cache loader based on an <i>existing</i> supplier instance. Note that there's no need
129 * @return a cache loader that loads values by calling {@link Supplier#get}, irrespective of the
  /external/guava/guava-tests/test/com/google/common/cache/
CacheStatsTest.java 17 package com.google.common.cache;

Completed in 547 milliseconds

1 23 4 5 6 7 8 91011>>