diff options
author | 2013-10-28 17:23:02 -0700 | |
---|---|---|
committer | 2013-10-28 17:23:02 -0700 | |
commit | 5ddd43a45cf69dfcbb2abe63fcab2e56277d0bbc (patch) | |
tree | 64a40395e64950217d3c7d1f36e0c81d5ee5cdc4 /java/src/com/android/inputmethod/latin/ExpandableDictionary.java | |
parent | 6f48fe456f1ba8bb962a73a9bb5f4989fe385a5a (diff) | |
parent | 388c953613bc06721eba28be31dc1f4936d8b88a (diff) | |
download | latinime-5ddd43a45cf69dfcbb2abe63fcab2e56277d0bbc.tar.gz latinime-5ddd43a45cf69dfcbb2abe63fcab2e56277d0bbc.tar.xz latinime-5ddd43a45cf69dfcbb2abe63fcab2e56277d0bbc.zip |
am 388c9536: Fix tests by adding @UsedForTesting.
* commit '388c953613bc06721eba28be31dc1f4936d8b88a':
Fix tests by adding @UsedForTesting.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ExpandableDictionary.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java index 95c9bcab9..8fdff8f7e 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java @@ -33,6 +33,7 @@ import java.util.LinkedList; * be searched for suggestions and valid words. */ // TODO: Remove after binary dictionary supports dynamic update. +@UsedForTesting public class ExpandableDictionary extends Dictionary { private static final String TAG = ExpandableDictionary.class.getSimpleName(); /** @@ -146,6 +147,7 @@ public class ExpandableDictionary extends Dictionary { private int[][] mCodes; + @UsedForTesting public ExpandableDictionary(final String dictType) { super(dictType); clearDictionary(); @@ -164,6 +166,7 @@ public class ExpandableDictionary extends Dictionary { * @param shortcutFreq The frequency of the shortcut (0~15, with 15 = whitelist). Ignored * if shortcutTarget is null. */ + @UsedForTesting public void addWord(final String word, final String shortcutTarget, final int frequency, final int shortcutFreq) { if (word.length() >= Constants.DICTIONARY_MAX_WORD_LENGTH) { |