Lines Matching defs:key
123 const TKey& key, const TValue& value) {
124 return h.add(hash_type(key), key_value_pair_t<TKey, TValue>(key, value));
129 ssize_t index, const TKey& key) {
130 return h.find(index, hash_type(key), key);
135 const TKey& key) {
136 ssize_t index = find(h, -1, key);
145 static void getKeyValue(const TEntry& entry, int* key, int* value);
147 template <> void getKeyValue(const SimpleEntry& entry, int* key, int* value) {
148 *key = entry.key;
152 template <> void getKeyValue(const ComplexEntry& entry, int* key, int* value) {
153 *key = entry.key.k;
166 int key, value;
167 getKeyValue(h.entryAt(i), &key, &value);
168 ALOGD(" [%3u] = collision=%d, present=%d, hash=0x%08x, key=%3d, value=%3d, "
169 "hash_type(key)=0x%08x",
170 i, collision, present, hash, key, value, hash_type(key));
223 ASSERT_EQ(8, h.entryAt(index).key);
248 ASSERT_EQ(int(i), h.entryAt(index).key);
285 ASSERT_EQ(K, h.entryAt(index).key);
302 ASSERT_EQ(K, h.entryAt(index).key);
398 ASSERT_GE(entry.key, 0);
399 ASSERT_LT(entry.key, N);
400 ASSERT_EQ(false, set[entry.key]);
401 ASSERT_EQ(entry.key * 10, entry.value);
403 set[entry.key] = true;