Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dentry_counters.h54 mEntryCounters.fill(0); in MutableEntryCounters()
59 : mEntryCounters(counters) {} in MutableEntryCounters()
62 return EntryCounts(mEntryCounters); in getEntryCounts()
66 ++mEntryCounters[static_cast<int>(ngramType)]; in incrementNgramCount()
70 --mEntryCounters[static_cast<int>(ngramType)]; in decrementNgramCount()
74 return mEntryCounters[static_cast<int>(ngramType)]; in getNgramCount()
78 mEntryCounters[static_cast<int>(ngramType)] = count; in setNgramCount()
86 std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> mEntryCounters; variable
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp219 mEntryCounters.incrementNgramCount(NgramType::Unigram); in addUnigramEntry()
267 mEntryCounters.decrementNgramCount(NgramType::Unigram); in removeUnigramEntry()
325 mEntryCounters.incrementNgramCount( in addNgramEntry()
364 mEntryCounters.decrementNgramCount( in removeNgramEntry()
419 mHeaderPolicy, &mEntryCounters)) { in updateEntriesForWordWithNgramContext()
424 wordId, updateAsAValidWord, historicalInfo, mHeaderPolicy, &mEntryCounters)) { in updateEntriesForWordWithNgramContext()
435 if (!mWritingHelper.writeToDictFile(filePath, mEntryCounters.getEntryCounts())) { in flush()
473 return ForgettingCurveUtils::needsToDecay(mindsBlockByGC, mEntryCounters.getEntryCounts(), in needsToRunGC()
484 mEntryCounters.getNgramCount(NgramType::Unigram)); in getProperty()
486 snprintf(outResult, maxResultLength, "%d", mEntryCounters.getNgramCount(NgramType::Bigram)); in getProperty()
Dver4_patricia_trie_policy.h54 mEntryCounters(mHeaderPolicy->getNgramCounts().getCountArray()), in Ver4PatriciaTriePolicy()
142 MutableEntryCounters mEntryCounters; variable
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp306 mEntryCounters.incrementNgramCount(NgramType::Unigram); in addUnigramEntry()
400 mEntryCounters.incrementNgramCount(NgramType::Bigram); in addNgramEntry()
441 mEntryCounters.decrementNgramCount(NgramType::Bigram); in removeNgramEntry()
480 if (!mWritingHelper.writeToDictFile(filePath, mEntryCounters.getEntryCounts())) { in flush()
518 return ForgettingCurveUtils::needsToDecay(mindsBlockByGC, mEntryCounters.getEntryCounts(), in needsToRunGC()
529 mEntryCounters.getNgramCount(NgramType::Unigram)); in getProperty()
531 snprintf(outResult, maxResultLength, "%d", mEntryCounters.getNgramCount(NgramType::Bigram)); in getProperty()
Dver4_patricia_trie_policy.h79 mEntryCounters(mHeaderPolicy->getNgramCounts().getCountArray()), in Ver4PatriciaTriePolicy()
165 MutableEntryCounters mEntryCounters; variable