/external/guava/guava-tests/test/com/google/common/cache/ |
TestingWeighers.java | 15 package com.google.common.cache;
|
/external/guice/core/src/com/google/inject/internal/ |
Annotations.java | 23 import com.google.common.cache.CacheBuilder; 24 import com.google.common.cache.CacheLoader; 25 import com.google.common.cache.LoadingCache; 74 private static final LoadingCache<Class<? extends Annotation>, Annotation> cache = field in class:Annotations 90 return (T)cache.getUnchecked(annotationType); 234 final LoadingCache<Class<? extends Annotation>, Boolean> cache = CacheBuilder.newBuilder().weakKeys() 248 return cache.getUnchecked(annotated);
|
ConstructorInjectorStore.java | 32 private final FailableCache<InjectionPoint, ConstructorInjector<?>> cache field in class:ConstructorInjectorStore 50 return cache.get(constructorInjector, errors); 54 * Purges an injection point from the cache. Use this only if the cache is not actually valid and 60 * Returns true if the injector for that point was stored in the cache, false otherwise. 63 return cache.remove(ip);
|
/external/icu/icu4c/source/i18n/unicode/ |
measfmt.h | 320 const MeasureFormatCacheData *cache; member in class:MeasureFormat
|
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/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/libopus/celt/ |
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 = m->cache.bits + m->cache.index[LM*m->nbEBands+band] [all...] |
/external/mesa3d/src/gallium/auxiliary/translate/ |
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) 54 struct cso_hash *hash = cache->hash; 65 void translate_cache_destroy(struct translate_cache *cache) 67 delete_translates(cache); 68 cso_hash_delete(cache->hash); 69 FREE(cache); [all...] |
/external/mesa3d/src/gallium/tests/unit/ |
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 entries [all...] |
/external/objenesis/main/src/org/objenesis/ |
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/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
CacheResponse.java | 18 import com.squareup.okhttp.Cache; 30 Cache cache = new Cache(cacheDirectory, cacheSize); local 33 client.setCache(cache); 46 System.out.println("Response 1 cache response: " + response1.cacheResponse()); 54 System.out.println("Response 2 cache response: " + response2.cacheResponse());
|
/external/skia/bench/ |
GrResourceCacheBench.cpp | 77 // Set the cache budget to be very large so no purging occurs. 80 GrResourceCache* cache = context->getResourceCache(); variable 82 // Make sure the cache is empty. 83 cache->purgeAllUnlocked(); 84 SkASSERT(0 == cache->getResourceCount() && 0 == cache->getResourceBytes()); 90 SkASSERT(CACHE_SIZE_COUNT == cache->getResourceCount()); 123 // Set the cache budget to be very large so no purging occurs. 126 GrResourceCache* cache = fContext->getResourceCache(); variable 128 // Make sure the cache is empty 141 GrResourceCache* cache = fContext->getResourceCache(); variable [all...] |
SkGlyphCacheBench.cpp | 24 SkGlyphCache* cache = autoCache.getCache(); local 27 glyphs[c] = cache->unicharToGlyph(c); 31 const SkGlyph& g = cache->getGlyphIDMetrics(glyphs[c]); 32 cache->findImage(g);
|
/external/skia/src/image/ |
SkImage_Generator.cpp | 19 SkImage_Generator(SkImageCacherator* cache) 20 : INHERITED(cache->info().width(), cache->info().height(), cache->uniqueID()) 21 , fCache(cache) // take ownership 98 SkImageCacherator* cache = SkImageCacherator::NewFromGenerator(generator, subset); local 99 if (!cache) { 102 return new SkImage_Generator(cache);
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue55/ |
Post.java | 22 public transient String cache; field in class:Post 27 cache = "Q34598723SDW234";
|
/external/v8/src/snapshot/ |
serializer-common.cc | 8 #include "src/ic/stub-cache.h" 57 // The partial snapshot cache is terminated by undefined. We visit the 63 List<Object*>* cache = isolate->partial_snapshot_cache(); local 66 if (cache->length() <= i) cache->Add(Smi::FromInt(0)); 67 // During deserialization, the visitor populates the partial snapshot cache 68 // and eventually terminates the cache with undefined. 69 visitor->VisitPointer(&cache->at(i)); 70 if (cache->at(i)->IsUndefined(isolate)) break;
|
/external/v8/test/unittests/compiler/ |
node-cache-unittest.cc | 5 #include "src/compiler/node-cache.h" 19 Int32NodeCache cache; local 22 Node** pos = cache.Find(zone(), i); 25 Node** npos = cache.Find(zone(), i); 33 Int32NodeCache cache; local 40 *cache.Find(zone(), k) = nodes[i] = node; 45 EXPECT_EQ(nodes[i], *cache.Find(zone(), k)); 51 Int32NodeCache cache; local 58 *cache.Find(zone(), v) = nodes[i]; 64 Node** pos = cache.Find(zone(), v) 75 Int64NodeCache cache; local 89 Int64NodeCache cache; local 113 Int32NodeCache cache; local 136 Int64NodeCache cache; local [all...] |
/external/zopfli/src/zopfli/ |
cache.c | 20 #include "cache.h" 36 that this cache value is not filled in yet. */ 54 unsigned char* cache; local 60 cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3]; 64 cache[j * 3] = i - 3; 65 cache[j * 3 + 1] = sublen[i] % 256; 66 cache[j * 3 + 2] = (sublen[i] >> 8) % 256; 74 cache[(ZOPFLI_CACHE_LENGTH - 1) * 3] = bestlength - 3; 87 unsigned char* cache; local 92 cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3] 109 unsigned char* cache; local [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
bitbuffer.h | 53 UWord32 cache; member in struct:BIT_BUF
|
/frameworks/base/core/java/android/net/ |
SSLSessionCache.java | 33 * File-based cache of established SSL sessions. When re-establishing a 34 * connection to the same server, using an SSL session cache can save some time, 36 * This is a persistent cache which can span executions of the application. 45 * Installs a {@link SSLSessionCache} on a {@link SSLContext}. The cache will 49 * @param cache the cache instance to install, or {@code null} to uninstall any 50 * existing cache. 53 * cache. 57 public static void install(SSLSessionCache cache, SSLContext context) { 61 cache == null ? null : cache.mSessionCache) 98 SSLClientSessionCache cache = null; local [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
BigCacheTest.java | 29 * Builds the drawing cache of two Views, one smaller than the maximum cache size, 30 * one larger than the maximum cache size. The latter should always have a null 31 * drawing cache. 72 final Bitmap[] cache = new Bitmap[1]; local 78 cache[0] = view.getDrawingCache(); 82 return cache[0];
|
/frameworks/native/libs/binder/ |
PermissionCache.cpp | 51 void PermissionCache::cache(const String16& permission, function in class:android::PermissionCache 107 pc.cache(permission, uid, granted);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
MemoryCacheManager.java | 36 * Extend this interface to provide a reclaim method on a memory cache. 43 * Register the memory cache with the application. 45 public void registerMemoryCache(final MemoryCache cache) { 47 mMemoryCaches.add(cache); 52 * Unregister the memory cache with the application. 54 public void unregisterMemoryCache(final MemoryCache cache) { 56 mMemoryCaches.remove(cache); 65 // We're creating a cache copy in the lock to ensure we're not working on a concurrently 71 for (final MemoryCache cache : shallowCopy) { 72 cache.reclaim() [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/ |
SamplePool.java | 17 package com.android.usbtuner.exoplayer.cache;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
DictionaryFacilitatorLruCacheTests.java | 27 final DictionaryFacilitatorLruCache cache = local 30 final DictionaryFacilitator dictionaryFacilitatorEnUs = cache.get(Locale.US); 34 final DictionaryFacilitator dictionaryFacilitatorFr = cache.get(Locale.FRENCH); 38 final DictionaryFacilitator dictionaryFacilitatorDe = cache.get(Locale.GERMANY);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
QuickContactsDemo.java | 77 final ContactListItemCache cache = (ContactListItemCache) view.getTag(); local 79 cursor.copyStringToBuffer(SUMMARY_NAME_COLUMN_INDEX, cache.nameBuffer); 80 int size = cache.nameBuffer.sizeCopied; 81 cache.nameView.setText(cache.nameBuffer.data, 0, size); 84 cache.photoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey)); 90 ContactListItemCache cache = new ContactListItemCache(); local 91 cache.nameView = (TextView) view.findViewById(R.id.name); 92 cache.photoView = (QuickContactBadge) view.findViewById(R.id.badge); 93 view.setTag(cache); [all...] |