/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.cpp | 32 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty, in addUnigramWord() argument 56 return reallocatePtNodeAndAddNewPtNodes(&ptNodeParams, j, unigramProperty, in addUnigramWord() 62 return setPtNodeProbability(&ptNodeParams, unigramProperty, outAddedNewUnigram); in addUnigramWord() 66 return createChildrenPtNodeArrayAndAChildPtNode(&ptNodeParams, unigramProperty, in addUnigramWord() 80 wordCodePoints.skip(readingHelper->getPrevTotalCodePointCount()), unigramProperty, in addUnigramWord() 127 const CodePointArrayView ptNodeCodePoints, const UnigramProperty *const unigramProperty, in createAndInsertNodeIntoPtNodeArray() argument 134 return createNewPtNodeArrayWithAChildPtNode(parentPos, ptNodeCodePoints, unigramProperty); in createAndInsertNodeIntoPtNodeArray() 138 const UnigramProperty *const unigramProperty, bool *const outAddedNewUnigram) { in setPtNodeProbability() argument 142 return mPtNodeWriter->updatePtNodeUnigramProperty(originalPtNodeParams, unigramProperty); in setPtNodeProbability() 149 unigramProperty->isNotAWord(), unigramProperty->isPossiblyOffensive(), in setPtNodeProbability() [all …]
|
D | dynamic_pt_updating_helper.h | 43 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty, 69 const CodePointArrayView ptNodeCodePoints, const UnigramProperty *const unigramProperty, 73 const UnigramProperty *const unigramProperty, bool *const outAddedNewUnigram); 76 const UnigramProperty *const unigramProperty, 81 const UnigramProperty *const unigramProperty); 84 const size_t overlappingCodePointCount, const UnigramProperty *const unigramProperty,
|
D | pt_node_writer.h | 59 const UnigramProperty *const unigramProperty) = 0; 72 const UnigramProperty *const unigramProperty, int *const ptNodeWritingPos) = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | jni_data_utils.cpp | 36 const UnigramProperty &unigramProperty = wordProperty.getUnigramProperty(); in outputWordProperty() local 38 jboolean flags[] = {unigramProperty.isNotAWord(), unigramProperty.isPossiblyOffensive(), in outputWordProperty() 39 !ngrams.empty(), unigramProperty.hasShortcuts(), in outputWordProperty() 40 unigramProperty.representsBeginningOfSentence()}; in outputWordProperty() 42 const HistoricalInfo &historicalInfo = unigramProperty.getHistoricalInfo(); in outputWordProperty() 43 int probabilityInfo[] = {unigramProperty.getProbability(), historicalInfo.getTimestamp(), in outputWordProperty() 98 for (const auto &shortcut : unigramProperty.getShortcuts()) { in outputWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | probability_entry.h | 51 ProbabilityEntry(const UnigramProperty *const unigramProperty) in ProbabilityEntry() argument 52 : mFlags(createFlags(unigramProperty->representsBeginningOfSentence(), in ProbabilityEntry() 53 unigramProperty->isNotAWord(), unigramProperty->isBlacklisted(), in ProbabilityEntry() 54 unigramProperty->isPossiblyOffensive())), in ProbabilityEntry() 55 mProbability(unigramProperty->getProbability()), in ProbabilityEntry() 56 mHistoricalInfo(unigramProperty->getHistoricalInfo()) {} in ProbabilityEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 180 const UnigramProperty *const unigramProperty) { in addUnigramEntry() argument 195 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() 208 if (unigramProperty->representsBeginningOfSentence()) { in addUnigramEntry() 216 if (mUpdatingHelper.addUnigramWord(&readingHelper, codePointArrayView, unigramProperty, in addUnigramEntry() 218 if (addedNewUnigram && !unigramProperty->representsBeginningOfSentence()) { in addUnigramEntry() 221 if (unigramProperty->getShortcuts().size() > 0) { in addUnigramEntry() 230 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() 385 const UnigramProperty unigramProperty(false /* representsBeginningOfSentence */, in updateEntriesForWordWithNgramContext() local 389 if (!addUnigramEntry(wordCodePoints, &unigramProperty)) { in updateEntriesForWordWithNgramContext() 565 const UnigramProperty unigramProperty(probabilityEntry.representsBeginningOfSentence(), in getWordProperty() local [all …]
|
D | ver4_patricia_trie_node_writer.cpp | 139 const UnigramProperty *const unigramProperty) { in updatePtNodeUnigramProperty() argument 145 const ProbabilityEntry probabilityEntryOfUnigramProperty = ProbabilityEntry(unigramProperty); in updatePtNodeUnigramProperty() 191 const PtNodeParams *const ptNodeParams, const UnigramProperty *const unigramProperty, in writeNewTerminalPtNodeAndAdvancePosition() argument 200 const ProbabilityEntry probabilityEntryOfUnigramProperty = ProbabilityEntry(unigramProperty); in writeNewTerminalPtNodeAndAdvancePosition()
|
D | ver4_patricia_trie_node_writer.h | 58 const UnigramProperty *const unigramProperty); 73 const UnigramProperty *const unigramProperty, int *const ptNodeWritingPos);
|
D | ver4_patricia_trie_policy.h | 90 const UnigramProperty *const unigramProperty);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 267 const UnigramProperty *const unigramProperty) { in addUnigramEntry() argument 282 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() 295 if (unigramProperty->representsBeginningOfSentence()) { in addUnigramEntry() 303 if (mUpdatingHelper.addUnigramWord(&readingHelper, codePointArrayView, unigramProperty, in addUnigramEntry() 305 if (addedNewUnigram && !unigramProperty->representsBeginningOfSentence()) { in addUnigramEntry() 308 if (unigramProperty->getShortcuts().size() > 0) { in addUnigramEntry() 316 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() 458 const UnigramProperty unigramProperty(false /* representsBeginningOfSentence */, in updateEntriesForWordWithNgramContext() local 460 if (!addUnigramEntry(wordCodePoints, &unigramProperty)) { in updateEntriesForWordWithNgramContext() 617 const UnigramProperty unigramProperty(ptNodeParams.representsBeginningOfSentence(), in getWordProperty() local [all …]
|
D | ver4_patricia_trie_node_writer.cpp | 148 const UnigramProperty *const unigramProperty) { in updatePtNodeUnigramProperty() argument 158 unigramProperty); in updatePtNodeUnigramProperty() 219 const PtNodeParams *const ptNodeParams, const UnigramProperty *const unigramProperty, in writeNewTerminalPtNodeAndAdvancePosition() argument 229 &newProbabilityEntry, unigramProperty); in writeNewTerminalPtNodeAndAdvancePosition() 397 const UnigramProperty *const unigramProperty) const { in createUpdatedEntryFrom() 400 const HistoricalInfo &historicalInfoForUpdate = unigramProperty->getHistoricalInfo(); in createUpdatedEntryFrom() 404 unigramProperty->getProbability(), &historicalInfoForUpdate, mHeaderPolicy); in createUpdatedEntryFrom() 409 unigramProperty->getProbability()); in createUpdatedEntryFrom()
|
D | ver4_patricia_trie_node_writer.h | 79 const UnigramProperty *const unigramProperty); 94 const UnigramProperty *const unigramProperty, int *const ptNodeWritingPos); 131 const UnigramProperty *const unigramProperty) const;
|
D | ver4_patricia_trie_policy.h | 111 const UnigramProperty *const unigramProperty);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | dictionary.cpp | 130 const UnigramProperty *const unigramProperty) { in addUnigramEntry() argument 131 if (unigramProperty->representsBeginningOfSentence() in addUnigramEntry() 138 return mDictionaryStructureWithBufferPolicy->addUnigramEntry(codePoints, unigramProperty); in addUnigramEntry()
|
D | dictionary.h | 85 const UnigramProperty *const unigramProperty);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | word_property.h | 36 WordProperty(const std::vector<int> &&codePoints, const UnigramProperty &unigramProperty, in WordProperty() argument 38 : mCodePoints(std::move(codePoints)), mUnigramProperty(unigramProperty), in WordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 478 const UnigramProperty unigramProperty(ptNodeParams.representsBeginningOfSentence(), in getWordProperty() local 481 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams); in getWordProperty()
|
D | patricia_trie_policy.h | 84 const UnigramProperty *const unigramProperty) { in addUnigramEntry() argument
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
D | dictionary_structure_with_buffer_policy.h | 77 const UnigramProperty *const unigramProperty) = 0;
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 379 const UnigramProperty unigramProperty(isBeginningOfSentence, isNotAWord, in latinime_BinaryDictionary_addUnigramEntry() local 383 &unigramProperty); in latinime_BinaryDictionary_addUnigramEntry()
|