diff options
author | 2013-12-18 16:53:54 +0900 | |
---|---|---|
committer | 2013-12-18 18:10:56 +0900 | |
commit | dfbe2bfe089b301819039e9b3a7d2c307e6beac7 (patch) | |
tree | c77a5334a0a072c0b81bc1e9fc080bdd350c77b6 /java | |
parent | d5f5dd74c2e0946d4686a4f22cda1591b34b6729 (diff) | |
download | latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.tar.gz latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.tar.xz latinime-dfbe2bfe089b301819039e9b3a7d2c307e6beac7.zip |
Add some info to test crashes to help diagnose flakiness
Bug: 11142685
Change-Id: Ic3a5d452f6c325248ac4e1bfa37774c58586f359
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 11 |
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) { |