/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionary.java | 106 public void getBigrams(final WordComposer codes, final CharSequence previousWord, in getBigrams() argument 114 int codesSize = codes.size(); in getBigrams() 117 mInputCodes[0] = codes.getCodeAt(0); in getBigrams() 142 public void getWords(final WordComposer codes, final CharSequence prevWordForBigrams, in getWords() argument 144 final int count = getSuggestions(codes, prevWordForBigrams, proximityInfo, mOutputChars, in getWords() 166 /* package for test */ int getSuggestions(final WordComposer codes, in getSuggestions() argument 171 final int codesSize = codes.size(); in getSuggestions() 177 mInputCodes[i] = codes.getCodeAt(i); in getSuggestions() 188 codes.getXCoordinates(), codes.getYCoordinates(), mInputCodes, codesSize, in getSuggestions()
|
D | ExpandableDictionary.java | 250 public void getWords(final WordComposer codes, final CharSequence prevWordForBigrams, in getWords() argument 258 if (codes.size() >= BinaryDictionary.MAX_WORD_LENGTH) { in getWords() 261 getWordsInner(codes, prevWordForBigrams, callback, proximityInfo); in getWords() 264 protected final void getWordsInner(final WordComposer codes, in getWordsInner() argument 267 mInputLength = codes.size(); in getWordsInner() 269 final int[] xCoordinates = codes.getXCoordinates(); in getWordsInner() 270 final int[] yCoordinates = codes.getYCoordinates(); in getWordsInner() 281 proximityInfo.fillArrayWithNearestKeyCodes(x, y, codes.getCodeAt(i), mCodes[i]); in getWordsInner() 284 getWordsRec(mRoots, codes, mWordBuilder, 0, false, 1, 0, -1, callback); in getWordsInner() 286 getWordsRec(mRoots, codes, mWordBuilder, 0, false, 1, 0, i, callback); in getWordsInner() [all …]
|
D | ExpandableBinaryDictionary.java | 197 public void getWords(final WordComposer codes, final CharSequence prevWordForBigrams, in getWords() argument 200 getWordsInner(codes, prevWordForBigrams, callback, proximityInfo); in getWords() 203 protected final void getWordsInner(final WordComposer codes, in getWordsInner() argument 211 mBinaryDictionary.getWords(codes, prevWordForBigrams, callback, proximityInfo); in getWordsInner() 220 public void getBigrams(final WordComposer codes, final CharSequence previousWord, in getBigrams() argument 223 getBigramsInner(codes, previousWord, callback); in getBigrams() 226 protected void getBigramsInner(final WordComposer codes, final CharSequence previousWord, in getBigramsInner() argument 231 mBinaryDictionary.getBigrams(codes, previousWord, callback); in getBigramsInner()
|
D | SynchronouslyLoadedContactsDictionary.java | 32 public synchronized void getWords(final WordComposer codes, in getWords() argument 36 getWordsInner(codes, prevWordForBigrams, callback, proximityInfo); in getWords()
|
D | SynchronouslyLoadedUserBinaryDictionary.java | 35 public synchronized void getWords(final WordComposer codes, in getWords() argument 39 getWordsInner(codes, prevWordForBigrams, callback, proximityInfo); in getWords()
|
D | SynchronouslyLoadedContactsBinaryDictionary.java | 33 public synchronized void getWords(final WordComposer codes, in getWords() argument 37 getWordsInner(codes, prevWordForBigrams, callback, proximityInfo); in getWords()
|
D | SynchronouslyLoadedUserDictionary.java | 36 public synchronized void getWords(final WordComposer codes, in getWords() argument 40 getWordsInner(codes, prevWordForBigrams, callback, proximityInfo); in getWords()
|
D | ContactsDictionary.java | 116 public void getBigrams(final WordComposer codes, final CharSequence previousWord, in getBigrams() argument 119 if (codes.size() <= 0) return; in getBigrams() 120 super.getBigrams(codes, previousWord, callback); in getBigrams()
|
D | UserDictionary.java | 190 public synchronized void getWords(final WordComposer codes, in getWords() argument 193 super.getWords(codes, prevWordForBigrams, callback, proximityInfo); in getWords()
|
D | ContactsBinaryDictionary.java | 120 public void getBigrams(final WordComposer codes, final CharSequence previousWord, in getBigrams() argument 122 super.getBigrams(codes, previousWord, callback); in getBigrams()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | unigram_dictionary.h | 82 const int *codes, const int codesSize, const std::map<int, int> *bigramMap, 89 const int *ycoordinates, const int *codes, const int inputLength, 93 int getDigraphReplacement(const int *codes, const int i, const int codesSize, 104 const int *ycoordinates, const int *codes, const int codesSize, Correction *correction); 106 const int *ycoordinates, const int *codes, const std::map<int, int> *bigramMap, 115 const int *xcoordinates, const int *ycoordinates, const int *codes, 135 const int *codes, const bool useFullEditDistance, Correction *correction, 142 const int *xcoordinates, const int *ycoordinates, const int *codes,
|
D | unigram_dictionary.cpp | 59 static inline unsigned int getCodesBufferSize(const int *codes, const int codesSize) { in getCodesBufferSize() argument 60 return sizeof(*codes) * codesSize; in getCodesBufferSize() 70 int UnigramDictionary::getDigraphReplacement(const int *codes, const int i, const int codesSize, in getDigraphReplacement() argument 78 const int thisChar = codes[i]; in getDigraphReplacement() 86 if (digraphs[lastDigraphIndex].second == codes[i + 1]) { in getDigraphReplacement() 174 const int *ycoordinates, const int *codes, const int codesSize, in getSuggestions() argument 183 int codesBuffer[getCodesBufferSize(codes, codesSize)]; in getSuggestions() 188 useFullEditDistance, codes, codesSize, 0, codesBuffer, masterCorrection, in getSuggestions() 192 int codesBuffer[getCodesBufferSize(codes, codesSize)]; in getSuggestions() 197 useFullEditDistance, codes, codesSize, 0, codesBuffer, masterCorrection, in getSuggestions() [all …]
|
D | dictionary.h | 38 int *codes, int codesSize, const int32_t* prevWordChars, const int prevWordLength, in getSuggestions() argument 45 mCorrection, xcoordinates, ycoordinates, codes, codesSize, &bigramMap, in getSuggestions() 49 int getBigrams(const int32_t *word, int length, int *codes, int codesSize, in getBigrams() argument 51 return mBigramDictionary->getBigrams(word, length, codes, codesSize, outWords, frequencies, in getBigrams()
|
D | debug.h | 61 static inline void printDebug(const char* tag, int* codes, int codesSize, int MAX_PROXIMITY_CHARS) { in printDebug() argument 66 buf[codesSize] = (unsigned char)codes[codesSize * MAX_PROXIMITY_CHARS]; in printDebug()
|
D | bigram_dictionary.cpp | 101 int BigramDictionary::getBigrams(const int32_t *prevWord, int prevWordLength, int *codes, in getBigrams() argument 108 mInputCodes = codes; in getBigrams()
|
D | bigram_dictionary.h | 31 int getBigrams(const int32_t *word, int length, int *codes, int codesSize,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardCodesSet.java | 31 final int[] codes = sLanguageToCodesMap.get(language); in setLanguage() local 32 mCodes = (codes != null) ? codes : DEFAULT; in setLanguage() 144 final int[] codes = (int[])LANGUAGE_AND_CODES[i + 1]; 145 sLanguageToCodesMap.put(language, codes); in sLanguageToCodesMap.put() argument
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | KeyboardView.java | 467 oldRepeatKeyCode = mKeys[mRepeatKeyIndex].codes[0]; in setKeyboard() 484 && (oldRepeatKeyCode == mKeys[keyIndex].codes[0])) { in setKeyboard() 734 if (label.length() > 1 && key.codes.length < 2) { in onBufferDraw() 742 if (label.length() > 1 && key.codes.length < 2) { in onBufferDraw() 818 && key.codes[0] > 32) { in getKeyIndices() 819 final int nCodes = key.codes.length; in getKeyIndices() 834 allKeys[j + c] = key.codes[c]; in getKeyIndices() 855 int code = key.codes[0]; in detectAndSendKey() 856 int[] codes = new int[MAX_NEARBY_KEYS]; in detectAndSendKey() local 857 Arrays.fill(codes, NOT_A_KEY); in detectAndSendKey() [all …]
|
D | Keyboard.java | 227 public int[] codes; field in Keyboard.Key 350 codes = new int[] { codesValue.data }; in Key() 352 codes = parseCSV(codesValue.string.toString()); in Key() 381 if (codes == null && !TextUtils.isEmpty(label)) { in Key() 382 codes = new int[] { label.charAt(0) }; in Key() 589 key.codes = new int[] { c }; in Keyboard() 786 if (key.codes[0] == KEYCODE_SHIFT) { in loadKeyboard() 790 } else if (key.codes[0] == KEYCODE_ALT) { in loadKeyboard()
|
D | DefaultSoftKeyboard.java | 341 switch (key.codes[0]) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyDetector.java | 108 public static String printableCodes(int[] codes) { in printableCodes() argument 111 for (final int code : codes) { in printableCodes()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | XmlKeyboardLoader.java | 529 String codes = xrp.getAttributeValue(null, in loadKeyboard() local 536 if (null != codes) { in loadKeyboard() 537 codeArr = codes.split(splitter); in loadKeyboard()
|