/external/objenesis/main/src/org/objenesis/ |
H A D | ObjenesisBase.java | 35 /** Strategy cache. Key = Class, Value = InstantiatorStrategy */
36 protected Map cache;
field in class:ObjenesisBase 39 * Constructor allowing to pick a strategy and using cache
58 this.cache = useCache ? new HashMap() : null;
63 + (cache == null ? " without" : " with") + " caching";
85 if(cache == null) {
88 ObjectInstantiator instantiator = (ObjectInstantiator) cache.get(clazz.getName());
91 cache.put(clazz.getName(), instantiator);
|
/external/openssl/crypto/x509v3/ |
H A D | pcy_map.c | 65 /* Set policy mapping entries in cache. 73 X509_POLICY_CACHE *cache = x->policy_cache; local 93 data = policy_cache_find_data(cache, map->issuerDomainPolicy); 95 if (!data && !cache->anyPolicy) 102 cache->anyPolicy->flags 106 data->qualifier_set = cache->anyPolicy->qualifier_set; 110 if (!sk_X509_POLICY_DATA_push(cache->data, data))
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowSSLCertificateSocketFactory.java | 18 SSLSessionCache cache) { 16 getHttpSocketFactory( int handshakeTimeoutMillis, SSLSessionCache cache) argument
|
/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | vlan_util.c | 36 struct nl_cache *cache = NULL; local 66 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < 0) { 67 cache = NULL; 68 wpa_printf(MSG_ERROR, "VLAN: failed to alloc cache"); 72 if (!(if_idx = rtnl_link_name2i(cache, if_name))) { 79 if ((rlink = rtnl_link_get_by_name(cache, vlan_if_name))) { 120 if (cache) 121 nl_cache_free(cache); 132 struct nl_cache *cache = NULL; local 148 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < [all...] |
/external/wpa_supplicant_8/src/ap/ |
H A D | vlan_util.c | 36 struct nl_cache *cache = NULL; local 66 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < 0) { 67 cache = NULL; 68 wpa_printf(MSG_ERROR, "VLAN: failed to alloc cache"); 72 if (!(if_idx = rtnl_link_name2i(cache, if_name))) { 79 if ((rlink = rtnl_link_get_by_name(cache, vlan_if_name))) { 120 if (cache) 121 nl_cache_free(cache); 132 struct nl_cache *cache = NULL; local 148 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/ap/ |
H A D | vlan_util.c | 36 struct nl_cache *cache = NULL; local 66 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < 0) { 67 cache = NULL; 68 wpa_printf(MSG_ERROR, "VLAN: failed to alloc cache"); 72 if (!(if_idx = rtnl_link_name2i(cache, if_name))) { 79 if ((rlink = rtnl_link_get_by_name(cache, vlan_if_name))) { 120 if (cache) 121 nl_cache_free(cache); 132 struct nl_cache *cache = NULL; local 148 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
H A D | CacheReferencesTest.java | 15 package com.google.common.cache; 17 import static com.google.common.cache.LocalCache.Strength.STRONG; 18 import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener; 23 import com.google.common.cache.LocalCache.Strength; 24 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener; 64 for (LoadingCache<Key, String> cache : caches()) { 65 // maintain strong refs so these won't be collected, regardless of cache's key/value strength 68 assertSame(value, cache.getUnchecked(key)); 69 assertTrue(cache.asMap().containsKey(key)); 70 assertTrue(cache 152 assertCleanup(LoadingCache<Integer, String> cache, CountingRemovalListener<Integer, String> removalListener) argument [all...] |
H A 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 evictio 288 getAll(LoadingCache<Integer, Integer> cache, List<Integer> keys) argument [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
H A D | 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/chromium_org/chrome/browser/profiles/ |
H A D | profile_avatar_downloader.cc | 22 ProfileInfoCache* cache) 25 cache_(cache) { 19 ProfileAvatarDownloader( size_t icon_index, const base::FilePath& profile_path, ProfileInfoCache* cache) argument
|
/external/chromium_org/chrome/browser/task_manager/ |
H A D | task_manager_util.cc | 50 ProfileInfoCache& cache = local 52 size_t index = cache.GetIndexOfProfileWithPath( 57 return cache.GetNameOfProfileAtIndex(index);
|
/external/chromium_org/third_party/WebKit/Source/core/accessibility/ |
H A D | AXMenuList.cpp | 59 AXObjectCache* cache = m_renderer->document().axObjectCache(); local 61 AXObject* list = cache->getOrCreate(MenuListPopupRole); 67 cache->remove(list->axObjectID()); 101 AXObjectCache* cache = document->axObjectCache(); local 114 cache->postNotification(this, document.get(), AXObjectCache::AXMenuListValueChanged, true, PostSynchronously);
|
/external/chromium_org/third_party/WebKit/Source/core/html/ |
H A D | HTMLAllCollection.cpp | 53 const NamedItemCache& cache = namedItemCache(); local 54 if (WillBeHeapVector<RawPtrWillBeMember<Element> >* elements = cache.getElementsById(name)) { 60 if (WillBeHeapVector<RawPtrWillBeMember<Element> >* elements = cache.getElementsByName(name)) {
|
/external/chromium_org/third_party/WebKit/Source/web/ |
H A D | WebCache.cpp | 52 MemoryCache* cache = memoryCache(); local 53 if (cache) 54 cache->setCapacities(static_cast<unsigned>(minDeadCapacity), static_cast<unsigned>(maxDeadCapacity), static_cast<unsigned>(capacity)); 59 MemoryCache* cache = memoryCache(); local 60 if (cache) 61 cache->evictResources(); 68 MemoryCache* cache = memoryCache(); local 69 if (cache) { 70 result->minDeadCapacity = cache->minDeadCapacity(); 71 result->maxDeadCapacity = cache 81 MemoryCache* cache = memoryCache(); local [all...] |
/external/chromium_org/third_party/freetype/src/cache/ |
H A D | 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_change 121 FTC_GCache cache = (FTC_GCache)ftccache; local 155 FTC_GCache cache = (FTC_GCache)ftccache; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/translate/ |
H A D | translate_cache.c | 42 struct translate_cache *cache = MALLOC_STRUCT(translate_cache); local 43 if (cache == NULL) { 47 cache->hash = cso_hash_create(); 48 return cache; 52 static INLINE void delete_translates(struct translate_cache *cache) argument 54 struct cso_hash *hash = cache->hash; 65 void translate_cache_destroy(struct translate_cache *cache) argument 67 delete_translates(cache); 68 cso_hash_delete(cache->hash); 69 FREE(cache); 90 translate_cache_find(struct translate_cache *cache, struct translate_key *key) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/tests/unit/ |
H A D | u_cache_test.c | 72 struct util_cache * cache; local 78 printf("Testing cache size of %d with %d values.\n", cache_size, cache_count); 80 cache = util_cache_create(cache_test_hash, 86 * Retrieve a value from an empty cache. 90 value_out = (cache_test_value *) util_cache_get(cache, key); 96 * Repeatedly insert into and retrieve values from the cache. 104 util_cache_set(cache, key, value_in); 106 value_out = util_cache_get(cache, key); 113 * In debug builds, this will trigger a self-check by the cache of 114 * the distribution of hits in its internal cache entrie [all...] |
/external/chromium_org/v8/test/cctest/compiler/ |
H A D | test-node-cache.cc | 9 #include "src/compiler/node-cache.h" 16 Int32NodeCache cache; local 19 Node** pos = cache.Find(graph.zone(), i); 22 Node** npos = cache.Find(graph.zone(), i); 31 Int32NodeCache cache; local 41 *cache.Find(graph.zone(), k) = nodes[i] = node; 46 CHECK_EQ(nodes[i], *cache.Find(graph.zone(), k)); 53 Int32NodeCache cache; local 61 *cache.Find(graph.zone(), v) = nodes[i]; 67 Node** pos = cache 79 Int64NodeCache cache; local 94 Int64NodeCache cache; local 120 PtrNodeCache cache; local 137 PtrNodeCache cache; local [all...] |
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_dense_alloc_test.cc | 31 Cache cache; local 32 alloc.InitCache(&cache); 37 IndexT idx = alloc.Alloc(&cache); 48 alloc.Free(&cache, idx); 51 alloc.FlushCache(&cache);
|
/external/e2fsprogs/lib/blkid/ |
H A D | resolve.c | 27 char *blkid_get_tag_value(blkid_cache cache, const char *tagname, argument 32 blkid_cache c = cache; 40 if (!cache) { 49 if (!cache) 61 char *blkid_get_devname(blkid_cache cache, const char *token, argument 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...] |
/external/emma/core/java12/com/vladium/emma/report/ |
H A D | IReportGenerator.java | 29 void process (IMetaData mdata, ICoverageData cdata, SourcePathCache cache, IProperties parameters) argument
|
/external/freetype/src/cache/ |
H A D | 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_change 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/ |
H A D | DiskCache.java | 1 package com.bumptech.glide.load.engine.cache; 9 * An interface for writing to and reading from a disk cache 14 * the disk cache 29 * @param key The key in the cache 35 * Write to a key in the cache. {@link Writer} is used so that the cache implementation 44 * Remove the key and value from the cache
|
H A D | DiskCacheAdapter.java | 1 package com.bumptech.glide.load.engine.cache;
|
H A D | LruResourceCache.java | 1 package com.bumptech.glide.load.engine.cache; 37 // Evict our entire bitmap cache 41 // Evict oldest half of our bitmap cache
|