Home
last modified time | relevance | path

Searched refs:codesSize (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/
Ddebug.h61 static inline void printDebug(const char* tag, int* codes, int codesSize, int MAX_PROXIMITY_CHARS) { in printDebug() argument
62 unsigned char *buf = (unsigned char*)malloc((1 + codesSize) * sizeof(*buf)); in printDebug()
64 buf[codesSize] = 0; in printDebug()
65 while (--codesSize >= 0) in printDebug()
66 buf[codesSize] = (unsigned char)codes[codesSize * MAX_PROXIMITY_CHARS]; in printDebug()
Ddictionary.h38 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()
Dunigram_dictionary.cpp59 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
74 if (i + 2 > codesSize) return false; in getDigraphReplacement()
174 const int *ycoordinates, const int *codes, const int codesSize, in getSuggestions() argument
183 int codesBuffer[getCodesBufferSize(codes, codesSize)]; in getSuggestions()
184 int xCoordinatesBuffer[codesSize]; in getSuggestions()
185 int yCoordinatesBuffer[codesSize]; in getSuggestions()
187 xCoordinatesBuffer, yCoordinatesBuffer, codesSize, bigramMap, bigramFilter, in getSuggestions()
188 useFullEditDistance, codes, codesSize, 0, codesBuffer, masterCorrection, in getSuggestions()
[all …]
Dunigram_dictionary.h82 const int *codes, const int codesSize, const std::map<int, int> *bigramMap,
93 int getDigraphReplacement(const int *codes, const int i, const int codesSize,
104 const int *ycoordinates, const int *codes, const int codesSize, Correction *correction);
Dbigram_dictionary.cpp102 int codesSize, unsigned short *bigramChars, int *bigramFreq, int maxWordLength, in getBigrams() argument
127 if (codesSize < 1 || checkFirstCharacter(bigramBuffer)) { in getBigrams()
Dbigram_dictionary.h31 int getBigrams(const int32_t *word, int length, int *codes, int codesSize,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java90 int[] yCoordinates, int[] inputCodes, int codesSize, int[] prevWordForBigrams, in getSuggestionsNative() argument
114 int codesSize = codes.size(); in getBigrams() local
116 if (codesSize > 0) { in getBigrams()
121 codesSize, mOutputChars_bigrams, mBigramScores, MAX_WORD_LENGTH, MAX_BIGRAMS); in getBigrams()
127 if (codesSize > 0 && mBigramScores[j] < 1) break; in getBigrams()
171 final int codesSize = codes.size(); in getSuggestions() local
173 if (codesSize > MAX_WORD_LENGTH - 1) return -1; in getSuggestions()
176 for (int i = 0; i < codesSize; i++) { in getSuggestions()
188 codes.getXCoordinates(), codes.getYCoordinates(), mInputCodes, codesSize, in getSuggestions()