aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/FeedbackActivity.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-08-02 20:22:29 -0700
committerKurt Partridge <kep@google.com>2012-08-05 00:55:58 -0700
commit838e6c1e5b734ed2d7b68a082f61b723d1aa35a2 (patch)
tree1ba16b47aafdf01e9a2e497aa076dea0916f37e5 /java/src/com/android/inputmethod/research/FeedbackActivity.java
parent5400f24bed28cf429eed7cf7063d6813a373f392 (diff)
downloadlatinime-838e6c1e5b734ed2d7b68a082f61b723d1aa35a2.tar.gz
latinime-838e6c1e5b734ed2d7b68a082f61b723d1aa35a2.tar.xz
latinime-838e6c1e5b734ed2d7b68a082f61b723d1aa35a2.zip
ResearchLogging capture full n-gram data
- Captures complete motion data for all words in an n-gram. - Also filters n-grams properly; if any word in the n-gram is not in the dictionary, it is not included. - Simplify ResearchLog to not require explicit state - Added LogBuffer class MainLogBuffer class to allow n-gram-level decisions about privacy. - Moved LogUnit out from ResearchLogger multi-project change with Id997fb6572daa3ff55591afa1676953bb204f33a Because of a strange Gerrit interaction, earlier patchsets were recorded as the following separate changes (to soon be abandoned): - I59d86ae28123890ddb7aabc7dc9a73a75eecbca4 - I9cc95266fa4500d019e09ec53ec00e5dea7ffd38 - Ie6f23a2035e160f231406df1388a43725380df1d - Id87909e96fa7fa91174c86395a964404f3490fe1 - I57c5cbde0425c42538d589fa4d1802b3e5688f7c - Ic1f9d7727e416da1b6c4f1a45b53750cd4088dcf - I20a72ccc4ba1bc08ed3ee39bff71d2adb376588c - I417f6f364144b90085f5fef4bd2de1a40b5dfa79 Bug: 6188932 Change-Id: I771e57e3b8c0eb6721c2022e775cb0b528bdff93
Diffstat (limited to 'java/src/com/android/inputmethod/research/FeedbackActivity.java')
-rw-r--r--java/src/com/android/inputmethod/research/FeedbackActivity.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/research/FeedbackActivity.java b/java/src/com/android/inputmethod/research/FeedbackActivity.java
index c9f3b476a..11eae8813 100644
--- a/java/src/com/android/inputmethod/research/FeedbackActivity.java
+++ b/java/src/com/android/inputmethod/research/FeedbackActivity.java
@@ -18,10 +18,7 @@ package com.android.inputmethod.research;
import android.app.Activity;
import android.os.Bundle;
-import android.text.Editable;
-import android.view.View;
import android.widget.CheckBox;
-import android.widget.EditText;
import com.android.inputmethod.latin.R;
@@ -31,6 +28,11 @@ public class FeedbackActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.research_feedback_activity);
final FeedbackLayout layout = (FeedbackLayout) findViewById(R.id.research_feedback_layout);
+ final CheckBox checkbox = (CheckBox) findViewById(R.id.research_feedback_include_history);
+ final CharSequence cs = checkbox.getText();
+ final String actualString = String.format(cs.toString(),
+ ResearchLogger.FEEDBACK_WORD_BUFFER_SIZE);
+ checkbox.setText(actualString);
layout.setActivity(this);
}