History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7d72ca0b20334aba077e3a01d7b12f6f34618076 09-May-2013 Kurt Partridge <kep@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
e92b5e145f74808ff778a42dc5ba979aa27343ca 16-Apr-2013 Kurt Partridge <kep@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
841c295f3c99214f45924434d9c0bb5b4760578d 19-Mar-2013 Tadashi G. Takaoka <takaoka@google.com> resolved conflicts for merge of 5b048292 to master

Change-Id: I67ebab46954cd7b8e3e79e7fed523bafb15f8835
9c3860ce461c3791891bf667edc77fe798c8d332 18-Mar-2013 Ken Wakasa <kwakasa@google.com> Rename ProductionFlag.IS_EXPERIMENTAL to USES_DEVELOPMENT_ONLY_DIAGNOSTICS

bug: 8393568
Change-Id: Ie5edf44a3627aca9416145aff56bf05bbf2a05f3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
220b271dfa59eeeeba6771175934464a48ac5466 14-Feb-2013 Jean Chalard <jchalard@google.com> [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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
5cd50faacab931959b22eda559b8a75da2d886a6 20-Feb-2013 Kurt Partridge <kep@google.com> [TestPrep20] Clean up import statement

Change-Id: Ifcfec09b669d8b2012b1c960bd4b1471c7946870
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
96d019f183fc15585a5642155b9a00e9ec3637a4 20-Feb-2013 Kurt Partridge <kep@google.com> [TestPrep18] Make class public for testing

Change-Id: I4b457f44dd6a5a595c61a62061ea02c251fa9ab1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
b6d05aeb7c9d8c1627cd24b1e56bd70c9f50d396 15-Feb-2013 Kurt Partridge <kep@google.com> [TestPrep2] Rename a method

Change-Id: Id9a72045afa3558b20b9d63c8720fb7443d34fd9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
531dd150eb1ddf88cb09c404a14834893c82f960 05-Feb-2013 Kurt Partridge <kep@google.com> Cleanup in preparation for tests

multi-project commit with I1212da392ecda0ad78962da68941870b5a651eee

Change-Id: Ie74af59d4e45bf954723fee9dcf350a36468c381
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
b02a19c49d29cd7758d01349ebbfeb479a56bb37 31-Jan-2013 Kurt Partridge <kep@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
c20a415e151404414c0195fdd8a64918452d8027 31-Jan-2013 Kurt Partridge <kep@google.com> [Rlog48a] Update and make logging strings consistent

Change-Id: Iae04115921aaf6bbc3c6ad6e7d2d0e7401af41f8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
f3731188e5ee46c0bee7e9366528c826289a91bb 22-Jan-2013 Kurt Partridge <kep@google.com> [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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
2baa4b0701c6e02aa25b03881c8863b2d3856282 17-Nov-2012 Kurt Partridge <kep@google.com> [Rlog83] Fix missing uses of hasWord() abstraction

Change-Id: I78e286723b1b8c8bcc7aea0cc81ef2ee66a193ac
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
0c16a5c6eef645fd536671994e0b4f05864ac338 15-Jan-2013 Kurt Partridge <kep@google.com> [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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
8b788374dee56dfe95e7af42a358923cfcb3668e 21-Jan-2013 Kurt Partridge <kep@google.com> Merge "[Rlog78b] Make log privacy filtering decisions on n-grams"
80685aa4b95173638c7982dbac723b282292a931 12-Jan-2013 Kurt Partridge <kep@google.com> [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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
8aa9963a895f9dd5bb1bc92ab2e4f461e058f87a 21-Jan-2013 Tadashi G. Takaoka <takaoka@google.com> Fix Apache license comment

Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
345ef6762700cdb0fca25aa54b22ef83aaaac0ab 11-Jan-2013 Kurt Partridge <kep@google.com> [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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
211103d7fecc3d6df116ec677ae88cb6d70cce86 24-Oct-2012 Kurt Partridge <kep@google.com> [Rlog58a] Fix privacy leak of word in logUnitStart

Change-Id: Idcea4cd0256581e9868ac987fd1fa281ff074483
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
b74a0a78c26e10d589e775cf4b06ce588dc9ffc7 09-Jan-2013 Kurt Partridge <kep@google.com> [Rlog57a] include logUnit boundaries in output

Change-Id: I4d1647b971b0e7a4cf1a96f341236f6ab1d2ab16
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
3b95eaf70b0a11b1c6e0c52361fe738b4a4b2ace 24-Dec-2012 Kurt Partridge <kep@google.com> [Rlog50] capture bigrams properly even with deletions

multi-project commit with Ia4ec213e8356897807cb6a278fccdbaa945732f0

Change-Id: Ib3fe886dc889954a31586ab81d00a21d8d55efd2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
e9c6455881060c9f43a15a499582118b2ac2fa65 24-Dec-2012 Kurt Partridge <kep@google.com> [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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
583a1edc4aafb021f8f79d73dcc126da43560cef 24-Aug-2012 Kurt Partridge <kep@google.com> [Rlog22] ResearchLogger fixed debug printing

Change-Id: I2c59983236c936b8698004db8213b68c2f964cd5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
58281a98eb8750d334db24e626c8fce37ffb5e9e 18-Dec-2012 Kurt Partridge <kep@google.com> [Rlog6.2] ResearchLogging Refactor

Move specifics of Log output format from ResearchLog to LogUnit

Change-Id: I9d0253c50bb8175ab141bd87dd9a09f39f316b10
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
48160f9d847c0246883bc81599613b1ebe2652a6 10-Aug-2012 Kurt Partridge <kep@google.com> [Rlog3] improve stat recording

Change-Id: Ie3b70e6eadc2a9af5ef45ddfad6a3398cea7bfe8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
3370dc82370f5397bafdaeba395e3dfc8b8adf3a 10-Aug-2012 Kurt Partridge <kep@google.com> [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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
5e854e281a525f0c2dcdb753db2fac3eb810470f 10-Aug-2012 Kurt Partridge <kep@google.com> [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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
33d5da590f8b733b7bae980f919705b9d975c568 01-Dec-2012 Kurt Partridge <kep@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
bdbe279cecea7a16ef2a5c3b62622eb19e4b18bf 10-Aug-2012 Kurt Partridge <kep@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
bf653996eab40e2c66cfd2eaeb48ed5175b78455 03-Aug-2012 Kurt Partridge <kep@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
3d3590874926ff92009ed0b4f114c6e5a8ee7394 20-Aug-2012 Kurt Partridge <kep@google.com> Revert "ResearchLogging capture full n-gram data"

This reverts commit 221e756fd7d585f0eb75377b851f23cad24ccd7f

Change-Id: Iefc4e4e27ddc925d4a4634627b0467bd4ee2a66e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java
221e756fd7d585f0eb75377b851f23cad24ccd7f 03-Aug-2012 Kurt Partridge <kep@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/LogUnit.java