aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-02-20 05:29:26 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-20 05:29:26 -0800
commit52b067e5d4ac5c26ad497e96f6e385426e1318f1 (patch)
treeb951dc096fd663c66b45b1a58f08be845e432c39 /java/src/com/android/inputmethod/latin/LatinIME.java
parent4ebf5619328bfd9ca11d0624f9d4f1d7d5a1e7ff (diff)
parente03e4257f1dc727db383bd56097eb60eeae7ceb8 (diff)
downloadlatinime-52b067e5d4ac5c26ad497e96f6e385426e1318f1.tar.gz
latinime-52b067e5d4ac5c26ad497e96f6e385426e1318f1.tar.xz
latinime-52b067e5d4ac5c26ad497e96f6e385426e1318f1.zip
am e03e4257: Merge "Add test only methods to test personalized dicts."
* commit 'e03e4257f1dc727db383bd56097eb60eeae7ceb8': Add test only methods to test personalized dicts.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 346ba8523..47a3e9469 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1717,9 +1717,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME.
@UsedForTesting
- /* package for test */ void waitForMainDictionary(final long timeout, final TimeUnit unit)
+ /* package for test */ void waitForLoadingDictionaries(final long timeout, final TimeUnit unit)
throws InterruptedException {
- mInputLogic.mSuggest.mDictionaryFacilitator.waitForLoadingMainDictionary(timeout, unit);
+ mInputLogic.mSuggest.mDictionaryFacilitator.waitForLoadingDictionariesForTesting(
+ timeout, unit);
}
// DO NOT USE THIS for any other purpose than testing. This can break the keyboard badly.
@@ -1733,6 +1734,13 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
resetSuggest(new Suggest(locale, dictionaryFacilitator));
}
+ // DO NOT USE THIS for any other purpose than testing.
+ @UsedForTesting
+ /* package for test */ void clearPersonalizedDictionariesForTest() {
+ mInputLogic.mSuggest.mDictionaryFacilitator.clearUserHistoryDictionary();
+ mInputLogic.mSuggest.mDictionaryFacilitator.clearPersonalizationDictionary();
+ }
+
public void dumpDictionaryForDebug(final String dictName) {
if (mInputLogic.mSuggest == null) {
initSuggest();