/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | unigram_property.h | 59 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty() argument 63 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} in UnigramProperty() 68 const HistoricalInfo historicalInfo) in UnigramProperty() argument 72 mHistoricalInfo(historicalInfo), mShortcuts() {} in UnigramProperty() 77 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty() argument 81 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} in UnigramProperty() 86 const HistoricalInfo historicalInfo) in UnigramProperty() argument 90 mHistoricalInfo(historicalInfo), mShortcuts() {} in UnigramProperty()
|
D | ngram_property.h | 31 const int probability, const HistoricalInfo historicalInfo) in NgramProperty() argument 33 mProbability(probability), mHistoricalInfo(historicalInfo) {} in NgramProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | bigram_dict_content.cpp | 70 const HistoricalInfo historicalInfo(timestamp, level, count); in getBigramEntryAndAdvancePosition() local 71 return BigramEntry(hasNext, probability, &historicalInfo, targetTerminalId); in getBigramEntryAndAdvancePosition() 87 const HistoricalInfo *const historicalInfo = bigramEntryToWrite->getHistoricalInfo(); in writeBigramEntryAndAdvancePosition() local 88 if (!bigramListBuffer->writeUintAndAdvancePosition(historicalInfo->getTimestamp(), in writeBigramEntryAndAdvancePosition() 91 historicalInfo->getTimestamp()); in writeBigramEntryAndAdvancePosition() 94 if (!bigramListBuffer->writeUintAndAdvancePosition(historicalInfo->getLevel(), in writeBigramEntryAndAdvancePosition() 97 historicalInfo->getLevel()); in writeBigramEntryAndAdvancePosition() 100 if (!bigramListBuffer->writeUintAndAdvancePosition(historicalInfo->getCount(), in writeBigramEntryAndAdvancePosition() 103 historicalInfo->getCount()); in writeBigramEntryAndAdvancePosition()
|
D | probability_dict_content.cpp | 54 const HistoricalInfo historicalInfo(timestamp, level, count + level); in getProbabilityEntry() local 55 return ProbabilityEntry(flags, probability, &historicalInfo); in getProbabilityEntry() 150 const HistoricalInfo *const historicalInfo = probabilityEntry->getHistoricalInfo(); in writeEntry() local 151 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getTimestamp(), in writeEntry() 156 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getLevel(), in writeEntry() 161 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getCount(), in writeEntry()
|
D | probability_entry.h | 51 const HistoricalInfo *const historicalInfo) in ProbabilityEntry() argument 52 : mFlags(flags), mProbability(probability), mHistoricalInfo(*historicalInfo) {} in ProbabilityEntry() 59 const HistoricalInfo *const historicalInfo) const { in createEntryWithUpdatedHistoricalInfo() argument 60 return ProbabilityEntry(mFlags, mProbability, historicalInfo); in createEntryWithUpdatedHistoricalInfo()
|
D | bigram_entry.h | 48 const HistoricalInfo *const historicalInfo, const int targetTerminalId) in BigramEntry() argument 49 : mHasNext(hasNext), mProbability(probability), mHistoricalInfo(*historicalInfo), in BigramEntry() 69 const HistoricalInfo *const historicalInfo) const { in updateHistoricalInfoAndGetEntry() argument 70 return BigramEntry(mHasNext, mProbability, historicalInfo, mTargetTerminalId); in updateHistoricalInfoAndGetEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | dynamic_language_model_probability_utils.h | 43 static int getDecayedProbability(const int probability, const HistoricalInfo historicalInfo) { in getDecayedProbability() argument 44 const int elapsedTime = TimeKeeper::peekCurrentTime() - historicalInfo.getTimestamp(); in getDecayedProbability() 54 static int shouldRemoveEntryDuringGC(const HistoricalInfo historicalInfo) { in shouldRemoveEntryDuringGC() argument 56 const int elapsedTime = TimeKeeper::peekCurrentTime() - historicalInfo.getTimestamp(); in shouldRemoveEntryDuringGC() 60 static int getPriorityToPreventFromEviction(const HistoricalInfo historicalInfo) { in getPriorityToPreventFromEviction() argument 63 return historicalInfo.getTimestamp(); in getPriorityToPreventFromEviction()
|
D | language_model_dict_content.cpp | 75 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordAttributes() local 87 && historicalInfo->getCount() == 1) { in getWordAttributes() 96 historicalInfo->getCount(), contextCount, ngramType); in getWordAttributes() 101 encodedRawProbability, *historicalInfo); in getWordAttributes() 221 const int wordId, const bool isValid, const HistoricalInfo historicalInfo, in updateAllEntriesOnInputWord() argument 229 originalUnigramProbabilityEntry, isValid, historicalInfo, headerPolicy); in updateAllEntriesOnInputWord() 245 originalNgramProbabilityEntry, isValid, historicalInfo, headerPolicy); in updateAllEntriesOnInputWord() 263 const HistoricalInfo historicalInfo, const HeaderPolicy *const headerPolicy) const { in createUpdatedEntryFrom() argument 264 const HistoricalInfo updatedHistoricalInfo = HistoricalInfo(historicalInfo.getTimestamp(), in createUpdatedEntryFrom() 266 + historicalInfo.getCount()); in createUpdatedEntryFrom()
|
D | probability_entry.h | 47 ProbabilityEntry(const int flags, const HistoricalInfo *const historicalInfo) in ProbabilityEntry() argument 48 : mFlags(flags), mProbability(NOT_A_PROBABILITY), mHistoricalInfo(*historicalInfo) {} in ProbabilityEntry() 132 const HistoricalInfo historicalInfo(timestamp, level, count); in decode() 133 return ProbabilityEntry(flags, &historicalInfo); in decode()
|
D | language_model_dict_content.h | 200 const bool isValid, const HistoricalInfo historicalInfo, 251 const bool isValid, const HistoricalInfo historicalInfo,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | forgetting_curve_utils.cpp | 87 const HistoricalInfo *const historicalInfo, const HeaderPolicy *const headerPolicy) { in decodeProbability() argument 88 const int elapsedTimeStepCount = getElapsedTimeStepCount(historicalInfo->getTimestamp(), in decodeProbability() 92 clampToValidLevelRange(historicalInfo->getLevel()), in decodeProbability() 96 /* static */ bool ForgettingCurveUtils::needsToKeep(const HistoricalInfo *const historicalInfo, in needsToKeep() argument 98 return historicalInfo->getLevel() > 0 in needsToKeep() 99 || getElapsedTimeStepCount(historicalInfo->getTimestamp(), in needsToKeep()
|
D | forgetting_curve_utils.h | 40 static int decodeProbability(const HistoricalInfo *const historicalInfo, 43 static bool needsToKeep(const HistoricalInfo *const historicalInfo,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 374 const bool isValidWord, const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext() argument 387 NOT_A_PROBABILITY, HistoricalInfo(historicalInfo.getTimestamp(), 0 /* level */, in updateEntriesForWordWithNgramContext() 407 HistoricalInfo(historicalInfo.getTimestamp(), 0 /* level */, 0 /* count */)); in updateEntriesForWordWithNgramContext() 418 prevWordIds.skip(1 /* n */), prevWordIds[0], true /* isVaild */, historicalInfo, in updateEntriesForWordWithNgramContext() 424 wordId, updateAsAValidWord, historicalInfo, mHeaderPolicy, &mEntryCounters)) { in updateEntriesForWordWithNgramContext() 537 const HistoricalInfo *const historicalInfo = ngramProbabilityEntry.getHistoricalInfo(); in getWordProperty() local 541 entry.getWordAttributes().getProbability(), *historicalInfo); in getWordProperty() 564 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordProperty() local 568 *historicalInfo, std::move(shortcuts)); in getWordProperty()
|
D | ver4_patricia_trie_policy.h | 101 const HistoricalInfo historicalInfo);
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | jni_data_utils.cpp | 42 const HistoricalInfo &historicalInfo = unigramProperty.getHistoricalInfo(); in outputWordProperty() local 43 int probabilityInfo[] = {unigramProperty.getProbability(), historicalInfo.getTimestamp(), in outputWordProperty() 44 historicalInfo.getLevel(), historicalInfo.getCount()}; in outputWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 451 const bool isValidWord, const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext() argument 459 false /* isNotAWord */, false /*isBlacklisted*/, probability, historicalInfo); in updateEntriesForWordWithNgramContext() 467 historicalInfo); in updateEntriesForWordWithNgramContext() 561 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordProperty() local 585 const HistoricalInfo *const historicalInfo = bigramEntry.getHistoricalInfo(); in getWordProperty() local 596 probability, *historicalInfo); in getWordProperty() 619 ptNodeParams.getProbability(), *historicalInfo, std::move(shortcuts)); in getWordProperty()
|
D | ver4_patricia_trie_node_writer.cpp | 173 const HistoricalInfo historicalInfo = ForgettingCurveUtils::createHistoricalInfoToSave( in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC() local 176 originalProbabilityEntry.createEntryWithUpdatedHistoricalInfo(&historicalInfo); in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC() 183 const bool isValid = ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy); in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
|
D | ver4_patricia_trie_policy.h | 122 const HistoricalInfo historicalInfo);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/ |
D | ver4_bigram_list_policy.cpp | 193 const HistoricalInfo historicalInfo = ForgettingCurveUtils::createHistoricalInfoToSave( in updateAllBigramEntriesAndDeleteUselessEntries() local 195 if (ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy)) { in updateAllBigramEntriesAndDeleteUselessEntries() 197 bigramEntry.updateHistoricalInfoAndGetEntry(&historicalInfo); in updateAllBigramEntriesAndDeleteUselessEntries()
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/ |
D | probability_entry_test.cpp | 44 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count); in TEST() local 45 const ProbabilityEntry entry(flag, &historicalInfo); in TEST()
|
D | language_model_dict_content_test.cpp | 57 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count); in TEST() local 58 const ProbabilityEntry probabilityEntry(flag, &historicalInfo); in TEST()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | dictionary.cpp | 159 const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext() argument 162 codePoints, isValidWord, historicalInfo); in updateEntriesForWordWithNgramContext()
|
D | dictionary.h | 96 const HistoricalInfo historicalInfo);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
D | dictionary_structure_with_buffer_policy.h | 92 const HistoricalInfo historicalInfo) = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.h | 111 const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext() argument
|