Searched refs:bitmapEntryIndex (Results 1 – 4 of 4) sorted by relevance
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
H A D | language_model_dict_content.cpp | 119 const int bitmapEntryIndex = getBitmapEntryIndex(prevWordIds); in getNgramProbabilityEntry() local 120 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in getNgramProbabilityEntry() 137 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in setNgramProbabilityEntry() 145 const int bitmapEntryIndex = getBitmapEntryIndex(prevWordIds); in removeNgramProbabilityEntry() local 146 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in removeNgramProbabilityEntry() 150 return mTrieMap.remove(wordId, bitmapEntryIndex); in removeNgramProbabilityEntry() 155 const int bitmapEntryIndex = getBitmapEntryIndex(prevWordIds); in getProbabilityEntries() local 319 int bitmapEntryIndex = mTrieMap.getRootBitmapEntryIndex(); in getBitmapEntryIndex() local 325 bitmapEntryIndex = result.mNextLevelBitmapEntryIndex; in getBitmapEntryIndex() 327 return bitmapEntryIndex; in getBitmapEntryIndex() [all …]
|
H A D | language_model_dict_content.h | 242 bool updateAllProbabilityEntriesForGCInner(const int bitmapEntryIndex, const int prevWordCount, 248 const int bitmapEntryIndex, std::vector<int> *const prevWordIds, 254 const int bitmapEntryIndex, std::vector<int> *const prevWordIds,
|
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | trie_map.h | 98 TrieMapIterator(const TrieMap *const trieMap, const int bitmapEntryIndex) in TrieMapIterator() argument 145 TrieMapRange(const TrieMap *const trieMap, const int bitmapEntryIndex) in TrieMapRange() argument 146 : mTrieMap(trieMap), mBaseBitmapEntryIndex(bitmapEntryIndex) {}; in TrieMapRange() 185 int getNextLevelBitmapEntryIndex(const int key, const int bitmapEntryIndex); 191 const Result get(const int key, const int bitmapEntryIndex) const; 197 bool put(const int key, const uint64_t value, const int bitmapEntryIndex); 203 const TrieMapRange getEntriesInSpecifiedLevel(const int bitmapEntryIndex) const { in getEntriesInSpecifiedLevel() argument 204 return TrieMapRange(this, bitmapEntryIndex); in getEntriesInSpecifiedLevel() 209 bool remove(const int key, const int bitmapEntryIndex); 307 const int bitmapEntryIndex, const int level) const; [all …]
|
H A D | trie_map.cpp | 67 int TrieMap::getNextLevelBitmapEntryIndex(const int key, const int bitmapEntryIndex) { in getNextLevelBitmapEntryIndex() argument 68 const Entry bitmapEntry = readEntry(bitmapEntryIndex); in getNextLevelBitmapEntryIndex() 97 const TrieMap::Result TrieMap::get(const int key, const int bitmapEntryIndex) const { in get() 99 return getInternal(unsignedKey, getBitShuffledKey(unsignedKey), bitmapEntryIndex, in get() 103 bool TrieMap::put(const int key, const uint64_t value, const int bitmapEntryIndex) { in put() argument 109 readEntry(bitmapEntryIndex), 0 /* level */); in put() 116 bool TrieMap::remove(const int key, const int bitmapEntryIndex) { in remove() argument 117 const Entry bitmapEntry = readEntry(bitmapEntryIndex); in remove() 284 const int bitmapEntryIndex, const int level) const { in getInternal() argument 286 readEntry(bitmapEntryIndex), level); in getInternal() [all …]
|