Home
last modified time | relevance | path

Searched refs:HeaderPolicy (Results 1 – 24 of 24) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_policy.cpp26 const char *const HeaderPolicy::MULTIPLE_WORDS_DEMOTION_RATE_KEY = "MULTIPLE_WORDS_DEMOTION_RATE";
27 const char *const HeaderPolicy::REQUIRES_GERMAN_UMLAUT_PROCESSING_KEY =
30 const char *const HeaderPolicy::IS_DECAYING_DICT_KEY = "USES_FORGETTING_CURVE";
31 const char *const HeaderPolicy::DATE_KEY = "date";
32 const char *const HeaderPolicy::LAST_DECAYED_TIME_KEY = "LAST_DECAYED_TIME";
33 const char *const HeaderPolicy::NGRAM_COUNT_KEYS[] =
35 const char *const HeaderPolicy::MAX_NGRAM_COUNT_KEYS[] =
38 const int HeaderPolicy::DEFAULT_MAX_NGRAM_COUNTS[] = {10000, 30000, 30000, 30000};
39 const char *const HeaderPolicy::EXTENDED_REGION_SIZE_KEY = "EXTENDED_REGION_SIZE";
42 const char *const HeaderPolicy::HAS_HISTORICAL_INFO_KEY = "HAS_HISTORICAL_INFO";
[all …]
Dheader_policy.h32 class HeaderPolicy : public DictionaryHeaderStructurePolicy {
35 HeaderPolicy(const uint8_t *const dictBuf, const FormatUtils::FORMAT_VERSION formatVersion) in HeaderPolicy() function
60 HeaderPolicy(const FormatUtils::FORMAT_VERSION dictFormatVersion, in HeaderPolicy() function
84 HeaderPolicy(const HeaderPolicy *const headerPolicy) in HeaderPolicy() function
101 HeaderPolicy() in HeaderPolicy() function
109 ~HeaderPolicy() {} in ~HeaderPolicy()
222 DISALLOW_COPY_AND_ASSIGN(HeaderPolicy);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.h36 class HeaderPolicy; variable
154 const bool mustMatchAllPrevWords, const HeaderPolicy *const headerPolicy) const;
180 const HeaderPolicy *const headerPolicy, const int wordId) const;
182 bool updateAllProbabilityEntriesForGC(const HeaderPolicy *const headerPolicy, in updateAllProbabilityEntriesForGC()
197 const HeaderPolicy *const headerPolicy, MutableEntryCounters *const outEntryCounters);
201 const HeaderPolicy *const headerPolicy,
243 const HeaderPolicy *const headerPolicy, const bool needsToHalveCounters,
245 bool turncateEntriesInSpecifiedLevel(const HeaderPolicy *const headerPolicy,
247 bool getEntryInfo(const HeaderPolicy *const headerPolicy, const int targetLevel,
252 const HeaderPolicy *const headerPolicy) const;
[all …]
Dlanguage_model_dict_content.cpp44 const HeaderPolicy *const headerPolicy) const { in getWordAttributes()
161 const HeaderPolicy *const headerPolicy, const int wordId) const { in exportAllNgramEntriesRelatedToWord()
175 const HeaderPolicy *const headerPolicy, const int bitmapEntryIndex, in exportAllNgramEntriesRelatedToWordInner()
199 const EntryCounts &maxEntryCounts, const HeaderPolicy *const headerPolicy, in truncateEntries()
222 const HeaderPolicy *const headerPolicy, MutableEntryCounters *const entryCountersToUpdate) { in updateAllEntriesOnInputWord()
263 const HistoricalInfo historicalInfo, const HeaderPolicy *const headerPolicy) const { in createUpdatedEntryFrom()
331 const int prevWordCount, const HeaderPolicy *const headerPolicy, in updateAllProbabilityEntriesForGCInner()
392 const HeaderPolicy *const headerPolicy, const int maxEntryCount, const int targetLevel, in turncateEntriesInSpecifiedLevel()
420 bool LanguageModelDictContent::getEntryInfo(const HeaderPolicy *const headerPolicy, in getEntryInfo()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dforgetting_curve_utils.h28 class HeaderPolicy; variable
34 const HistoricalInfo *const newHistoricalInfo, const HeaderPolicy *const headerPolicy);
38 const HeaderPolicy *const headerPolicy);
41 const HeaderPolicy *const headerPolicy);
44 const HeaderPolicy *const headerPolicy);
47 const HeaderPolicy *const headerPolicy);
108 static int clampToValidCountRange(const int count, const HeaderPolicy *const headerPolicy);
Dforgetting_curve_utils.cpp48 const HistoricalInfo *const newHistoricalInfo, const HeaderPolicy *const headerPolicy) { in createUpdatedHistoricalInfo()
87 const HistoricalInfo *const historicalInfo, const HeaderPolicy *const headerPolicy) { in decodeProbability()
97 const HeaderPolicy *const headerPolicy) { in needsToKeep()
106 const HeaderPolicy *const headerPolicy) { in createHistoricalInfoToSave()
128 const EntryCounts &entryCounts, const HeaderPolicy *const headerPolicy) { in needsToDecay()
167 const HeaderPolicy *const headerPolicy) { in clampToValidCountRange()
Ddict_file_writing_utils.cpp69 HeaderPolicy headerPolicy(formatVersion, localeAsCodePointVector, attributeMap); in createEmptyV4DictFile()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_dict_buffers.h43 const HeaderPolicy *const headerPolicy, const int maxTrieSize) { in createVer4DictBuffers()
58 AK_FORCE_INLINE const HeaderPolicy *getHeaderPolicy() const { in getHeaderPolicy()
117 Ver4DictBuffers(const HeaderPolicy *const headerPolicy, const int maxTrieSize);
123 const HeaderPolicy mHeaderPolicy;
Dver4_patricia_trie_writing_helper.cpp38 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); in writeToDictFile()
58 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); in writeToDictFileWithGC()
76 const HeaderPolicy *const headerPolicy, Ver4DictBuffers *const buffersToWrite, in runGC()
Dver4_patricia_trie_writing_helper.h27 class HeaderPolicy; variable
69 bool runGC(const int rootPtNodeArrayPos, const HeaderPolicy *const headerPolicy,
Dver4_patricia_trie_node_reader.h27 class HeaderPolicy; variable
Dver4_patricia_trie_node_writer.h29 class HeaderPolicy; variable
Dver4_patricia_trie_policy.h134 const HeaderPolicy *const mHeaderPolicy;
Dver4_dict_buffers.cpp187 Ver4DictBuffers::Ver4DictBuffers(const HeaderPolicy *const headerPolicy, const int maxTrieSize) in Ver4DictBuffers()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.h52 const HeaderPolicy *const headerPolicy, const int maxTrieSize) { in createVer4DictBuffers()
70 AK_FORCE_INLINE const HeaderPolicy *getHeaderPolicy() const { in getHeaderPolicy()
136 Ver4DictBuffers(const HeaderPolicy *const headerPolicy, const int maxTrieSize);
140 const HeaderPolicy mHeaderPolicy;
Dver4_patricia_trie_node_reader.h42 class HeaderPolicy; variable
55 const HeaderPolicy *const headerPolicy) in Ver4PatriciaTrieNodeReader()
71 const HeaderPolicy *const mHeaderPolicy;
Dver4_patricia_trie_node_writer.h45 class HeaderPolicy; variable
60 Ver4DictBuffers *const buffers, const HeaderPolicy *const headerPolicy, in Ver4PatriciaTrieNodeWriter()
141 const HeaderPolicy *const mHeaderPolicy;
Dver4_patricia_trie_writing_helper.cpp47 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); in writeToDictFile()
65 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); in writeToDictFileWithGC()
87 const HeaderPolicy *const headerPolicy, Ver4DictBuffers *const buffersToWrite, in runGC()
Dver4_patricia_trie_writing_helper.h38 class HeaderPolicy; variable
125 bool runGC(const int rootPtNodeArrayPos, const HeaderPolicy *const headerPolicy,
Dver4_dict_buffers.cpp147 Ver4DictBuffers::Ver4DictBuffers(const HeaderPolicy *const headerPolicy, const int maxTrieSize) in Ver4DictBuffers()
Dver4_patricia_trie_policy.h156 const HeaderPolicy *const mHeaderPolicy;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.h44 class HeaderPolicy; variable
53 const HeaderPolicy *const headerPolicy) in Ver4BigramListPolicy()
89 const HeaderPolicy *const mHeaderPolicy;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.h157 const HeaderPolicy mHeaderPolicy;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
Ddictionary_structure_with_buffer_policy_factory.cpp88 HeaderPolicy headerPolicy(formatVersion, locale, attributeMap); in newPolicyForOnMemoryV4Dict()