/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/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/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/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);
|
H A D | SelectCalendarsSimpleAdapter.java | 84 private CalendarColorCache mCache; field in class:SelectCalendarsSimpleAdapter 114 mCache = new CalendarColorCache(context, this); 331 return mCache.hasColors(mData[position].accountName, mData[position].accountType);
|
H A D | SelectSyncedCalendarsMultiAccountAdapter.java | 139 private CalendarColorCache mCache; field in class:SelectSyncedCalendarsMultiAccountAdapter 224 mCache = new CalendarColorCache(context, this); 327 colorSquare.setEnabled(mCache.hasColors(accountName, accountType)); 347 if (!mCache.hasColors(accountName, accountType)) {
|
/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 124 Entry entry = mCache.get(mimeType); 154 mCache.put(mimeType, entry); 213 mCache.clear();
|
/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/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/Email/src/com/android/email/mail/internet/ |
H A D | AuthenticationCache.java | 26 private final Map<Long, CacheEntry> mCache; field in class:AuthenticationCache 56 mCache = new HashMap<Long, CacheEntry>(); 68 synchronized (mCache) { 95 entry = mCache.get(account.mId); 102 mCache.put(account.mId, entry); 160 mCache.remove(entry.mAccountId);
|
/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/Launcher2/src/com/android/launcher2/ |
H A D | IconCache.java | 75 private final HashMap<CacheKey, CacheEntry> mCache = field in class:IconCache 164 synchronized (mCache) { 165 mCache.remove(componentName); 173 synchronized (mCache) { 174 mCache.clear(); 183 synchronized (mCache) { 194 synchronized (mCache) { 212 synchronized (mCache) { 229 CacheEntry entry = mCache.get(cacheKey); 233 mCache [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
H A D | PackageInstallerCompatVL.java | 40 private final IconCache mCache; field in class:PackageInstallerCompatVL 48 mCache = LauncherAppState.getInstance().getIconCache(); 77 mCache.cachePackageInstallInfo(packageName, user, info.getAppIcon(),
|
/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...] |
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | ImageCacheService.java | 30 private BlobCache mCache; field in class:ImageCacheService 39 mCache = CacheManager.getCache(context, IMAGE_CACHE_FILE, 59 synchronized (mCache) { 60 value = mCache.lookup(cacheKey); 79 synchronized (mCache) { 81 mCache.insert(cacheKey, buffer.array());
|
/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | FastScrollingIndexCacheTest.java | 32 private FastScrollingIndexCache mCache; field in class:FastScrollingIndexCacheTest 56 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); 93 assertNull(mCache.get(null, null, null, null, null)); 94 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); 95 assertNull(mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*")); 96 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); 100 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0); 103 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_0, "*so*", "*ce*", TITLES_1, COUNTS_1); 106 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_1, "*so*", "*ce*", TITLES_2, COUNTS_2); 109 b = putAndGetBundle(mCache, URI_ [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/Launcher3/src/com/android/launcher3/ |
H A D | IconCache.java | 101 private final HashMap<CacheKey, CacheEntry> mCache = field in class:IconCache 195 synchronized (mCache) { 196 mCache.remove(new CacheKey(componentName, user)); 205 for (CacheKey key: mCache.keySet()) { 212 mCache.remove(condemned); 220 synchronized (mCache) { 221 mCache.clear(); 229 synchronized (mCache) { 230 Iterator<Entry<CacheKey, CacheEntry>> it = mCache.entrySet().iterator(); 246 synchronized (mCache) { [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
H A D | AccountAvatarDrawable.java | 40 private final BitmapCache mCache; field in class:AccountAvatarDrawable 57 mCache = cache; 170 final ReusableBitmap cached = mCache.get(contactRequest, true /* incrementRefCount */);
|
H A D | ContactResolver.java | 54 private final BitmapCache mCache; field in class:ContactResolver 75 mCache = cache; 108 return new ContactResolverTask(batch, mResolver, mCache, this); 112 return mCache; 158 private final BitmapCache mCache; field in class:ContactResolver.ContactResolverTask 166 mCache = cache; 227 null, mCache).decode(); 254 mCache.put(request.contactRequest, null);
|
H A D | ContactDrawable.java | 50 private BitmapCache mCache; field in class:ContactDrawable 112 mCache = cache; 263 final ReusableBitmap cached = mCache.get(contactRequest, true /* incrementRefCount */);
|
/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...] |