aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/research/LogUnit.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove researcher loggerTadashi G. Takaoka2014-05-291-496/+0
| | | | | | | This CL must be checked in together with I5cc76807e3. Bug: 15318007 Change-Id: I61423c3377ddc299fb332e742d6626c2e47145bb
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-6/+6
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Record number of words enteredKurt Partridge2013-06-271-16/+10
| | | | | | | | 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
* Rename containsCorrection to containsUserDeletionsKurt Partridge2013-05-281-7/+7
| | | | | | | This change renames containsCorrection to avoid confusion with CorrectionInfo, and to better clarify its meaning. Change-Id: I5d8f8e2b03133c15a60d4e8b0f395cda1fff5447
* Avoid JsonWriter multi-write errorKurt Partridge2013-05-101-1/+4
| | | | | | | | | | | 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
* Allow LogUnits to hold >1 wordKurt Partridge2013-04-191-24/+75
| | | | | | | | | | | | | | 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
* resolved conflicts for merge of 5b048292 to masterTadashi G. Takaoka2013-03-191-1/+2
|\ | | | | | | Change-Id: I67ebab46954cd7b8e3e79e7fed523bafb15f8835
| * Rename ProductionFlag.IS_EXPERIMENTAL to USES_DEVELOPMENT_ONLY_DIAGNOSTICSKen Wakasa2013-03-181-1/+2
| | | | | | | | | | bug: 8393568 Change-Id: Ie5edf44a3627aca9416145aff56bf05bbf2a05f3
* | [Lazy4] Remove useless debug codeJean Chalard2013-03-081-33/+0
| | | | | | | | | | | | | | | | | | 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
* | [TestPrep20] Clean up import statementKurt Partridge2013-02-281-1/+0
| | | | | | | | Change-Id: Ifcfec09b669d8b2012b1c960bd4b1471c7946870
* | [TestPrep18] Make class public for testingKurt Partridge2013-02-261-1/+1
|/ | | | Change-Id: I4b457f44dd6a5a595c61a62061ea02c251fa9ab1
* [TestPrep2] Rename a methodKurt Partridge2013-02-201-3/+3
| | | | Change-Id: Id9a72045afa3558b20b9d63c8720fb7443d34fd9
* Cleanup in preparation for testsKurt Partridge2013-02-121-1/+7
| | | | | | multi-project commit with I1212da392ecda0ad78962da68941870b5a651eee Change-Id: Ie74af59d4e45bf954723fee9dcf350a36468c381
* Refactor LogStatement publishing methodKurt Partridge2013-02-051-87/+21
| | | | | | | | | 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
* [Rlog48a] Update and make logging strings consistentKurt Partridge2013-01-311-5/+4
| | | | Change-Id: Iae04115921aaf6bbc3c6ad6e7d2d0e7401af41f8
* [Rlog27] Add replay capabilityKurt Partridge2013-01-291-11/+128
| | | | | | | | | | | - 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
* [Rlog83] Fix missing uses of hasWord() abstractionKurt Partridge2013-01-231-2/+2
| | | | Change-Id: I78e286723b1b8c8bcc7aea0cc81ef2ee66a193ac
* [Rlog81a] Determine correction type of wordsKurt Partridge2013-01-221-1/+91
| | | | | | | | 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
* Merge "[Rlog78b] Make log privacy filtering decisions on n-grams"Kurt Partridge2013-01-211-8/+7
|\
| * [Rlog78b] Make log privacy filtering decisions on n-gramsKurt Partridge2013-01-211-8/+7
| | | | | | | | | | | | | | | | | | | | 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
* | Fix Apache license commentTadashi G. Takaoka2013-01-211-8/+8
|/ | | | Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
* [Rlog78a] Annotate logUnits with correctionsKurt Partridge2013-01-171-0/+11
| | | | | | | If the user makes a correction to a word, this is now explicitly indicated in the logUnit. Change-Id: I8638aadd7b8c8e32bbc9c4b020548d786513d887
* [Rlog58a] Fix privacy leak of word in logUnitStartKurt Partridge2013-01-101-3/+6
| | | | Change-Id: Idcea4cd0256581e9868ac987fd1fa281ff074483
* [Rlog57a] include logUnit boundaries in outputKurt Partridge2013-01-091-16/+58
| | | | Change-Id: I4d1647b971b0e7a4cf1a96f341236f6ab1d2ab16
* [Rlog50] capture bigrams properly even with deletionsKurt Partridge2013-01-091-0/+10
| | | | | | multi-project commit with Ia4ec213e8356897807cb6a278fccdbaa945732f0 Change-Id: Ib3fe886dc889954a31586ab81d00a21d8d55efd2
* [Rlog48] Better logging of MotionEventsKurt Partridge2013-01-081-0/+3
| | | | | | | - Now includes all historical data stored in a motionEvent - Simpler API, refactored to move extraction code to JsonUtils Change-Id: I52d9756ddbeaa14d1704787da59bf1aad18f0335
* [Rlog22] ResearchLogger fixed debug printingKurt Partridge2012-12-221-0/+35
| | | | Change-Id: I2c59983236c936b8698004db8213b68c2f964cd5
* [Rlog6.2] ResearchLogging RefactorKurt Partridge2012-12-211-2/+82
| | | | | | Move specifics of Log output format from ResearchLog to LogUnit Change-Id: I9d0253c50bb8175ab141bd87dd9a09f39f316b10
* [Rlog3] improve stat recordingKurt Partridge2012-12-171-2/+6
| | | | Change-Id: Ie3b70e6eadc2a9af5ef45ddfad6a3398cea7bfe8
* [Rlog2] ResearchLogging fix multi-space loggingKurt Partridge2012-12-171-26/+46
| | | | | | | | | 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
* [Rlog1] Track time of log statementsKurt Partridge2012-12-131-11/+56
| | | | | | | | | 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
* Revert "ResearchLog. Track time of log statements"Kurt Partridge2012-11-301-51/+6
| | | | | | | | 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
* ResearchLog. Track time of log statementsKurt Partridge2012-11-291-6/+51
| | | | | | | | | 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
* ResearchLogging capture full n-gram dataKurt Partridge2012-08-211-0/+83
| | | | | | | | | | | | | | | - 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
* Revert "ResearchLogging capture full n-gram data"Kurt Partridge2012-08-201-81/+0
| | | | | | This reverts commit 221e756fd7d585f0eb75377b851f23cad24ccd7f Change-Id: Iefc4e4e27ddc925d4a4634627b0467bd4ee2a66e
* ResearchLogging capture full n-gram dataKurt Partridge2012-08-171-0/+81
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