OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:codesSize
(Results
1 - 7
of
7
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/
debug.h
61
static inline void printDebug(const char* tag, int* codes, int
codesSize
, int MAX_PROXIMITY_CHARS) {
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];
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
,
51
return mBigramDictionary->getBigrams(word, length, codes,
codesSize
, outWords, frequencies,
unigram_dictionary.cpp
59
static inline unsigned int getCodesBufferSize(const int *codes, const int
codesSize
) {
60
return sizeof(*codes) *
codesSize
;
70
int UnigramDictionary::getDigraphReplacement(const int *codes, const int i, const int
codesSize
,
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
, bigramMap, bigramFilter
[
all
...]
bigram_dictionary.h
31
int getBigrams(const int32_t *word, int length, int *codes, int
codesSize
,
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);
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)) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
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
,
Completed in 786 milliseconds