Log from LatinIME.
When the DEBUG setting is on, log from this critical class. This will make it easier to diagnose issues. Bug 19632709. Change-Id: I5e14b3705f50cd021ad3d64af106ad28dc8b9321
This commit is contained in:
parent
8eb2fad570
commit
edaa83bb32
1 changed files with 4 additions and 6 deletions
|
@ -110,7 +110,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
ImportantNoticeDialog.ImportantNoticeDialogListener {
|
ImportantNoticeDialog.ImportantNoticeDialogListener {
|
||||||
static final String TAG = LatinIME.class.getSimpleName();
|
static final String TAG = LatinIME.class.getSimpleName();
|
||||||
private static final boolean TRACE = false;
|
private static final boolean TRACE = false;
|
||||||
private static boolean DEBUG = false;
|
|
||||||
|
|
||||||
private static final int EXTENDED_TOUCHABLE_REGION_HEIGHT = 100;
|
private static final int EXTENDED_TOUCHABLE_REGION_HEIGHT = 100;
|
||||||
private static final int PERIOD_FOR_AUDIO_AND_HAPTIC_FEEDBACK_IN_KEY_REPEAT = 2;
|
private static final int PERIOD_FOR_AUDIO_AND_HAPTIC_FEEDBACK_IN_KEY_REPEAT = 2;
|
||||||
|
@ -557,7 +556,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
|
||||||
mHandler.onCreate();
|
mHandler.onCreate();
|
||||||
DEBUG = DebugFlags.DEBUG_ENABLED;
|
|
||||||
|
|
||||||
// TODO: Resolve mutual dependencies of {@link #loadSettings()} and
|
// TODO: Resolve mutual dependencies of {@link #loadSettings()} and
|
||||||
// {@link #resetDictionaryFacilitatorIfNecessary()}.
|
// {@link #resetDictionaryFacilitatorIfNecessary()}.
|
||||||
|
@ -823,7 +821,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (DEBUG) {
|
if (DebugFlags.DEBUG_ENABLED) {
|
||||||
Log.d(TAG, "onStartInputView: editorInfo:"
|
Log.d(TAG, "onStartInputView: editorInfo:"
|
||||||
+ String.format("inputType=0x%08x imeOptions=0x%08x",
|
+ String.format("inputType=0x%08x imeOptions=0x%08x",
|
||||||
editorInfo.inputType, editorInfo.imeOptions));
|
editorInfo.inputType, editorInfo.imeOptions));
|
||||||
|
@ -1011,7 +1009,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
final int composingSpanStart, final int composingSpanEnd) {
|
final int composingSpanStart, final int composingSpanEnd) {
|
||||||
super.onUpdateSelection(oldSelStart, oldSelEnd, newSelStart, newSelEnd,
|
super.onUpdateSelection(oldSelStart, oldSelEnd, newSelStart, newSelEnd,
|
||||||
composingSpanStart, composingSpanEnd);
|
composingSpanStart, composingSpanEnd);
|
||||||
if (DEBUG) {
|
if (DebugFlags.DEBUG_ENABLED) {
|
||||||
Log.i(TAG, "onUpdateSelection: oss=" + oldSelStart + ", ose=" + oldSelEnd
|
Log.i(TAG, "onUpdateSelection: oss=" + oldSelStart + ", ose=" + oldSelEnd
|
||||||
+ ", nss=" + newSelStart + ", nse=" + newSelEnd
|
+ ", nss=" + newSelStart + ", nse=" + newSelEnd
|
||||||
+ ", cs=" + composingSpanStart + ", ce=" + composingSpanEnd);
|
+ ", cs=" + composingSpanStart + ", ce=" + composingSpanEnd);
|
||||||
|
@ -1079,7 +1077,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisplayCompletions(final CompletionInfo[] applicationSpecifiedCompletions) {
|
public void onDisplayCompletions(final CompletionInfo[] applicationSpecifiedCompletions) {
|
||||||
if (DEBUG) {
|
if (DebugFlags.DEBUG_ENABLED) {
|
||||||
Log.i(TAG, "Received completions:");
|
Log.i(TAG, "Received completions:");
|
||||||
if (applicationSpecifiedCompletions != null) {
|
if (applicationSpecifiedCompletions != null) {
|
||||||
for (int i = 0; i < applicationSpecifiedCompletions.length; i++) {
|
for (int i = 0; i < applicationSpecifiedCompletions.length; i++) {
|
||||||
|
@ -1780,7 +1778,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
@UsedForTesting
|
@UsedForTesting
|
||||||
/* package for test */ SuggestedWords getSuggestedWordsForTest() {
|
/* package for test */ SuggestedWords getSuggestedWordsForTest() {
|
||||||
// You may not use this method for anything else than debug
|
// You may not use this method for anything else than debug
|
||||||
return DEBUG ? mInputLogic.mSuggestedWords : null;
|
return DebugFlags.DEBUG_ENABLED ? mInputLogic.mSuggestedWords : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME.
|
// DO NOT USE THIS for any other purpose than testing. This is information private to LatinIME.
|
||||||
|
|
Loading…
Reference in a new issue