/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
forgetting_curve_utils.h | 28 class HeaderPolicy; 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) [all...] |
forgetting_curve_utils.cpp | 48 const HistoricalInfo *const newHistoricalInfo, const HeaderPolicy *const headerPolicy) { 53 const int count = clampToValidCountRange(newHistoricalInfo->getCount(), headerPolicy); 66 return HistoricalInfo(timestamp, level, clampToValidCountRange(count, headerPolicy)); 87 const HistoricalInfo *const historicalInfo, const HeaderPolicy *const headerPolicy) { 91 headerPolicy->getForgettingCurveProbabilityValuesTableId(), 97 const HeaderPolicy *const headerPolicy) { 106 const HeaderPolicy *const headerPolicy) [all...] |
dict_file_writing_utils.cpp | 69 HeaderPolicy headerPolicy(formatVersion, localeAsCodePointVector, attributeMap); 70 DictBuffersPtr dictBuffers = DictBuffers::createVer4DictBuffers(&headerPolicy, 72 headerPolicy.fillInAndWriteHeaderToBuffer(true /* updatesLastDecayedTime */,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
ver4_patricia_trie_writing_helper.cpp | 38 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); 41 const int extendedRegionSize = headerPolicy->getExtendedRegionSize() 43 if (!headerPolicy->fillInAndWriteHeaderToBuffer(false /* updatesLastDecayedTime */, 58 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); 60 Ver4DictBuffers::createVer4DictBuffers(headerPolicy, 63 if (!runGC(rootPtNodeArrayPos, headerPolicy, dictBuffers.get(), &entryCounters)) { 68 if (!headerPolicy->fillInAndWriteHeaderToBuffer(true /* updatesLastDecayedTime */, 76 const HeaderPolicy *const headerPolicy, Ver4DictBuffers *const buffersToWrite [all...] |
ver4_dict_buffers.h | 43 const HeaderPolicy *const headerPolicy, const int maxTrieSize) { 44 return Ver4DictBuffersPtr(new Ver4DictBuffers(headerPolicy, maxTrieSize)); 58 AK_FORCE_INLINE const HeaderPolicy *getHeaderPolicy() const { 117 Ver4DictBuffers(const HeaderPolicy *const headerPolicy, const int maxTrieSize); 123 const HeaderPolicy mHeaderPolicy;
|
ver4_patricia_trie_writing_helper.h | 27 class HeaderPolicy; 69 bool runGC(const int rootPtNodeArrayPos, const HeaderPolicy *const headerPolicy,
|
ver4_dict_buffers.cpp | 187 Ver4DictBuffers::Ver4DictBuffers(const HeaderPolicy *const headerPolicy, const int maxTrieSize) 188 : mHeaderBuffer(nullptr), mDictBuffer(nullptr), mHeaderPolicy(headerPolicy), 191 mLanguageModelDictContent(headerPolicy->hasHistoricalInfoOfWords()),
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
ver4_patricia_trie_node_reader.h | 42 class HeaderPolicy; 55 const HeaderPolicy *const headerPolicy) 57 mHeaderPolicy(headerPolicy) {} 71 const HeaderPolicy *const mHeaderPolicy;
|
ver4_patricia_trie_writing_helper.cpp | 47 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); 50 const int extendedRegionSize = headerPolicy->getExtendedRegionSize() 52 if (!headerPolicy->fillInAndWriteHeaderToBuffer(false /* updatesLastDecayedTime */, 65 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); 67 Ver4DictBuffers::createVer4DictBuffers(headerPolicy, 71 if (!runGC(rootPtNodeArrayPos, headerPolicy, dictBuffers.get(), &unigramCount, &bigramCount)) { 79 if (!headerPolicy->fillInAndWriteHeaderToBuffer(true /* updatesLastDecayedTime */, 87 const HeaderPolicy *const headerPolicy, Ver4DictBuffers *const buffersToWrite [all...] |
ver4_dict_buffers.h | 52 const HeaderPolicy *const headerPolicy, const int maxTrieSize) { 53 return Ver4DictBuffersPtr(new Ver4DictBuffers(headerPolicy, maxTrieSize)); 70 AK_FORCE_INLINE const HeaderPolicy *getHeaderPolicy() const { 136 Ver4DictBuffers(const HeaderPolicy *const headerPolicy, const int maxTrieSize); 140 const HeaderPolicy mHeaderPolicy;
|
ver4_dict_buffers.cpp | 147 Ver4DictBuffers::Ver4DictBuffers(const HeaderPolicy *const headerPolicy, const int maxTrieSize) 148 : mHeaderBuffer(nullptr), mDictBuffer(nullptr), mHeaderPolicy(headerPolicy), 151 mProbabilityDictContent(headerPolicy->hasHistoricalInfoOfWords()), 152 mBigramDictContent(headerPolicy->hasHistoricalInfoOfWords()), mShortcutDictContent(),
|
ver4_patricia_trie_node_writer.h | 45 class HeaderPolicy; 60 Ver4DictBuffers *const buffers, const HeaderPolicy *const headerPolicy, 64 : mTrieBuffer(trieBuffer), mBuffers(buffers), mHeaderPolicy(headerPolicy), 141 const HeaderPolicy *const mHeaderPolicy;
|
ver4_patricia_trie_writing_helper.h | 38 class HeaderPolicy; 125 bool runGC(const int rootPtNodeArrayPos, const HeaderPolicy *const headerPolicy,
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
digraph_utils.h | 41 static bool hasDigraphForCodePoint(const DictionaryHeaderStructurePolicy *const headerPolicy, 49 const DictionaryHeaderStructurePolicy *const headerPolicy);
|
digraph_utils.cpp | 35 const DictionaryHeaderStructurePolicy *const headerPolicy, 37 const DigraphUtils::DigraphType digraphType = getDigraphTypeForDictionary(headerPolicy); 46 const DictionaryHeaderStructurePolicy *const headerPolicy) { 47 if (headerPolicy->requiresGermanUmlautProcessing()) {
|
dictionary.cpp | 203 const DictionaryHeaderStructurePolicy *const headerPolicy = 205 headerPolicy->readHeaderValueOrQuestionMark("dictionary", dictionaryIdCodePointBuffer, 207 headerPolicy->readHeaderValueOrQuestionMark("version", versionStringCodePointBuffer, 209 headerPolicy->readHeaderValueOrQuestionMark("date", dateStringCodePointBuffer,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
header_policy.h | 32 class HeaderPolicy : public DictionaryHeaderStructurePolicy { 35 HeaderPolicy(const uint8_t *const dictBuf, const FormatUtils::FORMAT_VERSION formatVersion) 60 HeaderPolicy(const FormatUtils::FORMAT_VERSION dictFormatVersion, 84 HeaderPolicy(const HeaderPolicy *const headerPolicy) 85 : mDictFormatVersion(headerPolicy->mDictFormatVersion), 86 mDictionaryFlags(headerPolicy->mDictionaryFlags), mSize(headerPolicy->mSize), 87 mAttributeMap(headerPolicy->mAttributeMap), mLocale(headerPolicy->mLocale) [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/ |
ver4_bigram_list_policy.h | 44 class HeaderPolicy; 53 const HeaderPolicy *const headerPolicy) 56 mHeaderPolicy(headerPolicy) {} 89 const HeaderPolicy *const mHeaderPolicy;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
language_model_dict_content.h | 36 class HeaderPolicy; 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, 185 0 /* prevWordCount */, headerPolicy, mGlobalCounters.needsToHalveCounters(), 197 const HeaderPolicy *const headerPolicy, MutableEntryCounters *const outEntryCounters) [all...] |
language_model_dict_content.cpp | 44 const HeaderPolicy *const headerPolicy) const { 161 const HeaderPolicy *const headerPolicy, const int wordId) const { 169 exportAllNgramEntriesRelatedToWordInner(headerPolicy, result.mNextLevelBitmapEntryIndex, 175 const HeaderPolicy *const headerPolicy, const int bitmapEntryIndex, 185 headerPolicy); 191 exportAllNgramEntriesRelatedToWordInner(headerPolicy, 199 const EntryCounts &maxEntryCounts, const HeaderPolicy *const headerPolicy [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
dictionary_structure_with_buffer_policy_factory.cpp | 88 HeaderPolicy headerPolicy(formatVersion, locale, attributeMap); 89 DictBuffersPtr dictBuffers = DictBuffers::createVer4DictBuffers(&headerPolicy,
|
/packages/inputmethods/LatinIME/native/jni/ |
com_android_inputmethod_latin_BinaryDictionary.cpp | 139 const DictionaryHeaderStructurePolicy *const headerPolicy = 141 JniDataUtils::putIntToArray(env, outHeaderSize, 0 /* index */, headerPolicy->getSize()); 143 headerPolicy->getFormatVersionNumber()); 148 headerPolicy->getAttributeMap(); 173 const DictionaryHeaderStructurePolicy *const headerPolicy = 175 return headerPolicy->getFormatVersionNumber(); 556 const DictionaryHeaderStructurePolicy *const headerPolicy = 560 newFormatVersion, *headerPolicy->getLocale(), headerPolicy->getAttributeMap()); [all...] |