Searched refs:mCache (Results 1 - 25 of 35) sorted by relevance

12

/packages/apps/StorageManager/src/com/android/storagemanager/utils/
H A DPreferenceListCache.java30 private ArrayMap<String, Preference> mCache; field in class:PreferenceListCache
38 mCache = new ArrayMap<>();
43 if (TextUtils.isEmpty(key) || mCache.containsKey(key)) {
47 mCache.put(p.getKey(), p);
57 return mCache.remove(key);
64 for (Preference p : mCache.values()) {
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A DThumbnailCacheTest.java58 private ThumbnailCache mCache; field in class:ThumbnailCacheTest
62 mCache = new ThumbnailCache(CACHE_SIZE_LIMIT);
67 mCache.putThumbnail(URI_0, MID_SIZE, MIDSIZE_BITMAP, LAST_MODIFIED);
69 Result result = mCache.getThumbnail(URI_1, MID_SIZE);
76 mCache.putThumbnail(URI_0, MID_SIZE, MIDSIZE_BITMAP, LAST_MODIFIED);
78 Result result = mCache.getThumbnail(URI_0, MID_SIZE);
86 mCache.putThumbnail(URI_0, MID_SIZE, MIDSIZE_BITMAP, LAST_MODIFIED);
88 Result result = mCache.getThumbnail(URI_0, LARGE_SIZE);
96 mCache.putThumbnail(URI_0, MID_SIZE, MIDSIZE_BITMAP, LAST_MODIFIED);
98 Result result = mCache
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/content/
H A DObjectCursor.java31 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 DFastScrollingIndexCacheTest.java32 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DUniqueKeysCache.java48 private final HashMap<Key, Key> mCache; field in class:UniqueKeysCache.UniqueKeysCacheImpl
53 mCache = new HashMap<>();
63 mCache.clear();
71 final Key existingKey = mCache.get(key);
77 mCache.put(key, key);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DImageCacheService.java40 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/StorageManager/robotests/src/com/android/storagemanager/utils/
H A DPreferenceListCacheTest.java48 private PreferenceListCache mCache; field in class:PreferenceListCacheTest
61 mCache = new PreferenceListCache(mGroup);
62 mCache.removeCachedPrefs();
75 mCache = new PreferenceListCache(mGroup);
76 assertEquals(first, mCache.getCachedPreference("first"));
77 assertEquals(second, mCache.getCachedPreference("second"));
78 assertEquals(third, mCache.getCachedPreference("third"));
80 mCache.removeCachedPrefs();
92 mCache = new PreferenceListCache(mGroup);
93 assertEquals(first, mCache
[all...]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DCalendarColorCache.java34 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();
/packages/apps/Dialer/java/com/android/dialer/util/
H A DExpirableCache.java103 private LruCache<K, CachedValue<V>> mCache; field in class:ExpirableCache
106 mCache = cache;
150 return mCache.get(key);
193 mCache.put(key, newCachedValue(value));
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DAttachmentLoader.java46 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 DFastScrollingIndexCache.java39 * It's a cache from "keys" and "bundles" (see {@link #mCache} for what they are). The cache
87 private final Map<String, String> mCache = Maps.newHashMap(); field in class:FastScrollingIndexCache
206 synchronized (mCache) {
210 final String value = mCache.get(key);
221 mCache.remove(key);
238 synchronized (mCache) {
242 mCache.put(key, buildCacheValue(
254 synchronized (mCache) {
256 mCache.clear();
272 for (String key : mCache
[all...]
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DBaseImageList.java37 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/DocumentsUI/src/com/android/documentsui/
H A DThumbnailCache.java46 * A 2-dimensional index into {@link #mCache} entries. Pair<Uri, Point> is the key to
47 * {@link #mCache}. TreeMap is used to search the closest size to a given size and a given uri.
50 private final Cache mCache; field in class:ThumbnailCache
59 mCache = new Cache(maxCacheSizeInBytes);
80 Entry entry = mCache.get(cacheKey);
92 Entry entry = mCache.get(cacheKey);
105 Entry entry = mCache.get(cacheKey);
136 mCache.put(cacheKey, entry);
157 mCache.remove(index);
176 mCache
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DIconCache.java75 private final HashMap<CacheKey, CacheEntry> mCache = field in class:IconCache
164 synchronized (mCache) {
165 mCache.remove(new CacheKey(componentName, user));
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/UnifiedEmail/src/com/android/mail/bitmap/
H A DContactResolver.java58 private final BitmapCache mCache; field in class:ContactResolver
79 mCache = cache;
112 return new ContactResolverTask(batch, mResolver, mCache, this);
116 return mCache;
162 private final BitmapCache mCache; field in class:ContactResolver.ContactResolverTask
170 mCache = cache;
233 null, mCache).decode();
261 if (bitmap == null && mCache != null) {
263 mCache.put(request.contactRequest, null);
H A DAbstractAvatarDrawable.java48 private BitmapCache mCache; field in class:AbstractAvatarDrawable
82 mCache = cache;
192 if (mCache != null) {
193 cached = mCache.get(contactRequest, true /* incrementRefCount */);
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/
H A DContactInfoCache.java54 private final ExpirableCache<NumberWithCountryIso, ContactInfo> mCache; field in class:ContactInfoCache
93 mCache = internalCache;
110 ExpirableCache.CachedValue<ContactInfo> cachedInfo = mCache.getCachedValue(numberCountryIso);
117 mCache.put(numberCountryIso, ContactInfo.EMPTY);
198 ContactInfo existingInfo = mCache.getPossiblyExpired(numberCountryIso);
213 mCache.put(numberCountryIso, info);
267 mCache.expireAll();
327 mCache.put(numberCountryIso, contactInfo);
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DResolveCache.java112 private HashMap<String, Entry> mCache = new HashMap<String, Entry>(); field in class:ResolveCache
125 Entry entry = mCache.get(mimeType);
155 mCache.put(mimeType, entry);
214 mCache.clear();
/packages/apps/Email/provider_src/com/android/email/mail/internet/
H A DAuthenticationCache.java26 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 DMediaSetSource.java130 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/provider_src/com/android/email/provider/
H A DContentCache.java285 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 DViewImage.java131 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 DGridViewSpecial.java720 // 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/PackageInstaller/src/com/android/packageinstaller/permission/model/
H A DPermissionApps.java49 private final PmCache mCache; field in class:PermissionApps
65 mCache = cache;
171 List<PackageInfo> apps = mCache != null ? mCache.getPackages(user.getIdentifier())
/packages/apps/Launcher3/src/com/android/launcher3/
H A DIconCache.java96 private final HashMap<ComponentKey, CacheEntry> mCache = field in class:IconCache
191 mCache.remove(new ComponentKey(componentName, user));
199 for (ComponentKey key: mCache.keySet()) {
206 mCache.remove(condemned);
360 entry = mCache.get(key);
373 mCache.put(key, entry);
511 CacheEntry entry = mCache.get(cacheKey);
514 mCache.put(cacheKey, entry);
576 CacheEntry entry = mCache.get(cacheKey);
589 mCache
[all...]

Completed in 866 milliseconds

12