/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 190 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 …]
|
D | ver4_patricia_trie_node_reader.cpp | 53 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/ |
D | ngram_context.cpp | 36 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()
|
D | ngram_context.h | 36 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/ |
D | ver4_patricia_trie_policy.cpp | 277 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 …]
|
D | ver4_patricia_trie_node_reader.cpp | 62 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/ |
D | patricia_trie_policy.cpp | 148 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()
|
D | ver2_patricia_trie_node_reader.cpp | 34 int mergedNodeCodePoints[MAX_WORD_LENGTH]; in fetchPtNodeParamsInBufferFromPtNodePos()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/ |
D | dic_node_state_output.h | 67 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/ |
D | shortcut_dict_content.cpp | 104 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/ |
D | shortcut_dict_content.cpp | 119 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/ |
D | suggestion_results.cpp | 31 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()
|
D | suggestions_output_utils.cpp | 174 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/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 220 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/ |
D | proximity_info_state.h | 227 int mInputProximities[MAX_PROXIMITY_CHARS_SIZE * MAX_WORD_LENGTH]; 229 int mPrimaryInputWord[MAX_WORD_LENGTH]; 231 int mMostProbableString[MAX_WORD_LENGTH];
|
D | proximity_info_state_utils.cpp | 151 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/ |
D | WordComposer.java | 40 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/ |
D | jni_data_utils.h | 104 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/ |
D | dictionary.cpp | 76 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/ |
D | ver4_shortcut_list_policy.h | 99 mShortcutDictContent->getShortcutEntry(MAX_WORD_LENGTH, 0 /* outCodePoint */, in addNewShortcut()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/shortcut/ |
D | ver4_shortcut_list_policy.h | 89 mShortcutDictContent->getShortcutEntry(MAX_WORD_LENGTH, 0 /* outCodePoint */, in addNewShortcut()
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
D | byte_array_utils_test.cpp | 83 EXPECT_EQ(3, ByteArrayUtils::readStringAndAdvancePosition(buffer, MAX_WORD_LENGTH, nullptr, in TEST()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | FormatSpec.java | 190 static final int MAX_WORD_LENGTH = DecoderSpecificConstants.DICTIONARY_MAX_WORD_LENGTH; field in FormatSpec
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/ |
D | offdevice_intermediate_dict.cpp | 26 if (codePoints.empty() || codePoints.size() > MAX_WORD_LENGTH) { in addWord()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | patricia_trie_reading_utils.cpp | 146 dictBuf, flags, MAX_WORD_LENGTH, codePointTable, outCodePoint, &readingPos); in readPtNodeInfo()
|