Loading java/src/com/android/inputmethod/latin/LatinIME.java +3 −0 Original line number Diff line number Diff line Loading @@ -1823,6 +1823,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // like the smiley key or the .com key. final int length = mEnteredText.length(); mConnection.deleteSurroundingText(length, 0); if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) { ResearchLogger.latinIME_handleBackspace_cancelTextInput(mEnteredText); } mEnteredText = null; // If we have mEnteredText, then we know that mHasUncommittedTypedChars == false. // In addition we know that spaceState is false, and that we should not be Loading java/src/com/android/inputmethod/research/ResearchLogger.java +10 −0 Original line number Diff line number Diff line Loading @@ -1273,6 +1273,16 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang researchLogger.commitCurrentLogUnitAsWord(text, Long.MAX_VALUE, isBatchMode); } /** * Log a revert of onTextInput() (known in the IME as "EnteredText"). * * SystemResponse: Remove the LogUnit recording the textInput */ public static void latinIME_handleBackspace_cancelTextInput(final String text) { final ResearchLogger researchLogger = getInstance(); researchLogger.uncommitCurrentLogUnit(text, true /* dumpCurrentLogUnit */); } /** * Log a call to LatinIME.pickSuggestionManually(). * Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +3 −0 Original line number Diff line number Diff line Loading @@ -1823,6 +1823,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // like the smiley key or the .com key. final int length = mEnteredText.length(); mConnection.deleteSurroundingText(length, 0); if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) { ResearchLogger.latinIME_handleBackspace_cancelTextInput(mEnteredText); } mEnteredText = null; // If we have mEnteredText, then we know that mHasUncommittedTypedChars == false. // In addition we know that spaceState is false, and that we should not be Loading
java/src/com/android/inputmethod/research/ResearchLogger.java +10 −0 Original line number Diff line number Diff line Loading @@ -1273,6 +1273,16 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang researchLogger.commitCurrentLogUnitAsWord(text, Long.MAX_VALUE, isBatchMode); } /** * Log a revert of onTextInput() (known in the IME as "EnteredText"). * * SystemResponse: Remove the LogUnit recording the textInput */ public static void latinIME_handleBackspace_cancelTextInput(final String text) { final ResearchLogger researchLogger = getInstance(); researchLogger.uncommitCurrentLogUnit(text, true /* dumpCurrentLogUnit */); } /** * Log a call to LatinIME.pickSuggestionManually(). * Loading