diff options
author | 2015-02-05 00:44:10 +0000 | |
---|---|---|
committer | 2015-02-05 00:44:10 +0000 | |
commit | bae6848434c0618887bd3fd441dd5ce16a2375fd (patch) | |
tree | ba31351faf517a458a859c29e79abfb699b94184 /common/src/com/android/inputmethod | |
parent | c71e4d65343bf782d80ce508786befa6ee3261cf (diff) | |
parent | b00c054125d9f2aa31c2147920cc52cbf2a45ccc (diff) | |
download | latinime-bae6848434c0618887bd3fd441dd5ce16a2375fd.tar.gz latinime-bae6848434c0618887bd3fd441dd5ce16a2375fd.tar.xz latinime-bae6848434c0618887bd3fd441dd5ce16a2375fd.zip |
Merge "AOSP changes to use KeyboardLayout to support the new DictionaryFacilitator"
Diffstat (limited to 'common/src/com/android/inputmethod')
-rw-r--r-- | common/src/com/android/inputmethod/latin/common/Constants.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/src/com/android/inputmethod/latin/common/Constants.java b/common/src/com/android/inputmethod/latin/common/Constants.java index a860d3560..2095d2e0c 100644 --- a/common/src/com/android/inputmethod/latin/common/Constants.java +++ b/common/src/com/android/inputmethod/latin/common/Constants.java @@ -175,10 +175,12 @@ public final class Constants { public static final int MAX_CHARACTERS_FOR_RECAPITALIZATION = 1024 * 100; // Must be equal to MAX_WORD_LENGTH in native/jni/src/defines.h + // TODO: create a overlay and update the value appropriately for the new decoder. public static final int DICTIONARY_MAX_WORD_LENGTH = 48; // (MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1)-gram is supported in Java side. Needs to modify // MAX_PREV_WORD_COUNT_FOR_N_GRAM in native/jni/src/defines.h for suggestions. + // TODO: create a overlay and update the value appropriately for the new decoder. public static final int MAX_PREV_WORD_COUNT_FOR_N_GRAM = 3; // Key events coming any faster than this are long-presses. @@ -330,6 +332,10 @@ public final class Constants { */ public static final int DEFAULT_GESTURE_POINTS_CAPACITY = 128; + public static final int MAX_IME_DECODER_RESULTS = 20; + public static final int DECODER_SCORE_SCALAR = 1000000; + public static final int DECODER_MAX_SCORE = 1000000000; + private Constants() { // This utility class is not publicly instantiable. } |