/packages/inputmethods/LatinIME/native/jni/src/utils/ |
autocorrection_threshold_utils.h | 27 const int *after, const int afterLength, const int score); 29 const int afterLength);
|
autocorrection_threshold_utils.cpp | 32 const int beforeLength, const int *after, const int afterLength) { 34 before, beforeLength, after, afterLength); 70 const int beforeLength, const int *after, const int afterLength, const int score) { 71 if (0 == beforeLength || 0 == afterLength) { 74 const int distance = editDistance(before, beforeLength, after, afterLength); 76 for (int i = 0; i < afterLength; ++i) { 82 if (spaceCount == afterLength) { 86 if (score <= 0 || distance >= afterLength) { 88 // or if the edit distance is larger than or equal to afterLength. 92 const float weight = 1.0f - static_cast<float>(distance) / static_cast<float>(afterLength); [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
edit_distance.h | 30 const int afterLength = policy->getString1Length(); 31 float dp[(beforeLength + 1) * (afterLength + 1)]; 33 dp[(afterLength + 1) * i] = i * policy->getInsertionCost(i - 1, -1); 35 for (int i = 0; i <= afterLength; ++i) { 40 for (int j = 0; j < afterLength; ++j) { 41 dp[(afterLength + 1) * (i + 1) + (j + 1)] = min( 42 dp[(afterLength + 1) * i + (j + 1)] + policy->getInsertionCost(i, j), 43 min(dp[(afterLength + 1) * (i + 1) + j] + policy->getDeletionCost(i, j), 44 dp[(afterLength + 1) * i + j] 47 dp[(afterLength + 1) * (i + 1) + (j + 1)] = min [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
InputConnection.java | 298 * current cursor position, and delete <var>afterLength</var> 340 * @param afterLength The number of characters to be deleted after the 345 public boolean deleteSurroundingText(int beforeLength, int afterLength); [all...] |
InputConnectionWrapper.java | 65 public boolean deleteSurroundingText(int beforeLength, int afterLength) { 66 return mTarget.deleteSurroundingText(beforeLength, afterLength);
|
BaseInputConnection.java | 206 * @param afterLength 208 public boolean deleteSurroundingText(int beforeLength, int afterLength) { 210 + " / " + afterLength); 247 if (afterLength > 0) { 250 int end = b + afterLength;
|
/packages/inputmethods/LatinIME/native/jni/ |
com_android_inputmethod_latin_BinaryDictionary.cpp | 258 jsize afterLength = env->GetArrayLength(after); 260 int afterCodePoints[afterLength]; 262 env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints); 264 afterCodePoints, afterLength, score); 270 jsize afterLength = env->GetArrayLength(after); 272 int afterCodePoints[afterLength]; 274 env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints); 276 afterCodePoints, afterLength);
|
/frameworks/base/core/java/com/android/internal/view/ |
InputConnectionWrapper.java | 390 public boolean deleteSurroundingText(int beforeLength, int afterLength) { 392 mIInputContext.deleteSurroundingText(beforeLength, afterLength);
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
InputConnectionWrapperTest.java | 137 public boolean deleteSurroundingText(int beforeLength, int afterLength) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
RichInputConnection.java | 323 public void deleteSurroundingText(final int beforeLength, final int afterLength) { 341 mIC.deleteSurroundingText(beforeLength, afterLength); 343 ResearchLogger.richInputConnection_deleteSurroundingText(beforeLength, afterLength); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
ResearchLogger.java | [all...] |
/frameworks/base/core/java/android/widget/ |
AbsListView.java | [all...] |
/prebuilts/sdk/18/ |
android.jar | |
/prebuilts/sdk/19/ |
android.jar | |
/prebuilts/sdk/17/ |
android.jar | |