Searched refs:trieMap (Results 1 – 2 of 2) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
D | trie_map_test.cpp | 32 TrieMap trieMap; in TEST() local 33 trieMap.putRoot(10, 10); in TEST() 34 EXPECT_EQ(10ull, trieMap.getRoot(10).mValue); in TEST() 35 trieMap.putRoot(0x10A, 10); in TEST() 36 EXPECT_EQ(10ull, trieMap.getRoot(10).mValue); in TEST() 37 EXPECT_EQ(10ull, trieMap.getRoot(0x10A).mValue); in TEST() 38 trieMap.putRoot(10, 1000); in TEST() 39 EXPECT_EQ(1000ull, trieMap.getRoot(10).mValue); in TEST() 40 trieMap.putRoot(11, 1000); in TEST() 41 EXPECT_EQ(1000ull, trieMap.getRoot(11).mValue); in TEST() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | trie_map.h | 66 IterationResult(const TrieMap *const trieMap, const int key, const uint64_t value, in IterationResult() argument 68 : mTrieMap(trieMap), mKey(key), mValue(value), in IterationResult() 98 TrieMapIterator(const TrieMap *const trieMap, const int bitmapEntryIndex) in TrieMapIterator() argument 99 : mTrieMap(trieMap), mStateStack(), mBaseBitmapEntryIndex(bitmapEntryIndex), in TrieMapIterator() 101 if (!trieMap || mBaseBitmapEntryIndex == INVALID_INDEX) { in TrieMapIterator() 145 TrieMapRange(const TrieMap *const trieMap, const int bitmapEntryIndex) in TrieMapRange() argument 146 : mTrieMap(trieMap), mBaseBitmapEntryIndex(bitmapEntryIndex) {}; in TrieMapRange()
|