Searched refs:beforeLength (Results 1 - 6 of 6) sorted by last modified time
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | BatchInputArbiter.java | 95 final int beforeLength = mRecognitionPoints.getLength(); 98 if (mRecognitionPoints.getLength() > beforeLength) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | RichInputConnection.java | 413 public void deleteSurroundingText(final int beforeLength, final int afterLength) { argument 418 final int remainingChars = mComposingText.length() - beforeLength; 428 if (mExpectedSelStart > beforeLength) { 429 mExpectedSelStart -= beforeLength; 430 mExpectedSelEnd -= beforeLength; 438 mIC.deleteSurroundingText(beforeLength, afterLength);
|
/packages/inputmethods/LatinIME/native/jni/ |
H A D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 61 jsize beforeLength = env->GetArrayLength(before); local 63 int beforeCodePoints[beforeLength]; 65 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); 67 return AutocorrectionThresholdUtils::calcNormalizedScore(beforeCodePoints, beforeLength, 73 jsize beforeLength = env->GetArrayLength(before); local 75 int beforeCodePoints[beforeLength]; 77 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); 79 return AutocorrectionThresholdUtils::editDistance(beforeCodePoints, beforeLength,
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
H A D | edit_distance.h | 31 const int beforeLength = policy->getString0Length(); local 33 float dp[(beforeLength + 1) * (afterLength + 1)]; 34 for (int i = 0; i <= beforeLength; ++i) { 41 for (int i = 0; i < beforeLength; ++i) { 57 AKLOGI("IN = %d, OUT = %d", beforeLength, afterLength); 58 for (int i = 0; i < beforeLength + 1; ++i) { 64 return dp[(beforeLength + 1) * (afterLength + 1) - 1];
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | autocorrection_threshold_utils.cpp | 33 const int beforeLength, const int *after, const int afterLength) { 35 before, beforeLength, after, afterLength); 71 const int beforeLength, const int *after, const int afterLength, const int score) { 72 if (0 == beforeLength || 0 == afterLength) { 75 const int distance = editDistance(before, beforeLength, after, afterLength); 103 static_cast<float>(std::min(beforeLength, afterLength - spaceCount))) 32 editDistance(const int *before, const int beforeLength, const int *after, const int afterLength) argument 70 calcNormalizedScore(const int *before, const int beforeLength, const int *after, const int afterLength, const int score) argument
|
H A D | autocorrection_threshold_utils.h | 26 static float calcNormalizedScore(const int *before, const int beforeLength, 28 static int editDistance(const int *before, const int beforeLength, const int *after,
|
Completed in 150 milliseconds