/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | Constants.java | 130 public static final int MAX_WORD_LENGTH = 48; field in class:Constants.Dictionary
|
H A D | BinaryDictionary.java | 44 public static final int MAX_WORD_LENGTH = Constants.Dictionary.MAX_WORD_LENGTH; field in class:BinaryDictionary 56 private final int[] mInputCodePoints = new int[MAX_WORD_LENGTH]; 58 private final char[] mOutputChars = new char[MAX_WORD_LENGTH * MAX_RESULTS]; 125 FULL_WORD_SCORE_MULTIPLIER, MAX_WORD_LENGTH, MAX_WORDS, MAX_PREDICTIONS); 147 if (composerSize > MAX_WORD_LENGTH - 1) return null; 166 final int start = j * MAX_WORD_LENGTH; 168 while (len < MAX_WORD_LENGTH && mOutputChars[start + len] != 0) {
|
H A D | LastComposedWord.java | 48 public final InputPointers mInputPointers = new InputPointers(BinaryDictionary.MAX_WORD_LENGTH);
|
H A D | UserHistoryDictionary.java | 149 if (word2.length() >= BinaryDictionary.MAX_WORD_LENGTH || 150 (word1 != null && word1.length() >= BinaryDictionary.MAX_WORD_LENGTH)) { 240 if (word1.length() < BinaryDictionary.MAX_WORD_LENGTH 241 && word2.length() < BinaryDictionary.MAX_WORD_LENGTH) {
|
H A D | UserBinaryDictionary.java | 225 if (word.length() >= MAX_WORD_LENGTH) return; 249 if (word.length() < MAX_WORD_LENGTH) { 252 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) {
|
H A D | WordComposer.java | 28 private static final int N = BinaryDictionary.MAX_WORD_LENGTH; 112 // TODO: make sure that the index should not exceed MAX_WORD_LENGTH 114 if (index >= BinaryDictionary.MAX_WORD_LENGTH) { 136 if (newIndex < BinaryDictionary.MAX_WORD_LENGTH) {
|
H A D | ContactsBinaryDictionary.java | 175 if (wordLen < MAX_WORD_LENGTH && wordLen > 1) { 271 if (wordLen < MAX_WORD_LENGTH && wordLen > 1) {
|
H A D | ExpandableBinaryDictionary.java | 57 protected static final int MAX_WORD_LENGTH = BinaryDictionary.MAX_WORD_LENGTH; field in class:ExpandableBinaryDictionary
|
H A D | ExpandableDictionary.java | 40 private char[] mWordBuilder = new char[BinaryDictionary.MAX_WORD_LENGTH]; 158 mCodes = new int[BinaryDictionary.MAX_WORD_LENGTH][]; 195 return BinaryDictionary.MAX_WORD_LENGTH; 199 if (word.length() >= BinaryDictionary.MAX_WORD_LENGTH) { 254 if (composer.size() >= BinaryDictionary.MAX_WORD_LENGTH) { 636 private final char[] mLookedUpString = new char[BinaryDictionary.MAX_WORD_LENGTH]; 651 int index = BinaryDictionary.MAX_WORD_LENGTH; 658 // If node is null, we have a word longer than MAX_WORD_LENGTH in the dictionary. 663 BinaryDictionary.MAX_WORD_LENGTH - index),
|
H A D | RichInputConnection.java | 50 private static final int LOOKBACK_CHARACTER_NUM = BinaryDictionary.MAX_WORD_LENGTH * 2 + 1;
|
/packages/inputmethods/LatinIME/native/jni/src/ |
H A D | bigram_dictionary.cpp | 30 : DICT(dict), MAX_WORD_LENGTH(maxWordLength), MAX_PREDICTIONS(maxPredictions) { 54 && length < Dictionary::wideStrLen(bigramChars + insertAt * MAX_WORD_LENGTH))) { 68 memmove(bigramChars + (insertAt + 1) * MAX_WORD_LENGTH, 69 bigramChars + insertAt * MAX_WORD_LENGTH, 70 (MAX_PREDICTIONS - insertAt - 1) * sizeof(bigramChars[0]) * MAX_WORD_LENGTH); 71 unsigned short *dest = bigramChars + insertAt * MAX_WORD_LENGTH; 120 uint16_t bigramBuffer[MAX_WORD_LENGTH]; 124 const int length = BinaryFormat::getWordAtAddress(root, bigramPos, MAX_WORD_LENGTH,
|
H A D | bigram_dictionary.h | 50 const int MAX_WORD_LENGTH; member in class:latinime::BigramDictionary
|
H A D | words_priority_queue.h | 49 MAX_WORD_LENGTH(static_cast<unsigned int>(maxWordLength)), 142 unsigned short *targetAddress = outputChars + i * MAX_WORD_LENGTH; 146 if (wordLength < MAX_WORD_LENGTH) { 197 for (unsigned int i = 0; i < MAX_WORD_LENGTH; ++i) { 228 const unsigned int MAX_WORD_LENGTH; member in class:latinime::WordsPriorityQueue
|
H A D | unigram_dictionary.cpp | 46 : DICT_ROOT(streamStart), MAX_WORD_LENGTH(maxWordLength), MAX_WORDS(maxWords), 179 WordsPriorityQueuePool queuePool(MAX_WORDS, SUB_QUEUE_MAX_WORDS, MAX_WORD_LENGTH); 225 short unsigned int *w = outWords + j * MAX_WORD_LENGTH; 226 char s[MAX_WORD_LENGTH]; 227 for (int i = 0; i <= MAX_WORD_LENGTH; i++) s[i] = w[i]; 313 const int maxDepth = min(inputSize * MAX_DEPTH_MULTIPLIER, MAX_WORD_LENGTH); 553 || MAX_WORD_LENGTH <= (outputWordStartPos + nextWordLength)) { 570 if (outputWordStartPos + nextWordLength >= MAX_WORD_LENGTH) { 681 if (inputSize >= MAX_WORD_LENGTH) return; 687 unsigned short outputWord[MAX_WORD_LENGTH]; [all...] |
H A D | unigram_dictionary.h | 116 const int MAX_WORD_LENGTH; member in class:latinime::UnigramDictionary
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
H A D | FormatSpec.java | 168 static final int MAX_WORD_LENGTH = Constants.Dictionary.MAX_WORD_LENGTH; field in class:FormatSpec
|
H A D | BinaryDictIOUtils.java | 56 int[] pushedChars = new int[FormatSpec.MAX_WORD_LENGTH + 1]; 164 for (int depth = 0; depth < Constants.Dictionary.MAX_WORD_LENGTH; ++depth) {
|
H A D | BinaryDictInputOutput.java | 1233 private static final int[] CHARACTER_BUFFER = new int[FormatSpec.MAX_WORD_LENGTH]; 1252 // MAX_WORD_LENGTH. 1375 private static int[] sGetWordBuffer = new int[FormatSpec.MAX_WORD_LENGTH]; 1382 int index = FormatSpec.MAX_WORD_LENGTH - 1; 1383 // the length of the path from the root to the leaf is limited by MAX_WORD_LENGTH 1384 for (int count = 0; count < FormatSpec.MAX_WORD_LENGTH; ++count) { 1405 return new String(sGetWordBuffer, index + 1, FormatSpec.MAX_WORD_LENGTH - index - 1);
|
H A D | FusionDictionary.java | 384 if (word.length >= Constants.Dictionary.MAX_WORD_LENGTH) {
|