HomeSort by relevance Sort by last modified time
    Searched full:cache (Results 226 - 250 of 6143) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/kernel-headers/original/asm-mips/
cachectl.h 14 #define ICACHE (1<<0) /* flush instruction cache */
15 #define DCACHE (1<<1) /* writeback and flush data cache */
  /external/objenesis/main/src/org/objenesis/
ObjenesisBase.java 35 /** Strategy cache. Key = Class, Value = InstantiatorStrategy */
36 protected Map cache; field in class:ObjenesisBase
39 * Constructor allowing to pick a strategy and using cache
58 this.cache = useCache ? new HashMap() : null;
63 + (cache == null ? " without" : " with") + " caching";
85 if(cache == null) {
88 ObjectInstantiator instantiator = (ObjectInstantiator) cache.get(clazz.getName());
91 cache.put(clazz.getName(), instantiator);
  /external/oprofile/events/i386/arch_perfmon/
events.h 9 "Last level cache demand requests from this core that missed the LLC"},
11 "Last level cache demand requests from this core"},
  /frameworks/support/tests/res/xml/
paths.xml 10 <!-- /data/data/com.example/cache -->
11 <cache-path name="test_cache" />
  /packages/apps/Mms/src/com/android/mms/util/
CacheManager.java 30 private static final String KEY_CACHE_UP_TO_DATE = "cache-up-to-date";
47 BlobCache cache = sCacheMap.get(filename); local
48 if (cache == null) {
52 Log.d(TAG, "Cache dir: " + path);
54 cache = new BlobCache(path, maxEntries, maxBytes, false,
56 sCacheMap.put(filename, cache);
58 Log.e(TAG, "Cannot instantiate cache!", e);
61 return cache;
  /system/core/libnl_2/
Android.mk 2 # * Netlink cache not implemented
13 cache.c \
  /frameworks/native/cmds/installd/
utils.c 375 cache_t* cache = (cache_t*)calloc(1, sizeof(cache_t)); local
376 return cache;
381 static void* _cache_malloc(cache_t* cache, size_t len)
392 CACHE_NOISY(ALOGI("Allocated large cache mem block: %p size %d", res, len));
394 if (cache->memBlocks == NULL) {
396 cache->memBlocks = res;
398 *(void**)res = *(void**)cache->memBlocks;
399 *(void**)cache->memBlocks = res;
403 int8_t* res = cache->curMemBlockAvail;
405 if (cache->memBlocks == NULL || nextPos > cache->curMemBlockEnd)
    [all...]
  /packages/apps/Email/src/com/android/email/provider/
ContentCache.java 39 * An LRU cache for EmailContent (Account, HostAuth, Mailbox, and Message, thus far). The intended
40 * user of this cache is EmailProvider itself; caching is entirely transparent to users of the
46 * To create a cache:
47 * ContentCache cache = new ContentCache(name, projection, max);
49 * To (try to) get a cursor from a cache:
50 * Cursor cursor = cache.getCursor(id, projection);
52 * To read from a table and cache the resulting cursor:
53 * 1. Get a CacheToken: CacheToken token = cache.getToken(id);
55 * 3. Put the cursor in the cache: cache.putCursor(cursor, id, token)
    [all...]
  /bionic/libc/netbsd/resolv/
res_cache.c 48 /* This code implements a small and *simple* DNS resolver cache.
50 * It is only used to cache DNS answers for a time defined by the smallest TTL
52 * to be a full DNS cache, since we plan to implement that in the future in a
64 * to keep an answer in the cache.
67 * (and should be solved by the later full DNS cache process).
73 * that a full DNS cache is expected to do.
77 * - the client calls _resolv_cache_get() to obtain a handle to the cache.
78 * this will initialize the cache on first usage. the result can be NULL
79 * if the cache is disabled.
88 * answer to the cache
1248 Cache* cache; member in struct:resolv_cache_info
1430 struct resolv_cache* cache; local
1862 struct resolv_cache *cache; local
1893 struct resolv_cache* cache = _find_named_cache_locked(ifname); local
1938 struct resolv_cache* cache = _get_res_cache_for_iface_locked(ifname); local
1980 struct resolv_cache* cache = _find_named_cache_locked(ifname); local
    [all...]
  /external/e2fsprogs/lib/blkid/
read.c 2 * read.c - read the blkid cache from disk, to avoid scanning all devices
132 * Start parsing a new line from the cache.
184 static int parse_dev(blkid_cache cache, blkid_dev *dev, char **cp)
228 if (!(*dev = blkid_get_dev(cache, name, BLKID_DEV_CREATE))) {
304 static int parse_tag(blkid_cache cache, blkid_dev dev, char **cp)
310 if (!cache || !dev)
334 * Add the new device to the cache struct, if one was read.
343 static int blkid_parse_line(blkid_cache cache, blkid_dev *dev_p, char *cp)
348 if (!cache || !dev_p)
355 if ((ret = parse_dev(cache, dev_p, &cp)) <= 0
476 blkid_cache cache = NULL; local
    [all...]
  /frameworks/base/core/java/android/util/
LruCache.java 23 * A cache that holds strong references to a limited number of values. Each time
25 * added to a full cache, the value at the end of that queue is evicted and may
31 * <p>If a cache miss should be computed on demand for the corresponding keys,
33 * assume a value will always be returned, even when there's a cache miss.
35 * <p>By default, the cache size is measured in the number of entries. Override
36 * {@link #sizeOf} to size the cache in different units. For example, this cache
46 * <p>This class is thread-safe. Perform multiple cache operations atomically by
47 * synchronizing on the cache: <pre> {@code
48 * synchronized (cache) {
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/util/
LruCache.java 27 * A cache that holds strong references to a limited number of values. Each time
29 * added to a full cache, the value at the end of that queue is evicted and may
35 * <p>If a cache miss should be computed on demand for the corresponding keys,
37 * assume a value will always be returned, even when there's a cache miss.
39 * <p>By default, the cache size is measured in the number of entries. Override
40 * {@link #sizeOf} to size the cache in different units. For example, this cache
50 * <p>This class is thread-safe. Perform multiple cache operations atomically by
51 * synchronizing on the cache: <pre> {@code
52 * synchronized (cache) {
    [all...]
  /external/dnsmasq/src/
cache.c 199 /* insert a new cache entry at the head of the list (youngest entry) */
211 /* remove an arbitrary cache entry for promotion */
240 if (crecp->addr.cname.cache && crecp->addr.cname.uid == crecp->addr.cname.cache->uid)
263 entries in the whole cache.
264 If (flags == 0) remove any expired entries in the whole cache.
267 name exists in the cache as a HOSTS or DHCP entry (these are never deleted)
369 /* CONFIG bit means something else when stored in cache entries */
385 /* Now get a cache entry from the end of the LRU list */
387 if (!(new = cache_tail)) /* no entries left - cache is too small, bail *
823 struct crec *cache; local
870 struct crec *cache, **up, *tmp; local
1020 struct crec *cache, **up; local
1160 struct crec *cache ; local
    [all...]
  /external/smack/src/org/jivesoftware/smack/util/
Cache.java 28 * has an optional expiration time for cache items. The Map is thread-safe.<p>
30 * The algorithm for cache is as follows: a HashMap is maintained for fast
32 * order they are accessed from cache, the other keeps objects in the order
33 * they were originally added to cache. When objects are added to cache, they
40 * of the object in cache. Keeping a reference to the node lets us avoid
43 * To get an object from cache, a hash lookup is performed to get a reference
46 * and any necessary cache cleanups are performed. Cache deletion and expiration
51 public class Cache<K, V> implements Map<K, V>
    [all...]
  /external/dexmaker/src/test/java/com/google/dexmaker/
AppDataDirGuesserTest.java 27 guessCacheDirFor("/data/app/a.b.c.apk").shouldGive("/data/data/a.b.c/cache");
28 guessCacheDirFor("/data/app/a.b.c.tests.apk").shouldGive("/data/data/a.b.c.tests/cache");
33 .shouldGive("/data/data/a.b.c/cache", "/data/data/d.e.f/cache");
38 .withNonWriteable("/data/data/a.b.c/cache")
39 .shouldGive("/data/data/d.e.f/cache");
43 guessCacheDirFor("/data/app/a.b.c-2.apk").shouldGive("/data/data/a.b.c/cache");
47 guessCacheDirFor("/data/app/a.b.c.apk:asdf:").shouldGive("/data/data/a.b.c/cache");
48 guessCacheDirFor(":asdf:/data/app/a.b.c.apk").shouldGive("/data/data/a.b.c/cache");
65 .withNonWriteable("/data/data/com.google.android.voicesearch.tests/cache")
    [all...]
  /external/littlemock/tests/com/google/testing/littlemock/
AppDataDirGuesserTest.java 28 guessCacheDirFor("/data/app/a.b.c.apk").shouldGive("/data/data/a.b.c/cache");
29 guessCacheDirFor("/data/app/a.b.c.tests.apk").shouldGive("/data/data/a.b.c.tests/cache");
34 .shouldGive("/data/data/a.b.c/cache", "/data/data/d.e.f/cache");
39 .withNonWriteable("/data/data/a.b.c/cache")
40 .shouldGive("/data/data/d.e.f/cache");
44 guessCacheDirFor("/data/app/a.b.c-2.apk").shouldGive("/data/data/a.b.c/cache");
48 guessCacheDirFor("/data/app/a.b.c.apk:asdf:").shouldGive("/data/data/a.b.c/cache");
49 guessCacheDirFor(":asdf:/data/app/a.b.c.apk").shouldGive("/data/data/a.b.c/cache");
66 .withNonWriteable("/data/data/com.google.android.voicesearch.tests/cache")
    [all...]
  /frameworks/base/libs/hwui/
LayerCache.h 39 // Cache
52 * When a layer is obtained from the cache, it is removed and the total
53 * size of the cache goes down.
61 * Adds the layer to the cache. The layer will not be added if there is
63 * be removed from the cache.
65 * @param layer The layer to add to the cache
71 * Clears the cache. This causes all layers to be deleted.
76 * Sets the maximum size of the cache in bytes.
80 * Returns the maximum size of the cache in bytes.
84 * Returns the current size of the cache in bytes
    [all...]
  /external/webkit/Source/WebCore/loader/appcache/
ApplicationCacheGroup.h 82 bool cacheIsBeingUpdated(const ApplicationCache* cache) const { return cache == m_cacheBeingUpdated; }
110 // For normal resource loading, WebKit client is asked about each resource individually. Since application cache does not belong to any particular document,
111 // the existing client callback cannot be used, so assume that any client that enables application cache also wants it to use credential storage.
142 // This is the newest complete cache in the group.
145 // All complete caches in this cache group.
148 // The cache being updated (if any). Note that cache updating does not immediately create a new
157 // These are all the document loaders that are associated with a cache in this group.
160 // The URLs and types of pending cache entries
    [all...]
  /frameworks/base/docs/html/training/efficient-downloads/
redundant_redundant.jd 18 <li><a href="#LocalCache">Cache files locally</a></li>
19 <li><a href="#ResponseCache">Use the HttpURLConnection response cache</a></li>
34 <h2 id="LocalCache">Cache Files Locally</h2>
36 <p>Another important technique is to avoid downloading duplicate data. You can do this by aggressive caching. Always cache static resources, including on-demand downloads such as full size images, for as long as reasonably possible. On-demand resources should be stored separately to enable you to regularly flush your on-demand cache to manage its size.</p>
55 <p>Using this approach, you can also effectively cache dynamic content while ensuring it doesn't result in your application displaying stale information.</p>
57 <p>You can cache non-sensitive data can in the unmanaged external cache directory:</p>
61 <p>Alternatively, you can use the managed / secure application cache. Note that this internal cache may be flushed when the system is running low on available storage.</p
    [all...]
  /system/extras/tests/ext4/
android_emmc_perf_tests.sh 20 CACHE="/dev/block/platform/omap/omap_hsmmc.0/by-name/cache"
26 CACHE="/dev/block/platform/sdhci-tegra.3/by-name/cache"
41 CACHE="/dev/block/platform/s3c-sdhci.0/by-name/userdata"
47 CACHE="/dev/block/platform/sdhci-tegra.3/by-name/CAC"
53 CACHE="/dev/block/platform/dw_mmc.0/by-name/cache"
81 adb shell umount /cache >/dev/null 2>&1
98 adb shell dd if="$CACHE" of=/dev/null bs=1048576 count=20
    [all...]
  /external/guava/guava/src/com/google/common/cache/
CacheStats.java 17 package com.google.common.cache;
28 * Statistics about the performance of a {@link Cache}. Instances of this class are immutable.
30 * <p>Cache statistics are incremented according to the following rules:
33 * <li>When a cache lookup encounters an existing cache entry {@code hitCount} is incremented.
34 * <li>When a cache lookup first encounters a missing cache entry, a new entry is loaded.
42 * <li>Cache lookups that encounter a missing cache entry that is still loading will wait
45 * <li>When an entry is evicted from the cache, {@code evictionCount} is incremented
    [all...]
CacheBuilder.java 17 package com.google.common.cache;
34 import com.google.common.cache.AbstractCache.SimpleStatsCounter;
35 import com.google.common.cache.AbstractCache.StatsCounter;
36 import com.google.common.cache.LocalCache.Strength;
49 * <p>A builder of {@link LoadingCache} and {@link Cache} instances having any combination of the
53 * <li>automatic loading of entries into the cache
78 * <p>The returned cache is implemented as a hash table with similar performance characteristics to
80 * {@link Cache} interfaces. The {@code asMap} view (and its collection views) have <i>weakly
82 * modify the cache after the iterator is created, it is undefined which of these changes, if any,
86 * <p><b>Note:</b> by default, the returned cache uses equality comparisons (th
    [all...]
  /external/quake/quake/src/QW/client/
d_surf.c 27 qboolean r_cache_thrash; // set if surface cache is thrashing
86 // Con_Printf ("%ik surface cache\n", size/1024);
135 Sys_Error ("D_SCAlloc: bad cache width %d\n", width);
138 Sys_Error ("D_SCAlloc: bad cache size %d\n", size);
147 Sys_Error ("D_SCAlloc: %i > cache size",size);
269 surfcache_t *cache; local
272 // if the surface is animating or flashing, flush the cache
281 // see if the cache holds apropriate data
283 cache = surface->cachespots[miplevel];
285 if (cache && !cache->dlight && surface->dlightframe != r_framecount
    [all...]
  /external/quake/quake/src/WinQuake/
d_surf.cpp 27 qboolean r_cache_thrash; // set if surface cache is thrashing
87 Con_Printf ("%ik surface cache\n", size/1024);
136 Sys_Error ("D_SCAlloc: bad cache width %d\n", width);
139 Sys_Error ("D_SCAlloc: bad cache size %d\n", size);
144 Sys_Error ("D_SCAlloc: %i > cache size",size);
266 surfcache_t *cache; local
269 // if the surface is animating or flashing, flush the cache
278 // see if the cache holds apropriate data
280 cache = surface->cachespots[miplevel];
282 if (cache && !cache->dlight && surface->dlightframe != r_framecount
    [all...]
  /external/chromium/chrome/browser/renderer_host/
web_cache_manager.h 5 // This is the browser side of the cache manager, it tracks the activity of the
6 // render processes and allocates available memory cache resources.
38 // When a render process is created, it registers itself with the cache
39 // manager host, causing the renderer to be allocated cache resources.
42 // When a render process ends, it removes itself from the cache manager host,
43 // freeing the manager to assign its cache resources to other renderers.
46 // The cache manager assigns more cache resources to active renderer. When a
47 // renderer is active, it should inform the cache manager to receive more
48 // cache resources
    [all...]

Completed in 1127 milliseconds

1 2 3 4 5 6 7 8 91011>>