mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 08d9c996
: Merge "[Rlog81b] Log more data with handleSeparator"
* commit '08d9c996dc31e767aca5c31df7ede80a36361060': [Rlog81b] Log more data with handleSeparator
This commit is contained in:
commit
0c49e61ee7
@ -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
|
||||
|
@ -1728,7 +1728,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||
/**
|
||||
* Record the current time in case the LogUnit is later split.
|
||||
*
|
||||
* If the current logUnitis split, then tapping, motion events, etc. before this time should
|
||||
* If the current logUnit is split, then tapping, motion events, etc. before this time should
|
||||
* be assigned to one LogUnit, and events after this time should go into the following LogUnit.
|
||||
*/
|
||||
public static void recordTimeForLogUnitSplit() {
|
||||
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user