Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/
Dedit_distance.h31 const int beforeLength = policy->getString0Length(); in getEditDistance() local
33 float dp[(beforeLength + 1) * (afterLength + 1)]; in getEditDistance()
34 for (int i = 0; i <= beforeLength; ++i) { in getEditDistance()
41 for (int i = 0; i < beforeLength; ++i) { in getEditDistance()
57 AKLOGI("IN = %d, OUT = %d", beforeLength, afterLength); in getEditDistance()
58 for (int i = 0; i < beforeLength + 1; ++i) { in getEditDistance()
64 return dp[(beforeLength + 1) * (afterLength + 1) - 1]; in getEditDistance()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dautocorrection_threshold_utils.cpp33 const int beforeLength, const int *after, const int afterLength) { in editDistance() argument
35 before, beforeLength, after, afterLength); in editDistance()
71 const int beforeLength, const int *after, const int afterLength, const int score) { in calcNormalizedScore() argument
72 if (0 == beforeLength || 0 == afterLength) { in calcNormalizedScore()
75 const int distance = editDistance(before, beforeLength, after, afterLength); in calcNormalizedScore()
103 static_cast<float>(std::min(beforeLength, afterLength - spaceCount))) in calcNormalizedScore()
Dautocorrection_threshold_utils.h26 static float calcNormalizedScore(const int *before, const int beforeLength,
28 static int editDistance(const int *before, const int beforeLength, const int *after,
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionaryUtils.cpp61 jsize beforeLength = env->GetArrayLength(before); in latinime_BinaryDictionaryUtils_calcNormalizedScore() local
63 int beforeCodePoints[beforeLength]; in latinime_BinaryDictionaryUtils_calcNormalizedScore()
65 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); in latinime_BinaryDictionaryUtils_calcNormalizedScore()
67 return AutocorrectionThresholdUtils::calcNormalizedScore(beforeCodePoints, beforeLength, in latinime_BinaryDictionaryUtils_calcNormalizedScore()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java473 public void deleteTextBeforeCursor(final int beforeLength) { in deleteTextBeforeCursor() argument
478 final int remainingChars = mComposingText.length() - beforeLength; in deleteTextBeforeCursor()
488 if (mExpectedSelStart > beforeLength) { in deleteTextBeforeCursor()
489 mExpectedSelStart -= beforeLength; in deleteTextBeforeCursor()
490 mExpectedSelEnd -= beforeLength; in deleteTextBeforeCursor()
498 mIC.deleteSurroundingText(beforeLength, 0); in deleteTextBeforeCursor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBatchInputArbiter.java95 final int beforeLength = mRecognitionPoints.getLength(); in addMoveEventPoint() local
98 if (mRecognitionPoints.getLength() > beforeLength) { in addMoveEventPoint()