Searched refs:mEntryCounters (Results 1 – 5 of 5) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | entry_counters.h | 54 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/ |
D | ver4_patricia_trie_policy.cpp | 219 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()
|
D | ver4_patricia_trie_policy.h | 54 mEntryCounters(mHeaderPolicy->getNgramCounts().getCountArray()), in Ver4PatriciaTriePolicy() 142 MutableEntryCounters mEntryCounters; variable
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 306 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()
|
D | ver4_patricia_trie_policy.h | 79 mEntryCounters(mHeaderPolicy->getNgramCounts().getCountArray()), in Ver4PatriciaTriePolicy() 165 MutableEntryCounters mEntryCounters; variable
|