diff options
author | 2012-08-02 20:22:29 -0700 | |
---|---|---|
committer | 2012-08-17 21:44:07 -0700 | |
commit | 221e756fd7d585f0eb75377b851f23cad24ccd7f (patch) | |
tree | 608a676d2275b3fc52914c710d6526ae6979b903 /java/src/com/android/inputmethod/research/FeedbackActivity.java | |
parent | 7cec911fde16775c28db3dbb16b064fc7ce69b55 (diff) | |
download | latinime-221e756fd7d585f0eb75377b851f23cad24ccd7f.tar.gz latinime-221e756fd7d585f0eb75377b851f23cad24ccd7f.tar.xz latinime-221e756fd7d585f0eb75377b851f23cad24ccd7f.zip |
ResearchLogging capture full n-gram data
DO NOT MERGE
- 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 Ie2bc79fd7fe6b951b24771e94b8d4ca21989af65
Bug: 6188932
Change-Id: I568c90d4af07e7c759c1e7fc64b716bd8c7b4ae5
Diffstat (limited to 'java/src/com/android/inputmethod/research/FeedbackActivity.java')
-rw-r--r-- | java/src/com/android/inputmethod/research/FeedbackActivity.java | 8 |
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); } |