aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SuggestedWords.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-25 04:34:29 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-25 04:34:29 -0700
commit12b35158efe759c772454059b69615b6c6b6b854 (patch)
tree2689e2449f631a351b6f87ff7ce21be9586b0538 /java/src/com/android/inputmethod/latin/SuggestedWords.java
parent9799b7dc712f3b0d5c320856b172970a9221a18d (diff)
parent1919072cfc88dfb6f8120fe6a646146eae6694c2 (diff)
downloadlatinime-12b35158efe759c772454059b69615b6c6b6b854.tar.gz
latinime-12b35158efe759c772454059b69615b6c6b6b854.tar.xz
latinime-12b35158efe759c772454059b69615b6c6b6b854.zip
am 1919072c: Merge "[ZF1] Check profanity in Java rather than in native"
* commit '1919072cfc88dfb6f8120fe6a646146eae6694c2': [ZF1] Check profanity in Java rather than in native
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestedWords.java')
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestedWords.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java
index 616e1911b..dfddb0ffe 100644
--- a/java/src/com/android/inputmethod/latin/SuggestedWords.java
+++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java
@@ -122,6 +122,7 @@ public final class SuggestedWords {
public static final class SuggestedWordInfo {
public static final int MAX_SCORE = Integer.MAX_VALUE;
+ public static final int KIND_MASK_KIND = 0xFF; // Mask to get only the kind
public static final int KIND_TYPED = 0; // What user typed
public static final int KIND_CORRECTION = 1; // Simple correction/suggestion
public static final int KIND_COMPLETION = 2; // Completion (suggestion with appended chars)
@@ -132,6 +133,11 @@ public final class SuggestedWords {
public static final int KIND_SHORTCUT = 7; // A shortcut
public static final int KIND_PREDICTION = 8; // A prediction (== a suggestion with no input)
public static final int KIND_RESUMED = 9; // A resumed suggestion (comes from a span)
+
+ public static final int KIND_MASK_FLAGS = 0xFFFFFF00; // Mask to get the flags
+ public static final int KIND_FLAG_POSSIBLY_OFFENSIVE = 0x80000000;
+ public static final int KIND_FLAG_EXACT_MATCH = 0x40000000;
+
public final String mWord;
public final int mScore;
public final int mKind; // one of the KIND_* constants above