/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
dynamic_language_model_probability_utils.h | 43 static int getDecayedProbability(const int probability, const HistoricalInfo historicalInfo) { 44 const int elapsedTime = TimeKeeper::peekCurrentTime() - historicalInfo.getTimestamp(); 54 static int shouldRemoveEntryDuringGC(const HistoricalInfo historicalInfo) { 56 const int elapsedTime = TimeKeeper::peekCurrentTime() - historicalInfo.getTimestamp(); 60 static int getPriorityToPreventFromEviction(const HistoricalInfo historicalInfo) { 63 return historicalInfo.getTimestamp();
|
probability_entry.h | 47 ProbabilityEntry(const int flags, const HistoricalInfo *const historicalInfo) 48 : mFlags(flags), mProbability(NOT_A_PROBABILITY), mHistoricalInfo(*historicalInfo) {} 80 const HistoricalInfo *getHistoricalInfo() const { 132 const HistoricalInfo historicalInfo(timestamp, level, count); 133 return ProbabilityEntry(flags, &historicalInfo); 150 const HistoricalInfo mHistoricalInfo;
|
language_model_dict_content.cpp | 75 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); 87 && historicalInfo->getCount() == 1) { 96 historicalInfo->getCount(), contextCount, ngramType); 101 encodedRawProbability, *historicalInfo); 221 const int wordId, const bool isValid, const HistoricalInfo historicalInfo, 229 originalUnigramProbabilityEntry, isValid, historicalInfo, headerPolicy); 245 originalNgramProbabilityEntry, isValid, historicalInfo, headerPolicy); 263 const HistoricalInfo historicalInfo, const HeaderPolicy *const headerPolicy) const [all...] |
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/structure/backward/v402/content/ |
probability_entry.h | 51 const HistoricalInfo *const historicalInfo) 52 : mFlags(flags), mProbability(probability), mHistoricalInfo(*historicalInfo) {} 59 const HistoricalInfo *const historicalInfo) const { 60 return ProbabilityEntry(mFlags, mProbability, historicalInfo); 75 const HistoricalInfo *getHistoricalInfo() const { 85 const HistoricalInfo mHistoricalInfo;
|
bigram_entry.h | 48 const HistoricalInfo *const historicalInfo, const int targetTerminalId) 49 : mHasNext(hasNext), mProbability(probability), mHistoricalInfo(*historicalInfo), 69 const HistoricalInfo *const historicalInfo) const { 70 return BigramEntry(mHasNext, mProbability, historicalInfo, mTargetTerminalId); 89 const HistoricalInfo *getHistoricalInfo() const { 104 const HistoricalInfo mHistoricalInfo;
|
probability_dict_content.cpp | 54 const HistoricalInfo historicalInfo(timestamp, level, count + level); 55 return ProbabilityEntry(flags, probability, &historicalInfo); 148 const HistoricalInfo *const historicalInfo = probabilityEntry->getHistoricalInfo(); 149 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getTimestamp(), 154 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getLevel(), 159 if (!bufferToWrite->writeUintAndAdvancePosition(historicalInfo->getCount(),
|
bigram_dict_content.cpp | 70 const HistoricalInfo historicalInfo(timestamp, level, count); 71 return BigramEntry(hasNext, probability, &historicalInfo, targetTerminalId); 87 const HistoricalInfo *const historicalInfo = bigramEntryToWrite->getHistoricalInfo(); 88 if (!bigramListBuffer->writeUintAndAdvancePosition(historicalInfo->getTimestamp(), 91 historicalInfo->getTimestamp()); 94 if (!bigramListBuffer->writeUintAndAdvancePosition(historicalInfo->getLevel(), 97 historicalInfo->getLevel()); 100 if (!bigramListBuffer->writeUintAndAdvancePosition(historicalInfo->getCount() [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
unigram_property.h | 59 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) 63 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} 68 const HistoricalInfo historicalInfo) 72 mHistoricalInfo(historicalInfo), mShortcuts() {} 77 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) 81 mHistoricalInfo(historicalInfo), mShortcuts(std::move(shortcuts)) {} 86 const HistoricalInfo historicalInfo [all...] |
ngram_property.h | 31 const int probability, const HistoricalInfo historicalInfo) 33 mProbability(probability), mHistoricalInfo(historicalInfo) {} 47 const HistoricalInfo getHistoricalInfo() const { 59 const HistoricalInfo mHistoricalInfo;
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/ |
probability_entry_test.cpp | 44 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count); 45 const ProbabilityEntry entry(flag, &historicalInfo);
|
language_model_dict_content_test.cpp | 57 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count); 58 const ProbabilityEntry probabilityEntry(flag, &historicalInfo);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
forgetting_curve_utils.h | 32 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,
|
forgetting_curve_utils.cpp | 46 /* static */ const HistoricalInfo ForgettingCurveUtils::createUpdatedHistoricalInfo( 47 const HistoricalInfo *const originalHistoricalInfo, const int newProbability, 48 const HistoricalInfo *const newHistoricalInfo, const HeaderPolicy *const headerPolicy) { 54 return HistoricalInfo(timestamp, level, count); 63 return HistoricalInfo(timestamp, level, 0 /* count */); 66 return HistoricalInfo(timestamp, level, clampToValidCountRange(count, headerPolicy)); 73 return HistoricalInfo(timestamp, 77 return HistoricalInfo(timestamp, 81 return HistoricalInfo(timestamp, originalHistoricalInfo->getLevel(), updatedCount); 87 const HistoricalInfo *const historicalInfo, const HeaderPolicy *const headerPolicy) [all...] |
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
jni_data_utils.cpp | 42 const HistoricalInfo &historicalInfo = unigramProperty.getHistoricalInfo(); 43 int probabilityInfo[] = {unigramProperty.getProbability(), historicalInfo.getTimestamp(), 44 historicalInfo.getLevel(), historicalInfo.getCount()}; 86 const HistoricalInfo &ngramHistoricalInfo = ngramProperty.getHistoricalInfo();
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
dictionary_structure_with_buffer_policy.h | 92 const HistoricalInfo historicalInfo) = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
ver4_patricia_trie_policy.cpp | 308 MAX_PROBABILITY /* probability */, HistoricalInfo()); 374 const bool isValidWord, const HistoricalInfo historicalInfo) { 387 NOT_A_PROBABILITY, HistoricalInfo(historicalInfo.getTimestamp(), 0 /* level */, 407 HistoricalInfo(historicalInfo.getTimestamp(), 0 /* level */, 0 /* count */)); 418 prevWordIds.skip(1 /* n */), prevWordIds[0], true /* isVaild */, historicalInfo, 424 wordId, updateAsAValidWord, historicalInfo, mHeaderPolicy, &mEntryCounters)) { 537 const HistoricalInfo *const historicalInfo = ngramProbabilityEntry.getHistoricalInfo() [all...] |
ver4_patricia_trie_policy.h | 101 const HistoricalInfo historicalInfo);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
dictionary.h | 96 const HistoricalInfo historicalInfo);
|
dictionary.cpp | 159 const HistoricalInfo historicalInfo) { 162 codePoints, isValidWord, historicalInfo);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/ |
ver4_bigram_list_policy.cpp | 193 const HistoricalInfo historicalInfo = ForgettingCurveUtils::createHistoricalInfoToSave( 195 if (ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy)) { 197 bigramEntry.updateHistoricalInfoAndGetEntry(&historicalInfo); 270 const HistoricalInfo &historicalInfoForUpdate = ngramProperty->getHistoricalInfo(); 271 const HistoricalInfo updatedHistoricalInfo =
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
ver4_patricia_trie_policy.cpp | 377 false /* isBlacklisted */, MAX_PROBABILITY /* probability */, HistoricalInfo()); 451 const bool isValidWord, const HistoricalInfo historicalInfo) { 459 false /* isNotAWord */, false /*isBlacklisted*/, probability, historicalInfo); 467 historicalInfo); 561 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); 585 const HistoricalInfo *const historicalInfo = bigramEntry.getHistoricalInfo(); 596 probability, *historicalInfo); [all...] |
ver4_patricia_trie_policy.h | 122 const HistoricalInfo historicalInfo);
|
ver4_patricia_trie_node_writer.cpp | 173 const HistoricalInfo historicalInfo = ForgettingCurveUtils::createHistoricalInfoToSave( 176 originalProbabilityEntry.createEntryWithUpdatedHistoricalInfo(&historicalInfo); 183 const bool isValid = ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy); 400 const HistoricalInfo &historicalInfoForUpdate = unigramProperty->getHistoricalInfo(); 401 const HistoricalInfo updatedHistoricalInfo = 433 const HistoricalInfo suppressedHistorycalInfo(0 /* timestamp */, 0 /* level */, 0 /* count */);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
patricia_trie_policy.h | 111 const HistoricalInfo historicalInfo) {
|