History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ecea6a6113964907bbcbe5912e7b1fcd855db605 23-Jun-2015 Dan Zivkovic <zivkovic@google.com> Merge changes Iaed8abfb,I8e55b57c into jb-ub-latinimegoogle

* changes:
LatinIME portion of StatsUtil change.
Do not decorate committed spans.
912016b69f1c0e26ec58ee9d17c8ac7e5711d70d 22-Jun-2015 Tom Ouyang <ouyang@google.com> Workaround for preserving responsiveness on a slow InputConnection.

1. Add mechanism to detect a slow or non-resonsive InputConnection (IC)
2. When IC slowness is detected, skip certain IC calls that are known
to be expensive (e.g., getTextAfterCursor).
3. Similarly, disables learning / unlearning on a slow IC.
4. IC slowness flag is reset when starting input on a new TextView or
when a fixed amount of time has passed.

Note: These are mostly temporary workarounds. The permanent solution is
to refactor RichInputConnection so that it is less sensitive to IC
slowness in general.

Bug: 21926256
Change-Id: I383fab0516d3f3a8e0f71e5d760a8336a7730f7c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ee6de1466bc98e27bd414c9a7451f2aee3f9e721 23-Jun-2015 Dan Zivkovic <zivkovic@google.com> Do not decorate committed spans.

Users rarely tap on committed words, and the cost of sending the spans back
through the input connection, back and forth to the target app, is too high.

Bug 21926256.

Change-Id: I8e55b57ce2148ed313dc927425b6d9c958634958
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0232e73dfa5e7cadf3f0698407fe6aecd97f3227 19-Jun-2015 Dan Zivkovic <zivkovic@google.com> Cleanup before fixing getTextAfterCursor().

We never delete text after the cursor, so constrain the API accordingly.
Define the number of characters to read before and after.
Set them to reasonable values.
The next CL will start caching text after the cursor.

Bug 21926256.

Change-Id: Idd58daf68614de4a69344aa3c8a4323720c5d3a0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6d8e783d18cf3b5c20972eb9f97906e87d1cc901 01-May-2015 Tom Ouyang <ouyang@google.com> Do not learn from cursor corrections when autocorrection is disabled.

Bug: 20681528
Change-Id: I80e7095b70a151f3ccc36856d7e0837613a35972
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
490fa47a46015f2c8bd8f9010d236bfe5aecd4bb 18-Apr-2015 Yohei Yukaw <yukawa@google.com> Always specify non-null Locale object to SuggestionSpan

Confusingly, specifying a null Locale object to the constructor
of SuggestionSpan does not necessarily mean that
SuggestionSpan#getLocale() returns null. The constructor in
question also receives Context object, and Context's locale can
be used as a fallback locale to initialize locale of
SuggestionSpan.

With this CL, LatinIME always specify non-null Locale object
when instantiating SuggestionSpan object. It basically
corresponds to the active main dictionary, but can be
Locale#ROOT when one locale is not determined for some reasons.

BUG: 20435013
Change-Id: I2c152466410327300e7dba4d7ed9a22f57c17c4f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
db96122787a57632136566e2448c21aa96879955 14-Apr-2015 Mohammadinamul Sheik <inamul@google.com> Fix the NPE on selection string on unlearnWord

Bug: 20150386
Change-Id: I2ed69aba7b1fdaba1e2ac07b8218a265dfe23e09
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
e1b13a4550de44c63b6b57969a4ef6a91f14a781 04-Apr-2015 Tom Ouyang <ouyang@google.com> Log timing for performUpdateSuggestionStripSync.

Change-Id: Id08daf7c06e874b43deed77a49b65969dadb1565
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4c326c66e983ece2b8fb6c8b3220c7281e26a7b8 03-Apr-2015 Dan Zivkovic <zivkovic@google.com> Merge "Log timing of commitChosenWord()"
5d2314fea09fa86580b756b7d7bac59cd73898d9 03-Apr-2015 Dan Zivkovic <zivkovic@google.com> Log timing of commitChosenWord()

Bug 19987461.

Change-Id: If5bb798a350e9083ee8b67a84af132c100f0a7eb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
3350f70371983961c413c747c0e7ddd138ee6de8 03-Apr-2015 Dan Zivkovic <zivkovic@google.com> Merge "Log timing of commitChosenWord()"
9731fadcb452ca950f1a6b12a0884c070c4f9153 03-Apr-2015 Dan Zivkovic <zivkovic@google.com> Log timing of commitChosenWord()

Bug 19987461.

Change-Id: Ibeebb9f1b1c4f3a9ed988c9e20209a9c83b5a359
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
915b1ed34aaedbf2bd62f5fbaa6cf5e5b20a5bdf 03-Apr-2015 Dan Zivkovic <zivkovic@google.com> Merge "Log interrupted tasks in AOSP."
5a53505fe4c0ae5d04bfcb3612908d3c93be90b1 02-Apr-2015 Dan Zivkovic <zivkovic@google.com> Log interrupted tasks in AOSP.

Bug 19987461.

Change-Id: Ia2714f555146f8f31a6d8c61f555d2b6fecdab7d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f3392aca58290137e1893ed0c89d6626d5d3e424 02-Apr-2015 Tom Ouyang <ouyang@google.com> Learn corrections that were made in the middle of a word.

These occur when the user moves the cursor into a word.

Bug: 19571104
Change-Id: Ibc2e4f0146f7c1130ad078bd0c0a871dafa5d694
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1a58c47ebe137ee1d5b3a2567b97802946945d38 02-Apr-2015 Tom Ouyang <ouyang@google.com> Unlearn word when the user moves the cursor in to correct it.

Change-Id: I36358e551d6c51e786b6e09b1a1368ebf3c48f69
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
fe716f0f73ee551ce42b523983f92efccce79dc8 20-Mar-2015 Dan Zivkovic <zivkovic@google.com> Resolve some InputLogic todo comments.

Change-Id: Ic3d7d11ad90cc09edf62f48aa5362e71d692f7dd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
7df95c54fa9edd4a9fc9c267b204640299b7bad6 20-Mar-2015 Mohammadinamul Sheik <inamul@google.com> Merge "Add prev words context to the SuggestedWordInfo."
ab5912959435c1901e268bc9766090e604f3523d 20-Mar-2015 Mohammadinamul Sheik <inamul@google.com> Add prev words context to the SuggestedWordInfo.

Bug: 19712589
Bug: 19715579
Change-Id: Ie06665cab8405455c1b0a2ff034e0bb0731c9156
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
dbf117b6613887fb4a7b39269e020940d956f009 18-Mar-2015 Dan Zivkovic <zivkovic@google.com> Log accepted punctuation suggestions.

Bug 19825927.

Change-Id: If65b56aa5c269e47bcc609bdc673ba18c450ee66
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4024984c1efa394018631ca1bb46deba3efa629c 17-Mar-2015 Mohammadinamul Sheik <inamul@google.com> Pass DictionaryFacilitator for autocorrection and suggestion stats

Bug: 19715579
Change-Id: Ic48de74bde0f9f5d5e68e8289948cc5e92cbfa1e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4e1f0f1bb03551efde3bc6b0a8e60465c088cda2 16-Mar-2015 Dan Zivkovic <zivkovic@google.com> Redundant code matches multiple languages.

InputLogic should not have code that tweaks suggestion ranking based on the
language of the source dictionary.

Bug 19744396.

Change-Id: I8c0849555e74cec1302e78da04148dedd1cddabe
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
5455179b54eb8230577f518db082796a3055685a 13-Mar-2015 Dan Zivkovic <zivkovic@google.com> Revert "Next-word suggestion bit in keyboard settings."

This reverts commit 1ae16dc3db170802d1b38273f477125a2a969d32.

Bug 19596067.

Change-Id: Ie7286acbb70b215d7bd08e271bcf14526b68576f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
7e1dfaae3d6ca9aff1acfa9b358ad0b759ef0ec8 12-Mar-2015 Dan Zivkovic <zivkovic@google.com> Merge "Remove ALS from LatinIME."
107fb4c476779df16be23e245547253978c197ac 12-Mar-2015 Dan Zivkovic <zivkovic@google.com> Remove ALS from LatinIME.

This fixes unit tests and brings us closer to a green build.

Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4e0af43673936c336fff298bc9aeee1d75c3bc92 12-Mar-2015 Chieu Nguyen <cvnguyen@google.com> Remove unused phrase gesture code.

Bug: 19687841
Change-Id: I0862aa3127bf7f1564a4845efdf99ebf5ae4d5ac
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
222f647137917ef602c1e1510c499a42d2e1eb47 06-Mar-2015 Tom Ouyang <ouyang@google.com> Restart suggestions when backspacing into a reverted word.

This is required for the final corrected word to be learned,
as learning only occurs when suggestions are active.

Note: This is already happening when backspacing into a non-reverted
word

Bug: 19619907
Bug: 18465402
Change-Id: I99a1d4f0ca0d62a2cdfa24cc0833ce89391715d9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1ae16dc3db170802d1b38273f477125a2a969d32 04-Mar-2015 Dan Zivkovic <zivkovic@google.com> Next-word suggestion bit in keyboard settings.

This feature works in supported languages.
We don't need a user setting.

Bug 19596067.

Change-Id: Icdded772745f9816da47f8a5e3b87b733083b121
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
fdf3cc41eeed87aa9ab0e406ef67475c0e0e48e4 27-Feb-2015 Chieu Nguyen <cvnguyen@google.com> Handle double space inserting a period.

Change-Id: I109f0e9cf3e972bf60aa3fbbe817337aef70ea3c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
487e038ff329b6099ff5343fb2d7bdc60a6fd699 25-Feb-2015 Mario Tanev <radix@google.com> Use Keyboard in several interfaces.

Simplify interfaces by passing Keyboard instead of
KeyboardLayout and ProximityInfo directly. Also require
the Keyboard passed be non-null and change the SpellChecker
to bail out if there is no keyboard for the locale.

Change-Id: I960f15ff60171f55d3e0a96fd6469b7dc3a045e2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f7058c2a89d3e081b2a279ef4853409924d42346 24-Feb-2015 Jatin Matani <jatinm@google.com> Merge "Pass long timestamps to DictionaryFacilitator"
edb2d2380214fa3a6d5416cc916f58360214d123 24-Feb-2015 Tom Ouyang <ouyang@google.com> Check for null TextRange in InputLogic.unlearnWordBeingDeleted

Change-Id: Ia0df0ab740c76185f94966f59a74a6ebdd1cffe8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
94b8523566a6155f83abe8ba191a3522f7280ce1 24-Feb-2015 Jatin Matani <jatinm@google.com> Pass long timestamps to DictionaryFacilitator

Change-Id: I95500f210ed409c0ff254b08b68fe3b5b59ba4f4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
edea47ff2e901d02b381bf88aa6cb35c4b5ee811 19-Feb-2015 Tom Ouyang <ouyang@google.com> Add more options for calling removeWordFromPersonalizedDicts.

Bug: 19441205

Change-Id: I41aff536a64271d2dc9489a20df33d64170756cc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6e0467c20e51bc64f494141cecdfc0fe560d749b 05-Feb-2015 Dan Zivkovic <zivkovic@google.com> Fix accidentally inverted if check.

Change-Id: I9c28f4154f69c63564a2bda357c16cef4e68dc0d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c4977b5f8990ce73a7c9c26daa5b7cfb201fe024 05-Feb-2015 Dan Zivkovic <zivkovic@google.com> Merge "Removing code from RichInputConnection."
a6d2cf5ec71fdba86455ff8281a121f32a3248e3 05-Feb-2015 Dan Zivkovic <zivkovic@google.com> Removing code from RichInputConnection.

Followup CL that removes some more unused methods and variables.

Change-Id: I4163c7cd017f59d1fd445adb6294fc89dcaafe6e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b00c054125d9f2aa31c2147920cc52cbf2a45ccc 04-Feb-2015 Mohammadinamul Sheik <inamul@google.com> AOSP changes to use KeyboardLayout to support the new DictionaryFacilitator

Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
23574d1231296e090e6efb41a50c7885a116ddb4 03-Feb-2015 Dan Zivkovic <zivkovic@google.com> LatinIME portion of "green plus" feature.

Removes the feature that adds strings to the user dictionary,
aka the "green highlight with a plus sign".

Bug 19237189.

Change-Id: I2387129a3add2d69d625f2ff16ed8cab3f10a735
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
77e0fa1d6708fa53549d80fcd2035da5a30e4140 29-Jan-2015 Dan Zivkovic <zivkovic@google.com> LatinIME portion of multi-lang option removal.

Bug 19188067.

Change-Id: Ic9a3637f59dda30c699141222b9dcac3cd624b99
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a2cb2f36a6b51f73602bd7e917c418657da0c973 17-Nov-2014 Jean Chalard <jchalard@google.com> Make the typed word a SuggestedWordInfo

