| /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
|
| /packages/apps/Launcher3/src/com/android/launcher3/ |
| ShortcutInfo.java | 317 // TODO: Use cache for this 323 IconCache cache = launcherAppState.getIconCache(); local 325 ? cache.getDefaultIcon(UserHandleCompat.myUserHandle()) 327 setIcon(getBadgedIcon(unbadgedBitmap, shortcutInfo, cache, context)); 331 IconCache cache, Context context) { 338 cache.getTitleAndIcon(appInfo, shortcutInfo.getActivityInfo(context), false);
|
| /packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
| AppDeletionPreferenceGroup.java | 55 PreferenceListCache cache = new PreferenceListCache(this); local 70 (AppDeletionPreference) cache.getCachedPreference(packageName); 82 cache.removeCachedPrefs();
|
| DownloadsDeletionPreferenceGroup.java | 141 PreferenceListCache cache = new PreferenceListCache(this); local 145 (DownloadsFilePreference) cache.getCachedPreference(file.getPath()); 153 cache.removeCachedPrefs();
|
| /packages/services/Telephony/src/com/android/phone/ |
| CallerInfoCache.java | 107 if (DBG) log("Start refreshing cache."); 142 * When cache is being refreshed, this whole object will be replaced with a newer object, 156 CallerInfoCache cache = new CallerInfoCache(context); local 157 // The first cache should be available ASAP. 158 cache.startAsyncCache(); 159 return cache; 171 Log.w(LOG_TAG, "Previous cache task is remaining."); 182 // to block incoming calls asking for the cache. So this method just does full query 183 // and replaces the older cache with newer one. To refrain from blocking incoming calls, 193 // cache here again, and replace it with older one [all...] |
| /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/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...] |
| /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/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...] |
| /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/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/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
| DiskLruCache.java | 42 * A cache that uses a bounded amount of space on a filesystem. Each cache 48 * <p>The cache stores its data in a directory on the filesystem. This 49 * directory must be exclusive to the cache; the cache may delete or overwrite 51 * same cache directory at the same time. 53 * <p>This cache limits the number of bytes that it will store on the 54 * filesystem. When the number of stored bytes exceeds the limit, the cache will 56 * not strict: the cache may temporarily exceed it while waiting for files to be 57 * deleted. The limit does not include filesystem overhead or the cache 217 DiskLruCache cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); local [all...] |
| /packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/ |
| CacheManager.java | 17 package com.android.usbtuner.exoplayer.cache; 48 * The cache manager can be disabled, while running, if the write throughput to the associated 72 public void onWrite(SampleCache cache) { 73 mCacheSize += cache.getSize(); 77 public void onDelete(SampleCache cache) { 78 mPendingDelete.remove(cache); 79 mCacheSize -= cache.getSize(); 91 void onWrite(SampleCache cache); 92 void onDelete(SampleCache cache); 189 * @return a directory to save cache chunks and meta file 358 SampleCache cache = null; local 405 SampleCache cache = map.get(map.firstKey()); local [all...] |
| /external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/ |
| Label.java | 41 private BitmapFontCache cache; field in class:Label 80 cache = style.font.newFontCache(); 124 BitmapFont font = cache.getFont(); 140 prefSizeLayout.setText(cache.getFont(), text, Color.WHITE, width, Align.left, true); 142 prefSizeLayout.setText(cache.getFont(), text); 147 BitmapFont font = cache.getFont(); 191 y += cache.getFont().isFlipped() ? 0 : height - textHeight; 194 y += cache.getFont().isFlipped() ? height - textHeight : 0; 199 if (!cache.getFont().isFlipped()) y += textHeight; 202 cache.setText(layout, x, y) [all...] |
| /frameworks/base/core/tests/coretests/src/android/content/pm/ |
| RegisteredServicesCacheTest.java | 76 TestServicesCache cache = new TestServicesCache(); local 77 cache.addServiceForQuerying(U0, r1, newServiceInfo(t1, UID1)); 78 cache.addServiceForQuerying(U0, r2, newServiceInfo(t2, UID2)); 79 assertEquals(2, cache.getAllServicesSize(U0)); 80 assertEquals(2, cache.getPersistentServicesSize(U0)); 81 assertNotEmptyFileCreated(cache, U0); 83 cache = new TestServicesCache(); 84 assertEquals(2, cache.getPersistentServicesSize(U0)); 88 TestServicesCache cache = new TestServicesCache(); local 89 cache.addServiceForQuerying(U0, r1, newServiceInfo(t1, UID1)) 110 TestServicesCache cache = new TestServicesCache(); local 125 TestServicesCache cache = new TestServicesCache(); local 143 TestServicesCache cache = new TestServicesCache(); local 170 TestServicesCache cache = new TestServicesCache(); local [all...] |
| /packages/apps/Email/tests/src/com/android/email/provider/ |
| ContentCacheTests.java | 180 // The underlying cursor shouldn't be closed because it's in a cache (we'll test 208 // Create a cache of size 2 209 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); local 213 CacheToken token = cache.getCacheToken("1"); 214 // Put the cursor in the cache 215 cache.putCursor(cursor1, "1", SIMPLE_PROJECTION, token); 216 assertEquals(1, cache.size()); 221 token = cache.getCacheToken("2"); 222 // Put the cursor in the cache 223 cache.putCursor(cursor1, "2", SIMPLE_PROJECTION, token) 266 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); local [all...] |
| /art/runtime/jit/ |
| profiling_info.h | 57 // Note that we cannot ensure the inline cache is actually monomorphic 110 InlineCache* cache = &cache_[i]; variable 112 visitor.VisitRootIfNonNull(cache->classes_[j].AddressWithoutBarrier()); 147 InlineCache* cache = &cache_[i]; local 148 memset(&cache->classes_[0], 182 // is implicitly guarded by the JIT code cache lock. 183 // TODO: Make the JIT code cache lock global. 191 // Entry point of the corresponding ArtMethod, while the JIT code cache
|
| /external/ImageMagick/MagickCore/ |
| coder.c | 338 *cache; 343 cache=NewSplayTree(CompareSplayTreeString,RelinquishMagickMemory, 345 if (cache == (SplayTreeInfo *) NULL) 360 status&=LoadCoderCache(cache,(const char *) GetStringInfoDatum(option), 392 status&=AddValueToSplayTree(cache,ConstantString(coder_info->magick), 398 return(cache); 809 % MagickBooleanType LoadCoderCache(SplayTreeInfo *cache,const char *xml, 823 static MagickBooleanType LoadCoderCache(SplayTreeInfo *cache,const char *xml, 914 status&=LoadCoderCache(cache,file_xml,path,depth+1, 941 status=AddValueToSplayTree(cache,ConstantString(coder_info->magick) 332 *cache; local [all...] |
| /external/apache-http/src/org/apache/http/impl/io/ |
| ChunkedOutputStream.java | 60 private byte[] cache; field in class:ChunkedOutputStream 79 this.cache = new byte[bufferSize]; 97 * Writes the cache out onto the underlying stream 103 this.out.write(this.cache, 0, this.cachePosition); 110 * Writes the cache and bufferToAppend to the underlying stream 119 this.out.write(this.cache, 0, this.cachePosition); 133 * Must be called to ensure the internal cache is flushed and the closing chunk is written. 149 this.cache[this.cachePosition] = (byte) b; 151 if (this.cachePosition == this.cache.length) flushCache(); 168 if (len >= this.cache.length - this.cachePosition) [all...] |
| /external/autotest/scheduler/ |
| rdb_cache_manager.py | 6 """Cache module for rdb requests/host objects. 9 1. A cache backend. 10 2. A cache manager for the backend. 13 This cache manager functions as a lookaside buffer for host requests. 16 2. Clients of the cache don't trust the leased bit on the cached object. 17 3. The cache is created at the start of a single batched request, 20 Rather than caching individual hosts, the cache manager maintains 21 'cache lines'. A cache line is defined as a key: value pair, where 23 that match the key. The following limitations are placed on cache lines 98 def cache(self, request, count, **kwargs): function in function:memoize_hosts [all...] |
| /external/avahi/avahi-core/ |
| cache.h | 46 AvahiCache *cache; member in struct:AvahiCacheEntry
|
| /external/boringssl/src/crypto/x509v3/ |
| pcy_tree.c | 153 const X509_POLICY_CACHE *cache; local 187 /* First setup policy cache in all certificates apart from the 188 * trust anchor. Note any bad cache results on the way. Also can 195 cache = policy_cache_set(x); 196 /* If cache NULL something bad happened: return immediately */ 197 if (cache == NULL) 205 else if ((ret == 1) && !cache->data) 211 if ((cache->explicit_skip != -1) 212 && (cache->explicit_skip < explicit_policy)) 213 explicit_policy = cache->explicit_skip 704 const X509_POLICY_CACHE *cache; local [all...] |
| /external/compiler-rt/lib/tsan/tests/unit/ |
| tsan_clock_test.cc | 21 ClockCache cache; member in namespace:__tsan 44 vector.acquire(&cache, &chunked); 47 vector.release(&cache, &chunked); 50 vector.acq_rel(&cache, &chunked); 53 chunked.Reset(&cache); 60 vector1.release(&cache, &chunked); 63 vector2.acquire(&cache, &chunked); 69 chunked.Reset(&cache); 79 thr1.ReleaseStore(&cache, &sync); 81 thr2.acquire(&cache, &sync) [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...] |
| /external/e2fsprogs/lib/ext2fs/ |
| ext2fsP.h | 65 * Inode cache structure 73 struct ext2_inode_cache_ent *cache; member in struct:ext2_inode_cache
|
| /external/freetype/src/cache/ |
| ftcbasic.c | 5 /* The FreeType basic cache interface (body). */ 87 FTC_Cache cache = (FTC_Cache)ftccache; local 90 FTC_Family_Init( FTC_FAMILY( family ), cache ); local 156 FTC_Cache cache, 167 error = FTC_Manager_LookupSize( cache->manager, 206 FTC_Cache cache, 223 FTC_GNode_UnselectFamily( gnode, cache ); 231 * basic image cache 281 FTC_ImageCache_Lookup( FTC_ImageCache cache, 321 FTC_GCACHE_LOOKUP_CMP( cache, [all...] |