/packages/inputmethods/LatinIME/native/jni/src/ |
H A D | debug.h | 61 static inline void printDebug(const char* tag, int* codes, int codesSize, int MAX_PROXIMITY_CHARS) { argument 62 unsigned char *buf = (unsigned char*)malloc((1 + codesSize) * sizeof(*buf)); 64 buf[codesSize] = 0; 65 while (--codesSize >= 0) 66 buf[codesSize] = (unsigned char)codes[codesSize * MAX_PROXIMITY_CHARS];
|
H A D | dictionary.h | 38 int *codes, int codesSize, const int32_t* prevWordChars, const int prevWordLength, 45 mCorrection, xcoordinates, ycoordinates, codes, codesSize, &bigramMap, 49 int getBigrams(const int32_t *word, int length, int *codes, int codesSize, argument 51 return mBigramDictionary->getBigrams(word, length, codes, codesSize, outWords, frequencies, 37 getSuggestions(ProximityInfo *proximityInfo, int *xcoordinates, int *ycoordinates, int *codes, int codesSize, const int32_t* prevWordChars, const int prevWordLength, bool useFullEditDistance, unsigned short *outWords, int *frequencies) argument
|
H A D | unigram_dictionary.cpp | 59 static inline unsigned int getCodesBufferSize(const int *codes, const int codesSize) { argument 60 return sizeof(*codes) * codesSize; 70 int UnigramDictionary::getDigraphReplacement(const int *codes, const int i, const int codesSize, argument 74 if (i + 2 > codesSize) return false; 95 // codesSize is the size of the user input (thus, it is the size of codesSrc). 174 const int *ycoordinates, const int *codes, const int codesSize, 183 int codesBuffer[getCodesBufferSize(codes, codesSize)]; 184 int xCoordinatesBuffer[codesSize]; 185 int yCoordinatesBuffer[codesSize]; 187 xCoordinatesBuffer, yCoordinatesBuffer, codesSize, bigramMa 172 getSuggestions(ProximityInfo *proximityInfo, WordsPriorityQueuePool *queuePool, Correction *correction, const int *xcoordinates, const int *ycoordinates, const int *codes, const int codesSize, const std::map<int, int> *bigramMap, const uint8_t *bigramFilter, const bool useFullEditDistance, unsigned short *outWords, int *frequencies) argument [all...] |
H A D | unigram_dictionary.h | 82 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);
|
H A D | bigram_dictionary.h | 31 int getBigrams(const int32_t *word, int length, int *codes, int codesSize,
|
H A D | bigram_dictionary.cpp | 88 * codesSize: the size of the codes array. 102 int codesSize, unsigned short *bigramChars, int *bigramFreq, int maxWordLength, 126 // codesSize == 0 means we are trying to find bigram predictions. 127 if (codesSize < 1 || checkFirstCharacter(bigramBuffer)) { 101 getBigrams(const int32_t *prevWord, int prevWordLength, int *codes, int codesSize, unsigned short *bigramChars, int *bigramFreq, int maxWordLength, int maxBigrams) argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | BinaryDictionary.java | 90 int[] yCoordinates, int[] inputCodes, int codesSize, int[] prevWordForBigrams, 114 int codesSize = codes.size(); 116 if (codesSize > 0) { 121 codesSize, mOutputChars_bigrams, mBigramScores, MAX_WORD_LENGTH, MAX_BIGRAMS); 127 if (codesSize > 0 && mBigramScores[j] < 1) break; 171 final int codesSize = codes.size(); 173 if (codesSize > MAX_WORD_LENGTH - 1) return -1; 176 for (int i = 0; i < codesSize; i++) { 188 codes.getXCoordinates(), codes.getYCoordinates(), mInputCodes, codesSize, 89 getSuggestionsNative(long dict, long proximityInfo, int[] xCoordinates, int[] yCoordinates, int[] inputCodes, int codesSize, int[] prevWordForBigrams, boolean useFullEditDistance, char[] outputChars, int[] scores) argument
|