aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix overwriting accessibility delegate in setKeyboardTadashi G. Takaoka2014-06-081-3/+11
| | | | | | | | | A keyboard accessibility delegate object should be a singleton for each keyboard view. Bug: 15437933 Bug: 15419386 Change-Id: Ia70853c644d950ea6130c1f209b89929b1cb1ee5
* Merge "Refactor logic to determine showing suggestions strip or not"Tadashi G. Takaoka2014-06-063-61/+34
|\
| * Refactor logic to determine showing suggestions strip or notTadashi G. Takaoka2014-06-063-61/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic to determine when the suggestions strip (a.k.a. the contextual strip) should be shown is already complex. In addition to that the voice input key get shown on the strip as well. There are a several factors to be considered and a few things to control. - The password input field shouldn't have the strip. - Show voice input key on the strip or not. - User preference settings "Show Voice Input Key". - A voice IME exists and is enabled. - The input field may have a private IME option to prevent the voice input key from being displayed. - Application can specify auto completions. - Full screen mode or not. - User preference settings "Show correction suggestions". - Always show, Show in portrait mode, Always hide. - The input field may have flags to prevent showing suggestions or auto corrections. - Suggestions is empty or not. - An important notice may be shown. Bug: 14981852 Bug: 15436479 Change-Id: I3050fd53ee6271fc64a8f17b6b12d9581d37b750
* | Merge "Make Distracter filter use getMaxFrequencyOfExactMatches()."Keisuke Kuroyanagi2014-06-062-146/+23
|\ \ | |/ |/|
| * Make Distracter filter use getMaxFrequencyOfExactMatches().Keisuke Kuroyanagi2014-06-062-146/+23
| | | | | | | | | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5c23fbea2851f891f76f19d9da2cb70ae964569b
* | Merge "Implement getMaxProbabilityOfExactMatches()."Keisuke Kuroyanagi2014-06-061-0/+1
|\|
| * Implement getMaxProbabilityOfExactMatches().Keisuke Kuroyanagi2014-06-061-0/+1
| | | | | | | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
* | Merge "When starting input, include the literal word in suggestions"Jean Chalard2014-06-062-14/+22
|\ \
| * | When starting input, include the literal word in suggestionsJean Chalard2014-06-062-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Always update voice key visibility"Tadashi G. Takaoka2014-06-063-26/+25
|\ \ \ | |/ / |/| |
| * | Always update voice key visibilityTadashi G. Takaoka2014-06-063-26/+25
| |/ | | | | | | | | Bug: 15128166 Change-Id: Ie15724c323efa3b102f6aebddc3bda210aad1727
* | Merge "Fix a small bug with rotation."Jean Chalard2014-06-061-1/+10
|\ \ | |/ |/|
| * Fix a small bug with rotation.Jean Chalard2014-06-061-1/+10
| | | | | | | | | | Bug: 2349475 Change-Id: Id4aa5ce56b1a545e4cb88ca1b01cf24642deade2
* | 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
|\