Home
last modified time | relevance | path

Searched refs:EntryCounts (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dentry_counters.h28 class EntryCounts final {
30 EntryCounts() : mEntryCounts({{0, 0, 0, 0}}) {} in EntryCounts() function
32 explicit EntryCounts(const std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> &counters) in EntryCounts() function
44 DISALLOW_ASSIGNMENT_OPERATOR(EntryCounts);
61 const EntryCounts getEntryCounts() const { in getEntryCounts()
62 return EntryCounts(mEntryCounters); in getEntryCounts()
Dforgetting_curve_utils.cpp128 const EntryCounts &entryCounts, const HeaderPolicy *const headerPolicy) { in needsToDecay()
129 const EntryCounts &maxNgramCounts = headerPolicy->getMaxNgramCounts(); in needsToDecay()
Dforgetting_curve_utils.h46 static bool needsToDecay(const bool mindsBlockByDecay, const EntryCounts &entryCounters,
Ddict_file_writing_utils.cpp73 EntryCounts(), 0 /* extendedRegionSize */, dictBuffers->getWritableHeaderBuffer()); in createEmptyV4DictFile()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_policy.h169 AK_FORCE_INLINE const EntryCounts &getNgramCounts() const { in getNgramCounts()
173 AK_FORCE_INLINE const EntryCounts getMaxNgramCounts() const { in getMaxNgramCounts()
202 const EntryCounts &entryCounts, const int extendedRegionSize,
205 void fillInHeader(const bool updatesLastDecayedTime, const EntryCounts &entryCounts,
252 const EntryCounts mNgramCounts;
253 const EntryCounts mMaxNgramCounts;
262 const EntryCounts readNgramCounts() const;
263 const EntryCounts readMaxNgramCounts() const;
Dheader_policy.cpp95 const EntryCounts &entryCounts, const int extendedRegionSize, in fillInAndWriteHeaderToBuffer()
135 const EntryCounts &entryCounts, const int extendedRegionSize, in fillInHeader()
162 /* static */ const EntryCounts HeaderPolicy::readNgramCounts() const { in readNgramCounts()
172 /* static */ const EntryCounts HeaderPolicy::readMaxNgramCounts() const { in readMaxNgramCounts()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_writing_helper.cpp37 const EntryCounts &entryCounts) const { in writeToDictFile()
91 const EntryCounts &maxEntryCounts = headerPolicy->getMaxNgramCounts(); in runGC()
Dver4_patricia_trie_writing_helper.h37 bool writeToDictFile(const char *const dictDirPath, const EntryCounts &entryCounts) const;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.h196 bool truncateEntries(const EntryCounts &currentEntryCounts, const EntryCounts &maxEntryCounts,
Dlanguage_model_dict_content.cpp198 bool LanguageModelDictContent::truncateEntries(const EntryCounts &currentEntryCounts, in truncateEntries()
199 const EntryCounts &maxEntryCounts, const HeaderPolicy *const headerPolicy, in truncateEntries()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.h50 bool writeToDictFile(const char *const dictDirPath, const EntryCounts &entryCounts) const;
Dver4_patricia_trie_writing_helper.cpp46 const EntryCounts &entryCounts) const { in writeToDictFile()