HomeSort by relevance Sort by last modified time
    Searched refs:Cache (Results 26 - 50 of 317) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/compiler-rt/lib/tsan/rtl/
tsan_dense_alloc.h 13 // DenseSlabAllocCache is a thread-local cache for DenseSlabAlloc.
32 IndexT cache[kSize]; member in class:__tsan::DenseSlabAllocCache
39 typedef DenseSlabAllocCache Cache;
40 typedef typename Cache::IndexT IndexT;
61 IndexT Alloc(Cache *c) {
64 return c->cache[--c->pos];
67 void Free(Cache *c, IndexT idx) {
69 if (c->pos == Cache::kSize)
71 c->cache[c->pos++] = idx;
80 void FlushCache(Cache *c)
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Support/
SourceMgr.cpp 38 // Delete the line # cache if allocated.
39 if (LineNoCacheTy *Cache = getCache(LineNoCache))
40 delete Cache;
96 // If we have a line number cache, and if the query is to a later point in the
99 if (LineNoCacheTy *Cache = getCache(LineNoCache))
100 if (Cache->LastQueryBufferID == BufferID &&
101 Cache->LastQuery <= Loc.getPointer()) {
102 Ptr = Cache->LastQuery;
103 LineNo = Cache->LineNoOfQuery;
112 // Allocate the line number cache if it doesn't exist
    [all...]
  /external/python/google-api-python-client/googleapiclient/discovery_cache/
base.py 20 class Cache(object):
21 """A base abstract cache class."""
29 url: string, the key for the cache.
32 object, the value in the cache for the given key, or None if the key is
33 not in the cache.
39 """Sets the given key and content in the cache.
42 url: string, the key for the cache.
  /external/volley/src/test/java/com/android/volley/toolbox/
RequestQueueTest.java 21 import com.android.volley.Cache;
38 Cache.class, Network.class, int.class, ResponseDelivery.class));
39 assertNotNull(RequestQueue.class.getConstructor(Cache.class, Network.class, int.class));
40 assertNotNull(RequestQueue.class.getConstructor(Cache.class, Network.class));
ResponseTest.java 21 import com.android.volley.Cache;
36 assertNotNull(Response.class.getMethod("success", Object.class, Cache.Entry.class));
HttpHeaderParserTest.java 24 import com.android.volley.Cache;
59 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
73 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
85 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
98 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
114 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
132 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
143 headers.put("Cache-Control", "public, max-age=86400");
145 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
162 headers.put("Cache-Control", "max-age=86400, stale-while-revalidate=604800")
    [all...]
DiskBasedCacheTest.java 35 import com.android.volley.Cache;
67 private Cache cache; field in class:DiskBasedCacheTest
75 // Initialize empty cache
76 cache = new DiskBasedCache(temporaryFolder.getRoot(), MAX_SIZE);
77 cache.initialize();
82 cache = null;
87 assertThat(cache.get("key"), is(nullValue()));
92 Cache.Entry entry = new Cache.Entry()
    [all...]
  /external/flatbuffers/java/com/google/flatbuffers/
Utf8Old.java 33 private static class Cache {
39 Cache() {
45 private static final ThreadLocal<Cache> CACHE =
46 ThreadLocal.withInitial(() -> new Cache());
53 final Cache cache = CACHE.get(); local
54 int estimated = (int) (in.length() * cache.encoder.maxBytesPerChar());
55 if (cache.lastOutput == null || cache.lastOutput.capacity() < estimated)
75 final Cache cache = CACHE.get(); local
    [all...]
  /external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/
AndroidShimResponseCache.java 36 private final Cache delegate;
38 private AndroidShimResponseCache(Cache delegate) {
43 Cache cache = new Cache(directory, maxSize); local
44 return new AndroidShimResponseCache(cache);
48 Cache installedCache = getCache();
54 public Cache getCache() {
84 * this cache. This may be greater than the {@link #maxSize} if a background
92 * Returns the maximum number of bytes that this cache should use to stor
    [all...]
  /external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/
AndroidShimResponseCache.java 38 private final Cache delegate;
40 private AndroidShimResponseCache(Cache delegate) {
45 Cache cache = new Cache(directory, maxSize); local
46 return new AndroidShimResponseCache(cache);
50 Cache installedCache = getCache();
56 public Cache getCache() {
86 * this cache. This may be greater than the {@link #maxSize} if a background
94 * Returns the maximum number of bytes that this cache should use to stor
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/dependency/
CachedDependencyResolverFileCacheTest.java 20 import org.robolectric.internal.dependency.CachedDependencyResolver.Cache;
31 Cache cache = new CachedDependencyResolver.FileCache(temporaryFolder.getRoot(), 1000); local
33 String value = cache.load(ID, String.class);
40 Cache cache = new CachedDependencyResolver.FileCache(temporaryFolder.getRoot(), 1000); local
46 String value = cache.load(ID, String.class);
53 Cache cache = new CachedDependencyResolver.FileCache(temporaryFolder.getRoot(), 1000); local
57 assertNull(cache.load(ID, String.class))
62 Cache cache = new CachedDependencyResolver.FileCache(temporaryFolder.getRoot(), 1000); local
75 Cache cache = new CachedDependencyResolver.FileCache(temporaryFolder.getRoot(), 1000); local
    [all...]
  /external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
VMState.java 50 private static class Cache {
55 private Cache cache = null; // synchronized (this) field in class:VMState
56 private static final Cache markerCache = new Cache();
60 cache = null;
66 cache = markerCache;
70 private Cache getCache() {
72 if (cache == markerCache) {
73 cache = new Cache()
    [all...]
  /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/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
MemoryDependenceAnalysis.cpp 492 // Create a numbered basic block to lazily compute and cache instruction
771 /// This method is used when -debug is specified to verify that cache arrays
773 static void AssertSorted(MemoryDependenceResults::NonLocalDepInfo &Cache,
776 Count = Cache.size();
777 assert(std::is_sorted(Cache.begin(), Cache.begin() + Count) &&
778 "Cache isn't sorted!");
788 NonLocalDepInfo &Cache = CacheP.first;
795 if (!Cache.empty()) {
796 // Okay, we have a cache entry. If we know it is not dirty, just return i
    [all...]
  /device/linaro/bootloader/edk2/NetworkPkg/HttpBootDxe/
HttpBootClient.c 486 Release all the resource of a cache item.
488 @param[in] Cache The pointer to the cache item.
493 IN HTTP_BOOT_CACHE_CONTENT *Cache
501 if (Cache != NULL) {
505 if (Cache->RequestData != NULL) {
506 if (Cache->RequestData->Url != NULL) {
507 FreePool (Cache->RequestData->Url);
509 FreePool (Cache->RequestData);
515 if (Cache->ResponseData != NULL) {
    [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...]
  /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() {
  /external/swiftshader/third_party/llvm-7.0/llvm/unittests/tools/llvm-exegesis/X86/
RegisterAliasingTest.cpp 82 RegisterAliasingTrackerCache Cache(RegInfo, NoReservedReg);
83 ASSERT_THAT(&Cache.getRegister(llvm::X86::AX),
84 &Cache.getRegister(llvm::X86::AX));
86 ASSERT_THAT(&Cache.getRegisterClass(llvm::X86::GR8_ABCD_LRegClassID),
87 &Cache.getRegisterClass(llvm::X86::GR8_ABCD_LRegClassID));
  /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/pdfium/xfa/fxfa/parser/
cxfa_cache.cpp 19 constexpr wchar_t kName[] = L"cache";
28 XFA_Element::Cache,

Completed in 453 milliseconds

12 3 4 5 6 7 8 91011>>