/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
H A D | StringKey.java | 1 package com.bumptech.glide.load.engine.cache;
|
/external/guava/guava/src/com/google/common/cache/ |
H A D | AbstractLoadingCache.java | 17 package com.google.common.cache; 32 * <p>To implement a cache, the programmer needs only to extend this class and provide an
|
H A D | 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
|
H A D | 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. 38 * <p>When evaluated as a {@link Function}, a cache yields the same result as invoking 49 * Returns the value associated with {@code key} in this cache, first loading that value if 50 * necessary. No observable state associated with this cache is modified until loading completes. 57 * into the cache. Newly loaded values are added to the cache using 62 * <p>If the cache loader associated with this cache i [all...] |
H A D | RemovalCause.java | 17 package com.google.common.cache;
|
/external/guava/guava-tests/test/com/google/common/cache/ |
H A D | NullCacheTest.java | 15 package com.google.common.cache; 17 import static com.google.common.cache.CacheTesting.checkEmpty; 18 import static com.google.common.cache.TestingCacheLoaders.constantLoader; 19 import static com.google.common.cache.TestingCacheLoaders.exceptionLoader; 20 import static com.google.common.cache.TestingRemovalListeners.queuingRemovalListener; 23 import com.google.common.cache.CacheLoader.InvalidCacheLoadException; 24 import com.google.common.cache.TestingRemovalListeners.QueuingRemovalListener; 44 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() 50 assertSame(computed, cache.getUnchecked(key)); 56 checkEmpty(cache); [all...] |
H A D | TestingWeighers.java | 15 package com.google.common.cache;
|
H A D | CacheExpirationTest.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; 23 import com.google.common.cache.TestingCacheLoaders.IdentityLoader; 24 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener; 37 * Tests relating to cache expiration: make sure entries expire at the right times, make sure 53 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() 58 checkExpiration(cache, loader, ticker, removalListener); 65 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() 70 checkExpiration(cache, loade 73 checkExpiration(LoadingCache<String, Integer> cache, WatchedCreatorLoader loader, FakeTicker ticker, CountingRemovalListener<String, Integer> removalListener) argument 122 runExpirationTest(LoadingCache<String, Integer> cache, WatchedCreatorLoader loader, FakeTicker ticker, CountingRemovalListener<String, Integer> removalListener) argument 397 runRemovalScheduler(LoadingCache<String, Integer> cache, CountingRemovalListener<String, Integer> removalListener, WatchedCreatorLoader loader, FakeTicker ticker, String keyPrefix, long ttl) argument 443 getAll(LoadingCache<Integer, Integer> cache, List<Integer> keys) argument [all...] |
H A 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; 45 for (LoadingCache<Object, Object> cache : caches()) { 46 checkEmpty(cache); 51 for (LoadingCache<Object, Object> cache : caches()) { 52 cache.getUnchecked("a"); 53 cache 380 warmUp(LoadingCache<Object, Object> cache, int minimum, int maximum) argument [all...] |
H A 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; 27 import com.google.common.cache.CacheBuilderFactory.DurationSpec; 28 import com.google.common.cache.LocalCache.Strength; 58 for (LoadingCache<Object, Object> cache : caches()) { 60 List<Entry<Object, Object>> warmed = warmUp(cache); 61 assertEquals(WARMUP_SIZE, cache.size()); 62 assertMapSize(cache 336 warmUp(LoadingCache<Object, Object> cache) argument 344 warmUp( LoadingCache<Object, Object> cache, int minimum, int maximum) argument [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
H A D | measfmt.h | 303 const MeasureFormatCacheData *cache; member in class:MeasureFormat
|
/external/libnl/tests/ |
H A D | test-nf-cache-mngr.c | 3 static void change_cb(struct nl_cache *cache, struct nl_object *obj, argument
|
/external/mesa3d/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/mesa3d/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/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/ |
H A D | CharCache.java | 24 private char[] cache; field in class:CharCache 28 cache = new char[capacity]; 33 int available = cache.length - pos; 35 System.arraycopy(chars, 0, cache, pos, toWrite); 40 return new String(cache, 0, pos); 48 if (pos < cache.length - 1) { 49 cache[pos] = c;
|
/external/smack/src/org/jivesoftware/smackx/entitycaps/cache/ |
H A D | EntityCapsPersistentCache.java | 14 package org.jivesoftware.smackx.entitycaps.cache;
|
H A D | SimpleDirectoryPersistentCache.java | 17 package org.jivesoftware.smackx.entitycaps.cache; 74 * @param cacheDir The directory where the cache will be stored.
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
H A D | DEREnumerated.java | 141 private static ASN1Enumerated[] cache = new ASN1Enumerated[12]; field in class:DEREnumerated 156 if (value >= cache.length) 161 ASN1Enumerated possibleMatch = cache[value]; 165 possibleMatch = cache[value] = new ASN1Enumerated(Arrays.clone(enc));
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
H A D | cloud_external_data_store.cc | 33 ResourceCache* cache) 36 cache_(cache) { 30 CloudExternalDataStore( const std::string& cache_key, scoped_refptr<base::SequencedTaskRunner> task_runner, ResourceCache* cache) argument
|
/external/chromium_org/chrome/browser/profiles/ |
H A D | profile_list_desktop_browsertest.cc | 37 scoped_ptr<AvatarMenu> CreateAvatarMenu(ProfileInfoCache* cache) { argument 38 return scoped_ptr<AvatarMenu>(new AvatarMenu(cache, NULL, browser())); 63 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 64 size_t index = cache.GetIndexOfProfileWithPath(current_profile->GetPath()); 66 scoped_ptr<AvatarMenu> menu = CreateAvatarMenu(&cache); 76 EXPECT_FALSE(cache.ProfileIsSigninRequiredAtIndex(index)); 80 EXPECT_TRUE(cache.ProfileIsSigninRequiredAtIndex(index)); 106 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 108 base::FilePath user_dir = cache.GetUserDataDir(); 121 ASSERT_EQ(cache [all...] |
/external/chromium_org/chrome/browser/supervised_user/ |
H A D | supervised_user_service_browsertest.cc | 54 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 56 size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 57 cache.SetIsOmittedProfileAtIndex(index, true); 58 ASSERT_TRUE(cache.IsOmittedProfileAtIndex(index)); 70 ASSERT_TRUE(cache.IsOmittedProfileAtIndex(index)); 78 EXPECT_FALSE(cache.IsOmittedProfileAtIndex(index)); 95 const ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 96 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 98 base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); 113 const ProfileInfoCache& cache local [all...] |
/external/chromium_org/chrome/browser/ui/views/profiles/ |
H A D | new_avatar_menu_button_browsertest.cc | 62 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 63 cache.SetUserNameOfProfileAtIndex(0, base::UTF8ToUTF16("user_name"));
|
/external/chromium_org/content/browser/appcache/ |
H A D | appcache_working_set.cc | 32 void AppCacheWorkingSet::AddCache(AppCache* cache) { argument 35 DCHECK(cache->cache_id() != kAppCacheNoCacheId); 36 int64 cache_id = cache->cache_id(); 38 caches_.insert(CacheMap::value_type(cache_id, cache)); 41 void AppCacheWorkingSet::RemoveCache(AppCache* cache) { argument 42 caches_.erase(cache->cache_id());
|
/external/chromium_org/content/browser/gpu/ |
H A D | shader_disk_cache_unittest.cc | 52 scoped_refptr<ShaderDiskCache> cache = local 54 ASSERT_TRUE(cache.get() != NULL); 57 int rv = cache->SetAvailableCallback(available_cb.callback()); 59 EXPECT_EQ(0, cache->Size()); 61 cache->Cache(kCacheKey, kCacheValue); 64 rv = cache->SetCacheCompleteCallback(complete_cb.callback()); 66 EXPECT_EQ(1, cache->Size()); 70 rv = cache->Clear(time, time, clear_cb.callback()); 72 EXPECT_EQ(0, cache->Size());
|
/external/chromium_org/third_party/WebKit/Source/core/accessibility/ |
H A D | AXMenuListPopup.cpp | 115 AXObjectCache* cache = axObjectCache(); local 116 if (!cache) 124 cache->remove(child->axObjectID()); 142 AXObjectCache* cache = axObjectCache(); local 145 cache->postNotification(child.get(), document(), AXObjectCache::AXFocusedUIElementChanged, true, PostSynchronously); 146 cache->postNotification(child.get(), document(), AXObjectCache::AXMenuListItemSelected, true, PostSynchronously);
|