aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/LogUnit.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Record number of words entered•••This change records the number of words entered in every LogUnit. This metric is helpful for determining how much multi-word gestures and spaceless tapping is used. Change-Id: I4c6d0f9d78e4ac2dd63fd53ed2ec70b368366f15 Kurt Partridge2013-06-271-16/+10
* Rename containsCorrection to containsUserDeletions•••This change renames containsCorrection to avoid confusion with CorrectionInfo, and to better clarify its meaning. Change-Id: I5d8f8e2b03133c15a60d4e8b0f395cda1fff5447 Kurt Partridge2013-05-281-7/+7
* Avoid JsonWriter multi-write error•••JsonWriter requires that its clients pass it only a single top-level object. The existing implementation tries to make code cleaner by having mJsonWriter never be null, and instead use a global static "NULL_JSON_WRITER" that just discards data. But because JsonWriter complains if more than one top-level object is passed, making this a global object does not work. This change instead copes with mJsonWriter being null. Change-Id: Ia37ccfc8646e91f11a64713dd92d2846eb86ac54 Kurt Partridge2013-05-101-1/+4
* Allow LogUnits to hold >1 word•••LogUnits have been annotated with the autocorrected words, but until now this was assumed to be a single word without spaces. But spaceless typing can result in spaces in the LogUnit label. With this change, the LogUnit inspects the autocorrected text to determine how many words were inserted, and counts them accurately. This change corrects a privacy problem, which was that if the word sampling algorithm chose a LogUnit that actually contained multiple words, then more than two successive words would be included in the log. Change-Id: I7c01c3dd3ac33d7e96c00836256bae9c14b124ed Kurt Partridge2013-04-191-24/+75
* resolved conflicts for merge of 5b048292 to master•••Change-Id: I67ebab46954cd7b8e3e79e7fed523bafb15f8835 Tadashi G. Takaoka2013-03-191-1/+2
|\
| * Rename ProductionFlag.IS_EXPERIMENTAL to USES_DEVELOPMENT_ONLY_DIAGNOSTICS•••bug: 8393568 Change-Id: Ie5edf44a3627aca9416145aff56bf05bbf2a05f3 Ken Wakasa2013-03-181-1/+2
* | [Lazy4] Remove useless debug code•••This code is cluttering readability and getting in the way of future updates. Future updates will make it much easier to debug and to test this code, so this needs to disappear. Change-Id: I32e28ec608587b6b7c07250a2692b13e8fc98465 Jean Chalard2013-03-081-33/+0
* | [TestPrep20] Clean up import statement•••Change-Id: Ifcfec09b669d8b2012b1c960bd4b1471c7946870 Kurt Partridge2013-02-281-1/+0
* | [TestPrep18] Make class public for testing•••Change-Id: I4b457f44dd6a5a595c61a62061ea02c251fa9ab1 Kurt Partridge2013-02-261-1/+1
|/
* [TestPrep2] Rename a method•••Change-Id: Id9a72045afa3558b20b9d63c8720fb7443d34fd9 Kurt Partridge2013-02-201-3/+3
* Cleanup in preparation for tests•••multi-project commit with I1212da392ecda0ad78962da68941870b5a651eee Change-Id: Ie74af59d4e45bf954723fee9dcf350a36468c381 Kurt Partridge2013-02-121-1/+7
* Refactor LogStatement publishing method•••The method in LogUnit for publishing a LogStatement to a JsonWriter doesn't depend on anything in the LogUnit. multi-project commit with Id1d6ff4851148bba0e6b5a1ec6eec2b842d9c707 Change-Id: I323cec239d6ea1cee602c2ecf9b13713791e9283 Kurt Partridge2013-02-051-87/+21
* [Rlog48a] Update and make logging strings consistent•••Change-Id: Iae04115921aaf6bbc3c6ad6e7d2d0e7401af41f8 Kurt Partridge2013-01-311-5/+4
* [Rlog27] Add replay capability•••- Add support for replaying log files to the ResearchLogger. This will let users preview data that they choose to upload. - When the user explicitly requests that the system record their action, it will record everything up to, and including, the motion involved in shutting off the recording. This change also removes the stop-recording motion commands. Change-Id: Ib1df383bbf1881512cb111fab9f6749c25e436ba Kurt Partridge2013-01-291-11/+128
* [Rlog83] Fix missing uses of hasWord() abstraction•••Change-Id: I78e286723b1b8c8bcc7aea0cc81ef2ee66a193ac Kurt Partridge2013-01-231-2/+2
* [Rlog81a] Determine correction type of words•••Heuristic to determine whether a word was a typo correction or a complete replacement by examining a correction to see if it falls within the list of suggested words of the original. Change-Id: Ieec4861a811e96aef0d14622e662b589ef8b4772 Kurt Partridge2013-01-221-1/+91
* Merge "[Rlog78b] Make log privacy filtering decisions on n-grams"Kurt Partridge2013-01-211-8/+7
|\
| * [Rlog78b] Make log privacy filtering decisions on n-grams•••Previously, words were pushed out of a LogBuffer one at a time. The receiving code had to keep state to know whether a n-gram was safe to log. This patch looks at the entire n-gram and makes a single decision based on it alone. mult-project commit with I3c40d7e02c77943d2668094ddb1d03efb942c74f Change-Id: Id7d90bbd551b1a2f4e0e35f38852652f68f273f8 Kurt Partridge2013-01-211-8/+7
* | Fix Apache license comment•••Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086 Tadashi G. Takaoka2013-01-211-8/+8
|/
* [Rlog78a] Annotate logUnits with corrections•••If the user makes a correction to a word, this is now explicitly indicated in the logUnit. Change-Id: I8638aadd7b8c8e32bbc9c4b020548d786513d887 Kurt Partridge2013-01-171-0/+11
* [Rlog58a] Fix privacy leak of word in logUnitStart•••Change-Id: Idcea4cd0256581e9868ac987fd1fa281ff074483 Kurt Partridge2013-01-101-3/+6
* [Rlog57a] include logUnit boundaries in output•••Change-Id: I4d1647b971b0e7a4cf1a96f341236f6ab1d2ab16 Kurt Partridge2013-01-091-16/+58
* [Rlog50] capture bigrams properly even with deletions•••multi-project commit with Ia4ec213e8356897807cb6a278fccdbaa945732f0 Change-Id: Ib3fe886dc889954a31586ab81d00a21d8d55efd2 Kurt Partridge2013-01-091-0/+10
* [Rlog48] Better logging of MotionEvents•••- Now includes all historical data stored in a motionEvent - Simpler API, refactored to move extraction code to JsonUtils Change-Id: I52d9756ddbeaa14d1704787da59bf1aad18f0335 Kurt Partridge2013-01-081-0/+3
* [Rlog22] ResearchLogger fixed debug printing•••Change-Id: I2c59983236c936b8698004db8213b68c2f964cd5 Kurt Partridge2012-12-221-0/+35
* [Rlog6.2] ResearchLogging Refactor•••Move specifics of Log output format from ResearchLog to LogUnit Change-Id: I9d0253c50bb8175ab141bd87dd9a09f39f316b10 Kurt Partridge2012-12-211-2/+82
* [Rlog3] improve stat recording•••Change-Id: Ie3b70e6eadc2a9af5ef45ddfad6a3398cea7bfe8 Kurt Partridge2012-12-171-2/+6
* [Rlog2] ResearchLogging fix multi-space logging•••multi-space logging should look like single-space logging, missing a few minor log statements (SuggestionUpdates, SetComposingText) multi-project commit with I2af842348c2f2b8f7271ac5b63def245e83df24d Change-Id: Icd3187c0d0377255f82787afffea657c14345803 Kurt Partridge2012-12-171-26/+46
* [Rlog1] Track time of log statements•••Log statements are now recorded with a timestamp. This is important for filtering out statements not part of words that are sampled when spaces are inserted automatically. multi-project commit with Change-Id: I68221a2528045d25632aef4bb716f92a4f4a56a4 Change-Id: I46ac9b3b1dcbb08425160d0109028cb64445139c Kurt Partridge2012-12-131-11/+56
* Revert "ResearchLog. Track time of log statements"•••This reverts commit bdbe279cecea7a16ef2a5c3b62622eb19e4b18bf Other half of this change couldn't be committed because of a inter-project directory migration. Reverting until things settle down. Change-Id: I3862fc8485dfca6d507f620e905cfa583aa0e39a Kurt Partridge2012-11-301-51/+6
* ResearchLog. Track time of log statements•••Log statements are now recorded with a timestamp. This is important for filtering out statements not part of words that are sampled when spaces are inserted automatically. multi-project commit with Change-Id: I68221a2528045d25632aef4bb716f92a4f4a56a4 Change-Id: I9f49c36391e1e1773b6d4876d7387c893024f87b Kurt Partridge2012-11-291-6/+51
* 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 Ic70ccb6c2e11eb02d887821434b44daa3eb7a3e2 Bug: 6188932 Change-Id: I731d6cff6539e997874f723b68bdb0d9b651b937 Kurt Partridge2012-08-211-0/+83
* Revert "ResearchLogging capture full n-gram data"•••This reverts commit 221e756fd7d585f0eb75377b851f23cad24ccd7f Change-Id: Iefc4e4e27ddc925d4a4634627b0467bd4ee2a66e Kurt Partridge2012-08-201-81/+0
* 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 Kurt Partridge2012-08-171-0/+81