Searched defs:cache (Results 151 - 175 of 612) sorted by relevance

1234567891011>>

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
H A DSyncApiTest.java43 private HttpResponseCache cache; field in class:SyncApiTest
48 cache = new HttpResponseCache(cacheDir, Integer.MAX_VALUE);
53 cache.delete();
148 client.setOkResponseCache(cache);
164 client.setOkResponseCache(cache);
/external/openssl/crypto/x509v3/
H A Dpcy_cache.c69 /* Set cache entry according to CertificatePolicies extension.
78 X509_POLICY_CACHE *cache = x->policy_cache; local
83 cache->data = sk_X509_POLICY_DATA_new(policy_data_cmp);
84 if (!cache->data)
97 if (cache->anyPolicy)
102 cache->anyPolicy = data;
104 else if (sk_X509_POLICY_DATA_find(cache->data, data) != -1)
109 else if (!sk_X509_POLICY_DATA_push(cache->data, data))
122 sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free);
123 cache
131 X509_POLICY_CACHE *cache; local
235 policy_cache_free(X509_POLICY_CACHE *cache) argument
260 policy_cache_find_data(const X509_POLICY_CACHE *cache, const ASN1_OBJECT *id) argument
[all...]
/external/skia/src/gpu/
H A DGrTextContext.cpp39 void GrTextContext::MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, argument
49 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0);
64 GrFontScaler* GrTextContext::GetGrFontScaler(SkGlyphCache* cache) { argument
68 if (cache->getAuxProcData(GlyphCacheAuxProc, &auxData)) {
72 scaler = SkNEW_ARGS(SkGrFontScaler, (cache));
73 cache->setAuxProc(GlyphCacheAuxProc, scaler);
/external/skia/tests/
H A DHashCacheTest.cpp62 GrTHashTable<HashElement, HashKey, 4> cache; local
91 cache.insert(HashKey(i), &negHashElements[i]);
94 REPORTER_ASSERT(reporter, 10 == cache.count());
98 HashElement* found = cache.find(i);
102 // look for something not in the cache
104 HashElement* found = cache.find(10);
110 cache.insert(i, &posHashElements[i]);
113 REPORTER_ASSERT(reporter, 20 == cache.count());
119 HashElement* found = cache.find(0, findPos);
123 found = cache
[all...]
H A DImageCacheTest.cpp19 static void test_cache(skiatest::Reporter* reporter, SkScaledImageCache& cache, argument
33 SkScaledImageCache::ID* id = cache.findAndLock(bm[i], scale, scale, &tmp);
37 id = cache.addAndLock(bm[i], scale, scale, tmp);
41 SkScaledImageCache::ID* id2 = cache.findAndLock(bm[i], scale, scale,
47 cache.unlock(id2);
49 cache.unlock(id);
61 SkScaledImageCache::ID* id = cache.addAndLock(bm[0], incScale,
64 cache.unlock(id);
71 id = cache.findAndLock(bm[i], scale, scale, &tmp);
73 cache
[all...]
/external/guava/guava-tests/test/com/google/common/cache/
H A DCacheTesting.java15 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;
64 static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) { argument
65 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
83 static <K, V> void simulateKeyReclamation(Cache<K, V> cache, K key) { argument
84 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
93 static <K, V> ReferenceEntry<K, V> getReferenceEntry(Cache<K, V> cache, argument
102 forceExpandSegment(Cache<K, V> cache, K key) argument
113 toLocalCache(Cache<K, V> cache) argument
125 hasLocalCache(Cache<?, ?> cache) argument
129 drainRecencyQueues(Cache<?, ?> cache) argument
147 drainReferenceQueues(Cache<?, ?> cache) argument
168 getTotalSegmentSize(Cache<?, ?> cache) argument
183 checkValidState(Cache<?, ?> cache) argument
213 checkExpiration(Cache<?, ?> cache) argument
274 checkEviction(Cache<?, ?> cache) argument
327 writeQueueSize(Cache<?, ?> cache) argument
341 accessQueueSize(Cache<?, ?> cache) argument
354 expirationQueueSize(Cache<?, ?> cache) argument
358 processPendingNotifications(Cache<?, ?> cache) argument
376 checkRecency(LoadingCache<Integer, Integer> cache, int maxSize, Receiver<ReferenceEntry<Integer, Integer>> operation) argument
408 expireEntries(Cache<?, ?> cache, long expiringTime, FakeTicker ticker) argument
440 checkEmpty(Cache<?, ?> cache) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DDERObjectIdentifier.java391 private static ASN1ObjectIdentifier[][] cache = new ASN1ObjectIdentifier[256][]; field in class:DERObjectIdentifier
406 synchronized (cache)
408 ASN1ObjectIdentifier[] first = cache[idx1];
411 first = cache[idx1] = new ASN1ObjectIdentifier[128];
426 first = cache[idx1];
429 first = cache[idx1] = new ASN1ObjectIdentifier[128];
/external/chromium_org/chrome/browser/
H A Dchrome_net_benchmarking_message_filter.cc94 net::HostCache* cache = local
96 if (cache) {
97 cache->clear();
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dfile_cache_unittest.cc59 static bool RenameCacheFilesToNewFormat(FileCache* cache) { argument
60 return cache->RenameCacheFilesToNewFormat();
86 // Set up files in the cache directory. These files should be moved.
184 // Try to get an existing file from cache.
200 // Get file from cache with different id.
210 // Get the non-existent pinned file from cache.
213 // Get a previously pinned and stored file from cache.
317 // Unpin a file that doesn't exist in cache and is not pinned.
415 // Modify the cache file.
483 // First store a file to cache
[all...]
/external/chromium_org/chrome/browser/chromeos/drive/sync/
H A Dentry_update_performer.cc42 FileCache* cache,
62 // Locally created file with no cache file, store an empty file.
66 error = cache->Store(local_id, std::string(), empty_file,
77 !cache->IsOpenedForWrite(local_id)) {
78 // Update cache entry's MD5 if needed.
80 error = cache->UpdateMd5(local_id);
90 error = cache->ClearDirty(local_id);
94 error = cache->GetFile(local_id, &local_state->cache_file_path);
119 FileCache* cache,
179 error = cache
41 PrepareUpdate(ResourceMetadata* metadata, FileCache* cache, const std::string& local_id, EntryUpdatePerformer::LocalState* local_state) argument
118 FinishUpdate(ResourceMetadata* metadata, FileCache* cache, const std::string& local_id, scoped_ptr<google_apis::FileResource> file_resource, FileChange* changed_files) argument
188 EntryUpdatePerformer( base::SequencedTaskRunner* blocking_task_runner, file_system::OperationDelegate* delegate, JobScheduler* scheduler, ResourceMetadata* metadata, FileCache* cache, LoaderController* loader_controller) argument
[all...]
/external/chromium_org/chrome/browser/chromeos/profiles/
H A Dprofile_list_chromeos_unittest.cc164 ProfileInfoCache* cache = manager()->profile_info_cache(); local
166 cache->GetUserDataDir().AppendASCII("p2"), supervised_name,
272 // profile to the cache, setting the user name, rebuilding the list of
/external/chromium_org/chrome/browser/profiles/
H A Dgaia_info_update_service.cc114 ProfileInfoCache& cache = local
116 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath());
120 cache.SetGAIANameOfProfileAtIndex(profile_index, full_name);
122 profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath());
125 cache.SetGAIAGivenNameOfProfileAtIndex(profile_index, given_name);
127 profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath());
134 cache.SetGAIAPictureOfProfileAtIndex(profile_index, &gfx_image);
136 cache.SetGAIAPictureOfProfileAtIndex(profile_index, NULL);
153 ProfileInfoCache& cache = local
155 size_t profile_index = cache
[all...]
H A Dprofiles_state.cc60 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/chrome/browser/ui/views/profiles/
H A Dnew_avatar_button.cc170 const ProfileInfoCache& cache = local
177 cache.GetNumberOfProfiles() == 1 &&
178 cache.GetUserNameOfProfileAtIndex(0).empty());
/external/chromium_org/chrome/test/base/
H A Dtesting_profile_manager.cc97 ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); local
98 size_t index = cache.GetIndexOfProfileWithPath(profile_path);
99 cache.SetAvatarIconOfProfileAtIndex(index, avatar_id);
100 cache.SetSupervisedUserIdOfProfileAtIndex(index, supervised_user_id);
103 cache.SetNameOfProfileAtIndex(index, user_name);
126 // Add the guest profile to the profile manager, but not to the info cache.
149 ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); local
150 cache.DeleteProfileFromCache(profile->GetPath());
159 ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); local
160 cache
[all...]
/external/chromium_org/content/browser/appcache/
H A Dappcache_group.cc98 // Update hosts of older caches to add a reference to the newest cache.
112 void AppCacheGroup::RemoveCache(AppCache* cache) { argument
113 DCHECK(cache->associated_hosts().empty());
114 if (cache == newest_complete_cache_) {
122 std::find(old_caches_.begin(), old_caches_.end(), cache);
/external/chromium_org/net/base/
H A Dexpiring_cache.h47 // std::less<base::TimeTicks> > cache(0);
49 // cache.Put("key1", "value1", base::TimeTicks::Now(),
52 // cache.Put("key2", "value2", base::TimeTicks::Now(),
63 // ComplexExpirationFunctor> cache(15);
65 // cache.Put("key1", "value1", ComplexExpiration("sprocket"),
93 explicit Iterator(const ExpiringCache& cache) argument
94 : cache_(cache),
122 // expired, it is immediately removed from the cache.
146 // Compact the cache if it grew beyond the limit.
153 // Update an existing cache entr
[all...]
/external/chromium_org/net/tools/dump_cache/
H A Dcache_dumper.cc17 CacheDumper::CacheDumper(disk_cache::Backend* cache) argument
18 : cache_(cache) {
/external/chromium_org/net/tools/quic/
H A Dquic_spdy_server_stream_test.cc101 QuicInMemoryCache* cache = QuicInMemoryCache::GetInstance(); variable
117 cache->GetResponse(request_headers);
127 cache->AddResponse(request_headers, response_headers, body);
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
H A DSVGResourcesCache.cpp52 // Put object in cache.
88 SVGResourcesCache* cache = extensions.resourcesCache(); local
89 ASSERT(cache);
91 return cache;
135 SVGResourcesCache* cache = resourcesCacheFromRenderObject(renderer); local
136 cache->removeResourcesFromRenderObject(renderer);
137 cache->addResourcesFromRenderObject(renderer, newStyle);
151 SVGResourcesCache* cache = resourcesCacheFromRenderObject(renderer);
152 cache->addResourcesFromRenderObject(renderer, newStyle);
163 SVGResourcesCache* cache
175 SVGResourcesCache* cache = resourcesCacheFromRenderObject(renderer); local
182 SVGResourcesCache* cache = resourcesCacheFromRenderObject(resource); local
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
H A DCacheStorage.cpp68 Cache* cache = Cache::create(webCache); variable
69 m_cacheStorage->m_nameToCacheMap.set(m_cacheName, cache);
70 m_resolver->resolve(cache);
157 Cache* cache = m_nameToCacheMap.find(cacheName)->value; local
158 resolver->resolve(cache);
/external/chromium_org/third_party/freetype/src/cache/
H A Dftcbasic.c5 /* The FreeType basic cache interface (body). */
87 FTC_Cache cache = (FTC_Cache)ftccache; local
90 FTC_Family_Init( FTC_FAMILY( family ), cache ); local
155 FTC_Cache cache,
166 error = FTC_Manager_LookupSize( cache->manager,
203 FTC_Cache cache,
220 FTC_GNode_UnselectFamily( gnode, cache );
228 * basic image cache
278 FTC_ImageCache_Lookup( FTC_ImageCache cache,
321 FTC_GCACHE_LOOKUP_CMP( cache,
[all...]
H A Dftccmap.c5 /* FreeType CharMap cache (body) */
69 /* the cmap cache node */
100 FTC_Cache cache )
103 FT_Memory memory = cache->memory;
114 FTC_Cache cache )
119 FT_Memory memory = cache->memory;
143 FTC_Cache cache )
146 FT_UNUSED( cache );
156 FTC_Cache cache,
161 FT_UNUSED( cache );
240 FTC_Cache cache = FTC_CACHE( cmap_cache ); local
[all...]
H A Dftcglyph.h5 /* FreeType abstract glyph cache (specification). */
21 * FTC_GCache is an _abstract_ cache object optimized to store glyph
44 * flags. For more details see the file `src/cache/ftcbasic.c'.
71 * - FTC_GQuery sub-class, e.g. MyQuery, to hold cache-specific query
82 * - Search for the corresponding family in the cache, or create
95 /* implement an abstract glyph cache class. You need to */
96 /* provide additional logic to implement a complete cache. */
139 FTC_Cache cache; member in struct:FTC_FamilyRec_
173 /* user-provided cache classes; otherwise, they are really part of the */
174 /* cache su
214 FTC_CacheRec cache; member in struct:FTC_GCacheRec_
[all...]
H A Dftcsbits.c66 FTC_Cache cache )
71 FT_Memory memory = cache->memory;
77 FTC_GNode_Done( FTC_GNODE( snode ), cache ); local
85 FTC_Cache cache )
87 ftc_snode_free( FTC_NODE( snode ), cache ); local
165 " glyph too large for small bitmap cache\n"));
210 FTC_Cache cache )
212 FT_Memory memory = cache->memory;
218 FTC_SFamilyClass clazz = FTC_CACHE__SFAMILY_CLASS( cache );
223 total = clazz->family_get_count( family, cache
[all...]

Completed in 4852 milliseconds

1234567891011>>