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

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
H A Ddic_node_state_output.h44 if (mOutputtedLength < MAX_WORD_LENGTH) {
54 if (mOutputtedLength < MAX_WORD_LENGTH) {
66 int mWordBuf[MAX_WORD_LENGTH];
H A Ddic_node_utils.cpp86 int additionalWordBuf[MAX_WORD_LENGTH];
253 actualLength0 = min(actualLength0, MAX_WORD_LENGTH);
265 actualLength1 = min(actualLength1, MAX_WORD_LENGTH - actualLength0 - 1);
H A Ddic_node_state_prevword.h141 int mPrevWord[MAX_WORD_LENGTH];
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
H A Dshortcut_utils.h33 int shortcutTarget[MAX_WORD_LENGTH];
36 MAX_WORD_LENGTH, shortcutTarget, &shortcutProbability);
53 const int startIndex2 = outputWordIndex * MAX_WORD_LENGTH;
/packages/inputmethods/LatinIME/native/jni/src/
H A Dbigram_dictionary.cpp54 && length < getCodePointCount(MAX_WORD_LENGTH,
55 bigramCodePoints + insertAt * MAX_WORD_LENGTH))) {
71 memmove(bigramCodePoints + (insertAt + 1) * MAX_WORD_LENGTH,
72 bigramCodePoints + insertAt * MAX_WORD_LENGTH,
73 (MAX_RESULTS - insertAt - 1) * sizeof(bigramCodePoints[0]) * MAX_WORD_LENGTH);
74 int *dest = bigramCodePoints + insertAt * MAX_WORD_LENGTH;
120 int bigramBuffer[MAX_WORD_LENGTH];
124 const int length = BinaryFormat::getWordAtAddress(root, bigramPos, MAX_WORD_LENGTH,
H A Dwords_priority_queue.cpp65 int *targetAddress = outputCodePoints + i * MAX_WORD_LENGTH;
69 if (wordLength < MAX_WORD_LENGTH) {
H A Dproximity_info_state.h252 int mInputProximities[MAX_PROXIMITY_CHARS_SIZE * MAX_WORD_LENGTH];
253 int mNormalizedSquaredDistances[MAX_PROXIMITY_CHARS_SIZE * MAX_WORD_LENGTH];
255 int mPrimaryInputWord[MAX_WORD_LENGTH];
257 int mMostProbableString[MAX_WORD_LENGTH];
H A Dwords_priority_queue.h32 int mWord[MAX_WORD_LENGTH];
48 mSuggestedWords(new SuggestedWord[MAX_WORD_LENGTH]), mHighestSuggestedWord(0) {
49 for (int i = 0; i < MAX_WORD_LENGTH; ++i) {
140 for (int i = 0; i < MAX_WORD_LENGTH; ++i) {
H A Ddefines.h31 // Must be equal to Constants.Dictionary.MAX_WORD_LENGTH in Java
32 #define MAX_WORD_LENGTH 48 macro
57 while (si < sourceSize && di < MAX_WORD_LENGTH - 1 && 0 != source[si]) {
86 dumpWordInfo(&outWords[i * MAX_WORD_LENGTH], MAX_WORD_LENGTH, i, frequencies[i]);
H A Dterminal_attributes.h49 for (i = 0; i < MAX_WORD_LENGTH; ++i) {
H A Dcorrection.h239 int mWord[MAX_WORD_LENGTH];
240 int mDistances[MAX_WORD_LENGTH];
244 int mEditDistanceTable[(MAX_WORD_LENGTH + 1) * (MAX_WORD_LENGTH + 1)];
246 CorrectionState mCorrectionStates[MAX_WORD_LENGTH];
336 // TODO: Make sure that editDistance[0 ~ MAX_WORD_LENGTH] is not touched.
H A Dunigram_dictionary.cpp199 int *w = outWords + j * MAX_WORD_LENGTH;
200 char s[MAX_WORD_LENGTH];
201 for (int i = 0; i <= MAX_WORD_LENGTH; i++) s[i] = w[i];
286 const int maxDepth = min(inputSize * MAX_DEPTH_MULTIPLIER, MAX_WORD_LENGTH);
383 int shortcutTarget[MAX_WORD_LENGTH];
386 MAX_WORD_LENGTH, shortcutTarget, &shortcutFrequency);
472 int word[MAX_WORD_LENGTH];
523 || MAX_WORD_LENGTH <= (outputWordStartPos + nextWordLength)) {
540 if (outputWordStartPos + nextWordLength >= MAX_WORD_LENGTH) {
651 if (inputSize >= MAX_WORD_LENGTH) retur
[all...]
H A Dproximity_info_state.cpp36 ASSERT(isGeometric || (inputSize < MAX_WORD_LENGTH));
H A Dproximity_info_state_utils.cpp147 memset(primaryInputWord, 0, sizeof(primaryInputWord[0]) * MAX_WORD_LENGTH);
187 sizeof(normalizedSquaredDistances[0]) * MAX_PROXIMITY_CHARS_SIZE * MAX_WORD_LENGTH);
1015 memset(codePointBuf, 0, sizeof(codePointBuf[0]) * MAX_WORD_LENGTH);
1019 for (int i = 0; i < sampledInputSize && index < MAX_WORD_LENGTH - 1; ++i) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DBinaryDictionary.java35 // Must be equal to MAX_WORD_LENGTH in native/jni/src/defines.h
36 private static final int MAX_WORD_LENGTH = Constants.Dictionary.MAX_WORD_LENGTH; field in class:BinaryDictionary
42 private final int[] mInputCodePoints = new int[MAX_WORD_LENGTH];
43 private final int[] mOutputCodePoints = new int[MAX_WORD_LENGTH * MAX_RESULTS];
130 if (composerSize > MAX_WORD_LENGTH - 1) return null;
147 final int start = j * MAX_WORD_LENGTH;
149 while (len < MAX_WORD_LENGTH && mOutputCodePoints[start + len] != 0) {
H A DConstants.java130 // Must be equal to MAX_WORD_LENGTH in native/jni/src/defines.h
131 public static final int MAX_WORD_LENGTH = 48; field in class:Constants.Dictionary
H A DWordComposer.java28 private static final int MAX_WORD_LENGTH = Constants.Dictionary.MAX_WORD_LENGTH; field in class:WordComposer
40 private final InputPointers mInputPointers = new InputPointers(MAX_WORD_LENGTH);
67 mPrimaryKeyCodes = new int[MAX_WORD_LENGTH];
68 mTypedWord = new StringBuilder(MAX_WORD_LENGTH);
127 // TODO: make sure that the index should not exceed MAX_WORD_LENGTH
129 if (index >= MAX_WORD_LENGTH) {
160 if (newIndex < MAX_WORD_LENGTH) {
386 mPrimaryKeyCodes = new int[MAX_WORD_LENGTH];
H A DLastComposedWord.java50 new InputPointers(Constants.Dictionary.MAX_WORD_LENGTH);
H A DUserHistoryDictionary.java150 if (word2.length() >= Constants.Dictionary.MAX_WORD_LENGTH ||
151 (word1 != null && word1.length() >= Constants.Dictionary.MAX_WORD_LENGTH)) {
242 if (word1.length() < Constants.Dictionary.MAX_WORD_LENGTH
243 && word2.length() < Constants.Dictionary.MAX_WORD_LENGTH) {
H A DContactsBinaryDictionary.java202 if (wordLen < MAX_WORD_LENGTH && wordLen > 1) {
303 if (wordLen < MAX_WORD_LENGTH && wordLen > 1) {
H A DUserBinaryDictionary.java254 if (word.length() < MAX_WORD_LENGTH) {
257 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) {
H A DExpandableBinaryDictionary.java58 protected static final int MAX_WORD_LENGTH = Constants.Dictionary.MAX_WORD_LENGTH; field in class:ExpandableBinaryDictionary
H A DExpandableDictionary.java45 private char[] mWordBuilder = new char[Constants.Dictionary.MAX_WORD_LENGTH];
163 mCodes = new int[Constants.Dictionary.MAX_WORD_LENGTH][];
200 return Constants.Dictionary.MAX_WORD_LENGTH;
204 if (word.length() >= Constants.Dictionary.MAX_WORD_LENGTH) {
260 if (composer.size() >= Constants.Dictionary.MAX_WORD_LENGTH) {
631 private final char[] mLookedUpString = new char[Constants.Dictionary.MAX_WORD_LENGTH];
646 int index = Constants.Dictionary.MAX_WORD_LENGTH;
653 // If node is null, we have a word longer than MAX_WORD_LENGTH in the dictionary.
658 Constants.Dictionary.MAX_WORD_LENGTH - index),
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DFormatSpec.java170 static final int MAX_WORD_LENGTH = Constants.Dictionary.MAX_WORD_LENGTH; field in class:FormatSpec
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionary.cpp165 if (outputCodePointsLength != (MAX_WORD_LENGTH * MAX_RESULTS)) {

Completed in 524 milliseconds

12