That allows to carry the language information in an
accurate manner.

Bug: 18063142
Change-Id: I0bca8981372ae10648274095b18b26a3686b762b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8736f2d719940b18b931ad18b7b436ecbd28d222 19-Nov-2014 Jean Chalard <jchalard@google.com> Merge "Fix oscillations on ICS"
9444d70514cfa11e88380e653bea3b4a6c205151 18-Nov-2014 Jean Chalard <jchalard@google.com> Fix oscillations on ICS

Bug: 18181427
Change-Id: Ib4dd62037b1f7b2d10496ee3e45b4a138e29f90a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
fde0cce1037a635c34e55baa17424f8eff53b6da 19-Nov-2014 Jean Chalard <jchalard@google.com> Merge "Remove the other deprecated constructor to SuggestedWords"
6d1201915ddb2107a947759b722dda1c797d1034 18-Nov-2014 Jean Chalard <jchalard@google.com> Rename a confusing method name

...and fix a bug that happened because of it.

Bug: 18417740
Change-Id: I7a33780adcb8f4e2625abcd3eec906dfee1f5dcf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
83f9524b8796d94fad56280f6b26c9045fea313f 07-Nov-2014 Jean Chalard <jchalard@google.com> Remove the other deprecated constructor to SuggestedWords

Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
36799b2aa2982ec17341cd2c5ed81e608bcee8c6 29-Oct-2014 Jean Chalard <jchalard@google.com> Move InputPointers and ResizableIntArray to common

Bug: 18108776
Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4beeb9253a06482299e0c67467531d30436a02fc 28-Oct-2014 Jean Chalard <jchalard@google.com> Move StringUtils under common.

Bug: 18108776
Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
9342484e8d573a40f470b6a593df31c602fa4076 23-Oct-2014 Ken Wakasa <kwakasa@google.com> Move Constants.java to the latin.common package

Our intention is to have classes of latinime-common under the common
package as much as we can.

Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
d3a4c5132422b189c8dbb94dbbe84a9b9761b0a8 22-Oct-2014 Tadashi G. Takaoka <takaoka@google.com> Fix Javadoc and null analysis related warnings

