| /external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
| LocalCache.java | 17 package com.google.common.cache; 25 import com.google.common.cache.AbstractCache.StatsCounter; 342 * LocalManualCache is a wrapper around LocalCache for a cache without loading. 359 // Cache methods 411 * LocalLoadingCache is a wrapper around LocalCache for a cache with loading. 424 // Cache methods 746 * Abstraction layer for the KeySet, which redirects to cache methods. 771 * Abstraction layer for the Values set, which redirects to cache methods. 791 * Abstraction layer for the EntrySet, which redirects to cache methods.
|
| /external/icu/android_icu4j/src/main/java/android/icu/impl/ |
| LocaleDisplayNamesImpl.java | 55 private static final Cache cache = new Cache(); field in class:LocaleDisplayNamesImpl 93 synchronized (cache) { 94 return cache.get(locale, dialectHandling); 99 synchronized (cache) { 100 return cache.get(locale, contexts); 652 private static class Cache { 657 private LocaleDisplayNames cache; 665 this.cache = new LocaleDisplayNamesImpl(locale, dialectHandling) [all...] |
| /external/icu/android_icu4j/src/main/java/android/icu/text/ |
| DateIntervalFormat.java | 289 // Cache for the locale interval pattern 319 * cache to initialize fIntervalPatterns. [all...] |
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
| LocaleDisplayNamesImpl.java | 51 private static final Cache cache = new Cache(); field in class:LocaleDisplayNamesImpl 89 synchronized (cache) { 90 return cache.get(locale, dialectHandling); 95 synchronized (cache) { 96 return cache.get(locale, contexts); 648 private static class Cache { 653 private LocaleDisplayNames cache; 661 this.cache = new LocaleDisplayNamesImpl(locale, dialectHandling) [all...] |
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
| DateIntervalFormat.java | 289 // Cache for the locale interval pattern 319 * cache to initialize fIntervalPatterns. [all...] |
| /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
| SpriteCache.java | 45 * To cache {@link Sprite sprites} or {@link Texture textures}, first call {@link SpriteCache#beginCache()}, then call the
46 * appropriate add method to define the images. To complete the cache, call {@link SpriteCache#endCache()} and store the returned
47 * cache ID.<br>
49 * To draw with SpriteCache, first call {@link #begin()}, then call {@link #draw(int)} with a cache ID. When SpriteCache drawing
55 * <code>cache.getProjectionMatrix().setToOrtho2D(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());</code><br>
76 private Array<Cache> caches = new Array();
81 private Cache currentCache;
96 /** Creates a cache that uses indexed geometry and can contain up to 1000 images. */
101 /** Creates a cache with the specified size, using a default shader if OpenGL ES 2.0 is being used.
102 * @param size The maximum number of images this cache can hold. The memory required to hold the images is allocated up front. 195 Cache cache = currentCache; local 888 Cache cache = caches.get(cacheID); local 913 Cache cache = caches.get(cacheID); local [all...] |
| /external/libnl/lib/route/ |
| link.c | 80 * // the kernel and put them into a cache. 81 * struct nl_cache *cache = rtnl_link_alloc_cache(sk); 85 * struct rtnl_link *link = rtnl_link_get_by_name(cache, "lo"); 89 * int ifindex = rtnl_link_name2i(cache, "lo"); 90 * struct rtnl_link *link = rtnl_link_get(cache, ifindex); 92 * // After successful usage, the object must be given back to the cache 110 * struct rtnl_link *old = rtnl_link_get(cache, "eth0"); 425 static int link_request_update(struct nl_cache *cache, struct nl_sock *sk) 433 struct nl_cache *cache = dp_cache(obj); local 443 struct rtnl_link *master = rtnl_link_get(cache, link->l_master) 572 struct nl_cache *cache = dp_cache(obj); local [all...] |
| /external/libopus/celt/ |
| bands.c | 884 const unsigned char *cache; local 910 cache = m->cache.bits + m->cache.index[(LM+1)*m->nbEBands+i]; 911 if (LM != -1 && b > cache[cache[0]]+12 && N>2) [all...] |
| /external/libxml2/include/libxml/ |
| xpath.h | 353 /* Cache for reusal of XPath objects */ 354 void *cache; member in struct:_xmlXPathContext
|
| /external/mesa3d/src/gallium/auxiliary/cso_cache/ |
| cso_context.c | 31 * Wrap the cso cache & hash mechanisms in a simplified 81 struct cso_cache *cache; member in struct:cso_context 259 ctx->cache = cso_cache_create(); 260 if (ctx->cache == NULL) 262 cso_cache_set_sanitize_callback(ctx->cache, 272 if (0) cso_set_maximum_cache_size( ctx->cache, 4 ); 338 if (ctx->cache) { 339 cso_cache_delete( ctx->cache ); 340 ctx->cache = NULL; 360 * in the cache or they will create a new state from the give [all...] |
| /external/mesa3d/src/mesa/drivers/dri/common/ |
| xmlconfig.c | 108 /** \brief Find an option in an option cache with the name as key */ 109 static GLuint findOption (const driOptionCache *cache, const char *name) { 111 GLuint size = 1 << cache->tableSize, mask = size - 1; 119 hash = (hash >> (16-cache->tableSize/2)) & mask; 124 if (cache->info[hash].name == 0) 126 else if (!strcmp (name, cache->info[hash].name)) 135 /** \brief Count the real number of options in an option cache */ 136 static GLuint countOptions (const driOptionCache *cache) { 137 GLuint size = 1 << cache->tableSize; 140 if (cache->info[i].name 490 driOptionCache *cache; member in struct:OptInfoData 553 driOptionCache *cache = data->cache; local 748 driOptionCache *cache; member in struct:OptConfData 812 driOptionCache *cache = data->cache; local [all...] |
| /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
| HttpOverSpdyTest.java | 18 import com.squareup.okhttp.Cache; 78 protected Cache cache; field in class:HttpOverSpdyTest 89 cache = new Cache(tempDir.getRoot(), Integer.MAX_VALUE); 325 client.client().setCache(cache); 327 server.enqueue(new MockResponse().addHeader("cache-control: max-age=60").setBody("A")); 330 assertEquals(1, cache.getRequestCount()); 331 assertEquals(1, cache.getNetworkCount()); 332 assertEquals(0, cache.getHitCount()) [all...] |
| /external/skia/src/effects/ |
| SkBlurMaskFilter.cpp | 286 SkCachedData* cache = copy_mask_to_cacheddata(mask); local 287 if (cache) { 288 SkMaskCache::Add(sigma, style, quality, rrect, *mask, cache); 290 return cache; 300 SkCachedData* cache = copy_mask_to_cacheddata(mask); local 301 if (cache) { 302 SkMaskCache::Add(sigma, style, quality, rects, count, *mask, cache); 304 return cache; 414 SkCachedData* cache = find_cached_rrect(&patch->fMask, sigma, fBlurStyle, local 416 if (!cache) { 547 SkCachedData* cache = find_cached_rects(&patch->fMask, sigma, fBlurStyle, local [all...] |
| /external/v8/src/compiler/ |
| effect-control-linearizer.cc | 1324 Node* cache = local [all...] |
| /external/v8/src/heap/ |
| incremental-marking.cc | 8 #include "src/compilation-cache.h" 234 // We will mark cache black with a separate pass when we finish marking. 236 // so the cache can be undefined. 237 Object* cache = context->get(Context::NORMALIZED_MAP_CACHE_INDEX); local 238 if (!cache->IsUndefined(map->GetIsolate())) { 239 MarkObjectGreyDoNotEnqueue(cache); 933 HeapObject* cache = HeapObject::cast( local [all...] |
| /external/v8/test/cctest/ |
| test-serialize.cc | 36 #include "src/compilation-cache.h" 921 isolate->compilation_cache()->Disable(); // Disable same-isolate code cache. 936 ScriptData* cache = NULL; local 979 ScriptData* cache = NULL; local 1017 ScriptData* cache = NULL; local 1072 ScriptData* cache = NULL; local 1124 ScriptData* cache = NULL; local 1193 ScriptData* cache = NULL; local 1306 ScriptData* cache = NULL; local 1364 ScriptData* cache = NULL; local 1414 ScriptData* cache = NULL; local 1452 v8::ScriptCompiler::CachedData* cache; local 1493 v8::ScriptCompiler::CachedData* cache = ProduceCache(source); local 1534 v8::ScriptCompiler::CachedData* cache = ProduceCache(source); local 1563 v8::ScriptCompiler::CachedData* cache = ProduceCache(source); local 1595 v8::ScriptCompiler::CachedData* cache; local 1774 v8::ScriptCompiler::CachedData* cache = ProduceCache(source); local [all...] |
| /external/wpa_supplicant_8/src/ap/ |
| wpa_auth_ft.c | 171 struct wpa_ft_pmk_cache *cache; local 173 cache = os_zalloc(sizeof(*cache)); 175 return cache; 179 void wpa_ft_pmk_cache_deinit(struct wpa_ft_pmk_cache *cache) 184 r0 = cache->pmk_r0; 192 r1 = cache->pmk_r1; 200 os_free(cache); 208 struct wpa_ft_pmk_cache *cache = wpa_auth->ft_pmk_cache; local 211 /* TODO: add expiration and limit on number of entries in cache */ 233 struct wpa_ft_pmk_cache *cache = wpa_auth->ft_pmk_cache; local 258 struct wpa_ft_pmk_cache *cache = wpa_auth->ft_pmk_cache; local 283 struct wpa_ft_pmk_cache *cache = wpa_auth->ft_pmk_cache; local [all...] |
| /frameworks/base/libs/hwui/ |
| RenderNode.cpp | 482 // which would thrash the layer cache 524 TextureCache& cache = Caches::getInstance().textureCache; local 528 info.prepareTextures = cache.prefetchAndMarkInUse(ownerToken, bitmapResource); [all...] |
| /frameworks/base/location/java/android/location/ |
| Location.java | 434 BearingDistanceCache cache = sBearingDistanceCache.get(); local 436 endLatitude, endLongitude, cache); 437 results[0] = cache.mDistance; 439 results[1] = cache.mInitialBearing; 441 results[2] = cache.mFinalBearing; 455 BearingDistanceCache cache = sBearingDistanceCache.get(); local 457 if (mLatitude != cache.mLat1 || mLongitude != cache.mLon1 || 458 dest.mLatitude != cache.mLat2 || dest.mLongitude != cache.mLon2) 476 BearingDistanceCache cache = sBearingDistanceCache.get(); local [all...] |
| /frameworks/native/cmds/installd/ |
| utils.cpp | 542 cache_t* cache = (cache_t*)calloc(1, sizeof(cache_t)); local 543 return cache; 548 static void* _cache_malloc(cache_t* cache, size_t len) 559 CACHE_NOISY(ALOGI("Allocated large cache mem block: %p size %zu", res, len)); 561 if (cache->memBlocks == NULL) { 563 cache->memBlocks = res; 565 *(void**)res = *(void**)cache->memBlocks; 566 *(void**)cache->memBlocks = res; 570 int8_t* res = cache->curMemBlockAvail; 572 if (cache->memBlocks == NULL || nextPos > cache->curMemBlockEnd) [all...] |
| /hardware/intel/common/libwsbm/src/ |
| wsbm_slabpool.c | 179 struct _WsbmSlabCache *cache; member in struct:_WsbmSlabPool 253 wsbmFreeTimeoutKBOsLocked(struct _WsbmSlabCache *cache, struct timeval *time) 258 if (!wsbmTimeAfterEq(time, &cache->nextCheck)) 261 WSBMLISTFOREACHSAFE(list, next, &cache->timeoutList) { 272 cache->nextCheck = *time; 273 wsbmTimeAdd(&cache->nextCheck, &cache->checkInterval); 283 wsbmSetKernelBOFree(struct _WsbmSlabCache *cache, 291 WSBM_MUTEX_LOCK(&cache->mutex); 292 wsbmTimeAdd(&timeFreed, &cache->slabTimeout) 314 struct _WsbmSlabCache *cache = slabPool->cache; local 546 struct _WsbmSlabCache *cache = header->slabPool->cache; local [all...] |
| /libcore/ojluni/src/main/native/ |
| zip_util.c | 785 * Returns the jzfile corresponding to the given file name from the cache of 786 * zip files, or NULL if the file is not in the cache. If the name is longer 831 * jzfile in a cache, and returns that jzfile. Returns NULL in case of error. 989 cencache *cache = &zip->cencache; local 991 if (cache->data != NULL 992 && (cenpos >= cache->pos) 993 && (cenpos + CENHDR <= cache->pos + CENCACHE_PAGESIZE)) 995 cen = cache->data + cenpos - cache->pos; 996 if (cenpos + CENSIZE(cen) <= cache->pos + CENCACHE_PAGESIZE [all...] |
| /packages/apps/Email/provider_src/com/android/email/provider/ |
| ContentCache.java | 40 * An LRU cache for EmailContent (Account, HostAuth, Mailbox, and Message, thus far). The intended 41 * user of this cache is EmailProvider itself; caching is entirely transparent to users of the 47 * To create a cache: 48 * ContentCache cache = new ContentCache(name, projection, max); 50 * To (try to) get a cursor from a cache: 51 * Cursor cursor = cache.getCursor(id, projection); 53 * To read from a table and cache the resulting cursor: 54 * 1. Get a CacheToken: CacheToken token = cache.getToken(id); 56 * 3. Put the cursor in the cache: cache.putCursor(cursor, id, token) [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/app/ |
| MoviePlayer.java | 500 BlobCache cache = CacheManager.getCache(mContext, local 510 cache.insert(uri.hashCode(), bos.toByteArray()); 518 BlobCache cache = CacheManager.getCache(mContext, local 522 byte[] data = cache.lookup(uri.hashCode());
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
| GeometryMathUtils.java | 27 import com.android.gallery3d.filtershow.cache.BitmapCache; 28 import com.android.gallery3d.filtershow.cache.ImageLoader; 394 BitmapCache cache = MasterImage.getImage().getBitmapCache(); local 395 cache.cache(image);
|