diff options
author | 2015-02-04 12:50:31 -0800 | |
---|---|---|
committer | 2015-02-04 12:50:31 -0800 | |
commit | b00c054125d9f2aa31c2147920cc52cbf2a45ccc (patch) | |
tree | f23abce4d9b6a1ff053d86cf00cfc3874671758e /common/src/com/android/inputmethod/latin | |
parent | 0d3f01f3014e7a519b08c9337bc4b73670f741ef (diff) | |
download | latinime-b00c054125d9f2aa31c2147920cc52cbf2a45ccc.tar.gz latinime-b00c054125d9f2aa31c2147920cc52cbf2a45ccc.tar.xz latinime-b00c054125d9f2aa31c2147920cc52cbf2a45ccc.zip |
AOSP changes to use KeyboardLayout to support the new DictionaryFacilitator
Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844
Diffstat (limited to 'common/src/com/android/inputmethod/latin')
-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. } |