Searched refs:cache (Results 76 - 100 of 1307) sorted by relevance

1234567891011>>

/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator.cc34 static void *RawInternalAlloc(uptr size, InternalAllocatorCache *cache) { argument
35 (void)cache;
39 static void RawInternalFree(void *ptr, InternalAllocatorCache *cache) { argument
40 (void)cache;
71 static void *RawInternalAlloc(uptr size, InternalAllocatorCache *cache) {
72 if (cache == 0) {
77 return internal_allocator()->Allocate(cache, size, 8, false);
80 static void RawInternalFree(void *ptr, InternalAllocatorCache *cache) {
81 if (cache == 0) {
85 internal_allocator()->Deallocate(cache, pt
92 InternalAlloc(uptr size, InternalAllocatorCache *cache) argument
102 InternalFree(void *addr, InternalAllocatorCache *cache) argument
[all...]
/external/e2fsprogs/lib/blkid/
H A Dresolve.c27 char *blkid_get_tag_value(blkid_cache cache, const char *tagname, argument
32 blkid_cache c = cache;
40 if (!cache) {
49 if (!cache)
61 char *blkid_get_devname(blkid_cache cache, const char *token, argument
65 blkid_cache c = cache;
72 if (!cache) {
79 value ? value : "", cache ? "in cache" : "from disk"));
102 if (!cache) {
112 blkid_cache cache; local
[all...]
/external/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_dense_alloc_test.cc31 Cache cache; local
32 alloc.InitCache(&cache);
37 IndexT idx = alloc.Alloc(&cache);
48 alloc.Free(&cache, idx);
51 alloc.FlushCache(&cache);
/external/valgrind/main/drd/
H A Ddrd_bitmap.h348 * Rotate elements cache[0..n-1] such that the element at position n-1 is
349 * moved to position 0. This allows to speed up future cache lookups.
352 void bm_cache_rotate(struct bm_cache_elem cache[], const int n)
359 t = cache[0];
361 cache[0] = cache[1];
363 cache[1] = cache[2];
365 cache[2] = cache[
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/
H A Ddraw_pt_vsplit.c61 } cache; member in struct:vsplit_frontend
68 memset(vsplit->cache.fetches, 0xff, sizeof(vsplit->cache.fetches));
69 vsplit->cache.has_max_fetch = FALSE;
70 vsplit->cache.num_fetch_elts = 0;
71 vsplit->cache.num_draw_elts = 0;
78 vsplit->fetch_elts, vsplit->cache.num_fetch_elts,
79 vsplit->draw_elts, vsplit->cache.num_draw_elts, flags);
95 if (vsplit->cache.fetches[hash] != fetch) {
96 /* update cache */
[all...]
/external/guava/guava-tests/test/com/google/common/cache/
H A DNullCacheTest.java15 package com.google.common.cache;
17 import static com.google.common.cache.CacheTesting.checkEmpty;
18 import static com.google.common.cache.TestingCacheLoaders.constantLoader;
19 import static com.google.common.cache.TestingCacheLoaders.exceptionLoader;
20 import static com.google.common.cache.TestingRemovalListeners.queuingRemovalListener;
23 import com.google.common.cache.CacheLoader.InvalidCacheLoadException;
24 import com.google.common.cache.TestingRemovalListeners.QueuingRemovalListener;
44 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder()
50 assertSame(computed, cache.getUnchecked(key));
56 checkEmpty(cache);
[all...]
/external/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pt_vsplit.c61 } cache; member in struct:vsplit_frontend
68 memset(vsplit->cache.fetches, 0xff, sizeof(vsplit->cache.fetches));
69 vsplit->cache.has_max_fetch = FALSE;
70 vsplit->cache.num_fetch_elts = 0;
71 vsplit->cache.num_draw_elts = 0;
78 vsplit->fetch_elts, vsplit->cache.num_fetch_elts,
79 vsplit->draw_elts, vsplit->cache.num_draw_elts, flags);
95 if (vsplit->cache.fetches[hash] != fetch) {
96 /* update cache */
[all...]
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dvlan_util.c36 struct nl_cache *cache = NULL; local
66 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < 0) {
67 cache = NULL;
68 wpa_printf(MSG_ERROR, "VLAN: failed to alloc cache");
72 if (!(if_idx = rtnl_link_name2i(cache, if_name))) {
79 if ((rlink = rtnl_link_get_by_name(cache, vlan_if_name))) {
120 if (cache)
121 nl_cache_free(cache);
132 struct nl_cache *cache = NULL; local
148 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) <
[all...]
/external/wpa_supplicant_8/src/ap/
H A Dvlan_util.c36 struct nl_cache *cache = NULL; local
66 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < 0) {
67 cache = NULL;
68 wpa_printf(MSG_ERROR, "VLAN: failed to alloc cache");
72 if (!(if_idx = rtnl_link_name2i(cache, if_name))) {
79 if ((rlink = rtnl_link_get_by_name(cache, vlan_if_name))) {
120 if (cache)
121 nl_cache_free(cache);
132 struct nl_cache *cache = NULL; local
148 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) <
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dvlan_util.c36 struct nl_cache *cache = NULL; local
66 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) < 0) {
67 cache = NULL;
68 wpa_printf(MSG_ERROR, "VLAN: failed to alloc cache");
72 if (!(if_idx = rtnl_link_name2i(cache, if_name))) {
79 if ((rlink = rtnl_link_get_by_name(cache, vlan_if_name))) {
120 if (cache)
121 nl_cache_free(cache);
132 struct nl_cache *cache = NULL; local
148 if (rtnl_link_alloc_cache(handle, AF_UNSPEC, &cache) <
[all...]
/external/chromium_org/net/third_party/nss/ssl/
H A Dsslsnce.c1 /* This file implements the SERVER Session ID cache.
9 * cache sids!
14 * the same address and port) MUST share a common SSL session cache.
15 * This code makes the content of the shared cache accessible to all
23 * There is one lock for the entire cert cache.
90 ** Format of a cache entry in the shared memory.
131 /* force sizeof(sidCacheEntry) to be a multiple of cache line size */
274 static PRUint32 SIDindex(cacheDesc *cache, const PRIPv6Addr *addr, PRUint8 *s,
276 static SECStatus LaunchLockPoller(cacheDesc *cache);
277 static SECStatus StopLockPoller(cacheDesc *cache);
327 LockSet(cacheDesc *cache, PRUint32 set, PRUint32 now) argument
336 UnlockSet(cacheDesc *cache, PRUint32 set) argument
350 CacheCert(cacheDesc * cache, CERTCertificate *cert, sidCacheEntry *sce) argument
408 CacheSrvName(cacheDesc * cache, SECItem *name, sidCacheEntry *sce) argument
666 SIDindex(cacheDesc *cache, const PRIPv6Addr *addr, PRUint8 *s, unsigned nl) argument
691 FindSID(cacheDesc *cache, PRUint32 setNum, PRUint32 now, const PRIPv6Addr *addr, unsigned char *sessionID, unsigned sessionIDLength) argument
754 cacheDesc * cache = &globalCache; local
852 cacheDesc * cache = &globalCache; local
933 cacheDesc * cache = &globalCache; local
1000 CloseCache(cacheDesc *cache) argument
1032 InitCache(cacheDesc *cache, int maxCacheEntries, int maxCertCacheEntries, int maxSrvNameCacheEntries, PRUint32 ssl2_timeout, PRUint32 ssl3_timeout, const char *directory, PRBool shared) argument
1296 ssl_ConfigServerSessionIDCacheInstanceWithOpt(cacheDesc *cache, PRUint32 ssl2_timeout, PRUint32 ssl3_timeout, const char * directory, PRBool shared, int maxCacheEntries, int maxCertCacheEntries, int maxSrvNameCacheEntries) argument
1335 SSL_ConfigServerSessionIDCacheInstance( cacheDesc *cache, int maxCacheEntries, PRUint32 ssl2_timeout, PRUint32 ssl3_timeout, const char * directory, PRBool shared) argument
1362 SSL_ShutdownServerSessionIDCacheInstance(cacheDesc *cache) argument
1392 cacheDesc * cache = &globalCache; local
1482 SSL_InheritMPServerSIDCacheInstance(cacheDesc *cache, const char * envString) argument
1675 cacheDesc * cache = (cacheDesc *)arg; local
1723 LaunchLockPoller(cacheDesc *cache) argument
1751 StopLockPoller(cacheDesc *cache) argument
1776 getSvrWrappingKey(PRInt32 symWrapMechIndex, SSL3KEAType exchKeyType, SSLWrappedSymWrappingKey *wswk, cacheDesc * cache, PRUint32 lockTime) argument
1860 cacheDesc *cache = &globalCache; local
1915 cacheDesc *cache = &globalCache; local
1947 cacheDesc *cache = &globalCache; local
1992 cacheDesc *cache = &globalCache; local
2028 cacheDesc *cache = &globalCache; local
2097 cacheDesc * cache = &globalCache; local
[all...]
/external/elfutils/0.153/libdw/
H A Dcie.c75 intern_new_cie (Dwarf_CFI *cache, Dwarf_Off offset, const Dwarf_CIE *info) argument
115 += encoded_value_size (&cache->data->d, cache->e_ident,
125 data += encoded_value_size (&cache->data->d, cache->e_ident,
146 = cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
168 if (tsearch (cie, &cache->cie_tree, &compare_cie) == NULL)
181 __libdw_find_cie (Dwarf_CFI *cache, Dwarf_Off offset) argument
184 struct dwarf_cie **found = tfind (&cie_key, &cache->cie_tree, &compare_cie);
191 int result = INTUSE(dwarf_next_cfi) (cache
210 __libdw_intern_cie(Dwarf_CFI *cache, Dwarf_Off offset, const Dwarf_CIE *info) argument
[all...]
/external/chromium_org/chrome/browser/
H A Dfont_family_cache_unittest.cc33 // Tests that the cache is correctly set and cleared.
36 TestingFontFamilyCache cache(&profile);
59 cache.FetchAndCacheFont(script.c_str(), map_name.c_str()));
61 EXPECT_EQ(1, cache.fetch_font_count_);
63 // Check that the second access uses the cache.
65 cache.FetchAndCacheFont(script.c_str(), map_name.c_str()));
67 EXPECT_EQ(1, cache.fetch_font_count_);
72 cache.FetchAndCacheFont(script.c_str(), map_name.c_str()));
74 EXPECT_EQ(1, cache.fetch_font_count_);
76 // Changing the preferences invalidates the cache
[all...]
/external/chromium_org/third_party/skia/tests/
H A DClipCacheTest.cpp104 const GrClipMaskCache& cache,
108 REPORTER_ASSERT(reporter, clip.getTopmostGenID() == cache.getLastClipGenID());
110 REPORTER_ASSERT(reporter, mask == cache.getLastMask());
113 cache.getLastBound(&cacheBound);
118 const GrClipMaskCache& cache) {
119 REPORTER_ASSERT(reporter, SkClipStack::kInvalidGenID == cache.getLastClipGenID());
120 REPORTER_ASSERT(reporter, NULL == cache.getLastMask());
126 cache.getLastBound(&cacheBound);
131 // basic test of the cache's base functionality:
138 GrClipMaskCache cache; local
103 check_state(skiatest::Reporter* reporter, const GrClipMaskCache& cache, const SkClipStack& clip, GrTexture* mask, const SkIRect& bound) argument
117 check_empty_state(skiatest::Reporter* reporter, const GrClipMaskCache& cache) argument
[all...]
/external/skia/tests/
H A DClipCacheTest.cpp104 const GrClipMaskCache& cache,
108 REPORTER_ASSERT(reporter, clip.getTopmostGenID() == cache.getLastClipGenID());
110 REPORTER_ASSERT(reporter, mask == cache.getLastMask());
113 cache.getLastBound(&cacheBound);
118 const GrClipMaskCache& cache) {
119 REPORTER_ASSERT(reporter, SkClipStack::kInvalidGenID == cache.getLastClipGenID());
120 REPORTER_ASSERT(reporter, NULL == cache.getLastMask());
126 cache.getLastBound(&cacheBound);
131 // basic test of the cache's base functionality:
138 GrClipMaskCache cache; local
103 check_state(skiatest::Reporter* reporter, const GrClipMaskCache& cache, const SkClipStack& clip, GrTexture* mask, const SkIRect& bound) argument
117 check_empty_state(skiatest::Reporter* reporter, const GrClipMaskCache& cache) argument
[all...]
/external/chromium_org/content/browser/appcache/
H A Dappcache_unittest.cc43 scoped_refptr<AppCache> cache(new AppCache(service.storage(), 111));
44 cache->set_complete(true);
47 group->AddCache(cache.get());
52 host1.AssociateCompleteCache(cache.get());
53 host2.AssociateCompleteCache(cache.get());
61 scoped_refptr<AppCache> cache(new AppCache(service.storage(), 111));
63 EXPECT_TRUE(cache->entries().empty());
64 EXPECT_EQ(0L, cache->cache_size());
70 cache->AddEntry(kFooUrl, entry1);
71 EXPECT_EQ(entry1.types(), cache
[all...]
/external/chromium_org/third_party/libaddressinput/src/java/test/com/android/i18n/addressinput/
H A DCacheDataTest.java26 private CacheData cache; field in class:CacheDataTest
51 cache = new CacheData();
55 // Creating cache with content.
64 cache.addToJsoMap(id, jsonObject);
65 String toBackup = cache.getJsonString();
67 // Creating cache from saved data.
68 cache = new CacheData(toBackup);
69 assertTrue(cache.containsKey(id));
73 // Creating cache with content.
80 cache
[all...]
/external/chromium_org/third_party/freetype/src/cache/
H A Dftccache.h5 /* FreeType internal cache interface (specification). */
30 /* handle to cache object */
33 /* handle to cache class */
47 /* Each cache controls one or more cache nodes. Each node is part of */
52 /* the cache. It can be an individual glyph image, a set of bitmaps */
63 FT_UShort cache_index; /* index of cache the node belongs to */
76 #define FTC_NODE__TOP_FOR_HASH( cache, hash ) \
77 ( ( cache )->buckets + \
78 ( ( ( ( hash ) & ( cache )
167 FTC_Cache_Init( FTC_Cache cache ); variable
171 FTC_Cache_Done( FTC_Cache cache ); variable
[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...]
/external/freetype/src/cache/
H A Dftccache.h5 /* FreeType internal cache interface (specification). */
30 /* handle to cache object */
33 /* handle to cache class */
47 /* Each cache controls one or more cache nodes. Each node is part of */
52 /* the cache. It can be an individual glyph image, a set of bitmaps */
63 FT_UShort cache_index; /* index of cache the node belongs to */
76 #define FTC_NODE__TOP_FOR_HASH( cache, hash ) \
77 ( ( cache )->buckets + \
78 ( ( ( ( hash ) & ( cache )
167 FTC_Cache_Init( FTC_Cache cache ); variable
171 FTC_Cache_Done( FTC_Cache cache ); variable
[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...]
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dremove_stale_cache_files.h14 // Removes files from |cache| which are not dirty but the MD5 is obsolete.
15 // Must be run on the same task runner as |cache| and |resource_metadata| use.
16 void RemoveStaleCacheFiles(FileCache* cache,
/external/chromium_org/chrome/browser/supervised_user/
H A Dsupervised_user_service_browsertest.cc54 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local
56 size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath());
57 cache.SetIsOmittedProfileAtIndex(index, true);
58 ASSERT_TRUE(cache.IsOmittedProfileAtIndex(index));
70 ASSERT_TRUE(cache.IsOmittedProfileAtIndex(index));
78 EXPECT_FALSE(cache.IsOmittedProfileAtIndex(index));
95 const ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local
96 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath());
98 base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index)));
113 const ProfileInfoCache& cache local
[all...]
/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/guava/guava/src/com/google/common/cache/
H A DRemovalListener.java17 package com.google.common.cache;
22 * An object that can receive a notification when an entry is removed from a cache. The removal

Completed in 1524 milliseconds

1234567891011>>