Searched refs:MAX_WORD_LENGTH (Results 1 - 25 of 27) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
H A Ddic_node_state_output.h44 if (mOutputtedCodePointCount < MAX_WORD_LENGTH) {
53 MAX_WORD_LENGTH - mOutputtedCodePointCount);
58 if (mOutputtedCodePointCount < MAX_WORD_LENGTH) {
70 int mCodePointsBuf[MAX_WORD_LENGTH];
H A Ddic_node_state_prevword.h77 if (twoWordsLen >= MAX_WORD_LENGTH) {
78 twoWordsLen = MAX_WORD_LENGTH - 1;
140 int mPrevWord[MAX_WORD_LENGTH];
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
H A Dshortcut_utils.h31 int shortcutTarget[MAX_WORD_LENGTH];
35 shortcutIt->nextShortcutTarget(MAX_WORD_LENGTH, shortcutTarget,
52 const int startIndex2 = outputWordIndex * MAX_WORD_LENGTH;
H A Dbigram_dictionary.cpp57 && length < CharUtils::getCodePointCount(MAX_WORD_LENGTH,
58 bigramCodePoints + insertAt * MAX_WORD_LENGTH))) {
74 memmove(bigramCodePoints + (insertAt + 1) * MAX_WORD_LENGTH,
75 bigramCodePoints + insertAt * MAX_WORD_LENGTH,
76 (MAX_RESULTS - insertAt - 1) * sizeof(bigramCodePoints[0]) * MAX_WORD_LENGTH);
77 int *dest = bigramCodePoints + insertAt * MAX_WORD_LENGTH;
114 int bigramBuffer[MAX_WORD_LENGTH];
124 MAX_WORD_LENGTH, bigramBuffer, &unigramProbability);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DWordComposer.java29 private static final int MAX_WORD_LENGTH = Constants.DICTIONARY_MAX_WORD_LENGTH; field in class:WordComposer
41 // The array is limited to MAX_WORD_LENGTH code points, but mTypedWord extends past that
42 // and mCodePointSize can go past that. If mCodePointSize is greater than MAX_WORD_LENGTH,
43 // this just does not contain the associated code points past MAX_WORD_LENGTH.
45 private final InputPointers mInputPointers = new InputPointers(MAX_WORD_LENGTH);
49 // to MAX_WORD_LENGTH code points.
67 // This is the number of code points entered so far. This is not limited to MAX_WORD_LENGTH.
69 // MAX_WORD_LENGTH in which case mPrimaryKeyCodes only contain the first MAX_WORD_LENGTH
80 mPrimaryKeyCodes = new int[MAX_WORD_LENGTH];
[all...]
H A DBinaryDictionary.java43 // Must be equal to MAX_WORD_LENGTH in native/jni/src/defines.h
44 private static final int MAX_WORD_LENGTH = Constants.DICTIONARY_MAX_WORD_LENGTH; field in class:BinaryDictionary
64 private final int[] mInputCodePoints = new int[MAX_WORD_LENGTH];
65 private final int[] mOutputCodePoints = new int[MAX_WORD_LENGTH * MAX_RESULTS];
187 if (composerSize > MAX_WORD_LENGTH - 1) return null;
206 final int start = j * MAX_WORD_LENGTH;
208 while (len < MAX_WORD_LENGTH && mOutputCodePoints[start + len] != 0) {
H A DContactsBinaryDictionary.java211 if (wordLen < MAX_WORD_LENGTH && wordLen > 1) {
318 if (wordLen < MAX_WORD_LENGTH && wordLen > 1) {
H A DUserBinaryDictionary.java248 if (word.length() < MAX_WORD_LENGTH) {
252 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) {
H A DExpandableBinaryDictionary.java65 protected static final int MAX_WORD_LENGTH = Constants.DICTIONARY_MAX_WORD_LENGTH; field in class:ExpandableBinaryDictionary
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
H A Ddic_node_utils.cpp120 actualLength0 = min(actualLength0, MAX_WORD_LENGTH);
132 actualLength1 = min(actualLength1, MAX_WORD_LENGTH - actualLength0);
H A Ddic_node.h286 return prevWordsLen + currentWordDepth > MAX_WORD_LENGTH - 3;
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/
H A Dpatricia_trie_policy.cpp66 * outCodePoints: an array to write the found word, with MAX_WORD_LENGTH size.
117 PatriciaTrieReadingUtils::skipCharacters(mDictRoot, flags, MAX_WORD_LENGTH, &pos);
300 PatriciaTrieReadingUtils::skipCharacters(mDictRoot, flags, MAX_WORD_LENGTH,
351 PatriciaTrieReadingUtils::skipCharacters(mDictRoot, flags, MAX_WORD_LENGTH, &pos);
366 PatriciaTrieReadingUtils::skipCharacters(mDictRoot, flags, MAX_WORD_LENGTH, &pos);
386 PatriciaTrieReadingUtils::skipCharacters(mDictRoot, flags, MAX_WORD_LENGTH, &pos);
404 int mergedNodeCodePoints[MAX_WORD_LENGTH];
406 mDictRoot, flags, MAX_WORD_LENGTH, mergedNodeCodePoints, &pos);
H A Ddynamic_patricia_trie_node_reader.cpp53 dictBuf, mFlags, MAX_WORD_LENGTH, &pos);
H A Ddynamic_patricia_trie_reading_helper.h248 int mMergedNodeCodePoints[MAX_WORD_LENGTH];
257 MAX_WORD_LENGTH, mMergedNodeCodePoints);
H A Ddynamic_patricia_trie_reading_helper.cpp26 const size_t DynamicPatriciaTrieReadingHelper::MAX_READING_STATE_STACK_SIZE = MAX_WORD_LENGTH;
H A Ddynamic_patricia_trie_writing_helper.cpp98 int mMergedNodeCodePoints[MAX_WORD_LENGTH];
100 nodeReader.fetchNodeInfoInBufferFromPtNodePosAndGetNodeCodePoints(word0Pos, MAX_WORD_LENGTH,
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_state.h236 int mInputProximities[MAX_PROXIMITY_CHARS_SIZE * MAX_WORD_LENGTH];
238 int mPrimaryInputWord[MAX_WORD_LENGTH];
240 int mMostProbableString[MAX_WORD_LENGTH];
H A Dproximity_info_state.cpp38 ASSERT(isGeometric || (inputSize < MAX_WORD_LENGTH));
H A Dproximity_info_state_utils.cpp148 memset(primaryInputWord, 0, sizeof(primaryInputWord[0]) * MAX_WORD_LENGTH);
978 memset(codePointBuf, 0, sizeof(codePointBuf[0]) * MAX_WORD_LENGTH);
982 for (int i = 0; i < sampledInputSize && index < MAX_WORD_LENGTH - 1; ++i) {
/packages/inputmethods/LatinIME/native/jni/src/
H A Ddefines.h31 // Must be equal to Constants.Dictionary.MAX_WORD_LENGTH in Java
32 #define MAX_WORD_LENGTH 48 macro
114 dumpWordInfo(&outWords[i * MAX_WORD_LENGTH], MAX_WORD_LENGTH, i, frequencies[i]);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DFormatSpec.java220 static final int MAX_WORD_LENGTH = Constants.DICTIONARY_MAX_WORD_LENGTH; field in class:FormatSpec
H A DVer4DictDecoder.java193 // TODO: Support words longer than FormatSpec.MAX_WORD_LENGTH.
194 private final int[] mCharacterBuffer = new int[FormatSpec.MAX_WORD_LENGTH];
212 && index < FormatSpec.MAX_WORD_LENGTH) {
H A DVer3DictDecoder.java114 private final int[] mCharacterBuffer = new int[FormatSpec.MAX_WORD_LENGTH];
133 // MAX_WORD_LENGTH.
H A DBinaryDictDecoderUtils.java367 // the length of the path from the root to the leaf is limited by MAX_WORD_LENGTH
368 for (int count = 0; count < FormatSpec.MAX_WORD_LENGTH; ++count) {
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionary.cpp181 if (outputCodePointsLength != (MAX_WORD_LENGTH * MAX_RESULTS)) {

Completed in 475 milliseconds

12