Home
last modified time | relevance | path

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

/packages/services/Telephony/src/com/android/phone/
DCallerInfoCache.java70 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/
DBaseIconCache.java74 public static class CacheEntry extends BitmapInfo { class in BaseIconCache
84 private final Map<ComponentKey, CacheEntry> mCache;
108 mCache = new AbstractMap<ComponentKey, CacheEntry>() { in BaseIconCache()
110 public Set<Entry<ComponentKey, CacheEntry>> entrySet() { in BaseIconCache()
115 public CacheEntry put(ComponentKey key, CacheEntry value) { in BaseIconCache()
258 CacheEntry entry = null; in addIconToDBAndMemCache()
267 entry = new CacheEntry(); in addIconToDBAndMemCache()
311 protected <T> CacheEntry cacheLocked( in cacheLocked()
317 CacheEntry entry = mCache.get(cacheKey); in cacheLocked()
319 entry = new CacheEntry(); in cacheLocked()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DViewCache.java29 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/
DAbstractCache.java29 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/modules/DnsResolver/
Dresolv_cache_unit_test.cpp53 struct CacheEntry { struct
158 const CacheEntry& ce, uint32_t flags = 0) { in cacheLookup()
187 int cacheAdd(uint32_t netId, const CacheEntry& ce) { in cacheAdd()
200 void cacheQueryFailed(uint32_t netId, const CacheEntry& ce, uint32_t flags) { in cacheQueryFailed()
256 CacheEntry makeCacheEntry(int op, const char* qname, int qclass, int qtype, const char* rdata, in makeCacheEntry()
258 CacheEntry ce; in makeCacheEntry()
291 CacheEntry ce = makeCacheEntry(QUERY, "valid.cache", ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F()
302 CacheEntry ce = makeCacheEntry(QUERY, "existent.in.cache", ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F()
326 CacheEntry ce = makeCacheEntry(QUERY, "existent.in.cache", ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F()
347 CacheEntry ce = makeCacheEntry(QUERY, "existent.in.cache", ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F()
[all …]
/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()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java188 private final HashMap<ComponentKey, CacheEntry> mCache = new HashMap<>();
195 protected <T> CacheEntry cacheLocked( in cacheLocked()
200 CacheEntry entry = mCache.get(new ComponentKey(componentName, user)); in cacheLocked()
202 entry = new CacheEntry(); in cacheLocked()
209 CacheEntry entry = new CacheEntry(); in addCache()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DIconCache.java159 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()