/packages/apps/Email/provider_src/com/android/email/mail/internet/ |
D | AuthenticationCache.java | 26 private final Map<Long, CacheEntry> mCache; 29 private class CacheEntry { class in AuthenticationCache 30 CacheEntry(long accountId, String providerId, String accessToken, String refreshToken, in CacheEntry() method in AuthenticationCache.CacheEntry 56 mCache = new HashMap<Long, CacheEntry>(); in AuthenticationCache() 67 CacheEntry entry = null; in retrieveAccessToken() 85 CacheEntry entry = getEntry(context, account); in refreshAccessToken() 92 private CacheEntry getEntry(Context context, Account account) { in getEntry() 93 CacheEntry entry; in getEntry() 100 entry = new CacheEntry(account.mId, credential.mProviderId, credential.mAccessToken, in getEntry() 109 entry = new CacheEntry(account.mId, credential.mProviderId, credential.mAccessToken, in getEntry() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallerInfoCache.java | 70 public static class CacheEntry { class in CallerInfoCache 73 public CacheEntry(String customRingtone, boolean shouldSendToVoicemail) { in CacheEntry() method in CallerInfoCache.CacheEntry 143 private volatile HashMap<String, CacheEntry> mNumberToEntry; 160 mNumberToEntry = new HashMap<String, CacheEntry>(); in CallerInfoCache() 190 final HashMap<String, CacheEntry> newNumberToEntry = in refreshCacheEntry() 191 new HashMap<String, CacheEntry>(cursor.getCount()); in refreshCacheEntry() 228 for (Entry<String, CacheEntry> entry : newNumberToEntry.entrySet()) { in refreshCacheEntry() 255 private void putNewEntryWhenAppropriate(HashMap<String, CacheEntry> newNumberToEntry, in putNewEntryWhenAppropriate() 260 final CacheEntry entry = newNumberToEntry.get(numberOrSipAddress); in putNewEntryWhenAppropriate() 263 new CacheEntry(customRingtone, sendToVoicemail)); in putNewEntryWhenAppropriate() [all …]
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/ |
D | BaseIconCache.java | 72 public static class CacheEntry extends BitmapInfo { class in BaseIconCache 82 private final Map<ComponentKey, CacheEntry> mCache; 105 mCache = new AbstractMap<ComponentKey, CacheEntry>() { in BaseIconCache() 107 public Set<Entry<ComponentKey, CacheEntry>> entrySet() { in BaseIconCache() 112 public CacheEntry put(ComponentKey key, CacheEntry value) { in BaseIconCache() 255 CacheEntry entry = null; in addIconToDBAndMemCache() 264 entry = new CacheEntry(); in addIconToDBAndMemCache() 304 protected <T> CacheEntry cacheLocked( in cacheLocked() 312 protected <T> CacheEntry cacheLocked( in cacheLocked() 318 CacheEntry entry = mCache.get(cacheKey); in cacheLocked() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ViewCache.java | 29 protected final SparseArray<CacheEntry> mCache = new SparseArray(); 32 mCache.put(layoutId, new CacheEntry(size)); in setCacheSize() 36 CacheEntry entry = mCache.get(layoutId); in getView() 38 entry = new CacheEntry(1); in getView() 53 CacheEntry entry = mCache.get(layoutId); in recycleView() 60 private static class CacheEntry { class in ViewCache 67 public CacheEntry(int maxSize) { in CacheEntry() method in ViewCache.CacheEntry
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
D | AbstractCache.java | 29 private final SimpleArrayMap<K, CacheEntry<V>> mCacheMap; 32 mCacheMap = new SimpleArrayMap<K, CacheEntry<V>>(); in AbstractCache() 50 CacheEntry<V> cacheEntry = new CacheEntry<V>(); in put() 68 CacheEntry<V> cacheEntry = mCacheMap.get(key); in get() 85 CacheEntry<V> v = mCacheMap.remove(key); in purge() 106 private static class CacheEntry<V> { class in AbstractCache
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | FileCache.java | 52 private final LruCache<String, CacheEntry> mEntryMap = 53 new LruCache<String, CacheEntry>(LRU_CAPACITY); 62 public static final class CacheEntry { class in FileCache 67 private CacheEntry(long id, String contentUrl, File cacheFile) { in CacheEntry() method in FileCache.CacheEntry 129 public CacheEntry lookup(String downloadUrl) { in lookup() 131 CacheEntry entry; in lookup() 146 entry = new CacheEntry( in lookup()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | BaseModelUpdateTaskTestCase.java | 189 private final HashMap<ComponentKey, CacheEntry> mCache = new HashMap<>(); 196 protected <T> CacheEntry cacheLocked( in cacheLocked() 201 CacheEntry entry = mCache.get(new ComponentKey(componentName, user)); in cacheLocked() 203 entry = new CacheEntry(); in cacheLocked() 210 CacheEntry entry = new CacheEntry(); in addCache()
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | IconCache.java | 159 CacheEntry entry = cacheLocked(application.componentName, in updateTitleAndIcon() 195 CacheEntry entry = cacheLocked(info.getComponent(), info.getUser(), () -> info, in getTitleNoCache() 208 CacheEntry entry = cacheLocked(infoInOut.getTargetComponent(), infoInOut.user, in getTitleAndIcon() 219 CacheEntry entry = getEntryForPackageLocked( in getTitleAndIconForApp() 224 protected void applyCacheEntry(CacheEntry entry, ItemInfoWithIcon info) { in applyCacheEntry()
|