/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITObjectCacheTest.cpp | 124 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local 131 TheJIT->setObjectCache(Cache.get()); in TEST_F() 134 const MemoryBuffer *ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F() 140 EXPECT_TRUE(Cache->wasModuleLookedUp(SavedModulePointer)); in TEST_F() 143 ObjBuffer = Cache->getObjectInternal(SavedModulePointer); in TEST_F() 147 EXPECT_FALSE(Cache->wereDuplicatesInserted()); in TEST_F() 153 std::unique_ptr<TestObjectCache> Cache(new TestObjectCache); in TEST_F() local 157 TheJIT->setObjectCache(Cache.get()); in TEST_F() 174 TheJIT->setObjectCache(Cache.get()); in TEST_F() 178 EXPECT_TRUE(Cache->wasModuleLookedUp(SecondModulePointer)); in TEST_F() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | LeaksContext.h | 33 Cache(0), Name(name) { } 36 Cache = 0; 51 if (Cache) { 52 assert(Cache != o && "Object already in set!"); 53 Ts.insert(Cache); 55 Cache = o; 59 if (o == Cache) 60 Cache = 0; // Cache hit 68 assert(Cache == 0 && "No value should be cached anymore!"); 88 const T* Cache;
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | MemoryDependenceAnalysis.cpp | 567 static void AssertSorted(MemoryDependenceAnalysis::NonLocalDepInfo &Cache, in AssertSorted() argument 569 if (Count == -1) Count = Cache.size(); in AssertSorted() 573 assert(!(Cache[i] < Cache[i-1]) && "Cache isn't sorted!"); in AssertSorted() 594 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local 602 if (!Cache.empty()) { in getNonLocalCallDependency() 607 return Cache; in getNonLocalCallDependency() 612 for (NonLocalDepInfo::iterator I = Cache.begin(), E = Cache.end(); in getNonLocalCallDependency() 618 std::sort(Cache.begin(), Cache.end()); in getNonLocalCallDependency() 636 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency() 637 DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency() [all …]
|
/external/ImageMagick/MagickCore/ |
D | cache-private.h | 34 *Cache; typedef 228 extern MagickPrivate Cache 230 ClonePixelCache(const Cache), 231 DestroyPixelCache(Cache), 232 ReferencePixelCache(Cache); 235 GetPixelCacheStorageClass(const Cache); 238 GetPixelCacheColorspace(const Cache); 244 *GetVirtualPixelsNexus(const Cache,NexusInfo *magick_restrict); 248 *GetVirtualMetacontentFromNexus(const Cache,NexusInfo *magick_restrict); 257 GetPixelCacheNexusExtent(const Cache,NexusInfo *magick_restrict); [all …]
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | CacheTest.java | 19 import com.android.volley.Cache; 32 assertNotNull(Cache.class.getMethod("get", String.class)); in publicMethods() 33 assertNotNull(Cache.class.getMethod("put", String.class, Cache.Entry.class)); in publicMethods() 34 assertNotNull(Cache.class.getMethod("initialize")); in publicMethods() 35 assertNotNull(Cache.class.getMethod("invalidate", String.class, boolean.class)); in publicMethods() 36 assertNotNull(Cache.class.getMethod("remove", String.class)); in publicMethods() 37 assertNotNull(Cache.class.getMethod("clear")); in publicMethods()
|
D | HttpHeaderParserTest.java | 19 import com.android.volley.Cache; 55 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_noHeaders() 68 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_headersSet() 79 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_etag() 91 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_normalExpire() 106 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_expiresInPast() 123 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_serverRelative() 135 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_cacheControlOverridesExpires() 153 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in testParseCacheHeaders_staleWhileRevalidate() 167 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response); in parseCacheHeaders_cacheControlNoCache() [all …]
|
/external/llvm/lib/Analysis/ |
D | MemoryDependenceAnalysis.cpp | 737 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache, in AssertSorted() argument 740 Count = Cache.size(); in AssertSorted() 741 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) && in AssertSorted() 752 NonLocalDepInfo &Cache = CacheP.first; in getNonLocalCallDependency() local 759 if (!Cache.empty()) { in getNonLocalCallDependency() 764 return Cache; in getNonLocalCallDependency() 769 for (auto &Entry : Cache) in getNonLocalCallDependency() 774 std::sort(Cache.begin(), Cache.end()); in getNonLocalCallDependency() 792 unsigned NumSortedEntries = Cache.size(); in getNonLocalCallDependency() 793 DEBUG(AssertSorted(Cache)); in getNonLocalCallDependency() [all …]
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_dense_alloc.h | 39 typedef DenseSlabAllocCache Cache; typedef 40 typedef typename Cache::IndexT IndexT; 61 IndexT Alloc(Cache *c) { in Alloc() 67 void Free(Cache *c, IndexT idx) { in Free() 69 if (c->pos == Cache::kSize) in Free() 80 void FlushCache(Cache *c) { in FlushCache() 89 void InitCache(Cache *c) { in InitCache() 100 void Refill(Cache *c) { in Refill() 118 for (uptr i = 0; i < Cache::kSize / 2 && freelist_ != 0; i++) { in Refill() 125 void Drain(Cache *c) { in Drain() [all …]
|
/external/compiler-rt/test/tsan/ |
D | static_init2.cc | 6 struct Cache { struct 8 explicit Cache(int x) in Cache() function 13 void foo(Cache *my) { in foo() 14 static Cache *c = my ? my : new Cache(rand()); in foo() 20 foo(new Cache(rand())); in Thread()
|
D | static_init3.cc | 7 struct Cache { struct 11 Cache g_cache; argument 13 Cache *CreateCache() { in CreateCache() 18 _Atomic(Cache*) queue; 21 static Cache *c = CreateCache(); in Thread1() 27 Cache *c = 0; in Thread2()
|
D | static_init6.cc | 7 struct Cache { struct 9 explicit Cache(int x) in Cache() argument 15 return new Cache((int)(long)p); in AsyncInit() 18 Cache *CreateCache() { in CreateCache() 23 return (Cache*)res; in CreateCache() 27 static Cache *c = CreateCache(); in Thread1()
|
D | static_init5.cc | 7 struct Cache { struct 9 explicit Cache(int x) in Cache() function 15 return new Cache((int)(long)p); in AsyncInit() 18 Cache *CreateCache() { in CreateCache() 23 return (Cache*)res; in CreateCache() 27 static Cache *c = CreateCache(); in Thread1()
|
D | static_init4.cc | 7 struct Cache { struct 9 explicit Cache(int x) in Cache() argument 16 Cache *CreateCache() { in CreateCache() 18 return new Cache(rand()); in CreateCache() 22 static Cache *c = CreateCache(); in Thread1()
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | SourceMgr.cpp | 39 if (LineNoCacheTy *Cache = getCache(LineNoCache)) in ~SourceMgr() local 40 delete Cache; in ~SourceMgr() 99 if (LineNoCacheTy *Cache = getCache(LineNoCache)) in FindLineNumber() local 100 if (Cache->LastQueryBufferID == BufferID && in FindLineNumber() 101 Cache->LastQuery <= Loc.getPointer()) { in FindLineNumber() 102 Ptr = Cache->LastQuery; in FindLineNumber() 103 LineNo = Cache->LineNoOfQuery; in FindLineNumber() 117 LineNoCacheTy &Cache = *getCache(LineNoCache); in FindLineNumber() local 118 Cache.LastQueryBufferID = BufferID; in FindLineNumber() 119 Cache.LastQuery = Ptr; in FindLineNumber() [all …]
|
/external/volley/src/test/java/com/android/volley/utils/ |
D | CacheTestUtils.java | 19 import com.android.volley.Cache; 31 public static Cache.Entry makeRandomCacheEntry( in makeRandomCacheEntry() 34 Cache.Entry entry = new Cache.Entry(); in makeRandomCacheEntry() 51 public static Cache.Entry makeRandomCacheEntry(byte[] data) { in makeRandomCacheEntry()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 65 static <K, V> void simulateValueReclamation(Cache<K, V> cache, K key) { in simulateValueReclamation() 84 static <K, V> void simulateKeyReclamation(Cache<K, V> cache, K key) { in simulateKeyReclamation() 94 static <K, V> ReferenceEntry<K, V> getReferenceEntry(Cache<K, V> cache, K key) { in getReferenceEntry() 105 static <K, V> void forceExpandSegment(Cache<K, V> cache, K key) { in forceExpandSegment() 118 static <K, V> LocalCache<K, V> toLocalCache(Cache<K, V> cache) { in toLocalCache() 130 static boolean hasLocalCache(Cache<?, ?> cache) { in hasLocalCache() argument 134 static void drainRecencyQueues(Cache<?, ?> cache) { in drainRecencyQueues() argument 152 static void drainReferenceQueues(Cache<?, ?> cache) { in drainReferenceQueues() argument 173 static int getTotalSegmentSize(Cache<?, ?> cache) { in getTotalSegmentSize() argument 188 static void checkValidState(Cache<?, ?> cache) { in checkValidState() argument [all …]
|
D | CacheBuilderGwtTest.java | 57 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testLoader() 84 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testSizeConstraint() 137 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterAccess() 154 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterWrite() 181 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterWriteAndAccess() 212 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testMapMethods() 279 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testRemovalListener() 318 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testPutAll() 336 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testInvalidate() 351 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testInvalidateAll() [all …]
|
D | ForwardingCacheTest.java | 37 private Cache<String, Boolean> forward; 38 private Cache<String, Boolean> mock; 48 mock = createMock(Cache.class); in setUp() 50 @Override protected Cache<String, Boolean> delegate() { in setUp() 126 protected Cache<K, V> delegate() { in delegate()
|
/external/pdfium/third_party/lcms2-2.6/src/ |
D | cmsxform.c | 382 _cmsCACHE Cache; in CachedXFORM() local 393 memcpy(&Cache, &p ->Cache, sizeof(Cache)); in CachedXFORM() 399 if (memcmp(wIn, Cache.CacheIn, sizeof(Cache.CacheIn)) == 0) { in CachedXFORM() 401 memcpy(wOut, Cache.CacheOut, sizeof(Cache.CacheOut)); in CachedXFORM() 407 memcpy(Cache.CacheIn, wIn, sizeof(Cache.CacheIn)); in CachedXFORM() 408 memcpy(Cache.CacheOut, wOut, sizeof(Cache.CacheOut)); in CachedXFORM() 427 _cmsCACHE Cache; in CachedXFORMGamutCheck() local 438 memcpy(&Cache, &p ->Cache, sizeof(Cache)); in CachedXFORMGamutCheck() 444 if (memcmp(wIn, Cache.CacheIn, sizeof(Cache.CacheIn)) == 0) { in CachedXFORMGamutCheck() 445 memcpy(wOut, Cache.CacheOut, sizeof(Cache.CacheOut)); in CachedXFORMGamutCheck() [all …]
|
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/ |
D | AndroidShimResponseCache.java | 36 private final Cache delegate; 38 private AndroidShimResponseCache(Cache delegate) { in AndroidShimResponseCache() 43 Cache cache = new Cache(directory, maxSize); in create() 48 Cache installedCache = getCache(); in isEquivalent() 54 public Cache getCache() { in getCache()
|
/external/guava/guava/src/com/google/common/cache/ |
D | ForwardingCache.java | 40 public abstract class ForwardingCache<K, V> extends ForwardingObject implements Cache<K, V> { 46 protected abstract Cache<K, V> delegate(); in delegate() 135 private final Cache<K, V> delegate; 137 protected SimpleForwardingCache(Cache<K, V> delegate) { in SimpleForwardingCache() 142 protected final Cache<K, V> delegate() { in delegate()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_quarantine.h | 45 typedef QuarantineCache<Callback> Cache; typedef 60 void Put(Cache *c, Callback cb, Node *ptr, uptr size) { in Put() 66 void NOINLINE Drain(Cache *c, Callback cb) { in Drain() 84 Cache cache_; 88 Cache tmp; in Recycle() 101 void NOINLINE DoRecycle(Cache *c, Callback cb) { in DoRecycle()
|
/external/llvm/lib/Support/ |
D | SourceMgr.cpp | 41 if (LineNoCacheTy *Cache = getCache(LineNoCache)) in ~SourceMgr() local 42 delete Cache; in ~SourceMgr() 94 if (LineNoCacheTy *Cache = getCache(LineNoCache)) in getLineAndColumn() local 95 if (Cache->LastQueryBufferID == BufferID && in getLineAndColumn() 96 Cache->LastQuery <= Loc.getPointer()) { in getLineAndColumn() 97 Ptr = Cache->LastQuery; in getLineAndColumn() 98 LineNo = Cache->LineNoOfQuery; in getLineAndColumn() 111 LineNoCacheTy &Cache = *getCache(LineNoCache); in getLineAndColumn() local 112 Cache.LastQueryBufferID = BufferID; in getLineAndColumn() 113 Cache.LastQuery = Ptr; in getLineAndColumn() [all …]
|
/external/volley/src/main/java/com/android/volley/ |
D | Response.java | 42 public static <T> Response<T> success(T result, Cache.Entry cacheEntry) { in success() 58 public final Cache.Entry cacheEntry; 74 private Response(T result, Cache.Entry cacheEntry) { in Response()
|
/external/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_dense_alloc_test.cc | 26 typedef Alloc::Cache Cache; in TEST() typedef 31 Cache cache; in TEST()
|