Add logging
- add logging for delete - add logging for inputchar Change-Id: I684692385f4c3acb66ab2bcd6421dae1d84feb8fmain
parent
8677ac3586
commit
22f7ea7518
|
@ -937,6 +937,7 @@ public class LatinIME extends InputMethodService
|
|||
case Keyboard.KEYCODE_DELETE:
|
||||
handleBackspace();
|
||||
mDeleteCount++;
|
||||
LatinImeLogger.logOnDelete(1);
|
||||
break;
|
||||
case Keyboard.KEYCODE_SHIFT:
|
||||
handleShift();
|
||||
|
@ -982,6 +983,7 @@ public class LatinIME extends InputMethodService
|
|||
} else {
|
||||
handleCharacter(primaryCode, keyCodes);
|
||||
}
|
||||
LatinImeLogger.logOnInputChar(1);
|
||||
// Cancel the just reverted state
|
||||
mJustRevertedSeparator = null;
|
||||
}
|
||||
|
|
|
@ -175,6 +175,9 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||
}
|
||||
|
||||
private void sendLogToDropBox(int tag, Object s) {
|
||||
if (DBG) {
|
||||
Log.d(TAG, "SendLog: " + tag + ";" + s);
|
||||
}
|
||||
long now = System.currentTimeMillis();
|
||||
if (now - mLastTimeActive > MINIMUMSENDINTERVAL) {
|
||||
// Send a log before adding an log entry if the last data is too old.
|
||||
|
|
Loading…
Reference in New Issue