Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp190 if (wordCodePoints.size() > MAX_WORD_LENGTH) { in addUnigramEntry()
196 if (shortcut.getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addUnigramEntry()
205 int codePointsToAdd[MAX_WORD_LENGTH]; in addUnigramEntry()
210 codePointCountToAdd, MAX_WORD_LENGTH); in addUnigramEntry()
287 if (ngramProperty->getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addNgramEntry()
349 if (wordCodePoints.size() > MAX_WORD_LENGTH) { in removeNgramEntry()
515 int ngramTargetCodePoints[MAX_WORD_LENGTH]; in getWordProperty()
516 int ngramPrevWordsCodePoints[MAX_PREV_WORD_COUNT_FOR_N_GRAM][MAX_WORD_LENGTH]; in getWordProperty()
522 MAX_WORD_LENGTH, ngramTargetCodePoints); in getWordProperty()
526 MAX_WORD_LENGTH, ngramPrevWordsCodePoints[i]); in getWordProperty()
[all …]
Dver4_patricia_trie_node_reader.cpp53 int codePoints[MAX_WORD_LENGTH]; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
56 dictBuf, flags, MAX_WORD_LENGTH, nullptr /* codePointTable */, codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dngram_context.cpp36 NgramContext::NgramContext(const int prevWordCodePoints[][MAX_WORD_LENGTH], in NgramContext() argument
42 if (prevWordCodePointCount[i] < 0 || prevWordCodePointCount[i] > MAX_WORD_LENGTH) { in NgramContext()
55 if (prevWordCodePointCount > MAX_WORD_LENGTH || !prevWordCodePoints) { in NgramContext()
92 if (!dictStructurePolicy || !wordCodePoints || wordCodePointCount > MAX_WORD_LENGTH) { in getWordId()
95 int codePoints[MAX_WORD_LENGTH]; in getWordId()
100 MAX_WORD_LENGTH); in getWordId()
Dngram_context.h36 NgramContext(const int prevWordCodePoints[][MAX_WORD_LENGTH],
73 int mPrevWordCodePoints[MAX_PREV_WORD_COUNT_FOR_N_GRAM][MAX_WORD_LENGTH];
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp277 if (wordCodePoints.size() > MAX_WORD_LENGTH) { in addUnigramEntry()
283 if (shortcut.getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addUnigramEntry()
292 int codePointsToAdd[MAX_WORD_LENGTH]; in addUnigramEntry()
297 codePointCountToAdd, MAX_WORD_LENGTH); in addUnigramEntry()
362 if (ngramProperty->getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addNgramEntry()
423 if (wordCodePoints.size() > MAX_WORD_LENGTH) { in removeNgramEntry()
566 int bigramWord1CodePoints[MAX_WORD_LENGTH]; in getWordProperty()
583 getWordIdFromTerminalPtNodePos(word1TerminalPtNodePos), MAX_WORD_LENGTH, in getWordProperty()
603 int shortcutTarget[MAX_WORD_LENGTH]; in getWordProperty()
610 shortcutDictContent->getShortcutEntryAndAdvancePosition(MAX_WORD_LENGTH, shortcutTarget, in getWordProperty()
[all …]
Dver4_patricia_trie_node_reader.cpp62 int codePoints[MAX_WORD_LENGTH]; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
64 dictBuf, flags, MAX_WORD_LENGTH, mHeaderPolicy->getCodePointTable(), codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp148 PatriciaTrieReadingUtils::skipCharacters(mBuffer.data(), flags, MAX_WORD_LENGTH, in getCodePointsAndProbabilityAndReturnCodePointCount()
406 int mergedNodeCodePoints[MAX_WORD_LENGTH]; in createAndGetLeavingChildNode()
439 int bigramWord1CodePoints[MAX_WORD_LENGTH]; in getWordProperty()
448 getWordIdFromTerminalPtNodePos(bigramsIt.getBigramPos()), MAX_WORD_LENGTH, in getWordProperty()
462 int shortcutTargetCodePoints[MAX_WORD_LENGTH]; in getWordProperty()
470 mBuffer, MAX_WORD_LENGTH, shortcutTargetCodePoints, &shortcutPos); in getWordProperty()
504 getWordIdFromTerminalPtNodePos(terminalPtNodePos), MAX_WORD_LENGTH, outCodePoints); in getNextWordAndNextToken()
Dver2_patricia_trie_node_reader.cpp34 int mergedNodeCodePoints[MAX_WORD_LENGTH]; in fetchPtNodeParamsInBufferFromPtNodePos()
/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/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/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()
64 if (codePointCount <= 0 || codePointCount > MAX_WORD_LENGTH) { in addSuggestion()
Dsuggestions_output_utils.cpp174 int codePoints[MAX_WORD_LENGTH]; in outputSuggestionsOfDicNode()
253 int shortcutTarget[MAX_WORD_LENGTH]; in outputShortcuts()
257 shortcutIt->nextShortcutTarget(MAX_WORD_LENGTH, shortcutTarget, in outputShortcuts()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp220 if (outputCodePointsLength != (MAX_WORD_LENGTH * MAX_RESULTS)) { in latinime_BinaryDictionary_getSuggestions()
307 if (codePointBufSize != MAX_WORD_LENGTH) { in latinime_BinaryDictionary_getNextWord()
317 MAX_WORD_LENGTH /* maxLength */, wordCodePoints, wordCodePointCount, in latinime_BinaryDictionary_getNextWord()
337 if (wordLength > MAX_WORD_LENGTH) { in latinime_BinaryDictionary_getWordProperty()
341 int wordCodePoints[MAX_WORD_LENGTH]; in latinime_BinaryDictionary_getWordProperty()
346 wordCodePoints, wordLength, MAX_WORD_LENGTH); in latinime_BinaryDictionary_getWordProperty()
566 int wordCodePoints[MAX_WORD_LENGTH]; in latinime_BinaryDictionary_migrateNative()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state.h227 int mInputProximities[MAX_PROXIMITY_CHARS_SIZE * MAX_WORD_LENGTH];
229 int mPrimaryInputWord[MAX_WORD_LENGTH];
231 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.java40 private static final int MAX_WORD_LENGTH = DecoderSpecificConstants.DICTIONARY_MAX_WORD_LENGTH; field in WordComposer
56 private final InputPointers mInputPointers = new InputPointers(MAX_WORD_LENGTH);
191 if (newIndex < MAX_WORD_LENGTH) { in applyProcessedEvent()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.h104 int prevWordCodePoints[MAX_PREV_WORD_COUNT_FOR_N_GRAM][MAX_WORD_LENGTH]; in constructNgramContext()
115 if (prevWordLength > MAX_WORD_LENGTH) { in constructNgramContext()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp76 int targetWordCodePoints[MAX_WORD_LENGTH]; in onVisitEntry()
78 targetWordId, MAX_WORD_LENGTH, targetWordCodePoints); in onVisitEntry()
/packages/inputmethods/LatinIME/native/jni/src/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/dictionary/structure/v4/shortcut/
Dver4_shortcut_list_policy.h89 mShortcutDictContent->getShortcutEntry(MAX_WORD_LENGTH, 0 /* outCodePoint */, in addNewShortcut()
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dbyte_array_utils_test.cpp83 EXPECT_EQ(3, ByteArrayUtils::readStringAndAdvancePosition(buffer, MAX_WORD_LENGTH, nullptr, in TEST()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DFormatSpec.java190 static final int MAX_WORD_LENGTH = DecoderSpecificConstants.DICTIONARY_MAX_WORD_LENGTH; field in FormatSpec
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/
Doffdevice_intermediate_dict.cpp26 if (codePoints.empty() || codePoints.size() > MAX_WORD_LENGTH) { in addWord()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.cpp146 dictBuf, flags, MAX_WORD_LENGTH, codePointTable, outCodePoint, &readingPos); in readPtNodeInfo()

12