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

  /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...]
  /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/
InputConnectionWrapper.java 117 public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
118 return mTarget.deleteSurroundingTextInCodePoints(beforeLength, afterLength);
125 public boolean deleteSurroundingText(int beforeLength, int afterLength) {
126 return mTarget.deleteSurroundingText(beforeLength, afterLength);
InputConnection.java 317 * current cursor position, and delete <var>afterLength</var>
361 * @param afterLength The number of characters after the cursor to be deleted, in code unit.
367 public boolean deleteSurroundingText(int beforeLength, int afterLength);
388 * @param afterLength The number of characters after the cursor to be deleted, in code points.
395 public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength);
    [all...]
BaseInputConnection.java 211 * @param afterLength The number of characters after the cursor to be deleted, in code unit.
216 public boolean deleteSurroundingText(int beforeLength, int afterLength) {
218 + " / " + afterLength);
255 if (afterLength > 0) {
258 int end = b + afterLength;
368 * @param afterLength The number of characters after the cursor to be deleted, in code points.
373 public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
375 + " / " + afterLength);
406 final int end = findIndexForward(content, b, Math.max(afterLength, 0));
  /frameworks/base/core/java/com/android/internal/view/
IInputContext.aidl 42 void deleteSurroundingText(int beforeLength, int afterLength);
43 void deleteSurroundingTextInCodePoints(int beforeLength, int afterLength);
InputConnectionWrapper.java 423 public boolean deleteSurroundingText(int beforeLength, int afterLength) {
425 mIInputContext.deleteSurroundingText(beforeLength, afterLength);
432 public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
438 mIInputContext.deleteSurroundingTextInCodePoints(beforeLength, afterLength);
IInputConnectionWrapper.java 208 public void deleteSurroundingText(int beforeLength, int afterLength) {
210 beforeLength, afterLength));
213 public void deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
215 beforeLength, afterLength));
  /cts/tests/tests/view/src/android/view/inputmethod/cts/
InputConnectionWrapperTest.java 151 public boolean deleteSurroundingText(int beforeLength, int afterLength) {
156 public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
  /external/skia/platform_tools/android/apps/visualbenchsdl/src/main/java/org/libsdl/app/
SDLActivity.java     [all...]
  /frameworks/base/core/java/android/widget/
AbsListView.java     [all...]
  /prebuilts/sdk/current/
android.jar 
  /prebuilts/sdk/system_current/
android.jar 
  /external/robolectric/v1/lib/main/
android.jar 
  /prebuilts/sdk/18/
android.jar 
  /prebuilts/sdk/19/
android.jar 
  /prebuilts/sdk/17/
android.jar 

Completed in 266 milliseconds