Home
last modified time | relevance | path

Searched refs:historicalInfo (Results 1 – 25 of 26) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dunigram_property.h59 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()
Dngram_property.h31 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/
Dbigram_dict_content.cpp70 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()
Dprobability_dict_content.cpp54 const HistoricalInfo historicalInfo(timestamp, level, count + level); in getProbabilityEntry() local
55 return ProbabilityEntry(flags, probability, &historicalInfo); in getProbabilityEntry()
148 const HistoricalInfo *const historicalInfo = probabilityEntry->getHistoricalInfo(); in writeEntry() local
149 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getTimestamp(), in writeEntry()
154 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getLevel(), in writeEntry()
159 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getCount(), in writeEntry()
Dprobability_entry.h51 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()
Dbigram_entry.h48 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/
Ddynamic_language_model_probability_utils.h43 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()
Dlanguage_model_dict_content.cpp75 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()
Dprobability_entry.h47 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()
Dlanguage_model_dict_content.h200 const bool isValid, const HistoricalInfo historicalInfo,
251 const bool isValid, const HistoricalInfo historicalInfo,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp374 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()
Dver4_patricia_trie_policy.h101 const HistoricalInfo historicalInfo);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dforgetting_curve_utils.cpp87 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()
Dforgetting_curve_utils.h40 static int decodeProbability(const HistoricalInfo *const historicalInfo,
43 static bool needsToKeep(const HistoricalInfo *const historicalInfo,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp451 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()
Dver4_patricia_trie_node_writer.cpp173 const HistoricalInfo historicalInfo = ForgettingCurveUtils::createHistoricalInfoToSave( in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC() local
176 originalProbabilityEntry.createEntryWithUpdatedHistoricalInfo(&historicalInfo); in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
183 const bool isValid = ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy); in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
Dver4_patricia_trie_policy.h122 const HistoricalInfo historicalInfo);
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp42 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/bigram/
Dver4_bigram_list_policy.cpp193 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/
Dprobability_entry_test.cpp44 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count); in TEST() local
45 const ProbabilityEntry entry(flag, &historicalInfo); in TEST()
Dlanguage_model_dict_content_test.cpp57 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/
Ddictionary.cpp159 const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext() argument
162 codePoints, isValidWord, historicalInfo); in updateEntriesForWordWithNgramContext()
Ddictionary.h96 const HistoricalInfo historicalInfo);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h92 const HistoricalInfo historicalInfo) = 0;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.h111 const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext() argument

12