Searched refs:TKey (Results 1 – 5 of 5) sorted by relevance
/system/core/include/utils/ |
D | LruCache.h | 35 template <typename TKey, typename TValue> 44 void setOnEntryRemovedListener(OnEntryRemoved<TKey, TValue>* listener); 46 const TValue& get(const TKey& key); 47 bool put(const TKey& key, const TValue& value); 48 bool remove(const TKey& key); 55 Iterator(const LruCache<TKey, TValue>& cache): mCache(cache), mIndex(-1) { in Iterator() argument 71 const TKey& key() const { in key() 75 const LruCache<TKey, TValue>& mCache; 83 TKey key; 88 Entry(TKey key_, TValue value_) : key(key_), value(value_), parent(NULL), child(NULL) { in Entry() [all …]
|
D | BasicHashtable.h | 170 template <typename TKey, typename TEntry> 197 inline BasicHashtable<TKey, TEntry>& operator =(const BasicHashtable<TKey, TEntry> & other) { 280 inline ssize_t find(ssize_t index, hash_t hash, const TKey& key) const { in find() 361 template <typename TKey, typename TEntry> 362 BasicHashtable<TKey, TEntry>::BasicHashtable(size_t minimumInitialCapacity, float loadFactor) : in BasicHashtable() 367 template <typename TKey, typename TEntry> 368 BasicHashtable<TKey, TEntry>::BasicHashtable(const BasicHashtable<TKey, TEntry>& other) : in BasicHashtable() argument 372 template <typename TKey, typename TEntry> 373 BasicHashtable<TKey, TEntry>::~BasicHashtable() { in ~BasicHashtable() 377 template <typename TKey, typename TEntry> [all …]
|
D | TypeHelpers.h | 268 template <typename TKey> 269 hash_t hash_type(const TKey& key);
|
/system/core/libutils/tests/ |
D | BasicHashtable_test.cpp | 111 template <typename TKey, typename TEntry> 112 static void cookieAt(const BasicHashtable<TKey, TEntry>& h, size_t index, in cookieAt() argument 115 *collision = cookie & BasicHashtable<TKey, TEntry>::Bucket::COLLISION; in cookieAt() 116 *present = cookie & BasicHashtable<TKey, TEntry>::Bucket::PRESENT; in cookieAt() 117 *hash = cookie & BasicHashtable<TKey, TEntry>::Bucket::HASH_MASK; in cookieAt() 120 template <typename TKey, typename TEntry> 121 static const void* getBuckets(const BasicHashtable<TKey, TEntry>& h) { in getBuckets() argument 126 template <typename TKey, typename TValue> 127 static size_t add(BasicHashtable<TKey, key_value_pair_t<TKey, TValue> >& h, in add() argument 128 const TKey& key, const TValue& value) { in add() [all …]
|
/system/core/logd/ |
D | LogStatistics.h | 33 template <typename TKey, typename TEntry> 36 std::unordered_map<TKey, TEntry> map; 40 typedef typename std::unordered_map<TKey, TEntry>::iterator iterator; 79 inline iterator add(TKey key, LogBufferElement *e) { in add() 89 inline iterator add(TKey key) { in add() 99 void subtract(TKey key, LogBufferElement *e) { in subtract() 106 inline void drop(TKey key, LogBufferElement *e) { in drop()
|