From dfbe2bfe089b301819039e9b3a7d2c307e6beac7 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Wed, 18 Dec 2013 16:53:54 +0900 Subject: Add some info to test crashes to help diagnose flakiness Bug: 11142685 Change-Id: Ic3a5d452f6c325248ac4e1bfa37774c58586f359 --- java/src/com/android/inputmethod/latin/LatinIME.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'java/src') 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) { -- cgit v1.2.3-83-g751a