/packages/apps/Dialer/tests/src/com/android/dialer/util/ |
H A D | ExpirableCacheTest.java | 31 private ExpirableCache<String, Integer> mCache; field in class:ExpirableCacheTest 38 mCache = ExpirableCache.create(lruCache); 43 mCache = null; 48 mCache.put("a", 1); 49 mCache.put("b", 2); 50 assertEquals(1, mCache.getPossiblyExpired("a").intValue()); 51 assertEquals(2, mCache.getPossiblyExpired("b").intValue()); 52 mCache.put("a", 3); 53 assertEquals(3, mCache.getPossiblyExpired("a").intValue()); 57 assertNull(mCache [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/content/ |
H A D | ObjectCursor.java | 31 private final SparseArray<T> mCache; field in class:ObjectCursor 42 mCache = new SparseArray<T>(cursor.getCount()); 44 mCache = null; 63 final T prev = mCache.get(currentPosition); 69 mCache.put(currentPosition, model); 91 mCache.clear();
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | FastScrollingIndexCacheTest.java | 33 private FastScrollingIndexCache mCache; field in class:FastScrollingIndexCacheTest 57 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); 94 assertNull(mCache.get(null, null, null, null, null)); 95 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); 96 assertNull(mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*")); 97 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); 101 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0); 104 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_0, "*so*", "*ce*", TITLES_1, COUNTS_1); 107 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_1, "*so*", "*ce*", TITLES_2, COUNTS_2); 110 b = putAndGetBundle(mCache, URI_ [all...] |
/packages/apps/UnifiedEmail/src/com/android/bitmap/ |
H A D | AltPooledCache.java | 44 private final LinkedHashMap<K, V> mCache; field in class:AltPooledCache 57 mCache = new LinkedHashMap<K, V>(0, 0.75f, true); 70 synchronized (mCache) { 71 V result = mCache.get(key); 84 synchronized (mCache) { 87 prev = mCache.put(key, value); 112 synchronized (mCache) { 115 for (Map.Entry<K, V> entry : mCache.entrySet()) { 136 mCache.remove(eldestUnref.getKey()); 154 synchronized (mCache) { [all...] |
H A D | DecodeTask.java | 37 private final BitmapCache mCache; field in class:DecodeTask 84 mCache = cache; 105 mInBitmap = mCache.poll(); 155 mCache.offer(mInBitmap); 200 "decode thread wants a bitmap. cache dump:\n" + mCache.toDebugString()); 254 mCache.offer(mInBitmap); 321 mCache.put(mKey, result); 327 mCache.offer(mInBitmap);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | ImageCacheService.java | 40 private BlobCache mCache; field in class:ImageCacheService 43 mCache = CacheManager.getCache(context, IMAGE_CACHE_FILE, 65 synchronized (mCache) { 66 if (!mCache.lookup(request)) return false; 86 synchronized (mCache) { 88 mCache.insert(cacheKey, buffer.array()); 98 synchronized (mCache) { 100 mCache.clearEntry(cacheKey);
|
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | ImageCacheService.java | 33 private BlobCache mCache; field in class:ImageCacheService 42 mCache = CacheManager.getCache(context, IMAGE_CACHE_FILE, 62 synchronized (mCache) { 63 value = mCache.lookup(cacheKey); 82 synchronized (mCache) { 84 mCache.insert(cacheKey, buffer.array());
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | IconCache.java | 50 private final HashMap<ComponentName, CacheEntry> mCache = field in class:IconCache 135 synchronized (mCache) { 136 mCache.remove(componentName); 144 synchronized (mCache) { 145 mCache.clear(); 154 synchronized (mCache) { 163 synchronized (mCache) { 178 synchronized (mCache) { 194 CacheEntry entry = mCache.get(componentName); 198 mCache [all...] |
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
H A D | CalendarColorCache.java | 34 private HashSet<String> mCache = new HashSet<String>(); field in class:CalendarColorCache 85 mCache.add(generateKey(accountName, accountType)); 92 return mCache.contains(generateKey(accountName, accountType)); 99 mCache.clear();
|
H A D | SelectCalendarsSyncAdapter.java | 54 private CalendarColorCache mCache; field in class:SelectCalendarsSyncAdapter 90 mCache = new CalendarColorCache(context, this); 217 return mCache.hasColors(mData[position].accountName, mData[position].accountType);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | AttachmentLoader.java | 46 private Map<String, Attachment> mCache = Maps.newHashMap(); field in class:AttachmentLoader.AttachmentCursor 54 Attachment m = mCache.get(uri); 57 mCache.put(uri, m);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | FastScrollingIndexCache.java | 38 * It's a cache from "keys" and "bundles" (see {@link #mCache} for what they are). The cache 86 private final Map<String, String> mCache = Maps.newHashMap(); field in class:FastScrollingIndexCache 200 synchronized (mCache) { 204 final String value = mCache.get(key); 215 mCache.remove(key); 232 synchronized (mCache) { 236 mCache.put(key, buildCacheValue( 248 synchronized (mCache) { 250 mCache.clear(); 266 for (String key : mCache [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | BaseImageList.java | 37 private final LruCache<Integer, BaseImage> mCache = field in class:BaseImageList 63 mCache.clear(); 119 BaseImage result = mCache.get(i); 127 mCache.put(i, result); 163 mCache.clear(); 203 BaseImage image = mCache.get(i); 206 mCache.put(i, image);
|
/packages/apps/Mms/src/com/android/mms/data/ |
H A D | RecipientIdCache.java | 39 private final Map<Long, String> mCache; field in class:RecipientIdCache 63 mCache = new HashMap<Long, String>(); 84 sInstance.mCache.clear(); 89 sInstance.mCache.put(id, number); 116 String number = sInstance.mCache.get(longId); 125 number = sInstance.mCache.get(longId); 157 String number2 = sInstance.mCache.get(recipientId); 163 ", sInstance.mCache.get(recipientId)=" + number2); 169 sInstance.mCache.put(recipientId, number1); 208 for (Long id : sInstance.mCache [all...] |
H A D | Conversation.java | 943 private final HashSet<Conversation> mCache; field in class:Conversation.Cache 945 mCache = new HashSet<Conversation>(10); 957 for (Conversation c : sInstance.mCache) { 979 for (Conversation c : sInstance.mCache) { 1001 if (sInstance.mCache.contains(c)) { 1008 sInstance.mCache.add(c); 1027 if (!sInstance.mCache.contains(c)) { 1038 sInstance.mCache.remove(c); 1039 sInstance.mCache.add(c); 1050 for (Conversation c : sInstance.mCache) { [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | IconCache.java | 67 private final HashMap<ComponentName, CacheEntry> mCache = field in class:IconCache 153 synchronized (mCache) { 154 mCache.remove(componentName); 163 for (ComponentName componentName: mCache.keySet()) { 177 synchronized (mCache) { 178 mCache.clear(); 186 synchronized (mCache) { 187 Iterator<Entry<ComponentName, CacheEntry>> it = mCache.entrySet().iterator(); 202 synchronized (mCache) { 215 synchronized (mCache) { [all...] |
/packages/apps/Dialer/src/com/android/dialer/util/ |
H A D | ExpirableCache.java | 143 private LruCache<K, CachedValue<V>> mCache; field in class:ExpirableCache 156 mCache = cache; 174 return mCache.get(key); 218 mCache.put(key, newCachedValue(value));
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
H A D | AttachmentGridDrawable.java | 24 private BitmapCache mCache; field in class:AttachmentGridDrawable 51 final AttachmentDrawable result = new AttachmentDrawable(mResources, mCache, 57 mCache = cache;
|
H A D | AttachmentDrawable.java | 49 private final BitmapCache mCache; field in class:AttachmentDrawable 94 mCache = cache; 177 final ReusableBitmap cached = mCache.get(key, true /* incrementRefCount */); 185 mCurrKey, mCache.toDebugString()); 377 mTask = new DecodeTask(mCurrKey, w, bufferH, bufferW, bufferH, this, mCache);
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | MediaSetSource.java | 130 private MediaItem mCache[] = new MediaItem[CACHE_SIZE]; field in class:MediaSetSource.CheckedMediaSetSource 155 items.toArray(mCache); 165 return mCache[index - mCacheStart].getContentUri(); 172 return WidgetUtils.createWidgetBitmap(mCache[index - mCacheStart]); 182 Arrays.fill(mCache, null);
|
/packages/apps/Email/src/com/android/email/provider/ |
H A D | ContentCache.java | 285 private final ContentCache mCache; field in class:ContentCache.CachedCursor 296 mCache = cache; 309 synchronized(mCache) { 311 if ((count == 0) && mCache.mLruCache.get(mId) != (mCursor)) { 734 private final ContentCache mCache; field in class:ContentCache.Statistics 762 mCache = cache; 763 mName = mCache.mName; 767 mCache = null; 799 append(sb, "Cursors", mCache == null ? mCursorCount : mCache [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ViewImage.java | 131 private BitmapCache mCache; field in class:ViewImage 447 mCache.clear(); // Because the position number is changed. 486 Bitmap b = mCache.getBitmap(pos); 499 return !mCache.hasBitmap(pos + offset); 532 mCache.put(pos + offset, bitmap.getBitmap()); 571 mCache = new BitmapCache(3); 572 mImageView.setRecycler(mCache); 596 v.setRecycler(mCache); 976 mCache.clear(); 1206 private final Entry[] mCache; field in class:BitmapCache [all...] |
H A D | GridViewSpecial.java | 720 // mCache maps from row number to the ImageBlock. 721 private final HashMap<Integer, ImageBlock> mCache; field in class:ImageBlockManager 761 mCache = new HashMap<Integer, ImageBlock>(); 796 ImageBlock blk = mCache.get(row); 836 ImageBlock blk = mCache.get(row); 842 mCache.put(row, blk); 850 if (mCache.size() < CACHE_ROWS) { 856 for (int index : mCache.keySet()) { 859 if (mCache.get(index).hasPendingRequests()) { 876 return mCache [all...] |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
H A D | ResolveCache.java | 111 private HashMap<String, Entry> mCache = new HashMap<String, Entry>(); field in class:ResolveCache 125 Entry entry = mCache.get(mimeType); 156 mCache.put(mimeType, entry); 233 mCache.clear();
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
H A D | MediaItemView.java | 637 private LruCache<ThumbnailKey, Bitmap> mCache; field in class:ThumbnailCache 640 mCache = new LruCache<ThumbnailKey, Bitmap>(size) { 649 mCache.put(key, value); 653 return mCache.get(key); 657 Map<ThumbnailKey, Bitmap> map = mCache.snapshot(); 660 mCache.remove(key);
|