Home
last modified time | relevance | path

Searched refs:bigramEntry (Results 1 – 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp41 const BigramEntry bigramEntry = in getNextBigram() local
46 bigramEntry.getTargetTerminalId()); in getNextBigram()
49 if (bigramEntry.hasHistoricalInfo()) { in getNextBigram()
51 ForgettingCurveUtils::decodeProbability(bigramEntry.getHistoricalInfo(), in getNextBigram()
54 *outProbability = bigramEntry.getProbability(); in getNextBigram()
58 *outHasNext = bigramEntry.hasNext(); in getNextBigram()
157 const BigramEntry bigramEntry = mBigramDictContent->getBigramEntry(entryPosToUpdate); in removeEntry() local
158 if (targetTerminalId != bigramEntry.getTargetTerminalId()) { in removeEntry()
163 const BigramEntry updatedBigramEntry = bigramEntry.getInvalidatedEntry(); in removeEntry()
178 const BigramEntry bigramEntry = in updateAllBigramEntriesAndDeleteUselessEntries() local
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.cpp258 const BigramEntry bigramEntry = in truncateBigrams() local
260 hasNext = bigramEntry.hasNext(); in truncateBigrams()
261 if (!bigramEntry.isValid()) { in truncateBigrams()
264 const int probability = bigramEntry.hasHistoricalInfo() ? in truncateBigrams()
266 bigramEntry.getHistoricalInfo(), mBuffers->getHeaderPolicy()) : in truncateBigrams()
267 bigramEntry.getProbability(); in truncateBigrams()
269 bigramEntry.getHistoricalInfo()->getTimestamp())); in truncateBigrams()
276 const BigramEntry bigramEntry = bigramDictContent->getBigramEntry(entryPos); in truncateBigrams() local
277 const BigramEntry invalidatedBigramEntry = bigramEntry.getInvalidatedEntry(); in truncateBigrams()
Dver4_patricia_trie_policy.cpp573 const BigramEntry bigramEntry = in getWordProperty() local
575 hasNext = bigramEntry.hasNext(); in getWordProperty()
576 const int word1TerminalId = bigramEntry.getTargetTerminalId(); in getWordProperty()
585 const HistoricalInfo *const historicalInfo = bigramEntry.getHistoricalInfo(); in getWordProperty()
586 const int rawBigramProbability = bigramEntry.hasHistoricalInfo() in getWordProperty()
588 bigramEntry.getHistoricalInfo(), mHeaderPolicy) in getWordProperty()
589 : bigramEntry.getProbability(); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dbigram_entry.h37 BigramEntry(const BigramEntry& bigramEntry) in BigramEntry() argument
38 : mHasNext(bigramEntry.mHasNext), mProbability(bigramEntry.mProbability), in BigramEntry()
39 mHistoricalInfo(), mTargetTerminalId(bigramEntry.mTargetTerminalId) {} in BigramEntry()
Dbigram_dict_content.cpp133 const BigramEntry bigramEntry = getBigramEntryAndAdvancePosition(&readingPos); in copyBigramList() local
134 hasNext = bigramEntry.hasNext(); in copyBigramList()
138 if (!writeBigramEntryAndAdvancePosition(&bigramEntry, &writingPos)) { in copyBigramList()
214 const BigramEntry bigramEntry = getBigramEntry(lastEntryPos).updateHasNextAndGetEntry( in runGCBigramList() local
216 if (!writeBigramEntry(&bigramEntry, lastEntryPos)) { in runGCBigramList()