| /external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
| 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 19 private final LruCache<ModelKey<A>, B> cache; field in class:ModelCache 26 cache = new LruCache<ModelKey<A>, B>(size) { 45 B result = cache.get(key); 60 cache.put(key, value);
|
| /external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
| CacheBuilderTest.java | 17 package com.google.common.cache; 19 import static com.google.common.cache.TestingCacheLoaders.constantLoader; 20 import static com.google.common.cache.TestingCacheLoaders.identityLoader; 21 import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener; 22 import static com.google.common.cache.TestingRemovalListeners.nullRemovalListener; 40 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() local 44 assertEquals(Integer.valueOf(1), cache.getUnchecked("one")); 45 assertEquals(1, cache.size());
|
| TestingRemovalListeners.java | 15 package com.google.common.cache;
|
| /external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
| ResourceBasedPeriodFormatterDataService.java | 40 private Map<String, PeriodFormatterData> cache = new HashMap<String, PeriodFormatterData>(); // String -> PeriodFormatterData field in class:ResourceBasedPeriodFormatterDataService 97 PeriodFormatterData ld = cache.get(localeName); 146 cache.put(localeName, ld);
|
| /external/icu/android_icu4j/src/main/java/android/icu/impl/text/ |
| RbnfScannerProviderImpl.java | 32 private Map<String, RbnfLenientScanner> cache; field in class:RbnfScannerProviderImpl 40 cache = new HashMap<String, RbnfLenientScanner>(); 78 synchronized(cache) { 79 result = cache.get(key); 85 synchronized(cache) { 86 cache.put(key, result);
|
| /external/icu/android_icu4j/src/main/java/android/icu/util/ |
| GenderInfo.java | 222 private static class Cache { 223 private final ICUCache<ULocale, GenderInfo> cache = field in class:GenderInfo.Cache 227 GenderInfo result = cache.get(locale); 233 // We call get() recursively so that we can leverage the cache 238 cache.put(locale, result); 258 private static Cache genderInfoCache = new Cache();
|
| /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/ |
| RbnfScannerProviderImpl.java | 30 private Map<String, RbnfLenientScanner> cache; field in class:RbnfScannerProviderImpl 38 cache = new HashMap<String, RbnfLenientScanner>(); 76 synchronized(cache) { 77 result = cache.get(key); 83 synchronized(cache) { 84 cache.put(key, result);
|
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
| ResourceBasedPeriodFormatterDataService.java | 38 private Map<String, PeriodFormatterData> cache = new HashMap<String, PeriodFormatterData>(); // String -> PeriodFormatterData field in class:ResourceBasedPeriodFormatterDataService 95 PeriodFormatterData ld = cache.get(localeName); 144 cache.put(localeName, ld);
|
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
| GenderInfo.java | 220 private static class Cache { 221 private final ICUCache<ULocale, GenderInfo> cache = field in class:GenderInfo.Cache 225 GenderInfo result = cache.get(locale); 231 // We call get() recursively so that we can leverage the cache 236 cache.put(locale, result); 256 private static Cache genderInfoCache = new Cache();
|
| /external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
| NormalizationTransliterator.java | 148 SourceTargetUtility cache; local 151 cache = SOURCE_CACHE.get(norm2); 152 if (cache == null) { 153 cache = new SourceTargetUtility(new NormalizingTransform(norm2), norm2); 154 SOURCE_CACHE.put(norm2, cache); 157 cache.addSourceTargetSet(this, inputFilter, sourceSet, targetSet);
|
| /libcore/ojluni/src/main/java/java/nio/charset/ |
| CoderResult.java | 195 private static abstract class Cache { 197 private Map<Integer,WeakReference<CoderResult>> cache = null; field in class:CoderResult.Cache 207 if (cache == null) { 208 cache = new HashMap<Integer,WeakReference<CoderResult>>(); 209 } else if ((w = cache.get(k)) != null) { 214 cache.put(k, new WeakReference<CoderResult>(e)); 221 private static Cache malformedCache 222 = new Cache() { 237 private static Cache unmappableCache 238 = new Cache() { [all...] |
| /libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
| NegotiateAuthentication.java | 54 // if it's true, a cached Negotiator is put into <code>cache</code>. 55 // the cache can be used only once, so after the first use, it's cleaned. 57 static HashMap <String, Negotiator> cache = null; field in class:NegotiateAuthentication 89 * the same hostname, the answer is retrieved from cache. 96 cache = new HashMap <String, Negotiator>(); 107 // the only place cache.put is called. here we can make sure 109 cache.put(hostname, neg); 174 if (cache != null) { 175 synchronized(cache) { 176 negotiator = cache.get(getHost()) [all...] |
| /external/boringssl/src/crypto/x509v3/ |
| pcy_cache.c | 70 /* Set cache entry according to CertificatePolicies extension. 79 X509_POLICY_CACHE *cache = x->policy_cache; local 84 cache->data = sk_X509_POLICY_DATA_new(policy_data_cmp); 85 if (!cache->data) 98 if (cache->anyPolicy) 103 cache->anyPolicy = data; 105 else if (sk_X509_POLICY_DATA_find(cache->data, NULL, data)) 110 else if (!sk_X509_POLICY_DATA_push(cache->data, data)) 123 sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free); 124 cache->data = NULL 132 X509_POLICY_CACHE *cache; local 255 X509_POLICY_CACHE *cache; local [all...] |
| /external/e2fsprogs/lib/blkid/ |
| 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; local 187 blkid_cache cache = NULL; local [all...] |
| /external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
| MemoryCache.java | 1 package com.bumptech.glide.load.engine.cache; 7 * An interface for adding and removing resources from an in memory cache. 11 * An interface that will be called whenever a bitmap is removed from the cache. 18 * Returns the sum of the sizes of all the contents of the cache in bytes. 23 * Returns the current maximum size in bytes of the cache. 28 * Adjust the maximum size of the cache by multiplying the original size of the cache by the given multiplier. 31 * If the size multiplier causes the size of the cache to be decreased, items will be evicted until the cache 47 * Add bitmap to the cache with the given key [all...] |
| /external/guava/guava/src/com/google/common/cache/ |
| ForwardingCache.java | 17 package com.google.common.cache; 32 * A cache which forwards all its method calls to another cache. Subclasses should override one or 33 * more methods to modify the behavior of the backing cache as desired per the 40 public abstract class ForwardingCache<K, V> extends ForwardingObject implements Cache<K, V> { 46 protected abstract Cache<K, V> delegate(); 129 * constructed {@link Cache} as the delegete. 135 private final Cache<K, V> delegate; 137 protected SimpleForwardingCache(Cache<K, V> delegate) { 142 protected final Cache<K, V> delegate() [all...] |
| /external/guava/guava-tests/test/com/google/common/cache/ |
| TestingRemovalListeners.java | 15 package com.google.common.cache;
|
| /external/guice/core/src/com/google/inject/internal/ |
| ProvisionListenerCallbackStore.java | 19 import com.google.common.cache.CacheBuilder; 20 import com.google.common.cache.CacheLoader; 21 import com.google.common.cache.LoadingCache; 50 private final LoadingCache<KeyBinding, ProvisionListenerStackCallback<?>> cache field in class:ProvisionListenerCallbackStore 68 return (ProvisionListenerStackCallback<T>) cache.getUnchecked( 75 * Purges a key from the cache. Use this only if the type is not actually valid for 81 * Returns true if the type was stored in the cache, false otherwise. 84 return cache.asMap().remove(type) != null;
|
| /external/icu/icu4c/source/i18n/ |
| ucol_imp.h | 75 // Cache callback. Adds a reference to returned value. 82 // and the cache callback. 101 * or else returns a new cache entry with ref count 1 for the loc and 109 * or else returns a new cache entry with ref count 1 for the loc and 118 const UnifiedCache *cache; member in class:CollationLoader
|
| /external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/cache/ |
| ftcimage.c | 5 /* FreeType Image cache (body). */ 32 FTC_Cache cache ) 35 FT_Memory memory = cache->memory; 44 FTC_GNode_Done( FTC_GNODE( inode ), cache ); local 51 FTC_Cache cache ) 53 ftc_inode_free( FTC_NODE( inode ), cache ); local 61 FTC_Cache cache ) 63 FT_Memory memory = cache->memory; 73 FTC_IFamilyClass clazz = FTC_CACHE__IFAMILY_CLASS( cache ); 80 error = clazz->family_load_glyph( family, gindex, cache, [all...] |
| /external/libnl/lib/route/ |
| class.c | 62 static int class_request_update(struct nl_cache *cache, struct nl_sock *sk) 66 .tcm_ifindex = cache->c_iarg1, 217 * @name Cache Management 222 * Build a class cache including all classes attached to the specified interface 227 * Allocates a new cache, initializes it properly and updates it to 230 * @return The cache or NULL if an error has occured. 235 struct nl_cache * cache; local 238 cache = nl_cache_alloc(&rtnl_class_ops); 239 if (!cache) 242 cache->c_iarg1 = ifindex [all...] |
| route.c | 21 #include <netlink/cache.h> 58 * @name Cache Management 63 * Build a route cache holding all routes currently configured in the kernel 68 * Allocates a new cache, initializes it properly and updates it to 72 * cache after using it. 73 * @return The cache or NULL if an error has occured. 78 struct nl_cache *cache; local 81 if (!(cache = nl_cache_alloc(&rtnl_route_ops))) 84 cache->c_iarg1 = family; 85 cache->c_iarg2 = flags [all...] |
| /external/libnl/src/lib/ |
| 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/mesa3d/src/gallium/auxiliary/draw/ |
| 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/ |
| svga_screen.h | 75 struct svga_host_surface_cache cache; member in struct:svga_screen
|