/prebuilts/ndk/9/platforms/android-9/arch-arm/usr/include/asm/ |
procinfo.h | 35 struct cpu_cache_fns *cache; member in struct:proc_info_list
|
/system/core/libpixelflinger/codeflinger/ |
CodeCache.cpp | 50 // A dlmalloc mspace is used to manage the code cache over a mmaped region. 84 int fd = ashmem_create_region("CodeFlinger code cache", 87 "Creating code cache, ashmem_create_region " 93 "Creating code cache, mmap failed with error " 145 "Failed to resize Assembly to %zd in code cache " 178 int CodeCache::cache( const AssemblyKeyBase& keyBase, function in class:android::CodeCache
|
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheExpirationTest.java | 15 package com.google.common.cache; 17 import static com.google.common.cache.TestingCacheLoaders.identityLoader; 18 import static com.google.common.cache.TestingRemovalListeners.countingRemovalListener; 23 import com.google.common.cache.TestingCacheLoaders.IdentityLoader; 24 import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener; 37 * Tests relating to cache expiration: make sure entries expire at the right times, make sure 53 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() local 58 checkExpiration(cache, loader, ticker, removalListener); 65 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() local 70 checkExpiration(cache, loader, ticker, removalListener) 102 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() local 114 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() local 195 LoadingCache<Integer, AtomicInteger> cache = CacheBuilder.newBuilder() local 216 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() local 228 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() local 240 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() local 253 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local 305 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local 352 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() local [all...] |
/external/javassist/src/main/javassist/ |
CtNewWrappedMethod.java | 156 CtMember.Cache cache = clazz.hasMemberCache(); local 157 if (cache != null) 158 cache.addMethod(new CtMethod(body, clazz));
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
MediaDataBox.java | 64 private Map<Long, Reference<ByteBuffer>> cache = new HashMap<Long, Reference<ByteBuffer>>(); field in class:MediaDataBox 69 * not evicted from the cache. 148 cache.put(0l, new SoftReference<ByteBuffer>(content)); 154 for (Long chacheEntryOffset : cache.keySet()) { 156 ByteBuffer cacheEntry = cache.get(chacheEntryOffset).get(); 158 // CACHE HIT 166 // CACHE MISS 177 cache.put(offset, new SoftReference<ByteBuffer>(cacheEntry));
|
/libcore/luni/src/main/java/libcore/reflect/ |
AnnotationFactory.java | 51 private static final transient Map<Class<? extends Annotation>, AnnotationMember[]> cache = field in class:AnnotationFactory 59 synchronized (cache) { 60 AnnotationMember[] desc = cache.get(annotationType); 80 synchronized (cache) { 81 cache.put(annotationType, desc);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
BitmapCache.java | 17 package com.android.gallery3d.filtershow.cache; 117 public void setCacheProcessing(CacheProcessing cache) { 118 mCacheProcessing = cache; 121 public void cache(Buffer buffer) { method in class:BitmapCache 126 cache(bitmap); 129 public synchronized boolean cache(Bitmap bitmap) { method in class:BitmapCache 134 Log.e(LOGTAG, "Trying to cache a bitmap still used in the pipeline"); 141 Log.e(LOGTAG, "Trying to cache a non mutable bitmap"); 167 return true; // bitmap already in the cache
|
/development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/ |
DiskLruCache.java | 58 * A cache that uses a bounded amount of space on a filesystem. Each cache 63 * <p>The cache stores its data in a directory on the filesystem. This 64 * directory must be exclusive to the cache; the cache may delete or overwrite 66 * same cache directory at the same time. 68 * <p>This cache limits the number of bytes that it will store on the 69 * filesystem. When the number of stored bytes exceeds the limit, the cache will 71 * not strict: the cache may temporarily exceed it while waiting for files to be 72 * deleted. The limit does not include filesystem overhead or the cache 317 DiskLruCache cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); local [all...] |
/external/okhttp/src/main/java/com/squareup/okhttp/internal/ |
DiskLruCache.java | 45 * A cache that uses a bounded amount of space on a filesystem. Each cache 51 * <p>The cache stores its data in a directory on the filesystem. This 52 * directory must be exclusive to the cache; the cache may delete or overwrite 54 * same cache directory at the same time. 56 * <p>This cache limits the number of bytes that it will store on the 57 * filesystem. When the number of stored bytes exceeds the limit, the cache will 59 * not strict: the cache may temporarily exceed it while waiting for files to be 60 * deleted. The limit does not include filesystem overhead or the cache 221 DiskLruCache cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); local [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
ContentCacheTests.java | 177 // The underlying cursor shouldn't be closed because it's in a cache (we'll test 205 // Create a cache of size 2 206 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); local 210 CacheToken token = cache.getCacheToken("1"); 211 // Put the cursor in the cache 212 cache.putCursor(cursor1, "1", SIMPLE_PROJECTION, token); 213 assertEquals(1, cache.size()); 218 token = cache.getCacheToken("2"); 219 // Put the cursor in the cache 220 cache.putCursor(cursor1, "2", SIMPLE_PROJECTION, token) 263 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); local [all...] |
/development/tools/idegen/src/com/android/idegen/ |
ModuleCache.java | 30 * Cache to hold built modules. 36 private static ModuleCache cache = new ModuleCache(); field in class:ModuleCache 46 return cache;
|
/external/apache-http/src/org/apache/http/impl/io/ |
ChunkedOutputStream.java | 55 private byte[] cache; field in class:ChunkedOutputStream 74 this.cache = new byte[bufferSize]; 92 * Writes the cache out onto the underlying stream 98 this.out.write(this.cache, 0, this.cachePosition); 105 * Writes the cache and bufferToAppend to the underlying stream 114 this.out.write(this.cache, 0, this.cachePosition); 128 * Must be called to ensure the internal cache is flushed and the closing chunk is written. 144 this.cache[this.cachePosition] = (byte) b; 146 if (this.cachePosition == this.cache.length) flushCache(); 163 if (len >= this.cache.length - this.cachePosition) [all...] |
/external/chromium/base/ |
path_service.cc | 96 PathMap cache; // Cache mappings from path key to path value. member in struct:__anon4144::PathData 136 PathMap::const_iterator it = path_data->cache.find(key); 137 if (it != path_data->cache.end()) { 162 // Save the computed path in our cache. 163 path_data->cache[key] = path; 230 // Clear the cache now. Some of its entries could have depended 232 path_data->cache.clear(); 234 path_data->cache[key] = file_path;
|
/external/chromium/chrome/browser/profiles/ |
off_the_record_profile_io_data.cc | 166 net::HttpCache* cache = local 178 main_http_factory_.reset(cache); 179 main_context->set_http_transaction_factory(cache); 199 // Use a separate in-memory cache for the app.
|
/external/chromium/net/disk_cache/ |
mem_backend_impl.cc | 45 MemBackendImpl* cache = new MemBackendImpl(net_log); local 46 cache->SetMaxSize(max_bytes); 47 if (cache->Init()) 48 return cache; 50 delete cache; 51 LOG(ERROR) << "Unable to create cache"; 247 // rankings_ is ordered by last used, this will descend through the cache
|
stress_cache.cc | 6 // cache. The main application starts a copy of itself on a loop, checking the 10 // The child application has two threads: one to exercise the cache in an 14 // To test that the disk cache doesn't generate critical errors with regular 90 // This thread will loop forever, adding and removing entries from the cache. 91 // iteration is the current crash cycle, so the entries on the cache are marked 103 disk_cache::Backend* cache; local 107 cache_thread.message_loop_proxy(), NULL, &cache, &cb); 110 printf("Unable to initialize cache.\n"); 114 cache->GetEntryCount()); 145 rv = cache->OpenEntry(keys[key], &entries[slot], &cb) [all...] |
/external/chromium/net/http/ |
http_auth_cache_unittest.cc | 74 // Test adding and looking-up cache entries (both by realm and by path). 77 HttpAuthCache cache; local 80 // Add cache entries for 4 realms: "Realm1", "Realm2", "Realm3" and 87 cache.Add(origin, realm1_handler->realm(), realm1_handler->auth_scheme(), 95 cache.Add(origin, realm2_handler->realm(), realm2_handler->auth_scheme(), 103 cache.Add(origin, realm3_basic_handler->realm(), 112 cache.Add(origin, realm3_digest_handler->realm(), 121 cache.Add(origin, realm4_basic_handler->realm(), 127 entry = cache.Lookup(origin, kRealm5, HttpAuth::AUTH_SCHEME_BASIC); 131 entry = cache.Lookup(GURL("https://www.google.com"), kRealm3 263 HttpAuthCache cache; local 309 HttpAuthCache cache; local 372 HttpAuthCache cache; local [all...] |
/external/chromium/net/tools/crash_cache/ |
crash_cache.cc | 6 // cache unit tests (DiskCacheTest,CacheBackend_Recover*). This program only 8 // on release builds of the cache. 124 void FlushQueue(disk_cache::Backend* cache) { 127 reinterpret_cast<disk_cache::BackendImpl*>(cache)->FlushQueueForTest(&cb); 131 // Generates the files for an empty and one item cache. 135 disk_cache::Backend* cache; local 138 NULL, &cache, &cb); 139 if (cb.GetResult(rv) != net::OK || cache->GetEntryCount()) 150 rv = cache->CreateEntry(test_name, &entry, &cb); 155 FlushQueue(cache); 175 disk_cache::Backend* cache; local 218 disk_cache::Backend* cache; local 258 disk_cache::BackendImpl* cache = new disk_cache::BackendImpl( local [all...] |
/external/chromium_org/base/ |
path_service.cc | 115 PathMap cache; // Cache mappings from path key to path value. member in struct:__anon6246::PathData 118 bool cache_disabled; // Don't use cache if true; 149 // Tries to find |key| in the cache. |path_data| should be locked by the caller! 154 PathMap::const_iterator it = path_data->cache.find(key); 155 if (it != path_data->cache.end()) { 169 path_data->cache[key] = it->second; 229 path_data->cache[key] = path; 268 // Clear the cache now. Some of its entries could have depended 270 path_data->cache.clear() [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/file_system/ |
operation_test_base.h | 38 // basic set of Drive internal classes (ResourceMetadata, Cache, etc) on top of 97 internal::FileCache* cache() { return cache_.get(); } function in class:drive::file_system::OperationTestBase
|
/external/chromium_org/chrome/browser/profiles/ |
off_the_record_profile_io_data.cc | 213 net::HttpCache* cache = new net::HttpCache( local 216 main_http_factory_.reset(cache); 217 main_context->set_http_transaction_factory(cache); 298 // Use a separate in-memory cache for the app.
|
/external/chromium_org/chrome/browser/resources/task_manager/ |
main.js | 338 // Initializes the cache. 361 // Checks whether the cache exists or not. 362 var cache = this.elementsCache_[pid]; 363 if (!cache) 366 var listItemElement = cache.listItem; 369 if (cache.cachedColumnSize != cm.size) 372 if (cache.cachedChildSize != data['uniqueId'].length) 380 var columnElements = cache.columns[columnId]; 386 var cellElement = cache.cell[i]; 406 var iconElement = cache.icon[j] 473 var cache = []; variable [all...] |
/external/chromium_org/chrome/browser/ui/app_list/ |
app_list_view_delegate.cc | 164 ProfileInfoCache& cache = local 166 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); 168 return cache.GetNameOfProfileAtIndex(profile_index); 174 ProfileInfoCache& cache = local 176 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); 178 return cache.GetUserNameOfProfileAtIndex(profile_index);
|
/external/chromium_org/content/browser/renderer_host/ |
backing_store_manager.cc | 32 // Maybe this cache should be redesigned to simply prefer smaller objects to 41 // could make an assertion like "worse case, there are two tabs in the cache". 74 // Expires the given |backing_store| from |cache|. 75 void ExpireBackingStoreAt(BackingStoreCache* cache, 77 cache->Erase(backing_store); 80 size_t ExpireLastBackingStore(BackingStoreCache* cache) { 81 if (cache->size() < 1) 86 BackingStoreCache::iterator entry = --cache->rbegin().base(); 88 ExpireBackingStoreAt(cache, entry); 93 // Given a request for |size|, first free from the large cache (until there' 97 BackingStoreCache* cache = local 137 BackingStoreCache* cache; local [all...] |
/external/chromium_org/google_apis/ |
google_api_keys_unittest.cc | 70 EnvironmentCache& cache = env_cache_[i]; local 71 cache.was_set = env_->HasVar(cache.variable_name); 72 cache.value.clear(); 73 if (cache.was_set) { 74 env_->GetVar(cache.variable_name, &cache.value); 75 env_->UnSetVar(cache.variable_name); 83 EnvironmentCache& cache = env_cache_[i]; local 84 if (cache.was_set) [all...] |