aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused supportsSwitchingToShortcutIme attributeTadashi G. Takaoka2014-06-063-3/+22
| | | | Change-Id: I51c5247ac925a158facb79057f704b763b903552
* Merge "Fix a bug on rotation with selection."Jean Chalard2014-06-063-8/+18
|\
| * Fix a bug on rotation with selection.Jean Chalard2014-06-063-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add getMaxFrequencyOfExactMatches() to Dictionary."Keisuke Kuroyanagi2014-06-054-10/+64
|\ \
| * | Add getMaxFrequencyOfExactMatches() to Dictionary.Keisuke Kuroyanagi2014-06-054-10/+64
| |/ | | | | | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I93b44ef40cafb6b811c68fa79f3a4971fc3916a5
* | Merge "Rename some boolean variables for readability"Tadashi G. Takaoka2014-06-054-16/+16
|\ \
| * | Rename some boolean variables for readabilityTadashi G. Takaoka2014-06-054-16/+16
| |/ | | | | | | Change-Id: I434cf507e68349b9893ac084645986d6b3d7da91
* | Merge "Refactor show voice key preferece migration code"Tadashi G. Takaoka2014-06-051-8/+8
|\ \
| * | Refactor show voice key preferece migration codeTadashi G. Takaoka2014-06-051-8/+8
| |/ | | | | | | Change-Id: I4f13e85a3db1ba4adf36c596cb23827bdcf93ae7
* / Add jni method for getMaxFrequencyOfExactMatches().Keisuke Kuroyanagi2014-06-051-1/+8
|/ | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I2ae25090b67ad0c6df97dec7712e2f7e0bb08c40
* Merge "Allow multiple shortcuts for a personal dictionary word"Jean Chalard2014-06-041-1/+3
|\
| * Allow multiple shortcuts for a personal dictionary wordJean Chalard2014-06-041-1/+3
| | | | | | | | | | Bug: 13869301 Change-Id: Icd77a308f85cc16dccffe65a532471c738d6fbc5
* | Support more suggestions accessibility modeTadashi G. Takaoka2014-06-041-0/+14
| | | | | | | | | | Bug: 12491371 Change-Id: Ib01452b6a2a53faa591b05e62014f356e0511308
* | Merge "Support more keys accessibility mode"Tadashi G. Takaoka2014-06-041-4/+16
|\ \
| * | Support more keys accessibility modeTadashi G. Takaoka2014-06-041-4/+16
| | | | | | | | | | | | | | | Bug: 12491371 Change-Id: Ib1fc8affbccfbaca3424ecdc2812f47047106aa2
* | | Merge "Don't recapitalize just at the start of input"Jean Chalard2014-06-042-7/+21
|\ \ \
| * | | Don't recapitalize just at the start of inputJean Chalard2014-06-042-7/+21
| | | | | | | | | | | | | | | | | | | | Bug: 13283555 Change-Id: Iab0466425dc44779d110f2cd29d725d22eb04827
* | | | Merge "Refactoring"Jean Chalard2014-06-042-16/+16
|\| | | | |/ / |/| |
| * | RefactoringJean Chalard2014-06-042-16/+16
| |/ | | | | | | | | | | | | | | | | 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
* | Merge "Add a preference item for metrics logging"Yohei Yukawa2014-06-041-0/+15
|\ \ | |/ |/|
| * Add a preference item for metrics loggingYohei Yukawa2014-06-041-0/+15
| | | | | | | | | | BUG: 14324207 Change-Id: Idc8582655bc73cb24e416e8ba78470209b2ff702
* | More concise Key.toString()Tadashi G. Takaoka2014-06-031-4/+6
|/ | | | Change-Id: I0ef983f54e828193e9c7e4a10c888f72702d499c
* Fix an IOOB exceptionJean Chalard2014-06-021-4/+7
| | | | | Bug: 14602663 Change-Id: Ie2060931df911b44230d5a5ba268f687cbdd0dc8
* Make prevWord = null if the next word starts from a connector.Keisuke Kuroyanagi2014-05-302-9/+27
| | | | | | | | | | This fixes PunctuationTests# testAutoCorrectionWithSingleQuotesAround. Bug: 14119293 Bug: 15334309 Change-Id: I604c21a21e89a5fc431fd56ab7b6ad03f4736b01
* Limit recapitalization for reasonable performance.Jean Chalard2014-05-302-9/+16
| | | | | | | At 100k text, it's reasonably fast (less than 1s on latest hardware). Bug: 12913404 Change-Id: I426b918b2610af24364934a1c37a7314f1142ad0
* Merge "Remove LatinImeLogger and UsabilityStudyLogUtils"Tadashi G. Takaoka2014-05-299-675/+16
|\
| * Remove LatinImeLogger and UsabilityStudyLogUtilsTadashi G. Takaoka2014-05-299-676/+16
| | | | | | | | | | | | | | This CL must be checked in together with Ie52007dc5c. Bug: 15318007 Change-Id: Ie665f296e43b5485ae8ba7e949aa262794ee0dcc
* | Merge "Remove PrioritizedSerialExecutor."Keisuke Kuroyanagi2014-05-292-143/+25
|\ \
| * | Remove PrioritizedSerialExecutor.Keisuke Kuroyanagi2014-05-292-143/+25
| |/ | | | | | | | | Bug: 15320560 Change-Id: Icb88a96ebd685da1d2cba7b07889a2751c603a2e
* / Fix: too many calls to getSuggestedWordsForTypingInputJean Chalard2014-05-292-3/+11
|/ | | | | | | | | | | 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
* Merge "Remove researcher logger"Tadashi G. Takaoka2014-05-299-161/+4
|\
| * Remove researcher loggerTadashi G. Takaoka2014-05-299-161/+4
| | | | | | | | | | | | | | This CL must be checked in together with I5cc76807e3. Bug: 15318007 Change-Id: I61423c3377ddc299fb332e742d6626c2e47145bb
* | Clean up for Iba6eeb7981634e7ddb.Keisuke Kuroyanagi2014-05-292-12/+11
|/ | | | | Bug: 15298959 Change-Id: I6921db77b7d231ad3aad99d4c380ae2ed6bbf540
* Stop directly checking SuggestedWordInfo.mKindKeisuke Kuroyanagi2014-05-286-26/+39
| | | | | | Bug: 15298959 Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
* Add TODO comment about SuggestedWordInfo's kind and flagsTadashi G. Takaoka2014-05-281-0/+6
| | | | | | This CL must be checked in together with I6fd87e1eec. Change-Id: I4b24157f3e3ce6327579d37122a34d7a30069885
* Return whether the dynamic dict operation was success.Keisuke Kuroyanagi2014-05-273-30/+57
| | | | | Bug: 12184250 Change-Id: Iee7e00c1e84c95551a077f4dd023c0a9b9ac9466
* Merge "Add thread name for PrioritizedSerialExecutor."Keisuke Kuroyanagi2014-05-272-7/+22
|\
| * Add thread name for PrioritizedSerialExecutor.Keisuke Kuroyanagi2014-05-272-7/+22
| | | | | | | | | | Bug: 15270123 Change-Id: I655ba97f0543476980d0e8461bc1c8a56c9f954b
* | Merge "Stop filtering out when perfect freq > top non-perfect freq."Keisuke Kuroyanagi2014-05-272-3/+17
|\ \ | |/ |/|
| * Stop filtering out when perfect freq > top non-perfect freq.Keisuke Kuroyanagi2014-05-272-3/+17
| | | | | | | | | | Bug: 13142176 Change-Id: I0290df918a5bd5018bf55231dc462d5e797155c6
* | Move MoreSuggestionsListener to MoreSuggestionsViewTadashi G. Takaoka2014-05-273-8/+7
| | | | | | | | Change-Id: I3b5bc630bf73a357ed0beeec0b555149ef248313
* | Merge "Apply distracter filter for UserHistoryDictionary."Keisuke Kuroyanagi2014-05-265-18/+40
|\|
| * Apply distracter filter for UserHistoryDictionary.Keisuke Kuroyanagi2014-05-275-18/+40
| | | | | | | | | | Bug: 13142176 Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978
* | Merge "Apply distracter filter for in-vocabulary words."Keisuke Kuroyanagi2014-05-261-16/+13
|\|
| * Apply distracter filter for in-vocabulary words.Keisuke Kuroyanagi2014-05-261-16/+13
| | | | | | | | | | Bug: 13142176 Change-Id: I4db763783a2f8b9a0df0df951db3223f70748870
* | Merge "Use whether it's exact match to detect distracters."Keisuke Kuroyanagi2014-05-265-56/+47
|\|
| * Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-265-56/+47
| | | | | | | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* | Keep showing important notice when "show correction suggestions" is offTadashi G. Takaoka2014-05-263-7/+16
|/ | | | | | | | | | | 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
* Use ViewCompat support library and delete ViewCompatUtilsTadashi G. Takaoka2014-05-243-14/+17
| | | | Change-Id: I57d60cacd86e83894294c3f64402aba8c1829872
* Revert "Use ViewCompat support library and delete ViewCompatUtils"Tadashi G. Takaoka2014-05-234-10/+10
| | | | | | | This reverts commit db21267b788592ce99b9fb052801c6ec90bfe7b6. The reverting change breaks build in unbundled jb-ub-latinimegoole branch. Change-Id: Ia61424f5321eb97f981d22c4b08e9ea8d348f6c1