Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp108 CacheEntry dummyEntry(dummyKey, NULL, 0); in set()
138 mCacheEntries.insert(index, CacheEntry(keyBlob, valueBlob, ++mAccessCount)); in set()
194 CacheEntry dummyEntry(dummyKey, NULL, 0); in get()
225 for (const CacheEntry& e : mCacheEntries) { in getFlattenedSize()
251 for (const CacheEntry& e : mCacheEntries) { in flatten()
352 [](const CacheEntry& a, const CacheEntry& b) { in findVictim()
402 const CacheEntry& entry(mCacheEntries[i]); in clean()
453 BlobCache::CacheEntry::CacheEntry() : mRecency(0) {} in CacheEntry() function in android::BlobCache::CacheEntry
455 BlobCache::CacheEntry::CacheEntry(const std::shared_ptr<Blob>& key, in CacheEntry() function in android::BlobCache::CacheEntry
459 BlobCache::CacheEntry::CacheEntry(const CacheEntry& ce) in CacheEntry() function in android::BlobCache::CacheEntry
[all …]
DBlobCache.h232 class CacheEntry {
234 CacheEntry();
235 CacheEntry(const std::shared_ptr<Blob>& key, const std::shared_ptr<Blob>& value,
237 CacheEntry(const CacheEntry& ce);
239 bool operator<(const CacheEntry& rhs) const;
240 const CacheEntry& operator=(const CacheEntry&);
348 std::vector<CacheEntry> mCacheEntries;
/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/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/tests/
Dresolv_cache_unit_test.cpp52 struct CacheEntry { struct
157 const CacheEntry& ce, uint32_t flags = 0) { in cacheLookup()
186 int cacheAdd(uint32_t netId, const CacheEntry& ce) { in cacheAdd()
199 void cacheQueryFailed(uint32_t netId, const CacheEntry& ce, uint32_t flags) { in cacheQueryFailed()
255 CacheEntry makeCacheEntry(int op, const char* qname, int qclass, int qtype, const char* rdata, in makeCacheEntry()
257 CacheEntry ce; in makeCacheEntry()
290 CacheEntry ce = makeCacheEntry(QUERY, "valid.cache", ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F()
301 CacheEntry ce = makeCacheEntry(QUERY, "existent.in.cache", ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F()
325 CacheEntry ce = makeCacheEntry(QUERY, "existent.in.cache", ns_c_in, ns_t_a, "1.2.3.4"); in TEST_F()
346 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/src/com/android/launcher3/icons/
DIconCache.java180 CacheEntry entry = cacheLocked(application.componentName, in updateTitleAndIcon()
287 CacheEntry entry = cacheLocked(info.getComponent(), info.getUser(), () -> info, in getTitleNoCache()
300 CacheEntry entry = cacheLocked(infoInOut.getTargetComponent(), infoInOut.user, in getTitleAndIcon()
312 CacheEntry entry = getEntryForPackageLocked( in getTitleAndIconForApp()
322 protected void applyCacheEntry(CacheEntry entry, ItemInfoWithIcon info) { in applyCacheEntry()
/packages/services/Car/cpp/watchdog/server/tests/
DLooperStub.h77 using CacheEntry = std::vector<Message>; // Messages to process on a given second. variable
78 std::vector<CacheEntry> mCache; // Messages pending to be processed.
DLooperStub.cpp83 mCache.emplace_back(LooperStub::CacheEntry()); in sendMessageAtTime()
/packages/modules/RuntimeI18n/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt426 Landroid/icu/impl/locale/LocaleObjectCache$CacheEntry;-><init>(Ljava/lang/Object;Ljava/lang/Object;…
427 Landroid/icu/impl/locale/LocaleObjectCache$CacheEntry;->getKey()Ljava/lang/Object;
428 Landroid/icu/impl/locale/LocaleObjectCache$CacheEntry;->_key:Ljava/lang/Object;