aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2013-10-28 17:16:01 -0700
committerKeisuke Kuroyanagi <ksk@google.com>2013-10-28 17:16:01 -0700
commit388c953613bc06721eba28be31dc1f4936d8b88a (patch)
tree64a40395e64950217d3c7d1f36e0c81d5ee5cdc4 /java/src/com/android/inputmethod/latin/ExpandableDictionary.java
parent41b77116d30e38314a20daf5694f4d2d32b24002 (diff)
downloadlatinime-388c953613bc06721eba28be31dc1f4936d8b88a.tar.gz
latinime-388c953613bc06721eba28be31dc1f4936d8b88a.tar.xz
latinime-388c953613bc06721eba28be31dc1f4936d8b88a.zip
Fix tests by adding @UsedForTesting.
Change-Id: I5b98db67a083bde65bb0f2fb714ae2e799fb1d45
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/ExpandableDictionary.java3
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) {