Home
last modified time | relevance | path

Searched refs:MAX_WORD_LENGTH (Results 1 – 25 of 33) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp197 if (length > MAX_WORD_LENGTH) { in addUnigramEntry()
202 if (shortcut.getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addUnigramEntry()
211 int codePointsToAdd[MAX_WORD_LENGTH]; in addUnigramEntry()
216 codePointCountToAdd, MAX_WORD_LENGTH); in addUnigramEntry()
287 if (bigramProperty->getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addNgramEntry()
350 if (length > MAX_WORD_LENGTH) { in removeNgramEntry()
464 int bigramWord1CodePoints[MAX_WORD_LENGTH]; in getWordProperty()
483 word1TerminalPtNodePos, MAX_WORD_LENGTH, bigramWord1CodePoints, in getWordProperty()
501 int shortcutTarget[MAX_WORD_LENGTH]; in getWordProperty()
508 shortcutDictContent->getShortcutEntryAndAdvancePosition(MAX_WORD_LENGTH, shortcutTarget, in getWordProperty()
[all …]
Dver4_patricia_trie_node_reader.cpp52 int codePoints[MAX_WORD_LENGTH]; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
54 dictBuf, flags, MAX_WORD_LENGTH, codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp207 if (length > MAX_WORD_LENGTH) { in addUnigramEntry()
212 if (shortcut.getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addUnigramEntry()
221 int codePointsToAdd[MAX_WORD_LENGTH]; in addUnigramEntry()
226 codePointCountToAdd, MAX_WORD_LENGTH); in addUnigramEntry()
276 if (bigramProperty->getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addNgramEntry()
338 if (length > MAX_WORD_LENGTH) { in removeNgramEntry()
452 int bigramWord1CodePoints[MAX_WORD_LENGTH]; in getWordProperty()
471 word1TerminalPtNodePos, MAX_WORD_LENGTH, bigramWord1CodePoints, in getWordProperty()
489 int shortcutTarget[MAX_WORD_LENGTH]; in getWordProperty()
496 shortcutDictContent->getShortcutEntryAndAdvancePosition(MAX_WORD_LENGTH, shortcutTarget, in getWordProperty()
[all …]
Dver4_patricia_trie_node_reader.cpp61 int codePoints[MAX_WORD_LENGTH]; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
63 dictBuf, flags, MAX_WORD_LENGTH, codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Dprev_words_info.h45 PrevWordsInfo(const int prevWordCodePoints[][MAX_WORD_LENGTH], in PrevWordsInfo() argument
50 if (prevWordCodePointCount[i] < 0 || prevWordCodePointCount[i] > MAX_WORD_LENGTH) { in PrevWordsInfo()
64 if (prevWordCodePointCount > MAX_WORD_LENGTH || !prevWordCodePoints) { in PrevWordsInfo()
124 if (!dictStructurePolicy || !wordCodePoints || wordCodePointCount > MAX_WORD_LENGTH) { in getTerminalPtNodePosOfWord()
127 int codePoints[MAX_WORD_LENGTH]; in getTerminalPtNodePosOfWord()
132 codePointCount, MAX_WORD_LENGTH); in getTerminalPtNodePosOfWord()
157 int mPrevWordCodePoints[MAX_PREV_WORD_COUNT_FOR_N_GRAM][MAX_WORD_LENGTH];
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/
Dpatricia_trie_policy.cpp139 PatriciaTrieReadingUtils::skipCharacters(mDictRoot, flags, MAX_WORD_LENGTH, &pos); in getCodePointsAndProbabilityAndReturnCodePointCount()
359 int mergedNodeCodePoints[MAX_WORD_LENGTH]; in createAndGetLeavingChildNode()
395 int bigramWord1CodePoints[MAX_WORD_LENGTH]; in getWordProperty()
404 bigramsIt.getBigramPos(), MAX_WORD_LENGTH, bigramWord1CodePoints, in getWordProperty()
417 int shortcutTargetCodePoints[MAX_WORD_LENGTH]; in getWordProperty()
425 mDictRoot, MAX_WORD_LENGTH, shortcutTargetCodePoints, &shortcutPos); in getWordProperty()
460 MAX_WORD_LENGTH, outCodePoints, &unigramProbability); in getNextWordAndNextToken()
Dver2_patricia_trie_node_reader.cpp34 int mergedNodeCodePoints[MAX_WORD_LENGTH]; in fetchPtNodeParamsInBufferFromPtNodePos()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp218 if (outputCodePointsLength != (MAX_WORD_LENGTH * MAX_RESULTS)) { in latinime_BinaryDictionary_getSuggestions()
298 if (codePointBufSize != MAX_WORD_LENGTH) { in latinime_BinaryDictionary_getNextWord()
308 MAX_WORD_LENGTH /* maxLength */, wordCodePoints, wordCodePointCount, in latinime_BinaryDictionary_getNextWord()
327 if (wordLength > MAX_WORD_LENGTH) { in latinime_BinaryDictionary_getWordProperty()
331 int wordCodePoints[MAX_WORD_LENGTH]; in latinime_BinaryDictionary_getWordProperty()
336 wordCodePoints, wordLength, MAX_WORD_LENGTH); in latinime_BinaryDictionary_getWordProperty()
564 int wordCodePoints[MAX_WORD_LENGTH]; in latinime_BinaryDictionary_migrateNative()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
Ddic_node_state_output.h67 if (mOutputtedCodePointCount < MAX_WORD_LENGTH) { in initByCopy()
82 MAX_WORD_LENGTH - mOutputtedCodePointCount); in addMergedNodeCodePoints()
87 if (mOutputtedCodePointCount < MAX_WORD_LENGTH) { in addMergedNodeCodePoints()
139 int mOutputCodePoints[MAX_WORD_LENGTH];
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/
Dshortcut_dict_content.cpp104 int codePoints[MAX_WORD_LENGTH]; in copyShortcutListFromDictContent()
108 sourceShortcutDictContent->getShortcutEntryAndAdvancePosition(MAX_WORD_LENGTH, in copyShortcutListFromDictContent()
152 int targetCodePoints[MAX_WORD_LENGTH]; in findShortcutEntryAndGetPos()
157 getShortcutEntryAndAdvancePosition(MAX_WORD_LENGTH, targetCodePoints, &targetCodePointCount, in findShortcutEntryAndGetPos()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/content/
Dshortcut_dict_content.cpp119 int codePoints[MAX_WORD_LENGTH]; in copyShortcutListFromDictContent()
123 sourceShortcutDictContent->getShortcutEntryAndAdvancePosition(MAX_WORD_LENGTH, in copyShortcutListFromDictContent()
167 int targetCodePoints[MAX_WORD_LENGTH]; in findShortcutEntryAndGetPos()
172 getShortcutEntryAndAdvancePosition(MAX_WORD_LENGTH, targetCodePoints, &targetCodePointCount, in findShortcutEntryAndGetPos()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestion_results.cpp31 const int start = outputIndex * MAX_WORD_LENGTH; in outputSuggestions()
33 MAX_WORD_LENGTH /* maxLength */, suggestedWord.getCodePoint(), in outputSuggestions()
63 if (codePointCount <= 0 || codePointCount > MAX_WORD_LENGTH) { in addSuggestion()
Dsuggestions_output_utils.cpp126 int codePoints[MAX_WORD_LENGTH]; in outputSuggestionsOfDicNode()
206 int shortcutTarget[MAX_WORD_LENGTH]; in outputShortcuts()
210 shortcutIt->nextShortcutTarget(MAX_WORD_LENGTH, shortcutTarget, in outputShortcuts()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state.h226 int mInputProximities[MAX_PROXIMITY_CHARS_SIZE * MAX_WORD_LENGTH];
228 int mPrimaryInputWord[MAX_WORD_LENGTH];
230 int mMostProbableString[MAX_WORD_LENGTH];
Dproximity_info_state_utils.cpp151 memset(primaryInputWord, 0, sizeof(primaryInputWord[0]) * MAX_WORD_LENGTH); in initPrimaryInputWord()
939 memset(codePointBuf, 0, sizeof(codePointBuf[0]) * MAX_WORD_LENGTH); in getMostProbableString()
943 for (int i = 0; i < sampledInputSize && index < MAX_WORD_LENGTH - 1; ++i) { in getMostProbableString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DWordComposer.java34 private static final int MAX_WORD_LENGTH = Constants.DICTIONARY_MAX_WORD_LENGTH; field in WordComposer
50 private final InputPointers mInputPointers = new InputPointers(MAX_WORD_LENGTH);
215 if (newIndex < MAX_WORD_LENGTH) { in applyProcessedEvent()
DUserBinaryDictionary.java256 if (word.length() <= MAX_WORD_LENGTH) { in addWordsLocked()
261 if (null != shortcut && shortcut.length() <= MAX_WORD_LENGTH) { in addWordsLocked()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.h101 int prevWordCodePoints[MAX_PREV_WORD_COUNT_FOR_N_GRAM][MAX_WORD_LENGTH]; in constructPrevWordsInfo()
116 if (prevWordLength > MAX_WORD_LENGTH) { in constructPrevWordsInfo()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp77 int targetWordCodePoints[MAX_WORD_LENGTH]; in onVisitEntry()
81 MAX_WORD_LENGTH, targetWordCodePoints, &unigramProbability); in onVisitEntry()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/shortcut/
Dver4_shortcut_list_policy.h99 mShortcutDictContent->getShortcutEntry(MAX_WORD_LENGTH, 0 /* outCodePoint */, in addNewShortcut()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/shortcut/
Dver4_shortcut_list_policy.h89 mShortcutDictContent->getShortcutEntry(MAX_WORD_LENGTH, 0 /* outCodePoint */, in addNewShortcut()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DFormatSpec.java203 static final int MAX_WORD_LENGTH = Constants.DICTIONARY_MAX_WORD_LENGTH; field in FormatSpec
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/property/
Dword_property.cpp28 MAX_WORD_LENGTH /* maxLength */, mCodePoints.data(), mCodePoints.size(), in outputProperties()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.cpp145 dictBuf, flags, MAX_WORD_LENGTH, outCodePoint, &readingPos); in readPtNodeInfo()
Ddynamic_pt_reading_helper.cpp27 const size_t DynamicPtReadingHelper::MAX_READING_STATE_STACK_SIZE = MAX_WORD_LENGTH;

12