This CL also adds @SuppressWarning("unused" to java-overridable package.

Bug: 18003991
Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
5f00fe09e9a611b647592188316e5999465df4d3 20-Oct-2014 Tadashi G. Takaoka <takaoka@google.com> Fix some compiler warnings

This CL fixes the following compiler warnings.

- Indirect access to static member
- Access to a non-accessible member of an enclosing type
- Parameter assignment
- Method can be static
- Local variable declaration hides another field or variable
- Value of local variable is not used
- Unused import
- Unused private member
- Unnecessary 'else' statement
- Unnecessary declaration of throw exception
- Redundant type arguments
- Missing '@Override' annotation
- Unused '@SuppressWarning' annotations

Bug: 18003991
Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
17100ad8eacc3d4905a8239c57e5661339f4c91d 15-Oct-2014 Jean Chalard <jchalard@google.com> am 8435acd7: am f7f786d8: am d9c04a6b: am 6456af0e: am ecea8551: Fix a bug with no suggestions flag

* commit '8435acd789bd4f9c1322a73b9e0567c2dee7b336':
Fix a bug with no suggestions flag
ecea8551c39a497e036be5c010d7ddb6b51a36bc 15-Oct-2014 Jean Chalard <jchalard@google.com> Fix a bug with no suggestions flag

We should reset the composition state when moving the cursor inside
the word after a gesture when the text field specifies no suggestions.

Bug: 17959921
Change-Id: I977fea775f7b7e145e343636f0fb94266a40953a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
bc18005948c3872a96bd3406e7dd2c722d60a013 08-Oct-2014 Jean Chalard <jchalard@google.com> Always show the typed word in recorrections.

Bug: 11330140
Bug: 17875601
Bug: 17623275
Change-Id: Ie4620f36f312c54c7b01b5f6cbdb0bc9171b6179
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
81a5a10476a8ada6bbcaeb58d7c23d05f4ec1ab0 07-Oct-2014 Jean Chalard <jchalard@google.com> [ML19] Actually switch the language when appropriate

That is, when auto-correcting or when manually picking.
This is not great, but it's a good starting point.

Bug: 11230254
Change-Id: I07627f48e2de1c28053d6572c7c72625808ec79c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
176ad53c6fee47df7595e7501e7e2829d990364d 07-Oct-2014 Jean Chalard <jchalard@google.com> [ML18] Make WordComposer#getAutoCorrection a word info

Bug: 11230254
Change-Id: I6ad2e7f89862fbfe7af5502961643320c782347f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6fb586a527e7ffe5da187c8b345cdf897b8481c7 06-Oct-2014 Tadashi G. Takaoka <takaoka@google.com> Fix missing prediction words on contextual strip

Bug: 17874801
Change-Id: Iaba935a6b2548376f10a0ecd80f07ea7ada6c60a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
81c2dfe9c64f07b553b6573525e4285f2a8ab199 06-Oct-2014 Yohei Yukawa <yukawa@google.com> Remove ENABLE_CURSOR_ANCHOR_INFO_CALLBACK

We can now start relying on L APIs even in unbundled release.

This means ENABLE_CURSOR_ANCHOR_INFO_CALLBACK can be always true.
Hence we simply remove it.

Change-Id: I0353e992e97e252059f83accea100504594bf171
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c92c883fdf2287b49392692fa2e8d109dc26f785 04-Sep-2014 David Faden <dfaden@google.com> Add calls to stub for API to consume gesture data.

Bug: 17400259
Change-Id: Ib3511afffe1d14662e7dd14611f384689516e664
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2910990065c3d17fddcd8238f2cd78cc34361d31 01-Oct-2014 Jean Chalard <jchalard@google.com> Merge "Never include the typed word in recorrections"
eff21b653f6ddfdd9b931aaacd0d15b53b57e84f 01-Oct-2014 Jean Chalard <jchalard@google.com> Merge "Make a better effort to detect a framework lie."
38144047ea3985c9345e7fbe6bb3aafbeaea5f06 01-Oct-2014 Jean Chalard <jchalard@google.com> Make a better effort to detect a framework lie.

Bug: 17130496
Change-Id: I1a3631670c152d9b7667c9c4e08e14c48569eef5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
57e29436b1f4a7b1e0072f33212e97118ed924d2 01-Oct-2014 Jean Chalard <jchalard@google.com> Fix an NPE on ICS factory rom.

In ICS factory rom and MR0, there was a bug where calling the
constructor for SuggestionSpan that doesn't take a context as
an argument would always return in a crash. Don't call it,
and pass an explicit context instead.

Bug: 13552505
Change-Id: I5c919499b9d086c2cf283795b2af5b91cb425933
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4c90df7e5b916e1d9e48e6902a8d0e884ee44673 01-Oct-2014 Jean Chalard <jchalard@google.com> Never include the typed word in recorrections

Bug: 17623275
Change-Id: I2461e5e8baf06fb80a05b87f9d3db7a4d1952a01
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
9586d69bdf90fe24a83c0c6ba22589f28ae6cd03 22-Sep-2014 Adrian Velicu <adrianv@google.com> Avoid double space when autocorrect is triggered

Bug: 17596034
Change-Id: Iaa6cc066eefd2436195a91791f2628e9a5f1c449
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
bb0eca57054758ef17b032d2654c1fc5f6b32101 29-Sep-2014 Keisuke Kuroyanagi <ksk@google.com> Rename PrevWordsInfo to NgramContext.

Bug: 14425059
Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b12c174c2f04461e5c5e0d2e148742ef0bfc5594 22-Sep-2014 Adrian Velicu <adrianv@google.com> Merge "Hiding SuggestedWords.EMPTY and refactoring code that compares SuggestedWords instances directly to it to use isEmpty instead"
30f4a2a4d750dc8c3132d706d9148daf71fbd168 21-Sep-2014 Adrian Velicu <adrianv@google.com> Hiding SuggestedWords.EMPTY and refactoring code that compares SuggestedWords instances directly to it to use isEmpty instead

Bug: 17560717
Change-Id: I7032bf0ab46f9cf5e3b3312a14e689b5496764c1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6901ea6eacf719042e1af6f3d64c226e41c3c5e9 19-Sep-2014 Mohammadinamul Sheik <inamul@google.com> Invoke onWordCommitUserTyped on startInput() with non empty wordcomposer

In chat clients, the last committed word is not committed via
rich input connection. This will handle those missed out cases.

Change-Id: If3f1f6e1927cdf56a09d3e9124f05c66ca75de53
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0e9419d014c859252584a37a2242def51f88294f 18-Sep-2014 Mohammadinamul Sheik <inamul@google.com> Add word commit methods to StatsUtils

Change-Id: Ibb2cf0150cd9a851ff48d097688edc916dc82998
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
eddfe51b38755e0068e3c322868c5e209f212f6f 18-Sep-2014 Yohei Yukawa <yukawa@google.com> resolved conflicts for merge of 233a2f21 to master

Change-Id: If391cc622367dfb4448c6a5c32b82111d352d86e
5896153f931ac876ad667d73d7703289a63e9bf5 14-Sep-2014 Yohei Yukawa <yukawa@google.com> Use Add-To-Dictionary indicator only

With this CL, the previously used commit indicator was reverted.
Instead we use the add-to-dictionary indicator only at the moment.

This CL also fixes the indicator position in bidi context.

BUG: 17335734
Change-Id: I5f7cf173ddc30876e2b01320acaff8ba4265edf6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
16bfac9ff463ad9324d2ccc15817088e1cfd9eab 16-Sep-2014 Mohammadinamul Sheik <inamul@google.com> Add StatsUtils.onAutoCorrection method.

Change-Id: I9547b6c0f082ef7c09b251a6458badb65a841229
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
acdd2e4572a6cf370ce39d1fcffbc0f26312329b 10-Sep-2014 Mohammadinamul Sheik <inamul@google.com> Add backspace event methods to StatsUtils

Change-Id: Id45d217073e49ca5f2ba639b608d168d136bba58
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1cf2acd8de53e1b6fa156af065330c687ccdcb86 08-Sep-2014 Jean Chalard <jchalard@google.com> am 61e7afa6: am 0eaa25e0: am 914078fd: Fix a bug where recorrection would stop on connectors

* commit '61e7afa6fa98939f9dcb9f7a2ebb5678a51d4201':
Fix a bug where recorrection would stop on connectors
b41ee671944aee97163c1567d7407fc3bd7507a3 08-Sep-2014 Jean Chalard <jchalard@google.com> Fix the sentence separator for Hindi.

Change-Id: I623e4ccbc324751eb67ec4bb777e2be5ae2a60d1
Bug: 17418371
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
914078fd9198aeb3d7ffa034562321d688d588f7 03-Sep-2014 Jean Chalard <jchalard@google.com> Fix a bug where recorrection would stop on connectors

Bug: 16733686
Change-Id: I7a9f79a81e33a1f5bf5f3daf0b78d0f1e4447e7a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c74ffe8edcf468effec2833299a219dfbd59de70 08-Sep-2014 Mohammadinamul Sheik <inamul@google.com> Add StatsUtils.onPickSuggestionManually and SuggestedWords.indexOf.

Change-Id: I1588448154d086569cb026825fdc36cd1812a582
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
5d7b24f29c164e9aae24ec36c75ed9dd5a289c20 03-Sep-2014 Yohei Yukawa <yukawa@google.com> am f2c509a8: am 310da35c: Merge "Follow up API signature change" into lmp-dev

* commit 'f2c509a81ef107e6c71dc6804417469d12c94fca':
Follow up API signature change
5d6ac77732b6fe29489deecc297d771642150a2b 03-Sep-2014 Yohei Yukawa <yukawa@google.com> Follow up API signature change

This is a follow up CL for API signature change in
I772c48ff18918e48a81e807b48ff907614485c09

BUG: 17320996
Change-Id: Ic8b6162bda12bf74fae79af212c5d81c400eb9e8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
00042cb453ae72d2f76661c6a712210e2ecd79b4 27-Aug-2014 Yohei Yukawa <yukawa@google.com> am c925ca43: am 97681ebd: Set highlight color along with the commit indicator

* commit 'c925ca43a6e0b3175feb002ce6b5577ef7d66507':
Set highlight color along with the commit indicator
6da1c674fdf630109bdd755913791bf5e99d6463 27-Aug-2014 Ken Wakasa <kwakasa@google.com> resolved conflicts for merge of 8159336b to master

Change-Id: I9dd726593c6768b1db35305935ee69b0937358ef
c1596086d3de32b66a382acf2c9b5fa00779008f 27-Aug-2014 Ken Wakasa <kwakasa@google.com> resolved conflicts for merge of 0268f736 to master

Change-Id: Ib89ef55a8752f9b5e357eed3a05c79dd28d0ec0e
97681ebdf16dd94b7ed0607342cc2750fb96a641 27-Aug-2014 Yohei Yukawa <yukawa@google.com> Set highlight color along with the commit indicator

With this CL, the text highlight color is applied
when the commit indicator is displayed.

Note that the underline is not rendered when the
background color is enabled. This is a known issue.

Change-Id: Ia19355e1303e3a10e8a7d69bc47c779feb70248a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
29200b0abe1d65aa2f9ddefd247ab91563d666f8 27-Aug-2014 Yohei Yukawa <yukawa@google.com> Set the text bgcolor only when CursorAnchorInfo is available

When CursorAnchorInfo is unavailable, we shouldn't try to show
the commit indicator and set the text highlight color.

With this CL, RichInputConnection can be used to track if the
application responded that it does support CursorAnchorInfo or
not. This result will be taken into consideration when
InputLogic needs to determine whether the commit indicator
should be displayed or not.

Change-Id: I945d70eeb02a7a5f3d9b22459b23d7028508910f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a475c85480b2bc2a8d036b4b1ea29f6a8e749ac5 27-Aug-2014 Yohei Yukawa <yukawa@google.com> Introduce a mechanism to hide the indicator speculatively

This is an optional optimization to reduce the UI latency.

Imagine that the commit indicator is now displayed and the
composing text is being updated, it is highly likely that
the commit indicator will disappear unless the application
rejects the setComposingText request.

If we assume that the application will accept the new
composing text without any modifications, we can hide the
indicator without waiting for the arrival of new
CursorAnchorInfo event.

This optimization isn't dangerous because we can show the
indicator again when we receive new CursorAnchorInfo event
and the assumption is turned out to be invalid.

Change-Id: Id59c6607a1029782410611e768791af9984f14ac
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
bea17c49ec23bf0f646cb548445c7756aa50d233 25-Aug-2014 Yohei Yukawa <yukawa@google.com> Introduce commit/add-to-dictionary indicators

This CL introduces commit/add-to-dictionary indicators.

Note that the text is not yet highlighted when the commit
indicator is displayed. It will be addressed in subsequent
CLs.

Change-Id: I7e9b0fcfdc0776a50a1d8cfb41ee0add813317dd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4660ecaa44d4ca141ba53552d9533ea60d3e8323 26-Aug-2014 Ken Wakasa <kwakasa@google.com> Merge "Fix a bug where mic/emoji key wouldn't work."
e38043849e01adfb2f6eb33cf6133c1d39d2466a 26-Aug-2014 Jean Chalard <jchalard@google.com> Fix a bug where mic/emoji key wouldn't work.

Bug: 17272902
Bug: 17269948
Change-Id: I561609fa84a6265f8148db7d2411bc1fd38dd163
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8380f921f7edaeea2033a1e967a14941400fe246 26-Aug-2014 Jean Chalard <jchalard@google.com> Fix a bug where the top prediction would disappear.

This is because prediction can't be easily distinguished in
style. This fixes the bug by simulating the right members,
but some refactoring should be done to remove useless
booleans.

Bug: 17271923
Change-Id: Ib88f3fb95678021624e59535492926dd315d26fb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8681287cd65f9d96187aab0703121881c8eba6c6 25-Aug-2014 Yohei Yukawa <yukawa@google.com> Fix build due to an illegal character

Change-Id: I597ab26db70387b80ddcd7d51de6ae751380030d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
5eebaddccbdbd59669d658245eea6e8aca560fc6 25-Aug-2014 Yohei Yukawa <yukawa@google.com> Merge "Dismiss "Add to dictionary" hint with non-special char event" into lmp-dev
ebc150903951d641b2c7291bb4e834a737eb39fc 25-Aug-2014 Yohei Yukawa <yukawa@google.com> Introduce #shouldShowAddToDictionaryHint

This is a groundwork for subsequent CLs where we need to
call this method from multiple places. This CL does not
change any existing behaviors.

Change-Id: Id8fa0360305d7383571edffab6752b2240367cf9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
034c3260781f6f42d8f0252379d9fa6fd5c9d4d3 25-Aug-2014 Yohei Yukawa <yukawa@google.com> Dismiss "Add to dictionary" hint with non-special char event

This CL slightly extends the condition when "Add to dictionary"
hint is dismissed.

With this CL, "Add to dictionary hint" will be dismissed by any
non-special char event. This is more comfortable especially if
we start using more intrusive UIs such as indicator and/or
background color with the text hint in the suggestion strip.

Change-Id: I2ea0fa40d9c6663ebf5d5439be3eca2a2cbd5166
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4a71d2c48021351e10bd61d5ee007533651da627 25-Aug-2014 Yohei Yukawa <yukawa@google.com> Allow to add/remove background color to/from the committed text

This is a groundwork for subsequent CLs where we need to
add/remove background color to/from the commited text.

In this CL, we use Spanned#SPAN_COMPOSING so that we can easily
remove such a background color by calling
InputConnection#finishComposingText. To make this operation easy
and realiable, we need to track whether we have specified the
background color to the commited text or not at one place. Here
we use RichInputConnection for this purpose.

Change-Id: I5f9bc4425c5d1b80a719a20e5baf336729ec08d2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b8d764772b174cbd37354ffd0009bda56f223dc4 13-Aug-2014 Jean Chalard <jchalard@google.com> Add the input style to SuggestedWords.

Change-Id: I81f37d08659d449822b027d3d5912e11eec8b8ff
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
772a8019efbc280f6228fc2d7baca66f5dee755e 06-Aug-2014 Jean Chalard <jchalard@google.com> Revert "[HS2] Move more stuff to onStartInput"

This reverts commit 93b00a314e307cb257abf1cab88cb24d57ff3885.

Bug: 16830599
Change-Id: I955e7da77978c3a495660aa29247e010d489c36b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
9273f3832b51f5d23d86df624600381ed6d6585f 05-Aug-2014 Jean Chalard <jchalard@google.com> [HS3] Fix a bug on ICS

There is a bug in ICS where the input connection won't take
any writing commands after rotation until the cursor moves.
This fixes it by wiggling the cursor position once before trying
to do anything.

Bug: 16810766
Change-Id: Ib14c70bd0550420cecfa86dea501d13a1a91e296
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
93b00a314e307cb257abf1cab88cb24d57ff3885 04-Aug-2014 Jean Chalard <jchalard@google.com> [HS2] Move more stuff to onStartInput

Bug: 8152758
Change-Id: Ida05df7d151ceb582886e2ad06c5bdf0b59978ee
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0a2872cb448c6df1009011414359981d411bd879 04-Aug-2014 Jean Chalard <jchalard@google.com> [HW16] Implement processing event chains.

Change-Id: I4e1e4f101050ebda77c629a61c548d3c8efb330f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f69bb4c7a31095012608f6608aa714588eb73b3d 04-Aug-2014 Jean Chalard <jchalard@google.com> [HW15] Pass events instead of reading them from the transaction

It's probably cleaner to just pass the events rather than read
them from a transaction, especially when a transaction may be
associated with several events in a chain.

Change-Id: I27830f0f3f3f32fe77ea8b9cad505b7ebee648af
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
dd31a2dedf3259662cacac9baad638ec10a0baeb 04-Aug-2014 Jean Chalard <jchalard@google.com> [HW14] Cleanup

Do away with the didAutoCorrect local variables which are
unnatural to return out of all these functions.

Change-Id: I22024004d2c489de018beff812c2c589bfd8ca32
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a88e95e07e2a67d4fd99c4928f4c2ae09d2ad245 04-Aug-2014 Jean Chalard <jchalard@google.com> [HW13] Split up onCodeInput

Change-Id: I503c5403dcaea5db632eba85ae3fae9ba9a1f946
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
e0bad8e988a23553181fb670f8a2589a79f22c40 01-Aug-2014 Jean Chalard <jchalard@google.com> [HW12] Use the consumed status of the Event.

Change-Id: I1619f6132f8f71bc1291fd6a5604a5e1e3431ae2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
da5ccd9f18a697e6f4ff218c8374fd491e934cd9 31-Jul-2014 Jean Chalard <jchalard@google.com> [HW11] Cleanup

Change-Id: Ia866d3f9a5981c687766f8c39979fb6091018e44
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
00ee5f76975644a9691126f24b4b6c4b4e671cff 01-Jul-2014 Jean Chalard <jchalard@google.com> [HW10] Pull the processed event in its eventual place

Change-Id: I5f7932097627766e907764a99a5e9c170f725bc0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f290d4073a7c9b60cd275b7a786a516ce80952bf 01-Jul-2014 Jean Chalard <jchalard@google.com> [HW9] Pull the processed event further.

The 'processedEvent' variables will ultimately disappear entirely.

Change-Id: I612c5ce7dedc341b64921a86ac028fe91b75359b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
86893a3b3f9ac939d00fcc665d25a8ddbced49ec 01-Jul-2014 Jean Chalard <jchalard@google.com> [HW8] Pull up the processed event.

Change-Id: I18021b7ec1588fc52533c48b7d8774bec7764822
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
7196566d4f2048a4160acc6271ccb26c73d6fcd6 30-Jun-2014 Jean Chalard <jchalard@google.com> [HW6] Split processing and applying the event.

...take 2

Change-Id: I9d13b6d51e13ce2e76ae3febebfb8c310eba509d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4399849dea9f3cc1c8b1828739a0dd7bedc1f730 30-Jul-2014 Ken Wakasa <kwakasa@google.com> Revert "[HW6] Split processing and applying the event."

This reverts commit 1db3d860ca0d7380c5a6a3a0f95751565f23043b.

Reverting due to a few critical bugs and unit test failures.

Change-Id: I5e2d02300320438ef9c29577ec5b0860ea91d822
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1db3d860ca0d7380c5a6a3a0f95751565f23043b 30-Jun-2014 Jean Chalard <jchalard@google.com> [HW6] Split processing and applying the event.

If anyone has better names for those...

Change-Id: Ia2dfc75381816bd688948647e2c50c10657b9e89
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ab661e3ef886a36b02fe094864ae4be6a3260f71 22-Jul-2014 Tadashi G. Takaoka <takaoka@google.com> Make "Show correction suggestions" as a binary option

Formerly "Show correction suggestions" had three options, "always
show", "show in portrait mode", and "always hide". The reason behind
"show in portrait mode" was that there may not be enough screen estate
in landscape mode to show suggestions. Because recent phone devices
have relatively large screen, we decide to remove "show in portrait
mode" option.

Bug: 15780939
Change-Id: I896d737452c3893d43ce20bd88127f10c1eb3d83
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2dae79b1966a7970c25c8b79beec1c95c13f6c87 17-Jul-2014 Tadashi G. Takaoka <takaoka@google.com> Rename LatinImeLogger to DebugFlags

Bug: 15318007
Change-Id: Ic0268fd12865c9a692a5e7110a9beb76cb8b6d7f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b8a9479b57007edb5cb12c628797f89a8164f596 08-Jul-2014 Keisuke Kuroyanagi <ksk@google.com> Move phrase gesture from additional features to public.

Bug: 15758242
Change-Id: I703dc2703afdf9402c5d2ac27411b74ece993dba
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0100a49bdd7658814b016fbefe63148e57d6096f 01-Jul-2014 Ken Wakasa <kwakasa@google.com> Merge "[HW5] Make the word composer package private."
28ebbd481ad38f41211d853bf5eb39b36842be36 30-Jun-2014 Jean Chalard <jchalard@google.com> [HW5] Make the word composer package private.

Change-Id: I66ed277751272eb3ae2fd5e55e9f3e413970082f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
08c01ea8a8765234a470bb4d4b887fe4786ee26f 30-Jun-2014 Jean Chalard <jchalard@google.com> [HW4] Move a reference to WordComposer out of LatinIME

Change-Id: I5436432c0da86ed1e33b3c9d40204f4ea013ff55
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
292deb632cbab232334190e68d29184094d6d51b 27-Jun-2014 Jean Chalard <jchalard@google.com> [SD7] Actually check for script.

...also implement the check for Hebrew and Arabic.

Bug: 15840116
Change-Id: Ia6433d7d98038ade64c171be4fe4b3f094111fac
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b10ca308afa40bdc9d003494e30d21df03a0063c 01-Jul-2014 Jean Chalard <jchalard@google.com> Merge "[HW4] Move a reference to WordComposer out of LatinIME"
20c89b1cf5e30026844922d312163ffcd1c20b26 27-Jun-2014 Jean Chalard <jchalard@google.com> [SD5(2)] Remove useless args

Bug: 15840116
Change-Id: I1123426fbd9d420c1be64ccc917a5f870e70e6fa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
7eef5d3ff4a0456335943e6a7494f540a7291017 01-Jul-2014 Ken Wakasa <kwakasa@google.com> Revert "[SD5] Remove useless args"

This reverts commit 1d300239612591879d535c20ade1f2712048170e that broke the build.

Bug: 15840116
Change-Id: I0a5fa7dea2b418d19df24b2b31ed96bf192d45c0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1d300239612591879d535c20ade1f2712048170e 27-Jun-2014 Jean Chalard <jchalard@google.com> [SD5] Remove useless args

Bug: 15840116
Change-Id: Ib3380cfc9d343c6f8953bba03af3801142bc3bdb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6345562e2b351221a9bc0341f7dbd26095290b64 27-Jun-2014 Jean Chalard <jchalard@google.com> [SD4] Restart suggestions on language change

...otherwise we can't recompute the composition when we
change scripts.

This also fixes when we register that we need to take note
that the current subtype was used. Luckily this is a good
occasion for some cleanup that I've wanted to do for some
time: use InputTransaction for onTextInput (with the goal
to ultimately remove it entirely)

Bug: 15840116
Change-Id: Ie4f4f9157b66b79237eeb3db75535803124d3e19
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
35c37dbef8a65cc1e199a60090d1b4e60da69fe6 26-Jun-2014 Jean Chalard <jchalard@google.com> [SD3] Forward the script ID to where it will be used

Bug: 15840116
Change-Id: If2073e76fed74ae6e1cdd7670013e0e985b0e630
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
e063e1b218ee8fddb0bd7d4b3b4e71052b57bb2b 01-Jul-2014 Jean Chalard <jchalard@google.com> Merge "Fix a unit test"
fa4c59f9b6663e5de08692f853e968603dfc10e9 01-Jul-2014 Jean Chalard <jchalard@google.com> Fix a unit test

When switching languages, we need to wait until the dictionary is
loaded to compute suggestions.

Change-Id: I7c32a900b297cd6302bfdc020842581315f3007f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
17c5a388d6ada4dc395b52e56f8b18d63eebb863 27-Jun-2014 Keisuke Kuroyanagi <ksk@google.com> Merge "Find multiple previous word information to support n-gram."
1c2f1ada8305e36defa8572da687a4596bf083ea 27-Jun-2014 Keisuke Kuroyanagi <ksk@google.com> Find multiple previous word information to support n-gram.

Bug: 14425059

Change-Id: Ieace636334a9b2a094527341d4fcfc05958296c5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
310bb2c76f0a7a5cf97b47d029096d6296cdfd0b 26-Jun-2014 Jean Chalard <jchalard@google.com> Merge "[HW1] Fix some bugs with event handling"
09291050a028192a39fd745c6696df1c504eb38b 25-Jun-2014 Jean Chalard <jchalard@google.com> [HW1] Fix some bugs with event handling

With hardware events, we do have some events that
have both a keycode and a code point, so we need
a better way of distinguishing between auto-insert
keystrokes and others.

Change-Id: Ia23042989b4dca9d3a7d4a4c06bcebdabe324a7a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
92827b0712f8afecb4800a4137470ba64cd0c505 26-Jun-2014 Keisuke Kuroyanagi <ksk@google.com> Merge "Make PrevWordsInfo have multiple words' information."
e708b1bc2e11285ad404133b8de21719ce08acb5 25-Jun-2014 Keisuke Kuroyanagi <ksk@google.com> Make PrevWordsInfo have multiple words' information.

Bug: 14425059
Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a3f7a5840aa7ac2a3cac02634dc74f288ca2222d 20-Jun-2014 Jean Chalard <jchalard@google.com> Don't commit a space before it's actually needed

Bug: 15740318
Change-Id: Idad06cb2c18335a981d5e9dea7eccf5e7ea8f701
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
debe0dacbdfa9100038ab82aacb69fe961d2eebd 20-Jun-2014 Jean Chalard <jchalard@google.com> Some cleanup to accommodate a fix

Also, this double tests for CODE_SPACE in the path going through
maybeDoubleSpacePeriod, but that's temporary.

Bug: 15740318
Change-Id: I0a6ace09cc791f0009157d3017675b9b3eb92145
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f73769c6389adef4ae78ff844d14039b9b8f2c6e 20-Jun-2014 Keisuke Kuroyanagi <ksk@google.com> Merge "Remove word from personalized dicts when it's canceled."
0fbca1ac2388db81a443c1705732130564c3f714 20-Jun-2014 Keisuke Kuroyanagi <ksk@google.com> Remove word from personalized dicts when it's canceled.

Bug: 15555552
Bug: 15552347
Change-Id: Ia4d8c79d079e3ce233d46d4bbad4fff1be5c5c39
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f49e9757404a84620f56e4210159c55193587187 19-Jun-2014 Tadashi G. Takaoka <takaoka@google.com> Clear suggestions strip if a suggestion engine isn't attached

Bug: 15709298
Change-Id: I1b3fff3152960d85060149727d7a3422fea8a0bd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c715d95f174598f9db8e8d2e59b0c79589691d93 13-Jun-2014 Jean Chalard <jchalard@google.com> [CM2] Update beginning-of-sentence suggestions

We need to update them after separator-space, and also when
the user presses shift and they are displayed.

Bug: 15554503
Change-Id: I5596163d5cd94d3cc5f6af10a1ab2cc74b6d4279
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
deccc23564304b11d58590041f25adffdf6e1b6a 13-Jun-2014 Jean Chalard <jchalard@google.com> [CM1] Let predictions be aware of capitalize mode.

Bug: 15554503
Change-Id: If5e8c0d94ed26d929400ccbb0d45ac23dd98d180
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
367c199de16f7ce8e608bdf38bf35df8995e18a0 09-Jun-2014 Jean Chalard <jchalard@google.com> Remove mPrevWordsInfo

This member has outlived its usefulness. It's not clear now that it
makes things really faster, but it does bring a lot of complexity
that we can avoid by removing it.

Change-Id: Ifbc8094a45b56b958fe165b1930f4cc358a97721
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
fca2c4b4398ae2aa505de223d602c5b3dd98faff 06-Jun-2014 Jean Chalard <jchalard@google.com> When starting input, include the literal word in suggestions

This change also includes a fix that has suggestions re-computed
when the typed word is included but no prior suggestions were
found in spans.

Bug: 2349475
Change-Id: Ic06e6ac492507126ffc1e96a5f396c971b567272
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
70ff0c212262309e381d00636bf66d231a2a9dfb 06-Jun-2014 Jean Chalard <jchalard@google.com> Merge "Fix a bug on rotation with selection."
9fd9a68d8797ed500d07d5e149cd4da50be2df15 05-Jun-2014 Jean Chalard <jchalard@google.com> Fix a bug on rotation with selection.

The symptom : when text is selected and the device is rotated,
sometimes the keyboard sets the word as being composed around
the start of the selection. Upon the next rotation this ends up
with the keyboard committing some text in place of the selection.

The cause : another bug in the framework with rotation >.>
The keyboard receives a call to startInput with a wrong cursor
position, namely one that does not represent a selection. The
keyboard sets a composition according to this wrong data. When
the keyboard is rotated again, it commits the text, which takes
the place of the selection.

The solution : actually when restarting input the keyboard
realizes that the cursor position is wrong. We cancel composition
at that time.
For robustness, this change also implements two other defensive
changes : upon call to onUpdateSelection, we actually realize
that the previous values were wrong, so we also fix it at that
time, and in addition, when rotating, we finishComposingText()
instead of commitText() which is less dangerous. Implementing
this later change also allows us to let less internal variables
from InputLogic escape to LatinIME, so it's also a good change
for design.

Bug: 14140799

Change-Id: Ib10de18e53e376ac1bbc8487e13d969828483346
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2e32e37d5bf95743eb56ef1b9560ffc5032bccf3 05-Jun-2014 Tadashi G. Takaoka <takaoka@google.com> Rename some boolean variables for readability

Change-Id: I434cf507e68349b9893ac084645986d6b3d7da91
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c84b10840e1439a0432dc92cca29a5f6af1646fb 04-Jun-2014 Jean Chalard <jchalard@google.com> Don't recapitalize just at the start of input

Bug: 13283555
Change-Id: Iab0466425dc44779d110f2cd29d725d22eb04827
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4a1113b6b065931322df8bba375864274a898acf 04-Jun-2014 Jean Chalard <jchalard@google.com> Refactoring

Rename `initialize' to `start' and `deactivate' to `stop' for ease
of understanding. It's completely bizarre that you can "deactivate"
a recapitalization and that will just restart a new one the next time
you press shift. Start and stop are easier to understand.

Change-Id: I455175aebfcfe11198c6c61bf2c6b19efc3f82df
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8f71fab2ed619e34222a172a5004d7f91b4520a6 30-May-2014 Keisuke Kuroyanagi <ksk@google.com> Make prevWord = null if the next word starts from a connector.

This fixes PunctuationTests#
testAutoCorrectionWithSingleQuotesAround.

Bug: 14119293
Bug: 15334309

Change-Id: I604c21a21e89a5fc431fd56ab7b6ad03f4736b01
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
fa0e76dde606c288e4df20b779995cbce3b187fb 30-May-2014 Jean Chalard <jchalard@google.com> Limit recapitalization for reasonable performance.

At 100k text, it's reasonably fast (less than 1s on latest hardware).

Bug: 12913404
Change-Id: I426b918b2610af24364934a1c37a7314f1142ad0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
aaf2bbf9c3281a6dee14403dbff083e80c866dea 29-May-2014 Tadashi G. Takaoka <takaoka@google.com> Merge "Remove LatinImeLogger and UsabilityStudyLogUtils"
51ee5a47b8af04a14e1756c900b42784f948fff5 29-May-2014 Tadashi G. Takaoka <takaoka@google.com> Remove LatinImeLogger and UsabilityStudyLogUtils

This CL must be checked in together with Ie52007dc5c.

Bug: 15318007
Change-Id: Ie665f296e43b5485ae8ba7e949aa262794ee0dcc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
944923f26660959bfc347c55b66f40de924d3068 29-May-2014 Jean Chalard <jchalard@google.com> Fix: too many calls to getSuggestedWordsForTypingInput

This reverts commit d941ea18 and builds on it to fix the behavior
of the broken cases.
It also fixes a small, related bug that probably has existed for
a very long time: predictions not displayed when cancelling
double-space-to-period.

Bug: 15148015
Change-Id: I1f9358f8b6f5804f831643611576be347e83999d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
bbf556e8e1f2b522c555e05ec06c4efefed16e02 28-May-2014 Tadashi G. Takaoka <takaoka@google.com> Remove researcher logger

This CL must be checked in together with I5cc76807e3.

Bug: 15318007
Change-Id: I61423c3377ddc299fb332e742d6626c2e47145bb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4bffac6db9e5800ecc58ba12d86b98a184779eba 28-May-2014 Keisuke Kuroyanagi <ksk@google.com> Stop directly checking SuggestedWordInfo.mKind

Bug: 15298959

Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0088d1f6683fce0175266b90c3ec04f15ad8daeb 26-May-2014 Keisuke Kuroyanagi <ksk@google.com> Merge "Use whether it's exact match to detect distracters."
a6278eb9c1fbe102259cba392b1459f712ca46e7 26-May-2014 Keisuke Kuroyanagi <ksk@google.com> Use whether it's exact match to detect distracters.

Bug: 13142176
Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
9df51d10fa6b5b21de564cd93926a88690a98600 23-May-2014 Tadashi G. Takaoka <takaoka@google.com> Keep showing important notice when "show correction suggestions" is off

When
1. The important notice message is shown on the suggestions strip.
2. And the "Show correction suggestions" settings is off.
we will keep showing the important notice message on the suggestion
strip.

Bug: 13741460
Change-Id: I411007ab1e5e6959b6cdba7a6601a84635259313
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a91561aa58db1c43092c1caecc051a11fa5391c7 23-May-2014 Tadashi G. Takaoka <takaoka@google.com> Use Java 7 diamond operator

Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
9f9988e996bdf6c9a2944a20780a1220986ecf2f 23-May-2014 Keisuke Kuroyanagi <ksk@google.com> Merge "Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE."
991c9026b9ad8ffbc1f718f5aa6f8728eb8b2a1c 23-May-2014 Ken Wakasa <kwakasa@google.com> Merge "Revert "Fix: too many calls to getSuggestedWordsForTypingInput""
d941ea182629390dfda41d59bb0e9a2bedb0dd28 23-May-2014 Ken Wakasa <kwakasa@google.com> Revert "Fix: too many calls to getSuggestedWordsForTypingInput"

This reverts commit 7aa895e2e3edb59620c28354c7d7746b93964b10.

Bug: 15148015
Change-Id: If39c4f8b897f247d4eb935923d55d81def4c8fb4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a790c5b68324da41428aeb68594d43ca5632f66d 23-May-2014 Keisuke Kuroyanagi <ksk@google.com> Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE.

Bug: 14119293
Change-Id: I5020e5f0aa64bc3e97b3a3c2c07a60c8b765ed64
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a1035be6d877cafda95b2761f9697474b79deeb8 23-May-2014 Keisuke Kuroyanagi <ksk@google.com> Have DictionaryFacilitator in LatinIME.

Bug: 13142176
Bug: 15094186
Change-Id: I9da67352ff2abcd289fa5885389895ced878a413
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2df6374ffa1474358c2fdcb99a8e767378f747cf 22-May-2014 Jean Chalard <jchalard@google.com> Merge "Fix: too many calls to getSuggestedWordsForTypingInput"
7aa895e2e3edb59620c28354c7d7746b93964b10 21-May-2014 Jean Chalard <jchalard@google.com> Fix: too many calls to getSuggestedWordsForTypingInput

Bug: 15148015
Change-Id: Idcb729734bd62b537fb81acf8bdb5cae4470404c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
17f326b7458c2bde2569e283a96e703755485328 21-May-2014 Keisuke Kuroyanagi <ksk@google.com> Add beginning of sentence information in PrevWordsInfo.

Bug: 14119293
Bug: 14425059
Change-Id: I65320920e840082b0b697bb621676716d0933e0c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
e507d92aa3ee4ae43124c5452f20aa8ed0ecef4c 21-May-2014 Keisuke Kuroyanagi <ksk@google.com> Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.

Bug: 14119293
Bug: 14425059
Bug: 15102610
Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4e21d3711fb65e5b7ef24b2db7b5f2504365d5e3 20-May-2014 Ken Wakasa <kwakasa@google.com> Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."

This reverts commit ff50b39176370ab80a33bfdcf9979603c08a88b3.

Bug: 14119293
Bug: 14425059
Bug: 15102610

Change-Id: If278b4ab236e38d20d8cdc0761b0438911bd4ff9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ff50b39176370ab80a33bfdcf9979603c08a88b3 20-May-2014 Keisuke Kuroyanagi <ksk@google.com> Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.

Bug: 14119293
Bug: 14425059

Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
5ce39dfa782031fd53af167c0fd9a9bc63d21149 14-May-2014 Jean Chalard <jchalard@google.com> Fix a bug where changing languages kills the composition.

Bug: 14926896
Change-Id: Id2a06c68a51f833db4d8bbc858a232c2696afb6e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
309ab664a87be67dbf029a0ac812f1755148396b 14-May-2014 Jean Chalard <jchalard@google.com> Don't send empty composing texts.

Bug: 13160467
Change-Id: I5e3204ac8aaa18fe9219cc6b564b832ab6cf94fc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
490e6846a144313e842c2cdcb257072e0e2b6980 12-May-2014 Keisuke Kuroyanagi <ksk@google.com> Merge "Add freq=0 words to user history depending on the option."
84070cbc74cb75a86cf5b995fe50ce53790b17d3 12-May-2014 Keisuke Kuroyanagi <ksk@google.com> Merge "Improve multi-word suggestion handling for user history."
87343166e5e79dde4990f75a4d466e1ae6bcce94 12-May-2014 Keisuke Kuroyanagi <ksk@google.com> Add freq=0 words to user history depending on the option.

Bug: 14686585
Change-Id: Ia1c3adb1bcc625788016e378e1ac7b0792ea9f4e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ddacfdeb090949383f5e22b96500563d944abe40 12-May-2014 Keisuke Kuroyanagi <ksk@google.com> Improve multi-word suggestion handling for user history.

Bug: 12902664
Change-Id: I03deed16047f0beaba8932d87c6129ec8061ba9c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
be99616afa2243fe48dc406d0a3f442cb05453b4 08-May-2014 Jean Chalard <jchalard@google.com> Create the path for specifying combining rules in the subtype

Also add the skeleton of the combining rules for Myanmar
reordering as a pilot.

Bug: 13945569
Change-Id: Iabeb6838f45f1efff482143595ce5b48543e0c43
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
29c00ff53822658268d91a0c42afb7db540c15f9 30-Apr-2014 Jean Chalard <jchalard@google.com> Introduce clustering punctuation

Bug: 10081730
Change-Id: If198fa3df68ecb267da0a278da41fd509d6165f1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
393da03c8e3aee824f7d94dfe18dbbef7430ca0c 24-Apr-2014 Tadashi G. Takaoka <takaoka@google.com> Fix handling shift + enter

Bug: 14278758
Change-Id: Id77c99b83cc69855972b27c9cebd482c8cbd3539
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
3aba6263f08e755b55ebcf559673b21b6d46facb 16-Apr-2014 Jean Chalard <jchalard@google.com> Restart suggestions when restarting input

Bug: 6851364
Change-Id: I3052924053f37f56c9c3953051aa1b22224a2b2e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2282e8520a2c1984989a14fb09896536f5033b26 31-Mar-2014 Jean Chalard <jchalard@google.com> Fix updating the shift state upon backspace

Bug: 13514349
Change-Id: If4c9db12b0ab5be676f7a2f72715f469066ee537
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
cb05dc1d1b03a7a66bfa96f76904c4afef914d17 10-Apr-2014 Jean Chalard <jchalard@google.com> Merge "[IL133] Avoid calling a dangerous method from outside."
4370ff0998d3240cfda7745d08edbdd11703b984 07-Apr-2014 Jean Chalard <jchalard@google.com> Fix some flaky tests.

In tests, we create many instances of LatinIME, but we never
destroy them. That means we never close the dictionaries nor
the handlers.
This change calls onDestroy, which closes all dictionaries, and
adds some code to finish the handlers.

Change-Id: I942517a2a940c54256b08763f6b38f5b55809f55
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
d52bec00695a6e43b8e8836112919c02952d4dcc 27-Mar-2014 Jean Chalard <jchalard@google.com> [CB23] Merge add and deleteLast

Bug: 13406701
Change-Id: Id9a2e4144b1908ad27d78228ee19e6fc4d4d669f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f9516b00ecf25e634e2ebfe8ea35eb09bbcf5ca9 04-Apr-2014 Jean Chalard <jchalard@google.com> Merge "[IL132] Remove some calls that let a value escape."
28a59dd049bafa45de628e2cafda47bf46d9e22a 03-Apr-2014 Jean Chalard <jchalard@google.com> Fix a bug with double-space-to-period

Bug: 13778001
Change-Id: I3ebd57950cdfacbbcdc64ed214c0590519a0665c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8ab4ae4377fca97cb9ef05c615c5a59bc4bc3d8c 27-Mar-2014 Jean Chalard <jchalard@google.com> [IL133] Avoid calling a dangerous method from outside.

We want to remove all calls to this as it lets internal values
escape, but there is some refactoring to do to finish this.

Bug: 8636060
Change-Id: Iedba6afe4719bc0add868714a1ee5a04b7ead33e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
9320553ab922621f021a66f934ae9b40c8da21b8 27-Mar-2014 Jean Chalard <jchalard@google.com> [IL132] Remove some calls that let a value escape.

Bug: 8636060
Change-Id: I696514934586ee71e734fd974026af8b2c866127
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
7ebd7ca9a411a058446bad508103f54639165861 18-Mar-2014 Jean Chalard <jchalard@google.com> [IL131] Cleanup some cruft

Bug: 8636060
Change-Id: I169618b50532df68e973e14b3f114c6c19714c84
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
26650377cf13b5d5cf4c7da9136ba6a8d82494be 18-Mar-2014 Jean Chalard <jchalard@google.com> [IL130] Remove a useless local

Bug: 8636060
Change-Id: I36ba3e00630bef644fc4671d0714490b5982f6a1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a777c1c46073d7dc56590e58bdedb497bdfad182 06-Mar-2014 Jean Chalard <jchalard@google.com> [IL129] Change some confusing method names.

Bug: 8636060
Change-Id: I2f55fc23d7e05b63582a3f0660b58635eae5ec59
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1dc354bed1d42551e02631d69a958e615e3dcdd7 31-Mar-2014 Jean Chalard <jchalard@google.com> Merge "[IL128] Remove passing some handlers."
dbadee96b6bc385b18377bd8b943e79097853849 31-Mar-2014 Jean Chalard <jchalard@google.com> Do not create a handler thread for each session

Bug: 13710224
Bug: 12821388
Bug: 12667742
Change-Id: I6188e0240193d2bca789110e7660a0f31bbafc62
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
452cd2f61958ace6ffca5d8f917e76ab792b006e 28-Mar-2014 Jean Chalard <jchalard@google.com> Fix a bug where LatinIME would leak pipes.

Bug: 12667742
Bug: 12821388
Change-Id: Ic0bad56fb96e54ac032759adffc8ea320c06dff2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
70d9152c7f9e06d7d02dbbcb53af5c8f19d16b8d 28-Mar-2014 Jean Chalard <jchalard@google.com> Some cleanup

Change-Id: Ia11d656a70623168b091763ac6524750f9cca8d8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6bd3723e733308a8b6d88830335bb5f786235369 05-Mar-2014 Jean Chalard <jchalard@google.com> [IL128] Remove passing some handlers.

Bug: 8636060
Change-Id: I088be9a7555265ca097667523defd73be4cbe37f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
071b9c1a054bd2bfe3131572de02b30442b01ea3 25-Mar-2014 Jean Chalard <jchalard@google.com> Merge "[CB14] Implement backspace in the combiner chain"
1079665c3c017ee024a2ffdaf3488cc8c37f087a 25-Mar-2014 Jean Chalard <jchalard@google.com> [CB14] Implement backspace in the combiner chain

Bug: 13622107
Bug: 13406701
Change-Id: I0023b398c4451253f9f717e2bd990b8a054004bc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
adfb262797023c4ca57bb470e547f90c88f638ca 25-Mar-2014 Keisuke Kuroyanagi <ksk@google.com> Remove logic related to dictionary loading from LatinIME.

Make mSuggest final and give DictionaryFacilitator the
responsibility to manage dictionary loading state.
This can simplify the logic to decide how to deal with
additional dictionaries when loading settings or language
switching.

Bug: 13273534
Change-Id: I9f3d328272f25addfa186fbeedaaf8417455ba99
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4df6bc0853fa5211416614130d1c027e6d0da210 20-Mar-2014 Jean Chalard <jchalard@google.com> Merge "[CB10] Add an event for string input"
058a38988b607e1364e6491b97960d2044ad5068 19-Mar-2014 Jean Chalard <jchalard@google.com> [CB10] Add an event for string input

Change-Id: Ie5da6c73d4df4553067c58cd0dce9abb34534250
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
437dbbcfee175c873dcbaa90d49e10e584e3e30a 20-Mar-2014 Jean Chalard <jchalard@google.com> Merge "[IL127] Move the double space countdown to InputLogic"
7ede642df417c0f732573f639970b138f0bee18c 14-Mar-2014 Jean Chalard <jchalard@google.com> [CB08] Create a combiner chain in the word composer.

Bug: 13406701
Change-Id: I3b9f75de9283f76366d1bef7e14a8f22f2186669
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
350d73932de26addef8fc4422b0faf7d8fcff48a 05-Mar-2014 Jean Chalard <jchalard@google.com> [IL127] Move the double space countdown to InputLogic

Bug: 8636060
Change-Id: Ie193b747bd9d0b5ba6a986b9a3c746c2182742ed
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
46e17983c69650415c6469a80c46154cb4299f9d 04-Mar-2014 Jean Chalard <jchalard@google.com> [IL125] Remove arg to onPickSuggestionManually

Bug: 8636060

Change-Id: I55332c22897e97148621cbd367acf5175b5b3d04
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1110adad111547f553bd862f87c9873b5102dd16 14-Mar-2014 Jean Chalard <jchalard@google.com> [CB07] Small refactoring

Bug: 8689779
Change-Id: I2cf10c690c7e4a9c6bf27211d1fccc1f9d4a9249
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
5eac728b4aba43b8f4dabbb0dbc50acdbaaa5f22 14-Mar-2014 Jean Chalard <jchalard@google.com> [CB06] Fix a design error.

The event interpreter should intervene later, after decoding.
Decoding should happen first, and then the Event should
be passed to the InputLogic.

For the time being, we will leave the (unused) EventInterpreter
class and its friends, because we'll use them again later.

Bug: 13406701
Change-Id: I7582d486724311e39e6692e606cca50c78800643
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f8accd8839d291f10b218e64aa6b8eb154c92c4c 13-Mar-2014 Jean Chalard <jchalard@google.com> [CB04] Add an event array to WordComposer.

Bug: 13406701
Change-Id: I9ecd2709c8f1c678a85b0cfaf7c5ed4f78459821
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
750cd48981d78af5babf479e28c33e3666139b67 12-Mar-2014 Jean Chalard <jchalard@google.com> [CB03] Pass whole events to the various input logic handlers.

Bug: 13406701
Change-Id: I0a0e4e0b3357f116e1b915c548dee4575e300c92
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a79a3265db6482a0bcaf0dfa87036a9243af281d 12-Mar-2014 Jean Chalard <jchalard@google.com> [CB02] Pass an Event to onCodeInput.

Bug: 13406701
Change-Id: Id82e9aab6544ca308e6ac6dee2cfa018b9ce2d8f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
3892991b80b1962454789f7233171620f70fb22b 06-Mar-2014 Jean Chalard <jchalard@google.com> Merge "[IL124] Remove the KeyboardSwitcher arg to onCodeInput"
4da06b9a1957dcd9a937cc64ab17c84061b87ea7 06-Mar-2014 Jean Chalard <jchalard@google.com> Merge "Correctly update the suggestion strip on non-resumable word"
a1bf550294dfb5e6e7e5eba78a8db491c5bab2d4 04-Mar-2014 Jean Chalard <jchalard@google.com> [IL124] Remove the KeyboardSwitcher arg to onCodeInput

Bug: 8636060
Change-Id: I29ce4c82ea880a937b1c9e5daf494fcdbbdd1336
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
db38d5cf632e6e20178ca3bc1603eabd71c74d41 04-Mar-2014 Jean Chalard <jchalard@google.com> [IL123] Put the settings values inside the transaction

A transaction should always operate with a consistent set
of settings. It's better to have it reference them than to
always pass them along.

Bug: 8636060
Change-Id: I3c642dfea6be30712fc6cbb279c64f3185895791
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
29881854bc5a625d01bad8c678ac10e6d1877e5f 04-Mar-2014 Jean Chalard <jchalard@google.com> [IL122] Put the code, x and y in the transaction

Bug: 8636060
Change-Id: Icdf87995dedec410b54c306e8d312ba7ec25cea6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c6e200ef3ad84f6cb5de8068d33765d27a66305e 05-Mar-2014 Jean Chalard <jchalard@google.com> Correctly update the suggestion strip on non-resumable word

Bug: 13303965
Change-Id: Iedc5d38f70af76fbebb99e59a0d17c1e226c810d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
7b905c40e98f76d04428542650b1491d0d307590 04-Mar-2014 Jean Chalard <jchalard@google.com> [IL121] Introduce InputTransaction

We probably can't put this off any longer

Bug: 8636060
Change-Id: I1e5d3cf62d719f4d064ced3282bebf2e822f6baa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
151761a2764c09c0e5bc48c68e0c804aeaf22d11 03-Mar-2014 Jean Chalard <jchalard@google.com> [IL120] Cleanup

Remove useless arguments, local vars, make stuff private

Change-Id: I7cc6c19e9c1703304d593e02be31eb9569cc7b4e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
fb28935f824aecaa97bffb284d551eb862b18243 28-Feb-2014 Jean Chalard <jchalard@google.com> [IL119] Make fields private.

Change-Id: Ia84d3e5a102e1056e3d7467be07df89390f17617
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
030da519de96c9103bde923e1495dc158a36a43b 26-Feb-2014 Jean Chalard <jchalard@google.com> [IL115] Cleanup continues

Bug: 8636060
Change-Id: I944b10ec9798eec57d986e1075ba348aa0892cae
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
e110018e2a7cc5809aaadb4c0e9cfef70760543f 26-Feb-2014 Jean Chalard <jchalard@google.com> [IL114] Move a method to InputLogic

Bug: 8636060
Change-Id: I0d8f93985ddc6e93ce9af0d92a8056620351a498
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
32c6d4caea8e1391804f405d78e33e5c0fe89b4b 26-Feb-2014 Jean Chalard <jchalard@google.com> [IL111] Remove a member.

...and improve encapsulation and readability.

Bug: 8636060
Change-Id: I36407630b307df0721ea7fdb7e7a22cdf2b018b3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
57c0c577afbb7b50246107ccac5f2244c0fb3ddc 25-Feb-2014 Jean Chalard <jchalard@google.com> [QRP6] Fix: recorrection top candidate is displayed in bold

Bug: 10385162
Change-Id: Icf9471d474a3a8ed8f38c46c7948c66f9131691e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2a5ec00301435bdb70913bb18a72a022e7b16a92 21-Feb-2014 Jean Chalard <jchalard@google.com> Don't trim newer inputpointers with old data

We already have a mechanism to avoid this crash, but it wasn't
used every time it needed to. It's possible that ending a batch
input and starting a batch input happen while suggestions
are being pulled out, which would result in pointers that have
been reset being passed for trimming.
Just increasing the sequence number should get rid of the
problem.

Bug: 12178124
Change-Id: I36ef3bc8a78679bc09daa39e665f5ce1bab50c2a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1b3a142cace93ab22064ae5cf5f2d2ff7635ae9e 20-Feb-2014 Jean Chalard <jchalard@google.com> Merge "Fix a bug where suggestions would not be updated."
6f50c95887d4f8fbfa1a6d87a7c418f8a5af7eb3 19-Feb-2014 Jean Chalard <jchalard@google.com> Fix a bug where suggestions would not be updated.

Also fix a small cosmetic bug where the suggestion strip
would flash.

Bug: 12951777
Change-Id: I68b7bb9175571de9c718f737eebd9f67ea04a931
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b063377e77ae9421664da1f021d49342d73b882d 20-Feb-2014 Keisuke Kuroyanagi <ksk@google.com> Add final and volatile for members of InputLogic.

Bug: 13107471
Change-Id: I47df79bc6f015c212d1b6d2f63b2efc5da24294e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
63be066544f19928d6a29c58c028cce7c95fa457 18-Feb-2014 Jean Chalard <jchalard@google.com> Cleanup.

Less code, less chance of stuff escaping, and a bit of a clarification.
Yay.

Change-Id: I3193fd8ad7ac28195260cbc231c4e498a63a460c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
7a7aeffcdcf1f25abdc3923e81fa19c2258fa9e9 17-Feb-2014 Jean Chalard <jchalard@google.com> Don't resume suggestion on links.

Bug: 11447084
Change-Id: I5bd558b9dd85d1505aa918f44e8ac3e52ec42d97
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a273319c59ad24070ee5b35d72f044df496faa02 13-Feb-2014 Tadashi G. Takaoka <takaoka@google.com> Add PunctuationSuggestions class

This change must be checked in together with I366c477516.

Bug: 12640318
Change-Id: I8d3864b9d9649c9e3306e82b01a6327b11281b1f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2c48846903c3f706a197c76f9bdcfcc94ff907e8 13-Feb-2014 Jean Chalard <jchalard@google.com> Backward compatibility hack : send delete when empty.

Some apps depend on the keyboard sending something to them
when the text is empty. This is BROKEN. Your app must not lie
to the keyboard about what is before the cursor. If there is something
to delete, you must not pretend there is not and try to catch some
delete event. This will result in a bad user experience. This will not
work with all IMEs. If your app needs this broken behavior, you're
doing it wrong. Seriously guys, we're not in the era of typewriters
any more, there are touch screens, there are gestures, there is
accessibility, there are many innovative IMEs that don't have
keys. Do *NOT* rely on key events.

This change implements an ugly hack so that these broken apps
may continue half-working with LatinIME. We are very unhappy
about this.

Bug: 12998568
Change-Id: Ia62ae2fbee4fee65b463acf3a79aafcfd0defa1d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
cf03ff02b18be101f031eaadc4f7e44e4056be10 12-Feb-2014 Jean Chalard <jchalard@google.com> Fix a test.

This fixes two separate problems:
- The word finds itself with two separate suggestion spans.
This is fine for LatinIME, but it's hard to predict whether it's
fine for other interested parties (other keyboards).
- The test for the blue underline was incorrect.

Change-Id: I3ecc849676851bf25a25238d694adaa956521a26
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
3df8bcb7a999c63c027faf527b5995dd0d8b40b2 10-Feb-2014 Jean Chalard <jchalard@google.com> Revert "Display predictions when the cursor is moved after a word."

This change is lacking some comments and break some unit tests.
It needs more work.

This reverts commit 38d31a5e79c64e706e1698d2d24adb51c4ac53aa.

Change-Id: I675854fd0729f2d01b7751e35c6d0117f4f88993
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
38d31a5e79c64e706e1698d2d24adb51c4ac53aa 10-Feb-2014 Jean Chalard <jchalard@google.com> Display predictions when the cursor is moved after a word.

Bug: 12951777
Change-Id: I744b98df6679edd34ca3c1392e38597325935932
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a49f61f8a73e64cb4db4f7ee5c0fe54fc40b367c 06-Feb-2014 Jean Chalard <jchalard@google.com> Conditionally store the raw suggestions.

Bug: 12913520
Change-Id: Ie15f97d90c142c51089280252b35b5ad1d226e19
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8fb2f6a441ec56b449fc408b4f6da60f904f4cec 05-Feb-2014 Jean Chalard <jchalard@google.com> Merge "Fix a flash in the wrong place"
9e9e948a70760d6283d78b5c91d3c0e50430b6bc 05-Feb-2014 Jean Chalard <jchalard@google.com> Fix a flash in the wrong place

Bug: 7226099
Change-Id: I8f74802b3ae24018fc4176fb2fff2c777ae170b0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2bb1c6add961e09c21af92c631f3922f1ab36a91 29-Jan-2014 Jean Chalard <jchalard@google.com> [IL109] Move more code to InputLogic

Bug: 8636060
Change-Id: Ib12eacc836e8d39c4165c97a2a287f32f6bf5405
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2c01dd00f2b454874cee72ac877c3d3417800830 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL108] Remove some uses of LatinIME in input logic.

Access the suggestion strip through the interface instead.

Bug: 8636060
Change-Id: Ia8bd705c230f943e309d677ef683b1a2cbe68036
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8c5c01e9810eb972a1358a7566c32a239f739084 05-Feb-2014 Keisuke Kuroyanagi <ksk@google.com> Check isEligibleForAutoCommit when batch input is ended.

Bug: 11951198
Change-Id: Ibbe09fa38eaa3ebf8f9b69f744a29db7ac598975
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
9068fd4e77a9f3b24902bb306bc2e5fc65c0aa36 03-Feb-2014 Jean Chalard <jchalard@google.com> Don't resume suggestions if suggestions are not requested.

Bug: 12832614
Change-Id: I6a9b6d128d7e0324ba59a43cf153a3b54e1d35bf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ac84fe642eb4b2b8c0dd6248cb77c7f74251c6fe 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL106] Inline a now useless method.

Bug: 8636060
Change-Id: Ic8e0225206358680aa0de421f17ab443c888036d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
fa7075768da25341bf84e9f87bba09356961e2e8 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL105] Remove more useless arguments

Bug: 8636060
Change-Id: I9e817bb9622c84544a5ca8708e5c1fccad1ed447
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
084c9961f4ede347fbfb719ce1075a10b93867c3 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL104] Remove useless arguments

Bug: 8636060
Change-Id: I97a371fe0c6227eb0f03d3e391a33726e6280322
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1d2e4f9dccfba925dda75a1ded569c3b62f639ed 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL103] Save the typed word separately in SuggestedWords.

This helps managing the cases where the typed word is not
in the suggestions. This happens during recorrection.

Bug: 8636060
Change-Id: I6784feb793cae96272a7f1d123a0e3bbb8f03143
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
be18530acfc3364aa77dda8184318311c4fb60f2 28-Jan-2014 Yohei Yukawa <yukawa@google.com> Merge "Fix inconsistent behavior with the back-to-the-main-keyboard key"
576f8a5b72b550c5d610ccf9014e19db4a9cb8c9 28-Jan-2014 Yohei Yukawa <yukawa@google.com> Fix inconsistent behavior with the back-to-the-main-keyboard key

With this patch, the back-to-the-main-keyboard in the Emoji
palette will be registered as a key-release action instead of
a key-press action, like switch-to-the-emoji-palette in the
main layout. This provides mroe consistent UX when the layout is
switched from the main layout to the Emoji palette then
switched back to the main layout.

BUG: 12464067
Change-Id: Ia0d0185db43234dfcfb7cee2677f3d199fe6ed96
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c9cc1b1de5c44d3d0cc587bd91aaa93985b9b000 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL102] Rename a method

Bug: 8636060
Change-Id: Ia54afdfab9124aa5c35699e357e63eae66a7557f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4500dedfa94a0f0da16e04bc758eef6e02ef72af 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL101] Remove a method

Bug: 8636060
Change-Id: Ic9c12fc6970987b0e1912e8ae85bed55260d66b5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4761d2fb002bddd487a24de5965c09538598813c 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL99] Migrate some code to InputLogic.

Bug: 8636060
Change-Id: Ibf1f9c7bdc3fdd872d6c15447fa555434485cc52
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
521a83a3f122d02d24317540fd7bafb1918acb08 27-Jan-2014 Jean Chalard <jchalard@google.com> Merge "[IL86] Simplification and correctness fix."
264f4e380dd496b156914a47089bd26b9eba1cb6 27-Jan-2014 Jean Chalard <jchalard@google.com> Merge "[IL84] Remove a useless call and rename a method"
75ec579e07ccb598970bc800db2d9f2dac11ec7a 27-Jan-2014 Jean Chalard <jchalard@google.com> Merge "[IL81] Remove a useless test."
6d1c8b2c3f78969866db7f718e7e8d2be240f674 27-Jan-2014 Jean Chalard <jchalard@google.com> Merge "Try to figure out whether d.quotes open or close."
3b939ed77f5de7509776a88059ac688757ee66ea 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL86] Simplification and correctness fix.

This should be what was intended.

Bug: 8636060
Change-Id: I20a1cc4f0b1fb9444fb6f9a20ef727e3d1a3a880
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b2c0388a6961b7df96864ba693a2dd84c1f8a1b0 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL84] Remove a useless call and rename a method

Bug: 8636060
Change-Id: I5cac787953a3c71b6402520c2f5c70619d4a40a8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
abbd755689fae94b0fc2047f0c0bd19417d9f2b4 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL81] Remove a useless test.

It seems the comments were right all along. This seems to really
be useless.

Bug: 8636060
Change-Id: Ie030e9cb73007334380d023abeaa4ce52a863a34
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f1e5b9b4d1844f540fb8d3e31134ea4402a2530f 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL80] Reverse a test for clarity.

Bug: 8636060
Change-Id: I5092942ab4fd6aaf37023083040cadbc18583fd1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f59487379e8d4153fb3a6bcd7e8aaa383454e7f2 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL79] Some refactoring

Bug: 8636060
Change-Id: I931c553f68a1f15d22711a661dbffd4e5d421979
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
10460441db805e78c3384cdba4fe011996221534 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL78] Move most of onUpdateSelection to InputLogic.

Bug: 8636060
Change-Id: I7290250637e37bf6964bab71d2141e19f20a5459
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
48df380f78215f1917c73cbdc9a124d4c9cd29d8 24-Jan-2014 Jean Chalard <jchalard@google.com> [IL77] Remove refs to Settings from InputLogic

Bug: 8636060
Change-Id: I4ce5c9b62181ce8593a453ce222ae7d1fdc08f07
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
969c06072db7f530806a4d0581ce588f01d09dc2 15-Jan-2014 Jean Chalard <jchalard@google.com> [IL75] Move the SubtypeSwitcher out of InputLogic.

Bug: 8636060
Change-Id: I2a5da27e73cf378e55bd80ab2054c1ba8b13f6ec
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c7ef305bbc119b820fd619d3ed205198d4f98c3f 17-Jan-2014 Jean Chalard <jchalard@google.com> Try to figure out whether d.quotes open or close.

Bug: 8911672
Change-Id: I5d5635949530a67f95e5208986907251b7bce903
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
3aa2043a66f7fcb5eaba3adae16abf5aa862d652 23-Jan-2014 Jean Chalard <jchalard@google.com> Merge "[IL76] Remove a SuggestionStripView dependency"
a1ed211c4e80eb81ce399e0eaff88bbdf1e3199f 23-Jan-2014 Jean Chalard <jchalard@google.com> [IL76] Remove a SuggestionStripView dependency

This constant is better located in SuggestedWords.
Or it could be in Constants, that would be fine too.

Bug: 8636060
Change-Id: I3e721bb1e2559f028dce8929eceadfe0478c5924
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4173610bc561db1ef8c630cedc9ec7396227765c 23-Jan-2014 Jean Chalard <jchalard@google.com> [IL66.1] Add a comment

Followup to IL66

Change-Id: I067e72c36f483cc3e3b24736c01843531298b507
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1284e556f4ec998c6f3ea80905d690cbb4c9dc82 27-Dec-2013 Jean Chalard <jchalard@google.com> [IL70] Remove unused arguments

Bug: 8636060
Change-Id: Iec56bce362ebfc52fedab02b127978abb4f3c7f9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
d1f463eacfaac31a999f7eb1ecaa1668ed3038d4 27-Dec-2013 Jean Chalard <jchalard@google.com> [IL69] Oust Keyboard from WordComposer#setComposingWord

Bug: 8636060
Change-Id: I624a45500603dfad355ee3b8b794b2d895219c0b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
eb6d41a525b08c1dc347e604e366021a807a367c 27-Dec-2013 Jean Chalard <jchalard@google.com> [IL67] Externalize a call to the keyboard switcher

Bug: 8636060
Change-Id: Ib13a54854e30afb79217a0a1f2aeca50a95ba155
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ab80b41a0dee298837b1358457768ee5ac0fc79e 27-Dec-2013 Jean Chalard <jchalard@google.com> [IL66] Remove two accesses to KeyboardSwitcher.

Bug: 8636060
Change-Id: I3b144993e2bcd552f9b292b8f057c9db4216125c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
352286a43b0f951a5082ca741c2bd7f501f48c81 27-Dec-2013 Jean Chalard <jchalard@google.com> [IL64] Pull up X,Y processing, step 3

Bug: 8636060
Change-Id: Ic051e5d5514d270101b0571a2d30e2caa8f85bc1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b8216a4e7eff303f8803552d47b1e553a7992f5b 27-Dec-2013 Jean Chalard <jchalard@google.com> [IL63] Pull up X,Y processing, step 2

This also fixes the coordinates passed to logOnDelete and
log onSeparator.

Bug: 8636060
Change-Id: I4703d61ad7de76b501adca18df3a69e06450c9a1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2b38b5e8e60900e45a9d5d591ba6f7f7788e535c 27-Dec-2013 Jean Chalard <jchalard@google.com> [IL62] Pull up X,Y processing, step 1

This is fine because getKey{X,Y} is idempotent for any
non-keyboard coordinate value.

However this makes a net change : the x,y values passed to
LatinImeLoggerUtils.onNonSeparator are now different.
The point is however that they used to be wrong. The logged
values used not to account for the keyboard padding that
is present on tablets, and in the simulating tools we don't
know about that padding so we couldn't use the coordinates.
The catch here is that other calls like LoggerUtils.onSeparator
should follow suit, but this is too big a change to do it at once.
Follow-up changes will fix them too.

Bug: 8636060
Change-Id: If4b3d3cb1ed4b44c35f23e66aba3b5797236bba7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
591580ee8a084d06343b95e409931d05c7269e3c 22-Jan-2014 Jean Chalard <jchalard@google.com> Merge "[IL61] Remove an internal use of key coordinates"
c93cf1c398fbea8bde4b568dae1fbe2f8d9b4180 20-Jan-2014 Tadashi G. Takaoka <takaoka@google.com> Use sorted int[] to represent word separators

Change-Id: I4103541d99fe59bfcf12379a1298a0a690497846
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
3033cc51b82889188fe6ac8ae1e3bec34529e5d0 19-Jan-2014 Tadashi G. Takaoka <takaoka@google.com> Refactor logic to retrieve relevant suggestions a bit

Change-Id: Ic7d2cbb2c1b2deaa4e735484bdc7413c0b3b1939
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6a18af634eda872daad858acbddae2a15452952e 17-Jan-2014 Tadashi G. Takaoka <takaoka@google.com> Refactor RichInputConnection a bit

Change-Id: I866488a47ca04ca587e805663dfd597bb7b1ebce
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ab4543d5938a6f96f6f8027d1f7b85f8d2f465e2 27-Dec-2013 Jean Chalard <jchalard@google.com> [IL61] Remove an internal use of key coordinates

Bug: 8636060
Change-Id: Id87b0ac4a99ec6a26db6e250d6cd22defc02a23d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
17bd129faf23a8fe2e2172d508cd12add524355b 26-Dec-2013 Jean Chalard <jchalard@google.com> [IL59] Rename a method

Um... this is not async ? Remove that from the name

Bug: 8636060
Change-Id: Ida5f9bd6929eae75103eb2e3fb866ed7468af806
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ac6dfaf80bb280cbc9afb2d6e697379b3fd1f373 25-Dec-2013 Jean Chalard <jchalard@google.com> [IL58] Simplification

No need to test multiple times for this. Let's just never do useless
stuff, and only test for that once.

Bug: 8636060
Change-Id: I50a9e4da769fbec44fbb12eedfed03aad924cc2c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4752b68f5a62ede099677bdea0514ba1d5082606 09-Jan-2014 Jean Chalard <jchalard@google.com> [IL56] Don't erase suggestions when reverting a commit.

Bug: 12297051
Change-Id: Iffa1c98b8fe2b816c3ac6bc171037288107f637d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
bf418f7cba9b935785797e4ec34959fe0aef69b3 14-Jan-2014 Tadashi G. Takaoka <takaoka@google.com> Pass time stamp to addToUserHistory method as an argument

Bug: 12179576
Change-Id: I93037ee2aa7c0432400fe2f93fb60d2e60f70f5f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6c24b91601e1f38810782f5f5e927e5d2202fc93 10-Jan-2014 Jean Chalard <jchalard@google.com> [IL55] Remove a useless argument.

Change-Id: I0b3a6cdf49038c32194413c21da824784a53f581
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a224aafea36a80f6727aa7ed93fe87091f01d585 09-Jan-2014 Jean Chalard <jchalard@google.com> [IL54.5] Use the cursor pos estimate, not the last value

For edit tasks, the estimate is actually the right thing to use.
This is really dangerous, but it will get rid of pretty much all
race conditions.

Change-Id: I2d5ca3ce45e32f1bd9c8b778421fd54b9c1f6f63
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
ecf46df22683b997311ba77b34b33dffa8be43c0 09-Jan-2014 Jean Chalard <jchalard@google.com> [IL54] Add a mirror method to fix the cursor pos estimate

This just mirrors what InputLogic#tryFixLyingCursorPosition
is doing. That method will go away in the next change.

Change-Id: Ifa2827dbc1f1d20e2c642d6f2d23514a01ed9203
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
e1de87ae6984140607d2ca05c064cc69f00b95c1 10-Jan-2014 Jean Chalard <jchalard@google.com> Fix an NPE.

Bug: 12397228
Change-Id: I7632931f0685fc8f0558946be66025b2bb2b5a3d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
494e2d6c17cdbf27615a2fbc02b12d2562bf7cd3 09-Jan-2014 Tadashi G. Takaoka <takaoka@google.com> Passing SpacingAndPunctuations to RichInputConnection.getNthPreviousWords

Change-Id: I174c50f509ed6998b755e1a712e7f6c0f82f4425
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
b90fa0fb2ce195cfaec878dea9702261290176c2 08-Jan-2014 Jean Chalard <jchalard@google.com> Revert "Revert "Separate spacing and punctuation related settings values""

This reverts commit 8bc427799a9b7a53103d1edba4a447033fbd8cfa.

Change-Id: I34f509998afdb1a7c120fbfdb9f0a1b188224a4d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
e5cdcaff658f5366621115a728cb683eab5fda0a 08-Jan-2014 Jean Chalard <jchalard@google.com> Fix a race condition, take 2.

Don't use absolute cursor positions when making edits,
this leads to race conditions.
This is a bit ugly and will need to be fixed soon. Plans are
underway to clean this up.

Bug: 12390573
Change-Id: I69c09fc41b979880d0800c55a710e39373287cff
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1e7f2809d2ec544b07956bdbe89c905c981b75fc 08-Jan-2014 Jean Chalard <jchalard@google.com> Merge "Revert "Separate spacing and punctuation related settings values""
8bc427799a9b7a53103d1edba4a447033fbd8cfa 08-Jan-2014 Jean Chalard <jchalard@google.com> Revert "Separate spacing and punctuation related settings values"

This is conflicting with later changes. Temporary revert for cherry-pick.

This reverts commit 0b593ce858d4b406e949f0e809cb77f41da691f9.

Change-Id: Id53eadb023a950cfcca496c0cfbfe583c7ec7b8c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a247264dc6eb8e9715c67ef831ffc21123dcf237 08-Jan-2014 Jean Chalard <jchalard@google.com> Revert "Fix a race condition, take 2."

Conflicts prevent this to be cherry-picked.

This reverts commit dd3d697a6e6713d82020dd63cbf78e4f87664484.

Change-Id: Ib97fae2234633b4bb27d611f48a79060db9ab16f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
dd3d697a6e6713d82020dd63cbf78e4f87664484 08-Jan-2014 Jean Chalard <jchalard@google.com> Fix a race condition, take 2.

Don't use absolute cursor positions when making edits,
this leads to race conditions.
This is a bit ugly and will need to be fixed soon. Plans are
underway to clean this up.

Bug: 12390573
Change-Id: Ib42d4149343c642b1b5c1937b424e8afdbd4cc1f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f628629f69228a4898f60334e89213cd20fdac52 08-Jan-2014 Jean Chalard <jchalard@google.com> Revert "Revert "Fix a race condition.""

This reverts commit 38401272446dbaec785e656b921cfbd31162ba09.

Change-Id: I7f0d975ec9e18d94fe3505250360c2b79ccbe96d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0b593ce858d4b406e949f0e809cb77f41da691f9 07-Jan-2014 Tadashi G. Takaoka <takaoka@google.com> Separate spacing and punctuation related settings values

Bug: 12179576
Change-Id: Ibafd824a0ea2251843b388e95dcbd8f9bca92d5c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1e50c681af56dd77d97a1e6d463f1e3023c1a69b 25-Dec-2013 Jean Chalard <jchalard@google.com> [IL52] Remove a useless method.

This old method doesn't even re-read the old suggestions. It used to
recompute them without the coordinates.
Re-using the recorrection code, which is much more advanced, is
the right thing to do here.

Also, refining the test. It's no use trying to resume suggestion
if we don't have a suggestion strip, since we aren't going to
auto-correct anything anyway.

Not the motivation for this change, but this also fixes
Bug: 11620256
Change-Id: Id49efa32e293c49837c61fdc752c86bbac1d2c88
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8ce921dd6ba5c63a2dc44b7578a3587aa7dc75c7 25-Dec-2013 Jean Chalard <jchalard@google.com> [IL51] Make private what can be made private

Bug: 8636060
Change-Id: Ifa027de465a421b67897d51e9ad47666dda117ad
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
53c320e2757ec37e40dc1dc54a2b04a05a995003 25-Dec-2013 Jean Chalard <jchalard@google.com> [IL50] Move the InputUpdater out of LatinIME.

...at last

Bug: 8636060
Change-Id: If5e27a9d28ff64d318dd76792f55edfc8a78d2d7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
81e0ca5fd395fd67c7b93e7d87e7d90fa136f065 25-Dec-2013 Jean Chalard <jchalard@google.com> [IL49] Move InputLogic-related init code to InputLogic.

Bug: 8636060
Change-Id: Ie5027512f066d9c530a686ac559e4649a39bf439
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c654fe57b1686dde764ea31b0e510885b75b14a1 25-Dec-2013 Jean Chalard <jchalard@google.com> [IL48] Move onEndBatchInputAsyncInternal to InputLogic.

Bug: 8636060
Change-Id: Idfabf7231a80e21786ce1910b5140bb3dddcac7d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
69e7a0d24db3c15d03b65b0dbed3f8495f201d3f 25-Dec-2013 Jean Chalard <jchalard@google.com> [IL44] Some factorization

This sheds some light on what's happening here. Some
comments were at least misleading, maybe indicating something
is not sequenced as intended.

Bug: 8636060
Change-Id: Ia74feb457a39fe4a672c27fe4203264fda940f04
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6bca9ac43d0db9a83b02577783cc609ecf13e3f4 26-Dec-2013 Jean Chalard <jchalard@google.com> Fix a bug where predictions would not pop upon manual pick

Bug: 12295276
Change-Id: Id359c92acde44758b12929e7bac719d5c9c7577b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
33b2aaafc25acbfae1a670435ceb7cd7fe624a1c 26-Dec-2013 Jean Chalard <jchalard@google.com> Merge "Fix a code path that looks ridiculous"
f294ed3308be4cfda89effbd64affb7f9c672545 26-Dec-2013 Jean Chalard <jchalard@google.com> Fix a code path that looks ridiculous

Bug: 12295276
Change-Id: I187016b59213d351c943c6e0b9a2ad3708499646
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
f441047fadd6bc60b05274ca4a7195e4ff4b680d 25-Dec-2013 Jean Chalard <jchalard@google.com> [IL43] Small cleanup

All calls are already passing this

Bug: 8636060
Change-Id: I13accefd7c17039dc5ec12dc9e8133ebc86451ad
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c28f02880c307c1bf7c11a755765ea6354150bd4 24-Dec-2013 Jean Chalard <jchalard@google.com> [IL42] Inline getSuggestedWordsOrOlderSuggestionsAsync

Bug: 8636060
Change-Id: I5c47370a3ea5962caff4d40db2faa62accfc7147
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
a374482719ef9f38395e7e39884433cc72e9cdb7 26-Dec-2013 Keisuke Kuroyanagi <ksk@google.com> Extract dict operations from Suggest to a new class.

Bug: 8187060
Change-Id: I77775aa50763158d99753c2312fa11fe14267aef
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
52a2682b99fc57dea974b21f3d606ed53a802e60 24-Dec-2013 Jean Chalard <jchalard@google.com> [IL35] Preparative cleanup

Bug: 8636060
Change-Id: Id6791085816891c78289b0223bf0807db2da6300
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0154609a2e98e217e49e53253746608767a02241 25-Dec-2013 Jean Chalard <jchalard@google.com> Merge "[IL34] Introduce InputLogicHandler"
eea7122e5b0b0489e4795e3e6cb994784b4ab82b 25-Dec-2013 Keisuke Kuroyanagi <ksk@google.com> Move dict operations to Suggest.

Bug: 8187060

Change-Id: Iabe13abcd43b381360f7080b3f4ee0533f246160
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
621dcbc31c2b9c481f9be462a69d3d37afc5d8ca 24-Dec-2013 Jean Chalard <jchalard@google.com> [IL34] Introduce InputLogicHandler

Bug: 8636060
Change-Id: I5d08ed5d69cdb03bd188e36b7014de03f04fa72f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
8476c2e788182922e6a70ff592d0050d33c2078e 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL33] Opportunistically remove some KeyboardSwitcher

Bug: 8636060
Change-Id: I0480ac03b9902e940f566b5558b8499647983968
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
07f7536b04142c00188bc52e96922904dd07e763 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL32] Remove a useless variable

Change-Id: I8f5d8fd8c1627a568df57255dc3dceda26c4720c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1587be697752b12e18d5cadb90e56883cb93c242 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL31] Move *BatchInput to InputLogic

Bug: 8636060
Change-Id: If0309be038518a71d735108b78ac9efbfe38c82b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0547b3313076ab5f914a3198bad225e3bd3ded8a 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL29] Move retryResetCaches and tryFixLyingCursorPosition

Bug: 8636060
Change-Id: I45b322e4844f023e91b80f9c2e0f7fa0166bcc59
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
221df9e59aade0860624aeeb9b7b25311584c93a 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL26] Move restartSuggestionsOnWordTouchedByCursor

Bug: 8636060
Change-Id: I373874585f4fa663b4207b9a02d751805259eb36
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
aa161eb371d8042ef4c1f9207648b3aeacb65e4e 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL24] Move mDisplayOrientation to SettingsValues.

Bug: 8636060
Change-Id: Id57ced0cca9dc9e5e85c3a53683588feb28c1402
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
6cf843cba6faeef674101a762bfed3ae9dce0a3c 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL23] Resolve a long-standing TODO.

Bug: 8636060
Change-Id: I3a840c30cc4489debf9118beeec448488503bc1c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
11730aa224ac9fb026a393f6883e3f748f37d464 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL22] Move onTextInput to InputLogic.

Also pull the TLD specific processing

Bug: 8636060
Change-Id: I20931ac6fc6c55a05aa8f8b97b0210c07d230ea2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1404c1af850236da4fe4ed3825b70cb228a1da5b 20-Dec-2013 Jean Chalard <jchalard@google.com> [IL21] Move the workaround utils to a better place.

Bug: 8636060
Change-Id: I566f9e109ebcabe3a6a778118434ce79d02d1113
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
4487a30e0dbca2ab18cf075e2b638f8dff6a72ca 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL19] Resolve a TODO.

Bug: 8636060
Change-Id: Iec7c1001c46cf8e9a44422e3f9008e437cc5cab6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
2a6de7903c1aabad9911638f90cfca12ce64c1e1 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL18] Move and rename updateSuggestionStrip

Bug: 8636060
Change-Id: I3d00095cd0e83d1ee3834b37ff188b5aa9806fcb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
1c0374da4927ae51dba56b6773d41c07ea85f3ab 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL17] Move commitChosenWord to InputLogic.

Also not-cache a value whose documentation says not to cache
it. That makes it write only, so remove it.

Bug: 8636060
Change-Id: I39798a039cebf79ad78a41fe457c9d9764a3f275
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
5c9e677c2abc6529c19fcc858ef987756d4341ef 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL15] Some small refactoring

Bug: 8636060
Change-Id: I4bfdf1628c9b55a79bd2d88ee30bf10b08a49232
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
48ba1f25ffb40780fb97093ee9a8ce118a801740 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL14] Move getCurrent*Caps* to InputLogic

Bug: 8636060
Change-Id: I6338dcee0f7a80f2181ba0369f71350cb21d231a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
cdd8a1a69d0fdbf844ab390e22872e2b32f1d664 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL13] Inline restartSuggestionsOnWordBeforeCursor

It's only ever used in one place and makes unhealthy assumptions
about what the caller is doing. It's better inlined.

Bug: 8636060
Change-Id: I265d5d96894e929d09247ee2e3dc2e81efc2a276
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
bbe40835a983e2e627a0e4664cbd4a1654597841 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL12] move restartSuggestions* to InputLogic

Bug: 8636060
Change-Id: I99474248e8fa35eb3053b5520abc8716805fdfb4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
10755af97b7cc8cb2c79871f1d5de9276ffeae79 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL11] Cleanup

Make some methods private and add comments.

Bug: 8636060
Change-Id: I6c7d13dca8a22dd1a6f110e8b18d52864429579f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
060e292628aa8ebbdc9dc951393336f4bb39bc69 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL10] Move revertCommit to InputLogic

Bug: 8636060
Change-Id: Ia5788b365f05ae880bad957cbef00ecc93abb5d1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
69a57bcdcd254b8e2dfbc367ef130114634c51a5 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL9] Move commitCurrentAutoCorrection to InputLogic

Bug: 8636060
Change-Id: I405c4a537858a6d5ab0b29502a2792e8c3b2564e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
035e3885ac5db4944f3b244019ee73208a88fd39 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL8] Move handleNonSeparator to InputLogic

Also move getActualCapsMode and getNthPreviousWordForSuggestion

Bug: 8636060
Change-Id: I1ee9162d0b7a517070c4b7420b084c973f061533
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
d85e49bf8cd9d8b850cb9f1ca0257e826b74642a 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL7] Move performRecapitalization to InputLogic

Bug: 8636060
Change-Id: I5bf2b1fa2f9338fe28151e66eac1ceda6dbd4a7f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
40b42b7d8459d238f035fa7ea3c7be96ff01610f 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL6] Move handleSeparator to InputLogic

Also move swapSwapperAndSpace, maybeDoubleSpacePeriod,
maybeStripSpace, promotePhantomSpace and canBeFollowedByDoubleSpacePeriod

Bug: 8636060
Change-Id: I864053d21c4b3d51ee7a3cd79053ca602337f6f8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
c8dfaab78398dd88a9657d0ae22077db6c4de2b9 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL5] Some renaming

Bug: 8636060
Change-Id: Id76889f8405458bcacb9c7c694cb193b27b842f3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
37d3f1bd02f695b0630bcd3a15ebeef40967e75e 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL4] Move handleNonSpecialCharacter to InputLogic.

Bug: 8636060
Change-Id: I9c6869c85db49d7f87e95a421389eaf47ae3ab2e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
0e82fa273d09f781d88a8d222394c7bcc7827745 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL3] Move handleBackspace to InputLogic.

Also move resetEntireInputState, resetComposingState,
sendDownUpKeyEvent, sendKeyCodePoint and getTextWithUnderline

Bug: 8636060
Change-Id: Ic4c270ac49769ffba41dc3f12d16ac3aa938717f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
cddf4f9d781850fb4ffcfd8dfc434aa44c5d9f88 19-Dec-2013 Jean Chalard <jchalard@google.com> [IL2] Move onCodeInput to InputLogic.

Bug: 8636060
Change-Id: I8c5c028d81183adb0167b2034ee01de8048edafb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
7bd2a75ca180cb5da8ba75500163aa06f332caac 18-Dec-2013 Jean Chalard <jchalard@google.com> Start separating the input logic from LatinIME.

Create an InputEngine class and start moving the relevant
variables to it.

Bug: 8636060
Change-Id: I64adef4ac01e665c19bb7c5b93517a0cbd03d817
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java