Home
last modified time | relevance | path

Searched refs:CacheEntry (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DIconCache.java66 private static class CacheEntry { class in IconCache
99 private final HashMap<CacheKey, CacheEntry> mCache =
100 new HashMap<CacheKey, CacheEntry>(INITIAL_ICON_CACHE_CAPACITY);
217 Iterator<Entry<CacheKey, CacheEntry>> it = mCache.entrySet().iterator(); in flushInvalidIcons()
219 final CacheEntry e = it.next().getValue(); in flushInvalidIcons()
232 CacheEntry entry = cacheLocked(application.componentName, info, labelCache, in getTitleAndIcon()
249 CacheEntry entry = cacheLocked(component, launcherActInfo, null, user, true); in getIcon()
268 CacheEntry entry = cacheLocked(component, launcherActInfo, null, user, usePkgIcon); in getTitleAndIcon()
290 CacheEntry entry = cacheLocked(component, info, labelCache, info.getUser(), false); in getIcon()
302 private CacheEntry cacheLocked(ComponentName componentName, LauncherActivityInfoCompat info, in cacheLocked()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/internet/
DAuthenticationCache.java26 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/
DCallerInfoCache.java74 public static class CacheEntry { class in CallerInfoCache
77 public CacheEntry(String customRingtone, boolean shouldSendToVoicemail) { in CacheEntry() method in CallerInfoCache.CacheEntry
147 private volatile HashMap<String, CacheEntry> mNumberToEntry;
164 mNumberToEntry = new HashMap<String, CacheEntry>(); in CallerInfoCache()
194 final HashMap<String, CacheEntry> newNumberToEntry = in refreshCacheEntry()
195 new HashMap<String, CacheEntry>(cursor.getCount()); in refreshCacheEntry()
232 for (Entry<String, CacheEntry> entry : newNumberToEntry.entrySet()) { in refreshCacheEntry()
259 private void putNewEntryWhenAppropriate(HashMap<String, CacheEntry> newNumberToEntry, in putNewEntryWhenAppropriate()
264 final CacheEntry entry = newNumberToEntry.get(numberOrSipAddress); in putNewEntryWhenAppropriate()
267 new CacheEntry(customRingtone, sendToVoicemail)); in putNewEntryWhenAppropriate()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DIconCache.java45 private static class CacheEntry { class in IconCache
75 private final HashMap<CacheKey, CacheEntry> mCache =
76 new HashMap<CacheKey, CacheEntry>(INITIAL_ICON_CACHE_CAPACITY);
184 CacheEntry entry = cacheLocked(application.componentName, info, labelCache, in getTitleAndIcon()
205 CacheEntry entry = cacheLocked(component, launcherActInfo, null, user); in getIcon()
217 CacheEntry entry = cacheLocked(component, info, labelCache, info.getUser()); in getIcon()
226 private CacheEntry cacheLocked(ComponentName componentName, LauncherActivityInfo info, in cacheLocked()
229 CacheEntry entry = mCache.get(cacheKey); in cacheLocked()
231 entry = new CacheEntry(); in cacheLocked()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java52 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()