/external/chromium_org/v8/test/cctest/compiler/ |
H A D | test-node-cache.cc | 9 #include "src/compiler/node-cache.h" 16 Int32NodeCache cache; local 19 Node** pos = cache.Find(graph.zone(), i); 22 Node** npos = cache.Find(graph.zone(), i); 31 Int32NodeCache cache; local 41 *cache.Find(graph.zone(), k) = nodes[i] = node; 46 CHECK_EQ(nodes[i], *cache.Find(graph.zone(), k)); 53 Int32NodeCache cache; local 61 *cache.Find(graph.zone(), v) = nodes[i]; 67 Node** pos = cache 79 Int64NodeCache cache; local 94 Int64NodeCache cache; local 120 PtrNodeCache cache; local 137 PtrNodeCache cache; local [all...] |
/external/chromium_org/chrome/browser/profiles/ |
H A D | profiles_state.cc | 60 const ProfileInfoCache& cache = local 62 size_t index = cache.GetIndexOfProfileWithPath(profile_path); 73 const base::string16 profile_name = cache.GetNameOfProfileAtIndex(index); 74 const base::string16 email = cache.GetUserNameOfProfileAtIndex(index); 75 bool is_default_name = cache.ProfileIsUsingDefaultNameAtIndex(index) && 76 cache.IsDefaultProfileName(profile_name); 78 if (cache.GetNumberOfProfiles() == 1 && is_default_name) 101 const ProfileInfoCache& cache = local 103 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 107 if (new_profile_name == cache 167 const ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local [all...] |
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkGlyphCache.cpp | 494 - call a fontscaler (which might call into the cache) 507 SkGlyphCache* cache; local 512 for (cache = globals.internalGetHead(); cache != NULL; cache = cache->fNext) { 513 if (cache->fDesc->equals(*desc)) { 514 globals.internalDetachCache(cache); 520 side-effects like trying to access the cache/mutex (yikes!) 527 // cache onc 555 AttachCache(SkGlyphCache* cache) argument 564 attachCacheToHead(SkGlyphCache* cache) argument 575 SkGlyphCache* cache = fHead; local 614 SkGlyphCache* cache = this->internalGetTail(); local 638 internalAttachCacheToHead(SkGlyphCache* cache) argument 650 internalDetachCache(SkGlyphCache* cache) argument [all...] |
H A D | SkGlyphCache_Globals.h | 29 kNo_UseMutex, // thread-local cache 30 kYes_UseMutex // shared cache 44 SkGlyphCache* cache = fHead; local 45 while (cache) { 46 SkGlyphCache* next = cache->fNext; 47 SkDELETE(cache); 48 cache = next; 74 // returns true if this cache is over-budget either due to size limit
|
/external/guava/guava-tests/test/com/google/common/cache/ |
H A D | AbstractLoadingCacheTest.java | 17 package com.google.common.cache; 37 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { 54 cache.getUnchecked(new Object()); 62 assertSame(newValue, cache.getUnchecked(new Object())); 68 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { 85 cache.getUnchecked(new Object()); 93 assertSame(newValue, cache.getUnchecked(new Object())); 99 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { 116 cache.getUnchecked(new Object()); 124 assertSame(newValue, cache [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
H A D | ContextFeaturesClientImpl.cpp | 104 ContextFeaturesCache* cache = static_cast<ContextFeaturesCache*>(DocumentSupplement::from(document, supplementName())); 105 if (!cache) { 106 cache = new ContextFeaturesCache(); 107 DocumentSupplement::provideTo(document, supplementName(), adoptPtrWillBeNoop(cache)); 110 return *cache; 126 ContextFeaturesCache::Entry& cache = ContextFeaturesCache::from(*document).entryFor(type); local 127 if (cache.needsRefresh(defaultValue)) 128 cache.set(askIfIsEnabled(document, type, defaultValue), defaultValue); 129 return cache.isEnabled();
|
/external/chromium_org/chrome/browser/signin/ |
H A D | local_auth_unittest.cc | 26 ProfileInfoCache& cache = local 28 EXPECT_EQ(1U, cache.GetNumberOfProfiles()); 29 EXPECT_EQ("", cache.GetLocalAuthCredentialsOfProfileAtIndex(0)); 39 std::string passhash = cache.GetLocalAuthCredentialsOfProfileAtIndex(0); 58 EXPECT_NE(passhash, cache.GetLocalAuthCredentialsOfProfileAtIndex(0));
|
/external/chromium_org/third_party/WebKit/Source/core/accessibility/ |
H A D | AXMenuList.cpp | 59 AXObjectCache* cache = m_renderer->document().axObjectCache(); local 61 AXObject* list = cache->getOrCreate(MenuListPopupRole); 67 cache->remove(list->axObjectID()); 101 AXObjectCache* cache = document->axObjectCache(); local 114 cache->postNotification(this, document.get(), AXObjectCache::AXMenuListValueChanged, true, PostSynchronously);
|
H A D | AXMenuListPopup.cpp | 115 AXObjectCache* cache = axObjectCache(); local 116 if (!cache) 124 cache->remove(child->axObjectID()); 142 AXObjectCache* cache = axObjectCache(); local 145 cache->postNotification(child.get(), document(), AXObjectCache::AXFocusedUIElementChanged, true, PostSynchronously); 146 cache->postNotification(child.get(), document(), AXObjectCache::AXMenuListItemSelected, true, PostSynchronously);
|
/external/chromium_org/third_party/WebKit/Source/core/xml/ |
H A D | DocumentXPathEvaluator.cpp | 41 DocumentXPathEvaluator* cache = static_cast<DocumentXPathEvaluator*>(DocumentSupplement::from(document, supplementName())); local 42 if (!cache) { 43 cache = new DocumentXPathEvaluator(); 44 DocumentSupplement::provideTo(document, supplementName(), adoptPtrWillBeNoop(cache)); 46 return *cache;
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
H A D | RegexCache.java | 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/skia/src/core/ |
H A D | SkGlyphCache_Globals.h | 29 kNo_UseMutex, // thread-local cache 30 kYes_UseMutex // shared cache 44 SkGlyphCache* cache = fHead; local 45 while (cache) { 46 SkGlyphCache* next = cache->fNext; 47 SkDELETE(cache); 48 cache = next; 74 // returns true if this cache is over-budget either due to size limit
|
/external/chromium_org/third_party/skia/bench/ |
H A D | GrResourceCacheBench.cpp | 89 static void populate_cache(GrResourceCache* cache, GrGpu* gpu, int resourceCount) { argument 95 cache->purgeAsNeeded(1, resource->gpuMemorySize()); 96 cache->addResource(key, resource); 105 cache->purgeAsNeeded(1, resource->gpuMemorySize()); 106 cache->addResource(key, resource); 111 static void check_cache_contents_or_die(GrResourceCache* cache, int k) { argument 117 GrGpuResource* item = cache->find(key); 119 SkFAIL("cache add does not work as expected"); 123 SkFAIL("cache add does not work as expected"); 131 GrGpuResource* item = cache [all...] |
/external/chromium_org/third_party/skia/tests/ |
H A D | SkResourceCacheTest.cpp | 57 SkGraphics::SetResourceCacheTotalByteLimit(0); // clear cache 63 SkGraphics::SetResourceCacheTotalByteLimit(0); // clear cache 69 SkGraphics::SetResourceCacheTotalByteLimit(0); // clear cache 95 SkAutoTDelete<SkResourceCache> cache; local 97 cache.reset(SkNEW_ARGS(SkResourceCache, (factory))); 100 cache.reset(SkNEW_ARGS(SkResourceCache, (byteLimit))); 110 REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedBitmap.getGenerationID(), SkIRect::MakeWH(4, 6), cachedBitmap, cache)); 111 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)); 113 REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedBitmap.getGenerationID(), SkIRect::MakeXYWH(-1, 0, 5, 5), cachedBitmap, cache)); 114 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)); 128 SkAutoTDelete<SkResourceCache> cache; local [all...] |
/external/skia/bench/ |
H A D | GrResourceCacheBench.cpp | 89 static void populate_cache(GrResourceCache* cache, GrGpu* gpu, int resourceCount) { argument 95 cache->purgeAsNeeded(1, resource->gpuMemorySize()); 96 cache->addResource(key, resource); 105 cache->purgeAsNeeded(1, resource->gpuMemorySize()); 106 cache->addResource(key, resource); 111 static void check_cache_contents_or_die(GrResourceCache* cache, int k) { argument 117 GrCacheable* item = cache->find(key); 119 SkFAIL("cache add does not work as expected"); 123 SkFAIL("cache add does not work as expected"); 131 GrCacheable* item = cache [all...] |
/external/chromium_org/chrome/browser/autofill/ |
H A D | validation_rules_storage_factory.cc | 33 base::FilePath cache = local 38 cache, content::BrowserThread::GetBlockingPool()); 41 new JsonPrefStore(cache, task_runner.get(), scoped_ptr<PrefFilter>());
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/common/ |
H A D | 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) { argument 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) { argument 137 GLuint size = 1 << cache->tableSize; 140 if (cache 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 895 initOptionCache(driOptionCache *cache, const driOptionCache *info) argument 946 driParseConfigFiles(driOptionCache *cache, const driOptionCache *info, GLint screenNum, const char *driverName) argument 1011 driDestroyOptionCache(driOptionCache *cache) argument 1016 driCheckOption(const driOptionCache *cache, const char *name, driOptionType type) argument 1022 driQueryOptionb(const driOptionCache *cache, const char *name) argument 1030 driQueryOptioni(const driOptionCache *cache, const char *name) argument 1038 driQueryOptionf(const driOptionCache *cache, const char *name) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
H A D | gen7_cc_state.c | 46 .cache = CACHE_NEW_COLOR_CALC_STATE 66 .cache = CACHE_NEW_BLEND_STATE 86 .cache = CACHE_NEW_DEPTH_STENCIL_STATE
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
H A D | vdso_support.h | 126 // The 'cache' parameter may be used by some versions of the kernel, 129 static long InitAndGetCPU(unsigned *cpu, void *cache, // NOLINT 'long'. 131 static long GetCPUViaSyscall(unsigned *cpu, void *cache, // NOLINT 'long'. 133 typedef long (*GetCpuFn)(unsigned *cpu, void *cache, // NOLINT 'long'.
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
H A D | vdso_support.h | 126 // The 'cache' parameter may be used by some versions of the kernel, 129 static long InitAndGetCPU(unsigned *cpu, void *cache, // NOLINT 'long'. 131 static long GetCPUViaSyscall(unsigned *cpu, void *cache, // NOLINT 'long'. 133 typedef long (*GetCpuFn)(unsigned *cpu, void *cache, // NOLINT 'long'.
|
/external/elfutils/0.153/libdw/ |
H A D | dwarf_frame_cfa.c | 85 (NULL, fs->cache->other_byte_order, 86 fs->cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8, 4, 87 &fs->cache->expr_tree, &fs->cfa_data.expr, false, false,
|
/external/ltrace/ |
H A D | prototype.c | 328 protolib_cache_destroy(struct protolib_cache *cache) argument 330 DICT_DESTROY(&cache->protolibs, const char *, struct protolib *, 341 consider_config_dir(struct protolib_cache *cache, argument 348 return protolib_cache_file(cache, buf, 0); 364 load_dash_F_dirs(struct protolib_cache *cache, argument 367 struct load_config_data data = {cache, key}; 383 load_config(struct protolib_cache *cache, argument 392 struct protolib *plib = consider_config_dir(cache, *dirs, key); 405 struct protolib_cache *cache = data; local 406 struct protolib *plib = protolib_cache_file(cache, *fn 418 add_ltrace_conf(struct protolib_cache *cache) argument 457 protolib_cache_init(struct protolib_cache *cache, struct protolib *import) argument 498 build_default_config(struct protolib_cache *cache, const char *key) argument 530 attempt_to_cache(struct protolib_cache *cache, const char *key, struct protolib *plib) argument 546 protolib_cache_maybe_load(struct protolib_cache *cache, const char *key, int own_key, bool allow_private, struct protolib **retp) argument 583 protolib_cache_load(struct protolib_cache *cache, const char *key, int own_key, bool allow_private) argument 598 protolib_cache_default(struct protolib_cache *cache, const char *key, int own_key) argument 617 protolib_cache_file(struct protolib_cache *cache, const char *filename, int own_filename) argument 656 protolib_cache_protolib(struct protolib_cache *cache, const char *filename, int own_filename, struct protolib *plib) argument [all...] |
/external/mesa3d/src/mesa/drivers/dri/common/ |
H A D | 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) { argument 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) { argument 137 GLuint size = 1 << cache->tableSize; 140 if (cache 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 895 initOptionCache(driOptionCache *cache, const driOptionCache *info) argument 946 driParseConfigFiles(driOptionCache *cache, const driOptionCache *info, GLint screenNum, const char *driverName) argument 1011 driDestroyOptionCache(driOptionCache *cache) argument 1016 driCheckOption(const driOptionCache *cache, const char *name, driOptionType type) argument 1022 driQueryOptionb(const driOptionCache *cache, const char *name) argument 1030 driQueryOptioni(const driOptionCache *cache, const char *name) argument 1038 driQueryOptionf(const driOptionCache *cache, const char *name) argument [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | gen7_cc_state.c | 46 .cache = CACHE_NEW_COLOR_CALC_STATE 66 .cache = CACHE_NEW_BLEND_STATE 86 .cache = CACHE_NEW_DEPTH_STENCIL_STATE
|
/external/chromium_org/content/browser/appcache/ |
H A D | appcache_working_set.cc | 32 void AppCacheWorkingSet::AddCache(AppCache* cache) { argument 35 DCHECK(cache->cache_id() != kAppCacheNoCacheId); 36 int64 cache_id = cache->cache_id(); 38 caches_.insert(CacheMap::value_type(cache_id, cache)); 41 void AppCacheWorkingSet::RemoveCache(AppCache* cache) { argument 42 caches_.erase(cache->cache_id());
|