/external/swiftshader/third_party/LLVM/lib/Analysis/ |
MemoryDependenceAnalysis.cpp | 566 /// cache arrays are properly kept sorted. 567 static void AssertSorted(MemoryDependenceAnalysis::NonLocalDepInfo &Cache, 569 if (Count == -1) Count = Cache.size(); 573 assert(!(Cache[i] < Cache[i-1]) && "Cache isn't sorted!"); 594 NonLocalDepInfo &Cache = CacheP.first; 602 if (!Cache.empty()) { 603 // Okay, we have a cache entry. If we know it is not dirty, just return it 607 return Cache; [all...] |
/external/llvm/lib/Analysis/ |
MemoryDependenceAnalysis.cpp | 444 // Create a numbered basic block to lazily compute and cache instruction 735 /// This method is used when -debug is specified to verify that cache arrays 737 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache, 740 Count = Cache.size(); 741 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && 742 "Cache isn't sorted!"); 752 NonLocalDepInfo &Cache = CacheP.first; 759 if (!Cache.empty()) { 760 // Okay, we have a cache entry. If we know it is not dirty, just return i [all...] |
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
CacheResponse.java | 18 import com.squareup.okhttp.Cache; 30 Cache cache = new Cache(cacheDirectory, cacheSize); local 33 client.setCache(cache); 46 System.out.println("Response 1 cache response: " + response1.cacheResponse()); 54 System.out.println("Response 2 cache response: " + response2.cacheResponse());
|
RewriteResponseCacheControl.java | 18 import com.squareup.okhttp.Cache; 27 /** Dangerous interceptor that rewrites the server's cache-control header. */ 32 .header("Cache-Control", "max-age=60") 40 Cache cache = new Cache(cacheDirectory, 1024 * 1024); local 41 cache.evictAll(); 44 client.setCache(cache); 56 // Force this request's response to be written to the cache. This way, subsequent responses 57 // can be read from the cache [all...] |
/device/linaro/bootloader/edk2/NetworkPkg/HttpBootDxe/ |
HttpBootClient.c | 460 Release all the resource of a cache item.
462 @param[in] Cache The pointer to the cache item.
467 IN HTTP_BOOT_CACHE_CONTENT *Cache
475 if (Cache != NULL) {
479 if (Cache->RequestData != NULL) {
480 if (Cache->RequestData->Url != NULL) {
481 FreePool (Cache->RequestData->Url);
483 FreePool (Cache->RequestData);
489 if (Cache->ResponseData != NULL) { [all...] |
/external/guava/guava/src/com/google/common/cache/ |
ForwardingCache.java | 17 package com.google.common.cache; 32 * A cache which forwards all its method calls to another cache. Subclasses should override one or 33 * more methods to modify the behavior of the backing cache as desired per the 40 public abstract class ForwardingCache<K, V> extends ForwardingObject implements Cache<K, V> { 46 protected abstract Cache<K, V> delegate(); 129 * constructed {@link Cache} as the delegete. 135 private final Cache<K, V> delegate; 137 protected SimpleForwardingCache(Cache<K, V> delegate) { 142 protected final Cache<K, V> delegate() [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
ForwardingCacheTest.java | 17 package com.google.common.cache; 37 private Cache<String, Boolean> forward; 38 private Cache<String, Boolean> mock; 48 mock = createMock(Cache.class); 50 @Override protected Cache<String, Boolean> delegate() { 126 protected Cache<K, V> delegate() {
|
CacheTesting.java | 15 package com.google.common.cache; 27 import com.google.common.cache.LocalCache.LocalLoadingCache; 28 import com.google.common.cache.LocalCache.ReferenceEntry; 29 import com.google.common.cache.LocalCache.Segment; 30 import com.google.common.cache.LocalCache.ValueReference; 52 * A collection of utilities for {@link Cache} testing. 59 * Poke into the Cache internals to simulate garbage collection of the value associated with the 65 static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) { 66 ReferenceEntry<K, V> entry = getReferenceEntry(cache, key) [all...] |
CacheBuilderGwtTest.java | 17 package com.google.common.cache; 57 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 69 cache.put(0, 10); 71 assertEquals(Integer.valueOf(10), cache.get(0, loader)); 72 assertEquals(Integer.valueOf(1), cache.get(20, loader)); 73 assertEquals(Integer.valueOf(2), cache.get(34, loader)); 75 cache.invalidate(0); 76 assertEquals(Integer.valueOf(3), cache.get(0, loader)); 78 cache.put(0, 10) 84 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 119 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local 137 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 154 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 181 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 212 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 279 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 318 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 336 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 351 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 377 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 395 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 413 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 431 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 453 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 471 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local 491 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() local [all...] |
/external/volley/src/test/java/com/android/volley/toolbox/ |
HttpHeaderParserTest.java | 19 import com.android.volley.Cache; 55 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 68 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 79 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 91 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 106 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 123 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 133 headers.put("Cache-Control", "public, max-age=86400"); 135 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); 151 headers.put("Cache-Control", "max-age=86400, stale-while-revalidate=604800") [all...] |
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_quarantine.h | 45 typedef QuarantineCache<Callback> Cache; 60 void Put(Cache *c, Callback cb, Node *ptr, uptr size) { 66 void NOINLINE Drain(Cache *c, Callback cb) { 84 Cache cache_; 88 Cache tmp; 101 void NOINLINE DoRecycle(Cache *c, Callback cb) { 117 // Per-thread cache of memory blocks.
|
/external/clang/include/clang/Basic/ |
FileSystemStatCache.h | 45 /// \brief Abstract interface for introducing a FileManager cache for 'stat' 61 /// \brief Get the 'stat' information for the specified path, using the cache 72 std::unique_ptr<vfs::File> *F, FileSystemStatCache *Cache, 75 /// \brief Sets the next stat call cache in the chain of stat caches. 76 /// Takes ownership of the given stat cache. 77 void setNextStatCache(std::unique_ptr<FileSystemStatCache> Cache) { 78 NextStatCache = std::move(Cache); 81 /// \brief Retrieve the next stat call cache in the chain. 84 /// \brief Retrieve the next stat call cache in the chain, transferring 85 /// ownership of this cache (and, transitively, all of the remaining caches [all...] |
/external/clang/lib/Basic/ |
FileSystemStatCache.cpp | 35 /// path, using the cache to accelerate it if possible. This returns true if 45 FileSystemStatCache *Cache, vfs::FileSystem &FS) { 49 // If we have a cache, use it to resolve the stat query. 50 if (Cache) 51 R = Cache->getStat(Path, Data, isFile, F, FS); 54 // no cache, just go to the file system. 114 // Do not cache failed stats, it is easy to construct common inconsistent 121 // Cache file 'stat' results and directories with absolutely paths.
|
/external/volley/src/main/java/com/android/volley/ |
CacheDispatcher.java | 24 * Provides a thread for performing cache triage on a queue of requests. 26 * Requests added to the specified cache queue are resolved from cache. 28 * {@link ResponseDelivery}. Cache misses and responses that require 42 /** The cache to read from. */ 43 private final Cache mCache; 52 * Creates a new cache triage dispatcher thread. You must call {@link #start()} 57 * @param cache Cache interface to use for resolution 62 Cache cache, ResponseDelivery delivery) [all...] |
Cache.java | 23 * An interface for a cache keyed by a String with a byte array as data. 25 public interface Cache { 27 * Retrieves an entry from the cache. 28 * @param key Cache key 29 * @return An {@link Entry} or null in the event of a cache miss 34 * Adds or replaces an entry to the cache. 35 * @param key Cache key 36 * @param entry Data to store and metadata for cache coherency, TTL, etc. 41 * Performs any potentially long-running actions needed to initialize the cache; 47 * Invalidates an entry in the cache [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
Cache.java | 32 * Abstract base class and factory for caches. A cache is a key-value mapping. 52 * the GC automatically size the cache dynamically depending on the 60 * Cache sizing: the memory cache is implemented on top of a LinkedHashMap. 63 * maximum cache size to value that uses those buckets fully. For example, 64 * if a cache with somewhere between 500 and 1000 entries is desired, a 67 * buckets / 4 * 3. As mentioned above, with a SoftReference cache, it is 72 public abstract class Cache<K,V> { 74 protected Cache() { 79 * Return the number of currently valid entries in the cache [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/testing/ |
decorators_unittest.py | 13 @decorators.Cache 24 @decorators.Cache
|
/external/pdfium/third_party/lcms2-2.6/src/ |
cmsxform.c | 301 // No gamut check, no cache, 16 bits 382 _cmsCACHE Cache; 392 // Get copy of zero cache 393 memcpy(&Cache, &p ->Cache, sizeof(Cache)); 399 if (memcmp(wIn, Cache.CacheIn, sizeof(Cache.CacheIn)) == 0) { 401 memcpy(wOut, Cache.CacheOut, sizeof(Cache.CacheOut)) [all...] |
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/ |
IsaFloppyBlock.c | 298 // See if the data that is being read is already in the cache
300 if (FdcDev->Cache != NULL) {
303 CopyMem ((UINT8 *) Buffer, (UINT8 *) FdcDev->Cache, BlockSize);
349 // Cache the data read
351 if (Lba0 == 0 && FdcDev->Cache == NULL) {
352 FdcDev->Cache = AllocateCopyPool (BlockSize, Buffer);
361 Free cache for a floppy disk.
371 if (FdcDev->Cache != NULL) {
372 FreePool (FdcDev->Cache);
373 FdcDev->Cache = NULL; [all...] |
/external/arm-neon-tests/ |
InitCache.s | 4 ; This code provides basic global enable for a Cortex-A8 cache 19 ORR r0, r0, #(0x1 <<12) ; enable I Cache 21 ORR r0, r0, #(0x1 <<2) ; enable D Cache 27 ; Enable Cortex-A8 Level2 Unified Cache 31 ORR r0, r0, #2 ; L2EN bit, enable L2 cache 32 ;BIC r0, r0, #(0x1 << 1) ; L2EN bit, disable L2 cache 35 ORR r0, r0, #(0x1 << 5) ;Enables caching NEON data within the L1 data cache
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
MachineLoopRanges.cpp | 45 DeleteContainerSeconds(Cache); 46 Cache.clear(); 50 MachineLoopRange *&Range = Cache[Loop];
|
/external/volley/src/test/java/com/android/volley/ |
CacheDispatcherTest.java | 71 // A cache miss does not post a response and puts the request on the network queue. 81 // A non-expired cache hit posts a response and does not queue to the network. 83 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, false); 91 // A soft-expired cache hit posts a response and queues to the network. 93 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, false, true); 104 // An expired cache hit does not post a response and queues to the network. 106 Cache.Entry entry = CacheTestUtils.makeRandomCacheEntry(null, true, true);
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
CertStoreHelper.java | 44 import sun.security.util.Cache; 63 private static Cache<String, CertStoreHelper> cache field in class:CertStoreHelper 64 = Cache.newSoftMemoryCache(NUM_TYPES); 69 CertStoreHelper helper = cache.get(type); 85 cache.put(type, csh);
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/ |
CpuFlushCache.asm | 18 ;Cpu Flush Cache Function.
29 ;// Cache Flush Routine.
40 ;Flush cache with specified range.
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/ |
Atapi.c | [all...] |