Home
last modified time | relevance | path

Searched refs:prevWordCount (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp201 for (int prevWordCount = 0; prevWordCount <= MAX_PREV_WORD_COUNT_FOR_N_GRAM; ++prevWordCount) { in truncateEntries() local
202 const int totalWordCount = prevWordCount + 1; in truncateEntries()
212 maxEntryCounts.getNgramCount(ngramType), prevWordCount, &entryCount)) { in truncateEntries()
331 const int prevWordCount, const HeaderPolicy *const headerPolicy, in updateAllProbabilityEntriesForGCInner() argument
334 if (prevWordCount > MAX_PREV_WORD_COUNT_FOR_N_GRAM) { in updateAllProbabilityEntriesForGCInner()
336 prevWordCount, MAX_PREV_WORD_COUNT_FOR_N_GRAM); in updateAllProbabilityEntriesForGCInner()
341 if (prevWordCount > 0 && probabilityEntry.isValid() in updateAllProbabilityEntriesForGCInner()
379 NgramUtils::getNgramTypeFromWordCount(prevWordCount + 1)); in updateAllProbabilityEntriesForGCInner()
384 prevWordCount + 1, headerPolicy, needsToHalveCounters, outEntryCounters)) { in updateAllProbabilityEntriesForGCInner()
423 const int prevWordCount = prevWordIds->size(); in getEntryInfo() local
[all …]
Dlanguage_model_dict_content.h218 const int prevWordCount, const int *const prevWordIds);
242 bool updateAllProbabilityEntriesForGCInner(const int bitmapEntryIndex, const int prevWordCount,
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.h103 jbooleanArray isBeginningOfSentenceArray, const size_t prevWordCount) { in constructNgramContext() argument
107 for (size_t i = 0; i < prevWordCount; ++i) { in constructNgramContext()
127 prevWordCount); in constructNgramContext()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dngram_context.cpp38 const size_t prevWordCount) in NgramContext() argument
39 : mPrevWordCount(std::min(NELEMS(mPrevWordCodePoints), prevWordCount)) { in NgramContext()
Dngram_context.h38 const size_t prevWordCount);
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp183 jint prevWordCount, jintArray outSuggestionCount, jintArray outCodePointsArray, in latinime_BinaryDictionary_getSuggestions() argument
246 prevWordCodePointArrays, isBeginningOfSentenceArray, prevWordCount); in latinime_BinaryDictionary_getSuggestions()
488 jint prevWordCount = env->GetIntField(inputEvent, prevWordCountFieldId); in latinime_BinaryDictionary_updateEntriesForInputEvents() local
496 prevWordArray, isPrevWordBeginningOfSentenceArray, prevWordCount); in latinime_BinaryDictionary_updateEntriesForInputEvents()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java197 int prevWordCount, int[] outputSuggestionCount, int[] outputCodePoints, in getSuggestionsNative() argument