Merge "clean up researchLogging of autocorrection"
commit
2783c51e6d
|
@ -1787,6 +1787,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
+ "is empty? Impossible! I must commit suicide.");
|
+ "is empty? Impossible! I must commit suicide.");
|
||||||
}
|
}
|
||||||
Utils.Stats.onAutoCorrection(typedWord, autoCorrection.toString(), separatorCodePoint);
|
Utils.Stats.onAutoCorrection(typedWord, autoCorrection.toString(), separatorCodePoint);
|
||||||
|
if (ProductionFlag.IS_EXPERIMENTAL) {
|
||||||
|
ResearchLogger.LatinIME_commitCurrentAutoCorrection(typedWord,
|
||||||
|
autoCorrection.toString());
|
||||||
|
}
|
||||||
mExpectingUpdateSelection = true;
|
mExpectingUpdateSelection = true;
|
||||||
commitChosenWord(autoCorrection, LastComposedWord.COMMIT_TYPE_DECIDED_WORD,
|
commitChosenWord(autoCorrection, LastComposedWord.COMMIT_TYPE_DECIDED_WORD,
|
||||||
separatorCodePoint);
|
separatorCodePoint);
|
||||||
|
|
|
@ -354,6 +354,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
= DEFAULT_ENABLED;
|
= DEFAULT_ENABLED;
|
||||||
private static final boolean KEYBOARDSTATE_TOGGLEALPHABETANDSYMBOLS_ENABLED
|
private static final boolean KEYBOARDSTATE_TOGGLEALPHABETANDSYMBOLS_ENABLED
|
||||||
= DEFAULT_ENABLED;
|
= DEFAULT_ENABLED;
|
||||||
|
private static final boolean LATINIME_COMMITCURRENTAUTOCORRECTION_ENABLED = DEFAULT_ENABLED;
|
||||||
private static final boolean LATINIME_ONDISPLAYCOMPLETIONS_ENABLED = DEFAULT_ENABLED;
|
private static final boolean LATINIME_ONDISPLAYCOMPLETIONS_ENABLED = DEFAULT_ENABLED;
|
||||||
private static final boolean LATINIME_ONSTARTINPUTVIEWINTERNAL_ENABLED = DEFAULT_ENABLED;
|
private static final boolean LATINIME_ONSTARTINPUTVIEWINTERNAL_ENABLED = DEFAULT_ENABLED;
|
||||||
private static final boolean LATINIME_ONUPDATESELECTION_ENABLED = DEFAULT_ENABLED;
|
private static final boolean LATINIME_ONUPDATESELECTION_ENABLED = DEFAULT_ENABLED;
|
||||||
|
@ -574,6 +575,17 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void LatinIME_commitCurrentAutoCorrection(final String typedWord,
|
||||||
|
final String autoCorrection) {
|
||||||
|
if (UnsLogGroup.LATINIME_COMMITCURRENTAUTOCORRECTION_ENABLED) {
|
||||||
|
if (typedWord.equals(autoCorrection)) {
|
||||||
|
getInstance().logCorrection("[----]", typedWord, autoCorrection, -1);
|
||||||
|
} else {
|
||||||
|
getInstance().logCorrection("[Auto]", typedWord, autoCorrection, -1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void latinIME_onDisplayCompletions(
|
public static void latinIME_onDisplayCompletions(
|
||||||
final CompletionInfo[] applicationSpecifiedCompletions) {
|
final CompletionInfo[] applicationSpecifiedCompletions) {
|
||||||
if (UnsLogGroup.LATINIME_ONDISPLAYCOMPLETIONS_ENABLED) {
|
if (UnsLogGroup.LATINIME_ONDISPLAYCOMPLETIONS_ENABLED) {
|
||||||
|
|
Loading…
Reference in New Issue