Home
last modified time | relevance | path

Searched refs:ComplexKey (Results 1 – 2 of 2) sorted by relevance

/system/core/libutils/tests/
DLruCache_test.cpp28 struct ComplexKey { struct
31 explicit ComplexKey(int k) : k(k) { in ComplexKey() argument
35 ComplexKey(const ComplexKey& other) : k(other.k) { in ComplexKey() argument
39 ~ComplexKey() { in ~ComplexKey() argument
43 bool operator ==(const ComplexKey& other) const { in operator ==() argument
47 bool operator !=(const ComplexKey& other) const { in operator !=() argument
54 ssize_t ComplexKey::instanceCount = 0;
81 typedef LruCache<ComplexKey, ComplexValue> ComplexCache;
83 template<> inline android::hash_t hash_type(const ComplexKey& value) { in hash_type()
104 ComplexKey::instanceCount = 0; in SetUp()
[all …]
DBasicHashtable_test.cpp31 struct ComplexKey { struct
34 explicit ComplexKey(int k) : k(k) { in ComplexKey() argument
38 ComplexKey(const ComplexKey& other) : k(other.k) { in ComplexKey() function
42 ~ComplexKey() { in ~ComplexKey() argument
46 bool operator ==(const ComplexKey& other) const { in operator ==() argument
50 bool operator !=(const ComplexKey& other) const { in operator !=() argument
57 ssize_t ComplexKey::instanceCount = 0;
84 typedef key_value_pair_t<ComplexKey, ComplexValue> ComplexEntry;
85 typedef BasicHashtable<ComplexKey, ComplexEntry> ComplexHashtable;
87 template<> inline hash_t hash_type(const ComplexKey& value) { in hash_type()
[all …]