Home
last modified time | relevance | path

Searched refs:TKey (Results 1 – 3 of 3) sorted by relevance

/system/core/include/utils/
DLruCache.h37 template <typename TKey, typename TValue>
47 void setOnEntryRemovedListener(OnEntryRemoved<TKey, TValue>* listener);
49 const TValue& get(const TKey& key);
50 bool put(const TKey& key, const TValue& value);
51 bool remove(const TKey& key);
60 TKey key;
65 Entry(TKey key_, TValue value_) : key(key_), value(value_), parent(NULL), child(NULL) { in Entry()
67 const TKey& getKey() const { return key; } in getKey()
87 typename LruCacheSet::iterator findByKey(const TKey& key) { in findByKey()
94 OnEntryRemoved<TKey, TValue>* mListener;
[all …]
DTypeHelpers.h275 template <typename TKey>
276 hash_t hash_type(const TKey& key);
/system/core/logd/
DLogStatistics.h40 template <typename TKey, typename TEntry>
43 std::unordered_map<TKey, TEntry> map;
47 typedef typename std::unordered_map<TKey, TEntry>::iterator iterator;
48 typedef typename std::unordered_map<TKey, TEntry>::const_iterator const_iterator;
88 inline iterator add(TKey key, LogBufferElement *element) { in add()
98 inline iterator add(TKey key) { in add()
108 void subtract(TKey key, LogBufferElement *element) { in subtract()
115 inline void drop(TKey key, LogBufferElement *element) { in drop()