/external/bluetooth/glib/gio/xdgmime/ |
D | xdgmimecache.c | 46 #warning Building xdgmime without MMAP support. Binary "mime.info" cache files will not be used. 86 #define GET_UINT16(cache,offset) (ntohs(*(xdg_uint16_t*)((cache) + (offset)))) argument 87 #define GET_UINT32(cache,offset) (ntohl(*(xdg_uint32_t*)((cache) + (offset)))) argument 90 _xdg_mime_cache_ref (XdgMimeCache *cache) in _xdg_mime_cache_ref() argument 92 cache->ref_count++; in _xdg_mime_cache_ref() 93 return cache; in _xdg_mime_cache_ref() 97 _xdg_mime_cache_unref (XdgMimeCache *cache) in _xdg_mime_cache_unref() argument 99 cache->ref_count--; in _xdg_mime_cache_unref() 101 if (cache->ref_count == 0) in _xdg_mime_cache_unref() 104 munmap (cache->buffer, cache->size); in _xdg_mime_cache_unref() [all …]
|
/external/e2fsprogs/lib/blkid/ |
D | cache.c | 59 static blkid_debug_dump_cache(int mask, blkid_cache cache) 63 if (!cache) { 68 printf("cache: time = %lu\n", cache->bic_time); 69 printf("cache: flags = 0x%08X\n", cache->bic_flags); 71 list_for_each(p, &cache->bic_devs) { 80 blkid_cache cache; in blkid_get_cache() local 95 if (!(cache = (blkid_cache) calloc(1, sizeof(struct blkid_struct_cache)))) in blkid_get_cache() 98 INIT_LIST_HEAD(&cache->bic_devs); in blkid_get_cache() 99 INIT_LIST_HEAD(&cache->bic_tags); in blkid_get_cache() 107 cache->bic_filename = blkid_strdup(filename); in blkid_get_cache() [all …]
|
D | devname.c | 51 blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, int flags) in blkid_get_dev() argument 56 if (!cache || !devname) in blkid_get_dev() 59 list_for_each(p, &cache->bic_devs) { in blkid_get_dev() 76 dev->bid_cache = cache; in blkid_get_dev() 77 list_add_tail(&dev->bid_devs, &cache->bic_devs); in blkid_get_dev() 78 cache->bic_flags |= BLKID_BIC_FL_CHANGED; in blkid_get_dev() 82 dev = blkid_verify(cache, dev); in blkid_get_dev() 93 static void probe_one(blkid_cache cache, const char *ptname, in probe_one() argument 102 list_for_each(p, &cache->bic_devs) { in probe_one() 112 dev = blkid_verify(cache, tmp); in probe_one() [all …]
|
D | resolve.c | 27 char *blkid_get_tag_value(blkid_cache cache, const char *tagname, in blkid_get_tag_value() argument 32 blkid_cache c = cache; in blkid_get_tag_value() 40 if (!cache) { in blkid_get_tag_value() 49 if (!cache) in blkid_get_tag_value() 61 char *blkid_get_devname(blkid_cache cache, const char *token, in blkid_get_devname() argument 65 blkid_cache c = cache; in blkid_get_devname() 72 if (!cache) { in blkid_get_devname() 79 value ? value : "", cache ? "in cache" : "from disk")); in blkid_get_devname() 104 if (!cache) { in blkid_get_devname() 114 blkid_cache cache; in main() local [all …]
|
D | blkid.h | 51 extern void blkid_put_cache(blkid_cache cache); 52 extern int blkid_get_cache(blkid_cache *cache, const char *filename); 53 extern void blkid_gc_cache(blkid_cache cache); 58 extern blkid_dev_iterate blkid_dev_iterate_begin(blkid_cache cache); 68 extern int blkid_probe_all(blkid_cache cache); 69 extern int blkid_probe_all_new(blkid_cache cache); 70 extern blkid_dev blkid_get_dev(blkid_cache cache, const char *devname, 78 extern blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev); 83 extern char *blkid_get_tag_value(blkid_cache cache, const char *tagname, 85 extern char *blkid_get_devname(blkid_cache cache, const char *token, [all …]
|
D | read.c | 183 static int parse_dev(blkid_cache cache, blkid_dev *dev, char **cp) in parse_dev() argument 227 if (!(*dev = blkid_get_dev(cache, name, BLKID_DEV_CREATE))) { in parse_dev() 303 static int parse_tag(blkid_cache cache, blkid_dev dev, char **cp) in parse_tag() argument 309 if (!cache || !dev) in parse_tag() 343 static int blkid_parse_line(blkid_cache cache, blkid_dev *dev_p, char *cp) in blkid_parse_line() argument 348 if (!cache || !dev_p) in blkid_parse_line() 355 if ((ret = parse_dev(cache, dev_p, &cp)) <= 0) in blkid_parse_line() 360 while ((ret = parse_tag(cache, dev, &cp)) > 0) { in blkid_parse_line() 380 void blkid_read_cache(blkid_cache cache) in blkid_read_cache() argument 387 if (!cache) in blkid_read_cache() [all …]
|
D | save.c | 56 int blkid_flush_cache(blkid_cache cache) in blkid_flush_cache() argument 66 if (!cache) in blkid_flush_cache() 69 if (list_empty(&cache->bic_devs) || in blkid_flush_cache() 70 !(cache->bic_flags & BLKID_BIC_FL_CHANGED)) { in blkid_flush_cache() 75 filename = cache->bic_filename ? cache->bic_filename: BLKID_CACHE_FILE; in blkid_flush_cache() 119 list_for_each(p, &cache->bic_devs) { in blkid_flush_cache() 128 cache->bic_flags &= ~BLKID_BIC_FL_CHANGED; in blkid_flush_cache() 163 blkid_cache cache = NULL; in main() local 173 if ((ret = blkid_get_cache(&cache, "/dev/null")) != 0) { in main() 178 if ((ret = blkid_probe_all(cache)) < 0) { in main() [all …]
|
/external/openssl/crypto/x509v3/ |
D | pcy_cache.c | 78 X509_POLICY_CACHE *cache = x->policy_cache; in policy_cache_create() local 83 cache->data = sk_X509_POLICY_DATA_new(policy_data_cmp); in policy_cache_create() 84 if (!cache->data) in policy_cache_create() 97 if (cache->anyPolicy) in policy_cache_create() 102 cache->anyPolicy = data; in policy_cache_create() 104 else if (sk_X509_POLICY_DATA_find(cache->data, data) != -1) in policy_cache_create() 109 else if (!sk_X509_POLICY_DATA_push(cache->data, data)) in policy_cache_create() 122 sk_X509_POLICY_DATA_pop_free(cache->data, policy_data_free); in policy_cache_create() 123 cache->data = NULL; in policy_cache_create() 131 X509_POLICY_CACHE *cache; in policy_cache_new() local [all …]
|
D | pcy_map.c | 78 static X509_POLICY_REF *policy_map_find(X509_POLICY_CACHE *cache, ASN1_OBJECT *id) in policy_map_find() argument 84 idx = sk_X509_POLICY_REF_find(cache->maps, &tmp); in policy_map_find() 87 return sk_X509_POLICY_REF_value(cache->maps, idx); in policy_map_find() 99 X509_POLICY_CACHE *cache = x->policy_cache; in policy_cache_set_mapping() local 107 cache->maps = sk_X509_POLICY_REF_new(ref_cmp); in policy_cache_set_mapping() 120 if (policy_map_find(cache, map->subjectDomainPolicy) != NULL) in policy_cache_set_mapping() 127 data = policy_cache_find_data(cache, map->issuerDomainPolicy); in policy_cache_set_mapping() 129 if (!data && !cache->anyPolicy) in policy_cache_set_mapping() 136 cache->anyPolicy->flags in policy_cache_set_mapping() 140 data->qualifier_set = cache->anyPolicy->qualifier_set; in policy_cache_set_mapping() [all …]
|
D | pcy_tree.c | 79 const X509_POLICY_CACHE *cache; in tree_init() local 119 cache = policy_cache_set(x); in tree_init() 121 if (cache == NULL) in tree_init() 129 else if ((ret == 1) && !cache->data) in tree_init() 135 && (cache->explicit_skip != -1) in tree_init() 136 && (cache->explicit_skip < explicit_policy)) in tree_init() 137 explicit_policy = cache->explicit_skip; in tree_init() 186 cache = policy_cache_set(x); in tree_init() 191 if (!cache->anyPolicy) in tree_init() 206 if ((cache->any_skip > 0) in tree_init() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | unix_io.c | 72 struct unix_cache cache[CACHE_SIZE]; member 89 struct unix_cache *cache, unsigned long block); 258 struct unix_cache *cache; in alloc_cache() local 262 for (i=0, cache = data->cache; i < CACHE_SIZE; i++, cache++) { in alloc_cache() 263 cache->block = 0; in alloc_cache() 264 cache->access_time = 0; in alloc_cache() 265 cache->dirty = 0; in alloc_cache() 266 cache->in_use = 0; in alloc_cache() 268 &cache->buf))) in alloc_cache() 277 struct unix_cache *cache; in free_cache() local [all …]
|
/external/webkit/WebCore/loader/appcache/ |
D | ApplicationCacheHost.cpp | 254 ApplicationCache* cache = applicationCache(); in shouldLoadResourceFromApplicationCache() local 255 if (!cache || !cache->isComplete()) in shouldLoadResourceFromApplicationCache() 264 resource = cache->resourceForURL(request.url()); in shouldLoadResourceFromApplicationCache() 268 …if (!resource && (cache->urlMatchesFallbackNamespace(request.url()) || cache->isURLInOnlineWhiteli… in shouldLoadResourceFromApplicationCache() 276 …ource(const ResourceRequest& request, ApplicationCacheResource*& resource, ApplicationCache* cache) in getApplicationCacheFallbackResource() argument 278 if (!cache) { in getApplicationCacheFallbackResource() 279 cache = applicationCache(); in getApplicationCacheFallbackResource() 280 if (!cache) in getApplicationCacheFallbackResource() 283 if (!cache->isComplete()) in getApplicationCacheFallbackResource() 291 if (!cache->urlMatchesFallbackNamespace(request.url(), &fallbackURL)) in getApplicationCacheFallbackResource() [all …]
|
D | ApplicationCacheStorage.cpp | 117 RefPtr<ApplicationCache> cache = loadCache(newestCacheStorageID); in loadCacheGroup() local 118 if (!cache) in loadCacheGroup() 124 group->setNewestCache(cache.release()); in loadCacheGroup() 199 if (ApplicationCache* cache = group->newestCache()) { in cacheGroupForURL() local 200 ApplicationCacheResource* resource = cache->resourceForURL(url); in cacheGroupForURL() 230 RefPtr<ApplicationCache> cache = loadCache(newestCacheID); in cacheGroupForURL() local 231 if (!cache) in cacheGroupForURL() 234 ApplicationCacheResource* resource = cache->resourceForURL(url); in cacheGroupForURL() 243 group->setNewestCache(cache.release()); in cacheGroupForURL() 267 if (ApplicationCache* cache = group->newestCache()) { in fallbackCacheGroupForURL() local [all …]
|
/external/skia/src/core/ |
D | SkGlyphCache.cpp | 461 SkGlyphCache* cache; in VisitAllCaches() local 465 for (cache = globals.fHead; cache != NULL; cache = cache->fNext) { in VisitAllCaches() 466 if (proc(cache, context)) { in VisitAllCaches() 487 SkGlyphCache* cache; in VisitCache() local 495 cache = hash[index]; in VisitCache() 496 if (cache && *cache->fDesc == *desc) { in VisitCache() 497 cache->detach(&globals.fHead); in VisitCache() 502 for (cache = globals.fHead; cache != NULL; cache = cache->fNext) { in VisitCache() 503 if (cache->fDesc->equals(*desc)) { in VisitCache() 504 cache->detach(&globals.fHead); in VisitCache() [all …]
|
D | SkPaint.cpp | 353 SkGlyphCache* cache = autoCache.getCache(); in textToGlyphs() local 362 *gptr++ = cache->unicharToGlyph(SkUTF8_NextUnichar(&text)); in textToGlyphs() 369 *gptr++ = cache->unicharToGlyph(SkUTF16_NextUnichar(&text16)); in textToGlyphs() 381 static const SkGlyph& sk_getMetrics_utf8_next(SkGlyphCache* cache, const char** text) in sk_getMetrics_utf8_next() argument 383 SkASSERT(cache != NULL); in sk_getMetrics_utf8_next() 386 return cache->getUnicharMetrics(SkUTF8_NextUnichar(text)); in sk_getMetrics_utf8_next() 389 static const SkGlyph& sk_getMetrics_utf8_prev(SkGlyphCache* cache, const char** text) in sk_getMetrics_utf8_prev() argument 391 SkASSERT(cache != NULL); in sk_getMetrics_utf8_prev() 394 return cache->getUnicharMetrics(SkUTF8_PrevUnichar(text)); in sk_getMetrics_utf8_prev() 397 static const SkGlyph& sk_getMetrics_utf16_next(SkGlyphCache* cache, const char** text) in sk_getMetrics_utf16_next() argument [all …]
|
/external/e2fsprogs/doc/ |
D | libblkid.txt | 7 directly initialize cache file via (second parameter is cache 10 blkid_cache cache = NULL; 11 if (blkid_get_cache(&cache, NULL) < 0) 12 /* error reading the cache file, not really fatal */ 14 Note that if no cache file exists, an empty cache struct is still 15 allocated. Usage of libblkid functions will use the cache to avoid 18 The model of the blkid cache is that each device has a number of 32 if ((devname = blkid_get_devname(cache, attribute_name, value))) { 37 The cache parameter is optional; if it is NULL, then the blkid library 38 will load the default blkid.tab cache file, and then release the cache [all …]
|
/external/qemu/android/skin/ |
D | image.c | 357 skin_image_cache_init( SkinImageCache* cache ) in skin_image_cache_init() argument 359 memset(cache, 0, sizeof(*cache)); in skin_image_cache_init() 361 cache->max_pixels = 1; in skin_image_cache_init() 363 cache->max_pixels = 4*1024*1024; /* limit image cache to 4 MB */ in skin_image_cache_init() 365 cache->mru_head.next = cache->mru_head.prev = &cache->mru_head; in skin_image_cache_init() 370 skin_image_cache_remove( SkinImageCache* cache, in skin_image_cache_remove() argument 374 SkinImage** pnode = cache->buckets + (image->hash & (NUM_BUCKETS-1)); in skin_image_cache_remove() 396 cache->total_pixels -= image->w*image->h; in skin_image_cache_remove() 397 cache->total_images -= 1; in skin_image_cache_remove() 402 skin_image_cache_raise( SkinImageCache* cache, in skin_image_cache_raise() argument [all …]
|
/external/bluetooth/bluez/compat/ |
D | dund.c | 84 } cache; variable 107 if (!cache.valid) in do_listen() 110 if (create_connection(cache.dst, &cache.bdaddr, type) < 0) { in do_listen() 224 if (use_cache && cache.valid && cache.channel) { in create_connection() 226 ch = cache.channel; in create_connection() 285 strcpy(cache.dst, dst); in create_connection() 286 bacpy(&cache.bdaddr, bdaddr); in create_connection() 287 cache.channel = ch; in create_connection() 288 cache.valid = use_cache; in create_connection() 290 cache.channel = 0; in create_connection() [all …]
|
/external/icu4c/common/ |
D | locutil.cpp | 194 Hashtable* cache; in getAvailableLocaleNames() local 196 cache = LocaleUtility_cache; in getAvailableLocaleNames() 199 if (cache == NULL) { in getAvailableLocaleNames() 200 cache = new Hashtable(status); in getAvailableLocaleNames() 201 if (cache == NULL || U_FAILURE(status)) { in getAvailableLocaleNames() 204 cache->setValueDeleter(uhash_deleteHashtable); in getAvailableLocaleNames() 209 LocaleUtility_cache = h = cache; in getAvailableLocaleNames() 210 cache = NULL; in getAvailableLocaleNames() 214 if(cache != NULL) { in getAvailableLocaleNames() 215 delete cache; in getAvailableLocaleNames() [all …]
|
/external/webkit/WebCore/loader/ |
D | CachedResource.cpp | 94 ASSERT(url().isNull() || cache()->resourceForURL(url()) != this); in ~CachedResource() 110 …cache()->loader()->load(docLoader, this, incremental, skipCanLoadCheck, sendResourceLoadCallbacks); in load() 195 cache()->addToLiveResourcesSize(this); in addClientToSet() 207 cache()->removeFromLiveResourcesSize(this); in removeClient() 208 cache()->removeFromLiveDecodedResourcesList(this); in removeClient() 213 cache()->remove(this); in removeClient() 215 cache()->prune(); in removeClient() 237 cache()->removeFromLRUList(this); in setDecodedSize() 243 cache()->insertInLRUList(this); in setDecodedSize() 247 cache()->insertInLiveDecodedResourcesList(this); in setDecodedSize() [all …]
|
/external/webkit/WebCore/bindings/v8/ |
D | V8Utilities.cpp | 48 v8::Local<v8::Value> cache = object->GetInternalField(cacheIndex); in createHiddenDependency() local 49 if (cache->IsNull() || cache->IsUndefined()) { in createHiddenDependency() 50 cache = v8::Array::New(); in createHiddenDependency() 51 object->SetInternalField(cacheIndex, cache); in createHiddenDependency() 54 v8::Local<v8::Array> cacheArray = v8::Local<v8::Array>::Cast(cache); in createHiddenDependency() 60 v8::Local<v8::Value> cache = object->GetInternalField(cacheIndex); in removeHiddenDependency() local 61 if (!cache->IsArray()) in removeHiddenDependency() 63 v8::Local<v8::Array> cacheArray = v8::Local<v8::Array>::Cast(cache); in removeHiddenDependency()
|
/external/apache-http/src/org/apache/http/impl/io/ |
D | ChunkedOutputStream.java | 55 private byte[] cache; field in ChunkedOutputStream 74 this.cache = new byte[bufferSize]; in ChunkedOutputStream() 98 this.out.write(this.cache, 0, this.cachePosition); in flushCache() 114 this.out.write(this.cache, 0, this.cachePosition); in flushCacheWithAppend() 144 this.cache[this.cachePosition] = (byte) b; in write() 146 if (this.cachePosition == this.cache.length) flushCache(); in write() 163 if (len >= this.cache.length - this.cachePosition) { in write() 166 System.arraycopy(src, off, cache, this.cachePosition, len); in write()
|
/external/bluetooth/bluez/plugins/ |
D | netlink.c | 43 static struct nl_cache *cache; variable 91 cache = genl_ctrl_alloc_cache(handle); in netlink_init() 92 if (!cache) { in netlink_init() 98 family = genl_ctrl_search_by_name(cache, "bluetooth"); in netlink_init() 101 nl_cache_free(cache); in netlink_init() 109 nl_cache_free(cache); in netlink_init() 122 nl_cache_free(cache); in netlink_exit()
|
/external/e2fsprogs/e2fsck/ |
D | jfs_user.h | 55 #define kmem_cache_alloc(cache,flags) malloc((cache)->object_length) argument 56 #define kmem_cache_free(cache,obj) free(obj) argument 58 #define kmem_cache_destroy(cache) do_cache_destroy(cache) argument 67 extern void do_cache_destroy(kmem_cache_t *cache); 89 _INLINE_ void do_cache_destroy(kmem_cache_t *cache) in do_cache_destroy() argument 91 free(cache); in do_cache_destroy()
|
/external/e2fsprogs/misc/ |
D | blkid.c | 126 blkid_cache cache = NULL; in main() local 211 if (blkid_get_cache(&cache, read) < 0) in main() 216 blkid_gc_cache(cache); in main() 227 blkid_get_dev(cache, devices[i], BLKID_DEV_NORMAL); in main() 229 if ((dev = blkid_find_dev_with_tag(cache, search_type, in main() 239 blkid_probe_all(cache); in main() 241 iter = blkid_dev_iterate_begin(cache); in main() 244 dev = blkid_verify(cache, dev); in main() 253 blkid_dev dev = blkid_get_dev(cache, devices[i], in main() 271 blkid_put_cache(cache); in main()
|