aboutsummaryrefslogtreecommitdiffstats
path: root/common/src
diff options
context:
space:
mode:
authorMohammadinamul Sheik <inamul@google.com>2015-02-05 02:10:56 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-05 02:10:56 +0000
commit124039cfe1c10721a36ea31c01ec3a8a3fa93c49 (patch)
treea66a91b32a838f782d059b5f0b8b871e9bd58c57 /common/src
parentbaf0bd90a3497afc665d23c8ebe1592278ab9699 (diff)
parentbae6848434c0618887bd3fd441dd5ce16a2375fd (diff)
downloadlatinime-124039cfe1c10721a36ea31c01ec3a8a3fa93c49.tar.gz
latinime-124039cfe1c10721a36ea31c01ec3a8a3fa93c49.tar.xz
latinime-124039cfe1c10721a36ea31c01ec3a8a3fa93c49.zip
am bae68484: Merge "AOSP changes to use KeyboardLayout to support the new DictionaryFacilitator"
* commit 'bae6848434c0618887bd3fd441dd5ce16a2375fd': AOSP changes to use KeyboardLayout to support the new DictionaryFacilitator
Diffstat (limited to 'common/src')
-rw-r--r--common/src/com/android/inputmethod/latin/common/Constants.java6
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.
}