Home
last modified time | relevance | path

Searched refs:beforeLength (Results 1 – 8 of 8) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
Dedit_distance.h29 const int beforeLength = policy->getString0Length(); in getEditDistance() local
31 float dp[(beforeLength + 1) * (afterLength + 1)]; in getEditDistance()
32 for (int i = 0; i <= beforeLength; ++i) { in getEditDistance()
39 for (int i = 0; i < beforeLength; ++i) { in getEditDistance()
55 AKLOGI("IN = %d, OUT = %d", beforeLength, afterLength); in getEditDistance()
56 for (int i = 0; i < beforeLength + 1; ++i) { in getEditDistance()
62 return dp[(beforeLength + 1) * (afterLength + 1) - 1]; in getEditDistance()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp232 jsize beforeLength = env->GetArrayLength(before); in latinime_BinaryDictionary_calcNormalizedScore() local
234 int beforeCodePoints[beforeLength]; in latinime_BinaryDictionary_calcNormalizedScore()
236 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); in latinime_BinaryDictionary_calcNormalizedScore()
238 return Correction::RankingAlgorithm::calcNormalizedScore(beforeCodePoints, beforeLength, in latinime_BinaryDictionary_calcNormalizedScore()
244 jsize beforeLength = env->GetArrayLength(before); in latinime_BinaryDictionary_editDistance() local
246 int beforeCodePoints[beforeLength]; in latinime_BinaryDictionary_editDistance()
248 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); in latinime_BinaryDictionary_editDistance()
250 return Correction::RankingAlgorithm::editDistance(beforeCodePoints, beforeLength, in latinime_BinaryDictionary_editDistance()
/packages/inputmethods/LatinIME/native/jni/src/
Dwords_priority_queue.h119 AK_FORCE_INLINE float getHighestNormalizedScore(const int *before, const int beforeLength, in getHighestNormalizedScore() argument
124 return getNormalizedScore(mHighestSuggestedWord, before, beforeLength, outWord, outScore, in getHighestNormalizedScore()
128 int outputSuggestions(const int *before, const int beforeLength, int *frequencies,
149 static float getNormalizedScore(SuggestedWord *sw, const int *before, const int beforeLength, in getNormalizedScore() argument
163 return Correction::RankingAlgorithm::calcNormalizedScore(before, beforeLength, word, in getNormalizedScore()
Dcorrection.cpp912 const int beforeLength, const int *after, const int afterLength) { in editDistance() argument
914 before, beforeLength, after, afterLength); in editDistance()
947 const int beforeLength, const int *after, const int afterLength, const int score) { in calcNormalizedScore() argument
948 if (0 == beforeLength || 0 == afterLength) { in calcNormalizedScore()
951 const int distance = editDistance(before, beforeLength, after, afterLength); in calcNormalizedScore()
974 static_cast<float>(min(beforeLength, afterLength - spaceCount))) in calcNormalizedScore()
Dwords_priority_queue.cpp21 int WordsPriorityQueue::outputSuggestions(const int *before, const int beforeLength, in outputSuggestions() argument
46 const float tempNs = getNormalizedScore(tempSw, before, beforeLength, 0, 0, 0); in outputSuggestions()
Dcorrection.h111 static float calcNormalizedScore(const int *before, const int beforeLength,
113 static int editDistance(const int *before, const int beforeLength, const int *after,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DPointerTracker.java935 final int beforeLength = mGestureStrokeWithPreviewPoints.getLength(); in onGestureMoveEvent() local
938 if (mGestureStrokeWithPreviewPoints.getLength() > beforeLength) { in onGestureMoveEvent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DResearchLogger.java1632 public static void richInputConnection_deleteSurroundingText(final int beforeLength, in richInputConnection_deleteSurroundingText() argument
1635 beforeLength, afterLength); in richInputConnection_deleteSurroundingText()