diff options
author | 2013-05-22 03:04:34 +0000 | |
---|---|---|
committer | 2013-05-22 03:04:35 +0000 | |
commit | 5fdea4775e18f09e2705f8043a2a9554c4fa3f92 (patch) | |
tree | bf9edbaaab7e21484a4633336aec5a531a6610cd /java/src | |
parent | d9a87eb857b766e37517c59dccc05cceaa38c77c (diff) | |
parent | 450d78b0303e5fbaa4d3499f362eed56119909af (diff) | |
download | latinime-5fdea4775e18f09e2705f8043a2a9554c4fa3f92.tar.gz latinime-5fdea4775e18f09e2705f8043a2a9554c4fa3f92.tar.xz latinime-5fdea4775e18f09e2705f8043a2a9554c4fa3f92.zip |
Merge "Always record word boundaries"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/research/ResearchLogger.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/research/ResearchLogger.java b/java/src/com/android/inputmethod/research/ResearchLogger.java index 0220e20bd..c4409d5c8 100644 --- a/java/src/com/android/inputmethod/research/ResearchLogger.java +++ b/java/src/com/android/inputmethod/research/ResearchLogger.java @@ -1660,12 +1660,24 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang } /** - * Shared event for logging committed text. + * Shared events for logging committed text. + * + * The "CommitTextEventHappened" LogStatement is written to the log even if privacy rules + * indicate that the word contents should not be logged. It has no contents, and only serves to + * record the event and thereby make it easier to calculate word-level statistics even when the + * word contents are unknown. */ private static final LogStatement LOGSTATEMENT_COMMITTEXT = - new LogStatement("CommitText", true, false, "committedText", "isBatchMode"); + new LogStatement("CommitText", true /* isPotentiallyPrivate */, + false /* isPotentiallyRevealing */, "committedText", "isBatchMode"); + private static final LogStatement LOGSTATEMENT_COMMITTEXT_EVENT_HAPPENED = + new LogStatement("CommitTextEventHappened", false /* isPotentiallyPrivate */, + false /* isPotentiallyRevealing */); private void enqueueCommitText(final String word, final boolean isBatchMode) { + // Event containing the word; will be published only if privacy checks pass enqueueEvent(LOGSTATEMENT_COMMITTEXT, word, isBatchMode); + // Event not containing the word; will always be published + enqueueEvent(LOGSTATEMENT_COMMITTEXT_EVENT_HAPPENED); } /** |