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

1 2 3

  /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/test/tsan/
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/ui/file_manager/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/components/omnibox/
answers_cache.h 21 // Cache for the most-recently seen answer for Answers in Suggest.
35 // Signals if cache is empty.
40 typedef std::list<AnswersQueryData> Cache;
41 Cache cache_;
  /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/lldb/examples/summaries/cocoa/
cache.py 10 class Cache:
  /external/chromium_org/gpu/command_buffer/service/
shader_translator_cache.h 24 // to this cache.
82 typedef std::map<ShaderTranslatorInitParams, ShaderTranslator* > Cache;
83 Cache cache_;
  /external/chromium_org/third_party/WebKit/Source/core/css/resolver/
MatchedPropertiesCache.h 79 typedef HeapHashMap<unsigned, Member<CachedMatchedProperties>, DefaultHash<unsigned>::Hash, HashTraits<unsigned>, CachedMatchedPropertiesHashTraits > Cache;
81 // Every N additions to the matched declaration cache trigger a sweep where entries holding
87 typedef HashMap<unsigned, OwnPtr<CachedMatchedProperties> > Cache;
90 Cache m_cache;
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/
FontDataCache.h 82 // that are currently in cache as "in cache", which is later used to sweep the FontVerticalDataCache.
86 // Returns true if any removal of cache items actually occurred.
92 typedef HashMap<FontPlatformData, pair<RefPtr<SimpleFontData>, unsigned>, FontDataCacheKeyHash, FontDataCacheKeyTraits> Cache;
93 Cache m_cache;
  /external/chromium_org/tools/telemetry/telemetry/
decorators.py 11 def Cache(obj):
15 @Cache
22 Cached methods maintain their cache for the lifetime of the /instance/, while
23 cached functions maintain their cache for the lifetime of the /module/.
  /external/compiler-rt/lib/tsan/tests/unit/
tsan_dense_alloc_test.cc 26 typedef Alloc::Cache Cache;
31 Cache cache; local
32 alloc.InitCache(&cache);
37 IndexT idx = alloc.Alloc(&cache);
48 alloc.Free(&cache, idx);
51 alloc.FlushCache(&cache);
  /external/llvm/lib/IR/
LeaksContext.h 37 Cache(nullptr), Name(name) { }
40 Cache = nullptr;
55 if (Cache) {
56 assert(Cache != o && "Object already in set!");
57 Ts.insert(Cache);
59 Cache = o;
63 if (o == Cache)
64 Cache = nullptr; // Cache hit
70 addGarbage(nullptr); // Flush the Cache
    [all...]
  /external/chromium_org/third_party/skia/include/core/
SkImageFilter.h 52 // This cache maps from (filter's unique ID + CTM + clipBounds + src bitmap generation ID) to
54 class Cache : public SkRefCnt {
57 virtual ~Cache() {}
58 static Cache* Create(size_t maxBytes);
59 static Cache* Get();
66 Context(const SkMatrix& ctm, const SkIRect& clipBounds, Cache* cache) :
67 fCTM(ctm), fClipBounds(clipBounds), fCache(cache) {
71 Cache* cache() const { return fCache; function in class:SkImageFilter::Context
    [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/chrome/browser/ui/app_list/search/common/
webservice_cache.h 37 // WebserviceCache manages a cache of search results which should be valid
39 // backspace or so on. This is not meant to hold cache entries across multiple
52 // Checks the current cache and returns the value for the |query| if it's
80 typedef base::MRUCacheBase<std::string, Payload, CacheDeletor> Cache;
82 // Callback for when the cache is loaded from the dictionary data store.
96 // Trims our MRU cache, making sure that any element that is removed is also
103 Cache cache_;
  /external/chromium_org/chrome/common/extensions/docs/server2/
sidenav_data_source.py 9 from compiled_file_system import Cache, SingleFile, Unicode
68 @Cache
compiled_file_system_test.py 9 from compiled_file_system import Cache, CompiledFileSystem
124 compiled_fs = _GetTestCompiledFsCreator()(Cache(identity),
208 mock_fs, Cache(lambda path, contents: contents), type(self))
  /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...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_dense_alloc.h 13 // DenseSlabAllocCache is a thread-local cache for DenseSlabAlloc.
32 IndexT cache[kSize]; member in class:__tsan::DenseSlabAllocCache
39 typedef DenseSlabAllocCache Cache;
40 typedef typename Cache::IndexT IndexT;
61 IndexT Alloc(Cache *c) {
64 return c->cache[--c->pos];
67 void Free(Cache *c, IndexT idx) {
68 if (c->pos == Cache::kSize)
70 c->cache[c->pos++] = idx;
79 void FlushCache(Cache *c)
    [all...]

Completed in 1839 milliseconds

1 2 3