HomeSort by relevance Sort by last modified time
    Searched defs:Cache (Results 1 - 25 of 76) sorted by null

1 2 3 4

  /external/chromium_org/third_party/leveldatabase/src/include/leveldb/
cache.h 5 // A Cache is an interface that maps keys to values. It has internal
8 // for new entries. Values have a specified charge against the cache
9 // capacity. For example, a cache where the values are variable
13 // A builtin cache implementation with a least-recently-used eviction
16 // custom eviction policy, variable cache sizing, etc.)
26 class Cache;
28 // Create a new cache with a fixed size capacity. This implementation
29 // of Cache uses a least-recently-used eviction policy.
30 extern Cache* NewLRUCache(size_t capacity);
32 class Cache {
    [all...]
  /external/chromium_org/chrome/test/chromedriver/js/
call_function.js 38 * A cache which maps IDs <-> cached objects for the purpose of identifying
42 function Cache() {
48 Cache.prototype = {
51 * Stores a given item in the cache and returns a unique ID.
53 * @param {!Object} item The item to store in the cache.
77 var error = new Error('not in cache');
84 * Clears stale items from the cache.
124 * Returns the global object cache for the page.
125 * @param {Document=} opt_doc The document whose cache to retrieve. Defaults to
127 * @return {!Cache} The page's object cache
    [all...]
  /external/compiler-rt/lib/tsan/lit_tests/
static_init2.cc 6 struct Cache {
8 explicit Cache(int x)
13 void foo(Cache *my) {
14 static Cache *c = my ? my : new Cache(rand());
20 foo(new Cache(rand()));
static_init3.cc 7 struct Cache {
11 Cache g_cache;
13 Cache *CreateCache() {
18 _Atomic(Cache*) queue;
21 static Cache *c = CreateCache();
27 Cache *c = 0;
static_init4.cc 7 struct Cache {
9 explicit Cache(int x)
16 Cache *CreateCache() {
18 return new Cache(rand());
22 static Cache *c = CreateCache();
static_init5.cc 7 struct Cache {
9 explicit Cache(int x)
15 return new Cache((int)(long)p);
18 Cache *CreateCache() {
23 return (Cache*)res;
27 static Cache *c = CreateCache();
static_init6.cc 7 struct Cache {
9 explicit Cache(int x)
15 return new Cache((int)(long)p);
18 Cache *CreateCache() {
23 return (Cache*)res;
27 static Cache *c = CreateCache();
  /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/net/base/
expiring_cache_unittest.cc 25 std::less<base::TimeTicks> > Cache;
39 Cache cache(kMaxCacheEntries);
43 EXPECT_EQ(0U, cache.size());
46 EXPECT_FALSE(cache.Get("entry1", now));
47 cache.Put("entry1", "test1", now, now + kTTL);
48 EXPECT_THAT(cache.Get("entry1", now), Pointee(StrEq("test1")));
49 EXPECT_EQ(1U, cache.size());
55 EXPECT_FALSE(cache.Get("entry2", now));
56 cache.Put("entry2", "test2", now, now + kTTL)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/text/
AtomicStringKeyedMRUCache.h 67 typedef Vector<Entry, capacity> Cache;
68 Cache m_cache;
  /external/chromium_org/gpu/command_buffer/service/
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/chromium_org/third_party/WebKit/Source/core/css/resolver/
MatchedPropertiesCache.h 58 // Every N additions to the matched declaration cache trigger a sweep where entries holding
64 typedef HashMap<unsigned, CachedMatchedProperties> Cache;
65 Cache m_cache;
  /external/llvm/lib/IR/
LeaksContext.h 33 Cache(0), Name(name) { }
36 Cache = 0;
51 if (Cache) {
52 assert(Cache != o && "Object already in set!");
53 Ts.insert(Cache);
55 Cache = o;
59 if (o == Cache)
60 Cache = 0; // Cache hit
66 addGarbage(0); // Flush the Cache
    [all...]
  /external/chromium_org/base/containers/
mru_cache_unittest.cc 36 typedef base::MRUCache<int, CachedItem> Cache;
37 Cache cache(Cache::NO_AUTO_EVICT);
42 EXPECT_TRUE(cache.Get(0) == cache.end());
43 EXPECT_TRUE(cache.Peek(0) == cache.end());
48 Cache::iterator inserted_item = cache.Put(kItem1Key, item1)
    [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/guava/guava/src/com/google/common/cache/
Cache.java 17 package com.google.common.cache;
33 * A semi-persistent mapping from keys to values. Cache entries are manually added using
34 * {@link #get(K, Callable)} or {@link #put(K, V)}, and are stored in the cache until either
37 * <p><b>Note:</b> in release 12.0, all methods moved from {@code Cache} to {@link LoadingCache}
38 * will be deleted from {@code Cache}. As part of this transition {@code Cache} will no longer
51 public interface Cache<K, V> extends Function<K, V> {
54 * Returns the value associated with {@code key} in this cache, or {@code null} if there is no
63 * Returns the value associated with {@code key} in this cache, obtaining that value from
64 * {@code valueLoader} if necessary. No observable state associated with this cache is modifie
    [all...]
  /frameworks/volley/src/com/android/volley/
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...]
  /external/chromium_org/chrome/browser/resources/file_manager/js/image_editor/
image_view.js 29 // The content cache is used for prefetching the next image when going
32 this.contentCache_ = new ImageView.Cache(2);
36 // the content cache any more. Screen-scale images are small (~1Mpix)
37 // so we can afford to cache more of them.
38 this.screenCache_ = new ImageView.Cache(5);
68 * Image load type: full resolution image loaded from cache.
73 * Image load type: screeb resolution preview loaded from cache.
170 * @return {number} The cache generation.
355 // Cache has to be evicted in advance, so the returned cached image is not
573 // If this is not a thumbnail, cache the content and the screen-scale image
    [all...]
  /external/chromium_org/tools/valgrind/
scan-build.py 23 # Location of the log cache.
38 class Cache(object):
43 """If name is a relative path, treat it as relative to cache root.
44 If it is absolute and under cache root, pass it through.
81 # If we get here, the local cache does not exist yet. Fetch, and store.
128 self._cache = Cache(cache_dir)
  /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.
  /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/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...]
  /external/javassist/src/main/javassist/
CtMember.java 30 static class Cache extends CtMember {
49 Cache(CtClassType decl) {
  /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);

Completed in 1487 milliseconds

1 2 3 4