/external/wpa_supplicant_8/src/ap/ |
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) < 0) [all...] |
/frameworks/base/core/tests/coretests/src/android/net/http/ |
HttpResponseCacheTest.java | 87 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); local 88 cache.close(); 90 cache.flush(); 97 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); local 98 cache.close(); 103 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); local 104 cache.delete(); 113 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); local 116 .addHeader("Cache-Control: max-age=60") 122 assertEquals(1, cache.getRequestCount()) [all...] |
/external/webkit/Source/WebKit/gtk/webkit/ |
webkitapplicationcache.cpp | 29 // web application cache maximum storage size 35 * Returns the maximum size of the cache storage. 38 * Returns: the current application cache maximum storage size 53 * @size: the new web application cache maximum storage size 55 * Sets new application cache maximum storage size. 56 * Changing the application cache storage size will clear the cache 57 * and rebuild cache storage. 79 * cache databases. By default this path is set to $XDG_DATA_HOME/webkit/databases 82 * Returns: the current application cache database directory pat [all...] |
/frameworks/base/core/java/android/net/ |
SSLSessionCache.java | 29 * File-based cache of established SSL sessions. When re-establishing a 30 * connection to the same server, using an SSL session cache can save some time, 32 * This is a persistent cache which can span executions of the application. 41 * Create a session cache using the specified directory. 46 * @throws IOException if the cache can't be opened 53 * Create a session cache at the default location for this app. 60 SSLClientSessionCache cache = null; local 62 cache = FileClientSessionCache.usingDirectory(dir); 64 Log.w(TAG, "Unable to create SSL session cache in " + dir, e); 66 mSessionCache = cache; [all...] |
/external/skia/legacy/src/core/ |
SkGlyphCache.cpp | 36 SkDebugf("Font Cache Hash success rate: %d%%\n", 445 SkGlyphCache* cache; local 449 for (cache = globals.fHead; cache != NULL; cache = cache->fNext) { 450 if (proc(cache, context)) { 462 - call a fontscaler (which might call into the cache) 471 SkGlyphCache* cache; local 479 cache = hash[index] 620 SkGlyphCache* cache = FindTail(globals->fHead); local [all...] |
/frameworks/volley/src/com/android/volley/ |
RequestQueue.java | 35 * resolving from either cache or network on a worker thread, and then delivering 48 * <li>containsKey(cacheKey) indicates that there is a request in flight for the given cache 50 * <li>get(cacheKey) returns waiting requests for the given cache key. The in flight request 64 /** The cache triage queue. */ 75 /** Cache interface for retrieving and storing respones. */ 76 private final Cache mCache; 87 /** The cache dispatcher. */ 93 * @param cache A Cache to use for persisting responses to disk 98 public RequestQueue(Cache cache, Network network, int threadPoolSize [all...] |
/external/webkit/Source/WebCore/loader/appcache/ |
ApplicationCacheHost.cpp | 78 // Check if this request should be loaded from the application cache 85 // Get the resource from the application cache. By definition, cacheForMainRequest() returns a cache that contains the resource. 138 // Even when the main resource is being loaded from an application cache, loading can fail if aborted. 218 // or if there were network errors (but not if the user canceled the download), then instead get, from the cache, the resource of the fallback entry 277 ApplicationCache* cache = applicationCache(); local 278 if (!cache || !cache->isComplete()) 281 ApplicationCache::ResourceMap::const_iterator end = cache->end(); 282 for (ApplicationCache::ResourceMap::const_iterator it = cache->begin(); it != end; ++it) 296 ApplicationCache* cache = applicationCache(); local 338 ApplicationCache* cache = applicationCache(); local 406 ApplicationCache* cache = applicationCache(); local 430 ApplicationCache* cache = applicationCache(); local 439 ApplicationCache* cache = applicationCache(); local [all...] |
/frameworks/base/docs/html/training/displaying-bitmaps/ |
cache-bitmap.jd | 14 <li><a href="#memory-cache">Use a Memory Cache</a></li> 15 <li><a href="#disk-cache">Use a Disk Cache</a></li> 44 and disk cache can often help here, allowing components to quickly reload processed images.</p> 46 <p>This lesson walks you through using a memory and disk bitmap cache to improve the responsiveness 49 <h2 id="memory-cache">Use a Memory Cache</h2> 51 <p>A memory cache offers fast access to bitmaps at the cost of taking up valuable application 56 recently used member before the cache exceeds its designated size.</p [all...] |
/external/freetype/include/freetype/ |
ftcache.h | 5 /* FreeType Cache subsystem (specification). */ 36 * Cache Sub-System 39 * How to cache face, size, and glyph data with FreeType~2. 42 * This section describes the FreeType~2 cache sub-system, which is used 49 * The cache is highly portable and thus doesn't know anything about the 54 * @FTC_FaceID values, provided to the cache by the client. Note that 55 * the cache only stores and compares these values, and doesn't try to 58 * Second, the cache calls, only when needed, a client-provided function 60 * then completely managed by the cache, including its termination 71 * Note that for the cache to work correctly, the face ID values must b [all...] |
/external/e2fsprogs/lib/ext2fs/ |
unix_io.c | 5 * Implements a one-block write-through cache. 90 struct unix_cache cache[CACHE_SIZE]; member in struct:unix_private_data 113 struct unix_cache *cache, unsigned long long block); 291 * Here we implement the cache functions 294 /* Allocate the cache buffers */ 299 struct unix_cache *cache; local 303 for (i=0, cache = data->cache; i < CACHE_SIZE; i++, cache++) { 304 cache->block = 0 327 struct unix_cache *cache; local 353 struct unix_cache *cache, *unused_cache, *oldest_cache; local 399 struct unix_cache *cache; local 628 struct unix_cache *cache, *reuse[READ_DIRECT_SIZE]; local 715 struct unix_cache *cache, *reuse; local [all...] |
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
RegexCache.java | 24 * LRU Cache for compiled regular expressions used by the libphonenumbers libary. 29 private LRUCache<String, Pattern> cache; field in class:RegexCache 32 cache = new LRUCache<String, Pattern>(size); 36 Pattern pattern = cache.get(regex); 39 cache.put(regex, pattern); 46 return cache.containsKey(regex); 50 // LinkedHashMap offers a straightforward implementation of LRU cache.
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/ |
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/v8/src/ |
compilation-cache.h | 34 // The compilation cache consists of several generational sub-caches which uses 35 // this class as a base class. A sub-cache contains a compilation cache tables 36 // for each generation of the sub-cache. Since the same source code string has 49 // Index for the first generation in the cache. 52 // Get the compilation cache tables for a specific generation. 64 // Age the sub-cache by evicting the oldest generation and creating a new 72 // Clear this sub-cache evicting all its content. 75 // Remove given shared function info from sub-cache. 78 // Number of generations in this sub-cache [all...] |
/bionic/libc/private/ |
resolv_cache.h | 36 /* gets the cache for an interface. Set ifname argument to NULL or 37 * empty buffer ('\0') to get cache for default interface. 38 * returned cache might be NULL*/ 43 * and will flush the cache */ 86 * name servers are retrieved from the cache which is associated 92 RESOLV_CACHE_UNSUPPORTED, /* the cache can't handle that kind of queries */ 94 RESOLV_CACHE_NOTFOUND, /* the cache doesn't know about this query */ 95 RESOLV_CACHE_FOUND /* the cache found the answer */ 100 _resolv_cache_lookup( struct resolv_cache* cache, 107 /* add a (query,answer) to the cache, only call if _resolv_cache_looku [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
AbstractLoadingCacheTest.java | 17 package com.google.common.cache; 37 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { local 54 cache.getUnchecked(new Object()); 62 assertSame(newValue, cache.getUnchecked(new Object())); 68 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { local 85 cache.getUnchecked(new Object()); 93 assertSame(newValue, cache.getUnchecked(new Object())); 99 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { local 116 cache.getUnchecked(new Object()); 124 assertSame(newValue, cache.getUnchecked(new Object())) 130 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { local [all...] |
/frameworks/base/libs/hwui/ |
TextureCache.h | 48 * A simple LRU texture cache. The cache has a maximum size expressed in bytes. 49 * Any texture added to the cache causing the cache to grow beyond the maximum 59 * Used as a callback when an entry is removed from the cache. 66 * cannot be found in the cache, a new texture is generated. 71 * texture is not kept in the cache. The caller must destroy the texture. 90 * Clears the cache. This causes all textures to be deleted. 95 * Sets the maximum size of the cache in bytes. 99 * Returns the maximum size of the cache in bytes [all...] |
/libcore/luni/src/main/java/java/net/ |
AddressCache.java | 22 * Implements caching for {@code InetAddress}. We use a unified cache for both positive and negative 23 * cache entries. 31 * When the cache contains more entries than this, we start dropping the oldest ones. 36 // The TTL for the Java-level cache is short, just 2s. 39 // The actual cache. 40 private final BasicLruCache<String, AddressCacheEntry> cache field in class:AddressCache 63 * Removes all entries from the cache. 66 cache.evictAll(); 75 AddressCacheEntry entry = cache.get(hostname); 76 // Do we have a valid cache entry [all...] |
/external/skia/legacy/include/core/ |
SkGraphics.h | 25 * Call this to release any memory held privately, such as the font cache. 36 * Return the max number of bytes that should be used by the font cache. 37 * If the cache needs to allocate more, it will purge previous entries. 43 * Specify the max number of bytes that should be used by the font cache. 44 * If the cache needs to allocate more, it will purge previous entries. 52 * For debugging purposes, this will attempt to purge the font cache. It 54 * draws to be recreated, since they will no longer be in the cache. 60 * as cache sizes, here, for instance: 61 * font-cache-limit=12345678
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
ContentCacheTests.java | 177 // The underlying cursor shouldn't be closed because it's in a cache (we'll test 205 // Create a cache of size 2 206 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); local 210 CacheToken token = cache.getCacheToken("1"); 211 // Put the cursor in the cache 212 cache.putCursor(cursor1, "1", SIMPLE_PROJECTION, token); 213 assertEquals(1, cache.size()); 218 token = cache.getCacheToken("2"); 219 // Put the cursor in the cache 220 cache.putCursor(cursor1, "2", SIMPLE_PROJECTION, token) 263 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); local [all...] |
/external/oprofile/events/i386/pii/ |
unit_masks | 6 0x08 (M)odified cache state 7 0x04 (E)xclusive cache state 8 0x02 (S)hared cache state 9 0x01 (I)nvalid cache state 10 0x0f All cache states
|
/external/oprofile/events/i386/piii/ |
unit_masks | 6 0x08 (M)odified cache state 7 0x04 (E)xclusive cache state 8 0x02 (S)hared cache state 9 0x01 (I)nvalid cache state 10 0x0f All cache states
|
/external/skia/include/images/ |
SkImageRef_GlobalPool.h | 25 /** Return the amount specified as the budget for the cache (in bytes). 29 /** Set a new budget value for the cache. 33 /** Return how much ram is currently in use by the global cache. 37 /** Free up (approximately) enough such that the amount used by the cache 41 chunky nature of the cache, the resulting usage may be < the requested
|
/external/skia/legacy/include/images/ |
SkImageRef_GlobalPool.h | 31 /** Return the amount specified as the budget for the cache (in bytes). 35 /** Set a new budget value for the cache. 39 /** Return how much ram is currently in use by the global cache. 43 /** Free up (approximately) enough such that the amount used by the cache 47 chunky nature of the cache, the resulting usage may be < the requested
|
/external/webkit/LayoutTests/http/tests/appcache/ |
origins-with-appcache.html | 13 log("Origins with application cache after frame was cached: " + layoutTestController.originsWithApplicationCache()); 33 log("Origins with application cache after deletion: " + layoutTestController.originsWithApplicationCache()); 53 This test verifies that ApplicationCacheStorage can report the set of origins that have an application cache. First, it tests that no origins are reported after all application caches are removed. Then, it loads an iframe that places a PNG into an application cache for the DumpRenderTree origin, and tests that this origin is now reported to have application cache.
|
/external/webkit/LayoutTests/http/tests/appcache/resources/ |
fail-on-update-2.php | 23 header("Cache-Control: no-cache, must-revalidate"); 24 header("Pragma: no-cache"); 31 header("Content-Type: text/cache-manifest"); 32 print("CACHE MANIFEST\n");
|