Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08d9c996 authored by Kurt Partridge's avatar Kurt Partridge Committed by Android (Google) Code Review
Browse files

Merge "[Rlog81b] Log more data with handleSeparator"

parents fb523d7f 80375649
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1881,6 +1881,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
            final int spaceState) {
        if (ProductionFlag.IS_EXPERIMENTAL) {
            ResearchLogger.recordTimeForLogUnitSplit();
            ResearchLogger.latinIME_handleSeparator(primaryCode, mWordComposer.isComposingWord());
        }
        boolean didAutoCorrect = false;
        // Handle separator
+17 −1
Original line number Diff line number Diff line
@@ -1737,6 +1737,22 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
        researchLogger.mSavedDownEventTime = Long.MAX_VALUE;
    }

    /**
     * Log a call to LatinIME.handleSeparator()
     *
     * SystemResponse: The system is inserting a separator character, possibly performing auto-
     * correction or other actions appropriate at the end of a word.
     */
    private static final LogStatement LOGSTATEMENT_LATINIME_HANDLESEPARATOR =
            new LogStatement("LatinIMEHandleSeparator", false, false, "primaryCode",
                    "isComposingWord");
    public static void latinIME_handleSeparator(final int primaryCode,
            final boolean isComposingWord) {
        final ResearchLogger researchLogger = getInstance();
        researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_HANDLESEPARATOR, primaryCode,
                isComposingWord);
    }

    /**
     * Log statistics.
     *