HomeSort by relevance Sort by last modified time
    Searched refs:Cache (Results 26 - 50 of 190) sorted by null

12 3 4 5 6 7 8

  /external/chromium_org/chrome/browser/resources/image_loader/
cache.js 8 * Persistent cache storing images in an indexed database on the hard disk.
11 function Cache() {
21 * Cache database name.
25 Cache.DB_NAME = 'image-loader';
28 * Cache database version.
32 Cache.DB_VERSION = 11;
40 Cache.MEMORY_LIMIT = 250 * 1024 * 1024; // 250 MB.
49 Cache.EVICTION_CHUNK_SIZE = 50 * 1024 * 1024; // 50 MB.
52 * Creates a cache key.
55 * @return {string} Cache key
    [all...]
image_loader_client.js 13 * Implements cache, which is stored in the calling extension.
32 * LRU cache for images.
33 * @type {ImageLoaderClient.Cache}
36 this.cache_ = new ImageLoaderClient.Cache();
125 * width, height and/or cache.
128 * @return {?number} Remote task id or null if loaded from cache.
135 // Record cache usage.
136 ImageLoaderClient.recordPercentage('Cache.Usage', this.cache_.getUsage());
157 // Try to load from cache, if available.
158 var cacheKey = ImageLoaderClient.Cache.createKey(url, opt_options)
    [all...]
  /external/chromium_org/third_party/leveldatabase/src/db/
table_cache.cc 27 Cache* cache = reinterpret_cast<Cache*>(arg1); local
28 Cache::Handle* h = reinterpret_cast<Cache::Handle*>(arg2);
29 cache->Release(h);
46 Cache::Handle** handle) {
64 // We do not cache error results so that if the error is transient,
84 Cache::Handle* handle = NULL;
105 Cache::Handle* handle = NULL
    [all...]
  /frameworks/volley/tests/src/com/android/volley/toolbox/
HttpHeaderParserTest.java 21 import com.android.volley.Cache;
49 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
61 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
72 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
83 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
97 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
114 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
124 headers.put("Cache-Control", "public, max-age=86400");
126 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
138 headers.put("Cache-Control", "no-cache")
    [all...]
  /external/compiler-rt/lib/sanitizer_common/
sanitizer_quarantine.h 43 typedef QuarantineCache<Callback> Cache;
55 void Put(Cache *c, Callback cb, Node *ptr, uptr size) {
61 void NOINLINE Drain(Cache *c, Callback cb) {
79 Cache cache_;
83 Cache tmp;
95 void NOINLINE DoRecycle(Cache *c, Callback cb) {
109 // Per-thread cache of memory blocks.
  /external/chromium_org/third_party/leveldatabase/src/util/
cache.cc 9 #include "leveldb/cache.h"
16 Cache::~Cache() {
21 // LRU cache implementation
70 // Since each cache entry is fairly large, we aim for a small
90 // a linked list of cache entries that hash into the bucket.
95 // Return a pointer to slot that points to a cache entry that
96 // matches key/hash. If there is no such cache entry, return a
134 // A single shard of sharded cache.
143 // Like Cache methods, but with an extra "hash" parameter
    [all...]
cache_test.cc 5 #include "leveldb/cache.h"
13 // Conversions between numeric keys/values and the types expected by Cache.
38 Cache* cache_;
49 Cache::Handle* handle = cache_->Lookup(EncodeKey(key));
112 Cache::Handle* h1 = cache_->Lookup(EncodeKey(100));
116 Cache::Handle* h2 = cache_->Lookup(EncodeKey(100));
151 // size of items still in the cache, which must be approximately the
  /external/clang/lib/Basic/
FileSystemStatCache.cpp 44 /// path, using the cache to accelerate it if possible. This returns true if
53 int *FileDescriptor, FileSystemStatCache *Cache) {
57 // If we have a cache, use it to resolve the stat query.
58 if (Cache)
59 R = Cache->getStat(Path, Data, isFile, FileDescriptor);
62 // no cache, just go to the file system.
124 // Do not cache failed stats, it is easy to construct common inconsistent
131 // Cache file 'stat' results and directories with absolutely paths.
  /frameworks/volley/src/com/android/volley/
CacheDispatcher.java 24 * Provides a thread for performing cache triage on a queue of requests.
26 * Requests added to the specified cache queue are resolved from cache.
28 * {@link ResponseDelivery}. Cache misses and responses that require
43 /** The cache to read from. */
44 private final Cache mCache;
53 * Creates a new cache triage dispatcher thread. You must call {@link #start()}
58 * @param cache Cache interface to use for resolution
63 Cache cache, ResponseDelivery delivery)
    [all...]
Cache.java 23 * An interface for a cache keyed by a String with a byte array as data.
25 public interface Cache {
27 * Retrieves an entry from the cache.
28 * @param key Cache key
29 * @return An {@link Entry} or null in the event of a cache miss
34 * Adds or replaces an entry to the cache.
35 * @param key Cache key
36 * @param entry Data to store and metadata for cache coherency, TTL, etc.
41 * Performs any potentially long-running actions needed to initialize the cache;
47 * Invalidates an entry in the cache
    [all...]
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...]
NetworkDispatcher.java 29 * specified {@link Network} interface. Responses are committed to cache, if
30 * eligible, using a specified {@link Cache} interface. Valid responses and
39 /** The cache to write to. */
40 private final Cache mCache;
52 * @param cache Cache interface to use for writing responses to cache
56 Network network, Cache cache,
60 mCache = cache;
    [all...]
  /frameworks/volley/src/com/android/volley/toolbox/
HttpHeaderParser.java 19 import com.android.volley.Cache;
34 * Extracts a {@link Cache.Entry} from a {@link NetworkResponse}.
37 * @return a cache entry for the given response, or null if the response is not cacheable.
39 public static Cache.Entry parseCacheHeaders(NetworkResponse response) {
58 headerValue = headers.get("Cache-Control");
64 if (token.equals("no-cache") || token.equals("no-store")) {
84 // Cache-Control takes precedence over an Expires header, even if both exist and Expires
93 Cache.Entry entry = new Cache.Entry();
  /external/chromium_org/gpu/command_buffer/service/
shader_translator_cache.cc 21 Cache::iterator it = cache_.begin();
45 Cache::iterator it = cache_.find(params);
shader_translator_cache.h 20 // This singleton and the cache that it implements is NOT thread safe.
25 // to this cache.
86 typedef std::map<ShaderTranslatorInitParams, ShaderTranslator* > Cache;
87 Cache cache_;
  /external/guava/guava-tests/test/com/google/common/cache/
CacheTesting.java 15 package com.google.common.cache;
26 import com.google.common.cache.LocalCache.LocalLoadingCache;
27 import com.google.common.cache.LocalCache.ReferenceEntry;
28 import com.google.common.cache.LocalCache.Segment;
29 import com.google.common.cache.LocalCache.ValueReference;
51 * A collection of utilities for {@link Cache} testing.
58 * Poke into the Cache internals to simulate garbage collection of the value associated with the
64 static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) {
65 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/css/resolver/
MatchedPropertiesCache.cpp 48 Cache::iterator it = m_cache.find(hash);
80 // Note that we don't cache the original RenderStyle instance. It may be further modified.
81 // The RenderStyle in the cache is really just a holder for the substructures and never used as-is.
94 // Look for cache entries containing a style declaration with a single ref and remove them.
96 // or presentationAttributeStyle(), potentially leaving this cache with the last ref on the old one.
98 Cache::iterator it = m_cache.begin();
99 Cache::iterator end = m_cache.end();
128 // The cache assumes static knowledge about which properties are inherited.
  /frameworks/volley/tests/src/com/android/volley/
CacheDispatcherTest.java 72 // A cache miss does not post a response and puts the request on the network queue.
82 // A non-expired cache hit posts a response and does not queue to the network.
84 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, false);
92 // A soft-expired cache hit posts a response and queues to the network.
94 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, true);
105 // An expired cache hit does not post a response and queues to the network.
107 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, true, true);
  /packages/apps/Mms/src/com/android/mms/data/
Conversation.java 146 Conversation conv = Cache.get(threadId);
152 Cache.put(conv);
154 LogTag.error("Tried to add duplicate Conversation to Cache (from threadId): " + conv);
155 if (!Cache.replace(conv)) {
156 LogTag.error("get by threadId cache.replace failed on " + conv);
175 Conversation conv = Cache.get(recipients);
189 Cache.put(conv);
191 LogTag.error("Tried to add duplicate Conversation to Cache (from recipients): " + conv);
192 if (!Cache.replace(conv)) {
193 LogTag.error("get by recipients cache.replace failed on " + conv)
    [all...]
  /external/oprofile/events/mips/25K/
events 48 # I-Cache Efficiency:
50 event:0x18 counters:0,1 um:zero minimum:500 name:INSNS_FETCHED_FROM_ICACHE : Total number of instructions fetched from the I-Cache
52 event:0x1a counters:0,1 um:zero minimum:500 name:ICACHE_MISSES : I-Cache miss
55 # D-Cache Efficiency:
57 event:0x1b counters:0,1 um:zero minimum:500 name:DCACHE_MISSES : D-Cache miss
58 event:0x1c counters:0,1 um:zero minimum:500 name:DCACHE_WRITEBACKS : D-Cache number of write-backs
59 event:0x1d counters:0,1 um:zero minimum:500 name:CACHEABLE_DCACHE_REQUEST : number of cacheable requests to D-Cache
62 # Level 2 Cache Efficiency:
64 event:0x1e counters:0,1 um:zero minimum:500 name:L2_MISSES : L2 Cache miss
65 event:0x1f counters:0,1 um:zero minimum:500 name:L2_WBACKS : L2 Cache number of write-back
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
Cache.java 36 * objects they are returned from the cache, if not - newly generated
37 * objects can be saved in the cache.<br>
45 * determine whether object to be generated is in the cache or not.
65 * If it is so - the cached object is returned from the cache,
66 * if not - new object should be generated and saved in the cache.<br>
71 public class Cache {
92 // size of the cache
103 // to the object cached at cache[N]
110 private final Object[] cache; field in class:Cache
112 // This array is used to speed up the process of the search in the cache
    [all...]
  /external/llvm/lib/Support/
SourceMgr.cpp 42 // Delete the line # cache if allocated.
43 if (LineNoCacheTy *Cache = getCache(LineNoCache))
44 delete Cache;
102 // If we have a line number cache, and if the query is to a later point in the
105 if (LineNoCacheTy *Cache = getCache(LineNoCache))
106 if (Cache->LastQueryBufferID == BufferID &&
107 Cache->LastQuery <= Loc.getPointer()) {
108 Ptr = Cache->LastQuery;
109 LineNo = Cache->LineNoOfQuery;
117 // Allocate the line number cache if it doesn't exist
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/svg/properties/
SVGAnimatedProperty.h 46 typedef HashMap<SVGAnimatedPropertyDescription, SVGAnimatedProperty*, SVGAnimatedPropertyDescriptionHash, SVGAnimatedPropertyDescriptionHashTraits> Cache;
83 static Cache* animatedPropertyCache();
  /external/llvm/include/llvm/ADT/
ImmutableList.h 144 CacheTy Cache;
167 // Profile the new list to see if it already exists in our cache.
173 ListTy* L = Cache.FindNodeOrInsertPos(ID, InsertPos);
176 // The list does not exist in our cache. Create it.
181 // Insert the new list into the cache.
182 Cache.InsertNode(L, InsertPos);
  /external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/
Socks5BytestreamRequest.java 24 import org.jivesoftware.smack.util.Cache;
43 private static final Cache<String, Integer> ADDRESS_BLACKLIST = new Cache<String, Integer>(

Completed in 1146 milliseconds

12 3 4 5 6 7 8