HomeSort by relevance Sort by last modified time
    Searched refs:afterLength (Results 1 - 25 of 34) sorted by null

1 2

  /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 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);
77 for (int i = 0; i < afterLength; ++i) {
83 if (spaceCount == afterLength) {
87 if (score <= 0 || distance >= afterLength) {
89 // or if the edit distance is larger than or equal to afterLength.
93 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 32 const int afterLength = policy->getString1Length();
33 float dp[(beforeLength + 1) * (afterLength + 1)];
35 dp[(afterLength + 1) * i] = i * policy->getInsertionCost(i - 1, -1);
37 for (int i = 0; i <= afterLength; ++i) {
42 for (int j = 0; j < afterLength; ++j) {
43 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min(
44 dp[(afterLength + 1) * i + (j + 1)] + policy->getInsertionCost(i, j),
46 dp[(afterLength + 1) * (i + 1) + j] + policy->getDeletionCost(i, j),
47 dp[(afterLength + 1) * i + j] + policy->getSubstitutionCost(i, j)));
49 dp[(afterLength + 1) * (i + 1) + (j + 1)] = std::min
    [all...]
  /frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/
EmojiInputConnection.java 55 public boolean deleteSurroundingText(final int beforeLength, final int afterLength) {
57 beforeLength, afterLength, false /*inCodePoints*/);
58 return result || super.deleteSurroundingText(beforeLength, afterLength);
63 final int afterLength) {
65 beforeLength, afterLength, true /*inCodePoints*/);
66 return result || super.deleteSurroundingTextInCodePoints(beforeLength, afterLength);
  /packages/inputmethods/LatinIME/native/jni/
com_android_inputmethod_latin_BinaryDictionaryUtils.cpp 62 jsize afterLength = env->GetArrayLength(after);
64 int afterCodePoints[afterLength];
66 env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints);
68 afterCodePoints, afterLength, score);
  /frameworks/base/core/java/android/view/inputmethod/
InputConnection.java 321 * current cursor position, and delete <var>afterLength</var>
365 * @param afterLength The number of characters after the cursor to be deleted, in code unit.
371 boolean deleteSurroundingText(int beforeLength, int afterLength);
392 * @param afterLength The number of characters after the cursor to be deleted, in code points.
399 boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength);
    [all...]
InputConnectionWrapper.java 123 public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
124 return mTarget.deleteSurroundingTextInCodePoints(beforeLength, afterLength);
132 public boolean deleteSurroundingText(int beforeLength, int afterLength) {
133 return mTarget.deleteSurroundingText(beforeLength, afterLength);
BaseInputConnection.java 210 * @param afterLength The number of characters after the cursor to be deleted, in code unit.
215 public boolean deleteSurroundingText(int beforeLength, int afterLength) {
217 + " / " + afterLength);
254 if (afterLength > 0) {
257 int end = b + afterLength;
367 * @param afterLength The number of characters after the cursor to be deleted, in code points.
372 public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
374 + " / " + afterLength);
405 final int end = findIndexForward(content, b, Math.max(afterLength, 0));
  /frameworks/base/core/java/com/android/internal/view/
IInputContext.aidl 43 void deleteSurroundingText(int beforeLength, int afterLength);
44 void deleteSurroundingTextInCodePoints(int beforeLength, int afterLength);
InputConnectionWrapper.java 509 public boolean deleteSurroundingText(int beforeLength, int afterLength) {
511 mIInputContext.deleteSurroundingText(beforeLength, afterLength);
519 public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
525 mIInputContext.deleteSurroundingTextInCodePoints(beforeLength, afterLength);
IInputConnectionWrapper.java 182 public void deleteSurroundingText(int beforeLength, int afterLength) {
184 beforeLength, afterLength));
187 public void deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
189 beforeLength, afterLength));
  /frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
EmojiProcessor.java 362 * @param afterLength the number of characters after the cursor to be deleted
369 @IntRange(from = 0) final int afterLength, final boolean inCodePoints) {
375 if (beforeLength < 0 || afterLength < 0) {
393 Math.max(afterLength, 0));
401 end = Math.min(selectionEnd + afterLength, editable.length());
    [all...]
EmojiCompat.java 543 * @param afterLength the number of characters after the cursor to be deleted
550 @IntRange(from = 0) final int beforeLength, @IntRange(from = 0) final int afterLength,
554 beforeLength, afterLength, inCodePoints);
    [all...]
  /frameworks/base/core/java/android/widget/
AbsListView.java     [all...]
  /prebuilts/sdk/26/
android.jar 
  /prebuilts/sdk/27/
android.jar 
  /external/robolectric/v1/lib/main/
android.jar 
  /prebuilts/sdk/18/
android.jar 
  /prebuilts/sdk/19/
android.jar 
  /prebuilts/tools/common/m2/repository/com/google/android/android/4.1.1.4/
android-4.1.1.4.jar 
  /prebuilts/gradle-plugin/com/android/tools/external/com-intellij/intellij-core/26.0.0/
intellij-core-26.0.0.jar 
  /prebuilts/gradle-plugin/com/android/tools/external/com-intellij/intellij-core/26.0.0-alpha4/
intellij-core-26.0.0-alpha4.jar 
  /prebuilts/gradle-plugin/com/android/tools/external/com-intellij/intellij-core/26.0.0-alpha5/
intellij-core-26.0.0-alpha5.jar 
  /prebuilts/gradle-plugin/com/android/tools/external/com-intellij/intellij-core/26.0.0-alpha6/
intellij-core-26.0.0-alpha6.jar 
  /prebuilts/gradle-plugin/com/android/tools/external/com-intellij/intellij-core/26.0.0-alpha7/
intellij-core-26.0.0-alpha7.jar 

Completed in 543 milliseconds

1 2