/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/ |
D | ver4_bigram_list_policy.cpp | 63 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry) { in addNewEntry() argument 82 ngramProperty); in addNewEntry() 115 &newBigramEntry, ngramProperty); in addNewEntry() 141 &updatedBigramEntry, ngramProperty); in addNewEntry() 267 const NgramProperty *const ngramProperty) const { in createUpdatedBigramEntryFrom() 270 const HistoricalInfo &historicalInfoForUpdate = ngramProperty->getHistoricalInfo(); in createUpdatedBigramEntryFrom() 273 originalBigramEntry->getHistoricalInfo(), ngramProperty->getProbability(), in createUpdatedBigramEntryFrom() 277 return originalBigramEntry->updateProbabilityAndGetEntry(ngramProperty->getProbability()); in createUpdatedBigramEntryFrom()
|
D | ver4_bigram_list_policy.h | 67 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry); 83 const NgramProperty *const ngramProperty) const;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CombinedFormatUtils.java | 73 for (final NgramProperty ngramProperty : wordProperty.mNgrams) { in formatWordProperty() 74 builder.append(" " + NGRAM_TAG + "=" + ngramProperty.mTargetWord.mWord); in formatWordProperty() 76 builder.append(formatProbabilityInfo(ngramProperty.mTargetWord.mProbabilityInfo)); in formatWordProperty() 78 for (int i = 0; i < ngramProperty.mNgramContext.getPrevWordCount(); i++) { in formatWordProperty() 80 + ngramProperty.mNgramContext.getNthPrevWord(i + 1)); in formatWordProperty() 81 if (ngramProperty.mNgramContext.isNthPrevWordBeginningOfSentence(i + 1)) { in formatWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | jni_data_utils.cpp | 55 for (const auto &ngramProperty : ngrams) { in outputWordProperty() local 56 const NgramContext *const ngramContext = ngramProperty.getNgramContext(); in outputWordProperty() 78 const std::vector<int> *const targetWordCodePoints = ngramProperty.getTargetCodePoints(); in outputWordProperty() 86 const HistoricalInfo &ngramHistoricalInfo = ngramProperty.getHistoricalInfo(); in outputWordProperty() 87 int bigramProbabilityInfo[] = {ngramProperty.getProbability(), in outputWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 347 bool Ver4PatriciaTriePolicy::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry() argument 357 const NgramContext *const ngramContext = ngramProperty->getNgramContext(); in addNgramEntry() 362 if (ngramProperty->getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addNgramEntry() 364 "length: %zd", ngramProperty->getTargetCodePoints()->size()); in addNgramEntry() 390 CodePointArrayView(*ngramProperty->getTargetCodePoints()), in addNgramEntry() 398 wordPos, ngramProperty, &addedNewBigram)) { in addNgramEntry() 466 const NgramProperty ngramProperty(*ngramContext, wordCodePoints.toVector(), probabilityForNgram, in updateEntriesForWordWithNgramContext() local 468 if (!addNgramEntry(&ngramProperty)) { in updateEntriesForWordWithNgramContext()
|
D | ver4_patricia_trie_node_writer.cpp | 235 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry) { in addNgramEntry() argument 236 if (!mBigramPolicy->addNewEntry(prevWordIds[0], wordId, ngramProperty, outAddedNewEntry)) { in addNgramEntry()
|
D | ver4_patricia_trie_node_writer.h | 97 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
|
D | ver4_patricia_trie_policy.h | 115 bool addNgramEntry(const NgramProperty *const ngramProperty);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 272 bool Ver4PatriciaTriePolicy::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry() argument 282 const NgramContext *const ngramContext = ngramProperty->getNgramContext(); in addNgramEntry() 287 if (ngramProperty->getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addNgramEntry() 289 "length: %zd", ngramProperty->getTargetCodePoints()->size()); in addNgramEntry() 317 const int wordId = getWordId(CodePointArrayView(*ngramProperty->getTargetCodePoints()), in addNgramEntry() 323 if (mNodeWriter.addNgramEntry(prevWordIds, wordId, ngramProperty, &addedNewEntry)) { in addNgramEntry()
|
D | ver4_patricia_trie_node_writer.cpp | 207 const NgramProperty *const ngramProperty, bool *const outAddedNewBigram) { in addNgramEntry() argument 212 const ProbabilityEntry probabilityEntryOfNgramProperty(ngramProperty); in addNgramEntry()
|
D | ver4_patricia_trie_node_writer.h | 76 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
|
D | ver4_patricia_trie_policy.h | 94 bool addNgramEntry(const NgramProperty *const ngramProperty);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | probability_entry.h | 60 ProbabilityEntry(const NgramProperty *const ngramProperty) in ProbabilityEntry() argument 61 : mFlags(0), mProbability(ngramProperty->getProbability()), in ProbabilityEntry() 62 mHistoricalInfo(ngramProperty->getHistoricalInfo()) {} in ProbabilityEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | dictionary.cpp | 146 bool Dictionary::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry() argument 148 return mDictionaryStructureWithBufferPolicy->addNgramEntry(ngramProperty); in addNgramEntry()
|
D | dictionary.h | 89 bool addNgramEntry(const NgramProperty *const ngramProperty);
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 412 const NgramProperty ngramProperty(ngramContext, in latinime_BinaryDictionary_addNgramEntry() local 415 return dictionary->addNgramEntry(&ngramProperty); in latinime_BinaryDictionary_addNgramEntry() 607 for (const NgramProperty &ngramProperty : wordProperty.getNgramProperties()) { in latinime_BinaryDictionary_migrateNative() local 608 if (!dictionaryStructureWithBufferPolicy->addNgramEntry(&ngramProperty)) { in latinime_BinaryDictionary_migrateNative()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.cpp | 85 const int wordPos, const NgramProperty *const ngramProperty, in addNgramEntry() argument 99 return mPtNodeWriter->addNgramEntry(prevWordIds, wordId, ngramProperty, outAddedNewEntry); in addNgramEntry()
|
D | pt_node_writer.h | 75 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry) = 0;
|
D | dynamic_pt_updating_helper.h | 49 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
D | dictionary_structure_with_buffer_policy.h | 83 virtual bool addNgramEntry(const NgramProperty *const ngramProperty) = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.h | 96 bool addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry() argument
|