From b00c054125d9f2aa31c2147920cc52cbf2a45ccc Mon Sep 17 00:00:00 2001 From: Mohammadinamul Sheik Date: Wed, 4 Feb 2015 12:50:31 -0800 Subject: AOSP changes to use KeyboardLayout to support the new DictionaryFacilitator Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844 --- common/src/com/android/inputmethod/latin/common/Constants.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common') 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. } -- cgit v1.2.3-83-g751a