Merge "[Rlog63] Log whether a manual suggestion is a prediction"
commit
5b611e184b
|
@ -2134,7 +2134,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||||
Constants.SUGGESTION_STRIP_COORDINATE, Constants.SUGGESTION_STRIP_COORDINATE);
|
Constants.SUGGESTION_STRIP_COORDINATE, Constants.SUGGESTION_STRIP_COORDINATE);
|
||||||
if (ProductionFlag.IS_EXPERIMENTAL) {
|
if (ProductionFlag.IS_EXPERIMENTAL) {
|
||||||
ResearchLogger.latinIME_punctuationSuggestion(index, suggestion,
|
ResearchLogger.latinIME_punctuationSuggestion(index, suggestion,
|
||||||
false /* isBatchMode */);
|
false /* isBatchMode */, suggestedWords.mIsPrediction);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1170,12 +1170,13 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
*/
|
*/
|
||||||
private static final LogStatement LOGSTATEMENT_LATINIME_PUNCTUATIONSUGGESTION =
|
private static final LogStatement LOGSTATEMENT_LATINIME_PUNCTUATIONSUGGESTION =
|
||||||
new LogStatement("LatinIMEPunctuationSuggestion", false, false, "index", "suggestion",
|
new LogStatement("LatinIMEPunctuationSuggestion", false, false, "index", "suggestion",
|
||||||
"x", "y");
|
"x", "y", "isPrediction");
|
||||||
public static void latinIME_punctuationSuggestion(final int index, final String suggestion,
|
public static void latinIME_punctuationSuggestion(final int index, final String suggestion,
|
||||||
final boolean isBatchMode) {
|
final boolean isBatchMode, final boolean isPrediction) {
|
||||||
final ResearchLogger researchLogger = getInstance();
|
final ResearchLogger researchLogger = getInstance();
|
||||||
researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_PUNCTUATIONSUGGESTION, index, suggestion,
|
researchLogger.enqueueEvent(LOGSTATEMENT_LATINIME_PUNCTUATIONSUGGESTION, index, suggestion,
|
||||||
Constants.SUGGESTION_STRIP_COORDINATE, Constants.SUGGESTION_STRIP_COORDINATE);
|
Constants.SUGGESTION_STRIP_COORDINATE, Constants.SUGGESTION_STRIP_COORDINATE,
|
||||||
|
isPrediction);
|
||||||
researchLogger.commitCurrentLogUnitAsWord(suggestion, Long.MAX_VALUE, isBatchMode);
|
researchLogger.commitCurrentLogUnitAsWord(suggestion, Long.MAX_VALUE, isBatchMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue