Merge "Fix commit partial text logStatement"

main
Kurt Partridge 2013-01-17 19:15:31 +00:00 committed by Android (Google) Code Review
commit f881f10e90
1 changed files with 5 additions and 5 deletions

View File

@ -1480,20 +1480,20 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
private boolean isExpectingCommitText = false;
/**
* Log a call to RichInputConnection.commitPartialText
* Log a call to (UnknownClass).commitPartialText
*
* SystemResponse: The IME is committing part of a word. This happens if a space is
* automatically inserted to split a single typed string into two or more words.
*/
// TODO: This method is currently unused. Find where it should be called from in the IME and
// add invocations.
private static final LogStatement LOGSTATEMENT_LATINIME_COMMIT_PARTIAL_TEXT =
new LogStatement("LatinIMECommitPartialText", true, false, "newCursorPosition");
public static void latinIME_commitPartialText(final String committedWord,
private static final LogStatement LOGSTATEMENT_COMMIT_PARTIAL_TEXT =
new LogStatement("CommitPartialText", true, false, "newCursorPosition");
public static void commitPartialText(final String committedWord,
final long lastTimestampOfWordData, final boolean isBatchMode) {
final ResearchLogger researchLogger = getInstance();
final String scrubbedWord = scrubDigitsFromString(committedWord);
researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_COMMIT_PARTIAL_TEXT);
researchLogger.enqueueEvent(LOGSTATEMENT_COMMIT_PARTIAL_TEXT);
researchLogger.commitCurrentLogUnitAsWord(scrubbedWord, lastTimestampOfWordData,
isBatchMode);
}