aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-19 04:48:36 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-12-19 04:48:36 +0000
commit553fd66270faec1e4a48b64a522074763c56024f (patch)
treee221f448c62723057528d8762a0727b681ee85a5 /java/src/com/android/inputmethod
parentb68dd6cd0b58f0471c556a58f50c3cd6eab831c3 (diff)
parentdfbe2bfe089b301819039e9b3a7d2c307e6beac7 (diff)
downloadlatinime-553fd66270faec1e4a48b64a522074763c56024f.tar.gz
latinime-553fd66270faec1e4a48b64a522074763c56024f.tar.xz
latinime-553fd66270faec1e4a48b64a522074763c56024f.zip
Merge "Add some info to test crashes to help diagnose flakiness"
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 67b570277..4b38c8871 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -3253,8 +3253,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// TODO: can this be removed somehow without breaking the tests?
@UsedForTesting
- /* package for test */ String getFirstSuggestedWord() {
- return mSuggestedWords.size() > 0 ? mSuggestedWords.getWord(0) : null;
+ /* package for test */ SuggestedWords getSuggestedWords() {
+ // You may not use this method for anything else than debug
+ return DEBUG ? mSuggestedWords : null;
}
// DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME.
@@ -3263,12 +3264,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
return mSuggest.isCurrentlyWaitingForMainDictionary();
}
- // DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME.
- @UsedForTesting
- /* package for test */ boolean hasMainDictionary() {
- return mSuggest.hasMainDictionary();
- }
-
// DO NOT USE THIS for any other purpose than testing. This can break the keyboard badly.
@UsedForTesting
/* package for test */ void replaceMainDictionaryForTest(final Locale locale) {