Home
last modified time | relevance | path

Searched refs:HistoricalInfo (Results 1 – 25 of 28) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dforgetting_curve_utils.cpp46 /* static */ const HistoricalInfo ForgettingCurveUtils::createUpdatedHistoricalInfo( in createUpdatedHistoricalInfo()
47 const HistoricalInfo *const originalHistoricalInfo, const int newProbability, in createUpdatedHistoricalInfo()
48 const HistoricalInfo *const newHistoricalInfo, const HeaderPolicy *const headerPolicy) { in createUpdatedHistoricalInfo()
54 return HistoricalInfo(timestamp, level, count); in createUpdatedHistoricalInfo()
63 return HistoricalInfo(timestamp, level, 0 /* count */); in createUpdatedHistoricalInfo()
66 return HistoricalInfo(timestamp, level, clampToValidCountRange(count, headerPolicy)); in createUpdatedHistoricalInfo()
73 return HistoricalInfo(timestamp, in createUpdatedHistoricalInfo()
77 return HistoricalInfo(timestamp, in createUpdatedHistoricalInfo()
81 return HistoricalInfo(timestamp, originalHistoricalInfo->getLevel(), updatedCount); in createUpdatedHistoricalInfo()
87 const HistoricalInfo *const historicalInfo, const HeaderPolicy *const headerPolicy) { in decodeProbability()
[all …]
Dforgetting_curve_utils.h32 static const HistoricalInfo createUpdatedHistoricalInfo(
33 const HistoricalInfo *const originalHistoricalInfo, const int newProbability,
34 const HistoricalInfo *const newHistoricalInfo, const HeaderPolicy *const headerPolicy);
36 static const HistoricalInfo createHistoricalInfoToSave(
37 const HistoricalInfo *const originalHistoricalInfo,
40 static int decodeProbability(const HistoricalInfo *const historicalInfo,
43 static bool needsToKeep(const HistoricalInfo *const historicalInfo,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dunigram_property.h59 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty()
68 const HistoricalInfo historicalInfo) in UnigramProperty()
77 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty()
86 const HistoricalInfo historicalInfo) in UnigramProperty()
116 const HistoricalInfo getHistoricalInfo() const { in getHistoricalInfo()
133 const HistoricalInfo mHistoricalInfo;
Dhistorical_info.h24 class HistoricalInfo {
27 HistoricalInfo() in HistoricalInfo() function
30 HistoricalInfo(const int timestamp, const int level, const int count) in HistoricalInfo() function
52 DISALLOW_ASSIGNMENT_OPERATOR(HistoricalInfo);
Dngram_property.h31 const int probability, const HistoricalInfo historicalInfo) in NgramProperty()
47 const HistoricalInfo getHistoricalInfo() const { in getHistoricalInfo()
59 const HistoricalInfo mHistoricalInfo;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp75 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordAttributes()
221 const int wordId, const bool isValid, const HistoricalInfo historicalInfo, in updateAllEntriesOnInputWord()
263 const HistoricalInfo historicalInfo, const HeaderPolicy *const headerPolicy) const { in createUpdatedEntryFrom()
264 const HistoricalInfo updatedHistoricalInfo = HistoricalInfo(historicalInfo.getTimestamp(), in createUpdatedEntryFrom()
350 const HistoricalInfo *originalHistoricalInfo = probabilityEntry.getHistoricalInfo(); in updateAllProbabilityEntriesForGCInner()
368 const HistoricalInfo historicalInfoToSave(originalHistoricalInfo->getTimestamp(), in updateAllProbabilityEntriesForGCInner()
Dprobability_entry.h47 ProbabilityEntry(const int flags, const HistoricalInfo *const historicalInfo) in ProbabilityEntry()
80 const HistoricalInfo *getHistoricalInfo() const { in getHistoricalInfo()
132 const HistoricalInfo historicalInfo(timestamp, level, count); in decode()
150 const HistoricalInfo mHistoricalInfo;
Ddynamic_language_model_probability_utils.h43 static int getDecayedProbability(const int probability, const HistoricalInfo historicalInfo) { in getDecayedProbability()
54 static int shouldRemoveEntryDuringGC(const HistoricalInfo historicalInfo) { in shouldRemoveEntryDuringGC()
60 static int getPriorityToPreventFromEviction(const HistoricalInfo historicalInfo) { in getPriorityToPreventFromEviction()
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/backward/v402/content/
Dprobability_entry.h51 const HistoricalInfo *const historicalInfo) in ProbabilityEntry()
59 const HistoricalInfo *const historicalInfo) const { in createEntryWithUpdatedHistoricalInfo()
75 const HistoricalInfo *getHistoricalInfo() const { in getHistoricalInfo()
85 const HistoricalInfo mHistoricalInfo;
Dbigram_entry.h48 const HistoricalInfo *const historicalInfo, const int targetTerminalId) in BigramEntry()
69 const HistoricalInfo *const historicalInfo) const { in updateHistoricalInfoAndGetEntry()
89 const HistoricalInfo *getHistoricalInfo() const { in getHistoricalInfo()
104 const HistoricalInfo mHistoricalInfo;
Dprobability_dict_content.cpp54 const HistoricalInfo historicalInfo(timestamp, level, count + level); in getProbabilityEntry()
148 const HistoricalInfo *const historicalInfo = probabilityEntry->getHistoricalInfo(); in writeEntry()
Dbigram_dict_content.cpp70 const HistoricalInfo historicalInfo(timestamp, level, count); in getBigramEntryAndAdvancePosition()
87 const HistoricalInfo *const historicalInfo = bigramEntryToWrite->getHistoricalInfo(); in writeBigramEntryAndAdvancePosition()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp308 MAX_PROBABILITY /* probability */, HistoricalInfo()); in addNgramEntry()
374 const bool isValidWord, const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext()
387 NOT_A_PROBABILITY, HistoricalInfo(historicalInfo.getTimestamp(), 0 /* level */, in updateEntriesForWordWithNgramContext()
407 HistoricalInfo(historicalInfo.getTimestamp(), 0 /* level */, 0 /* count */)); in updateEntriesForWordWithNgramContext()
537 const HistoricalInfo *const historicalInfo = ngramProbabilityEntry.getHistoricalInfo(); in getWordProperty()
564 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordProperty()
Dver4_patricia_trie_policy.h101 const HistoricalInfo historicalInfo);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_writer.cpp173 const HistoricalInfo historicalInfo = ForgettingCurveUtils::createHistoricalInfoToSave( in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
400 const HistoricalInfo &historicalInfoForUpdate = unigramProperty->getHistoricalInfo(); in createUpdatedEntryFrom()
401 const HistoricalInfo updatedHistoricalInfo = in createUpdatedEntryFrom()
433 const HistoricalInfo suppressedHistorycalInfo(0 /* timestamp */, 0 /* level */, 0 /* count */); in suppressUnigramEntry()
Dver4_patricia_trie_policy.cpp377 false /* isBlacklisted */, MAX_PROBABILITY /* probability */, HistoricalInfo()); in addNgramEntry()
451 const bool isValidWord, const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext()
561 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordProperty()
585 const HistoricalInfo *const historicalInfo = bigramEntry.getHistoricalInfo(); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp193 const HistoricalInfo historicalInfo = ForgettingCurveUtils::createHistoricalInfoToSave( in updateAllBigramEntriesAndDeleteUselessEntries()
270 const HistoricalInfo &historicalInfoForUpdate = ngramProperty->getHistoricalInfo(); in createUpdatedBigramEntryFrom()
271 const HistoricalInfo updatedHistoricalInfo = in createUpdatedBigramEntryFrom()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp380 isPossiblyOffensive, probability, HistoricalInfo(timestamp, 0 /* level */, in latinime_BinaryDictionary_addUnigramEntry()
414 probability, HistoricalInfo(timestamp, 0 /* level */, 1 /* count */)); in latinime_BinaryDictionary_addNgramEntry()
449 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count); in latinime_BinaryDictionary_updateEntriesForWordWithNgramContext()
500 HistoricalInfo(timestamp, 0 /* level */, 1 /* count */)); in latinime_BinaryDictionary_updateEntriesForInputEvents()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp42 const HistoricalInfo &historicalInfo = unigramProperty.getHistoricalInfo(); in outputWordProperty()
86 const HistoricalInfo &ngramHistoricalInfo = ngramProperty.getHistoricalInfo(); in outputWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp455 probability, HistoricalInfo()); in getWordProperty()
480 ptNodeParams.getProbability(), HistoricalInfo(), std::move(shortcuts)); in getWordProperty()
Dpatricia_trie_policy.h111 const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext()
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dprobability_entry_test.cpp44 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count); in TEST()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h92 const HistoricalInfo historicalInfo) = 0;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.h96 const HistoricalInfo historicalInfo);

12