aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/inputlogic (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge "[HW1] Fix some bugs with event handling"Jean Chalard2014-06-241-1/+1
|\
| * [HW1] Fix some bugs with event handlingJean Chalard2014-06-261-1/+1
| | | | | | | | | | | | | | | | | | 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
* | Merge "Make PrevWordsInfo have multiple words' information."Keisuke Kuroyanagi2014-06-241-1/+2
|\ \ | |/ |/|
| * Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-251-1/+2
| | | | | | | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* | Don't commit a space before it's actually neededJean Chalard2014-06-251-54/+57
| | | | | | | | | | Bug: 15740318 Change-Id: Idad06cb2c18335a981d5e9dea7eccf5e7ea8f701
* | Some cleanup to accommodate a fixJean Chalard2014-06-231-7/+12
|/ | | | | | | | Also, this double tests for CODE_SPACE in the path going through maybeDoubleSpacePeriod, but that's temporary. Bug: 15740318 Change-Id: I0a6ace09cc791f0009157d3017675b9b3eb92145
* Merge "Remove word from personalized dicts when it's canceled."Keisuke Kuroyanagi2014-06-191-3/+5
|\
| * Remove word from personalized dicts when it's canceled.Keisuke Kuroyanagi2014-06-201-3/+5
| | | | | | | | | | | | Bug: 15555552 Bug: 15552347 Change-Id: Ia4d8c79d079e3ce233d46d4bbad4fff1be5c5c39
* | Clear suggestions strip if a suggestion engine isn't attachedTadashi G. Takaoka2014-06-181-0/+2
|/ | | | | Bug: 15709298 Change-Id: I1b3fff3152960d85060149727d7a3422fea8a0bd
* [CM2] Update beginning-of-sentence suggestionsJean Chalard2014-06-161-1/+4
| | | | | | | | We need to update them after separator-space, and also when the user presses shift and they are displayed. Bug: 15554503 Change-Id: I5596163d5cd94d3cc5f6af10a1ab2cc74b6d4279
* [CM1] Let predictions be aware of capitalize mode.Jean Chalard2014-06-161-0/+19
| | | | | Bug: 15554503 Change-Id: If5e8c0d94ed26d929400ccbb0d45ac23dd98d180
* Remove mPrevWordsInfoJean Chalard2014-06-101-44/+10
| | | | | | | | 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
* When starting input, include the literal word in suggestionsJean Chalard2014-06-061-10/+13
| | | | | | | | | 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 "Fix a bug on rotation with selection."Jean Chalard2014-06-061-3/+13
|\
| * Fix a bug on rotation with selection.Jean Chalard2014-06-061-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Rename some boolean variables for readabilityTadashi G. Takaoka2014-06-051-2/+2
|/ | | | Change-Id: I434cf507e68349b9893ac084645986d6b3d7da91
* Don't recapitalize just at the start of inputJean Chalard2014-06-041-7/+5
| | | | | Bug: 13283555 Change-Id: Iab0466425dc44779d110f2cd29d725d22eb04827
* RefactoringJean Chalard2014-06-041-7/+7
| | | | | | | | | 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
* Make prevWord = null if the next word starts from a connector.Keisuke Kuroyanagi2014-05-301-8/+10
| | | | | | | | | | This fixes PunctuationTests# testAutoCorrectionWithSingleQuotesAround. Bug: 14119293 Bug: 15334309 Change-Id: I604c21a21e89a5fc431fd56ab7b6ad03f4736b01
* Limit recapitalization for reasonable performance.Jean Chalard2014-05-301-9/+12
| | | | | | | 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-291-40/+0
|\
| * Remove LatinImeLogger and UsabilityStudyLogUtilsTadashi G. Takaoka2014-05-291-40/+0
| | | | | | | | | | | | | | This CL must be checked in together with Ie52007dc5c. Bug: 15318007 Change-Id: Ie665f296e43b5485ae8ba7e949aa262794ee0dcc
* | Fix: too many calls to getSuggestedWordsForTypingInputJean Chalard2014-05-291-2/+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
* Remove researcher loggerTadashi G. Takaoka2014-05-291-75/+1
| | | | | | | This CL must be checked in together with I5cc76807e3. Bug: 15318007 Change-Id: I61423c3377ddc299fb332e742d6626c2e47145bb
* Stop directly checking SuggestedWordInfo.mKindKeisuke Kuroyanagi2014-05-281-3/+3
| | | | | | Bug: 15298959 Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
* Merge "Use whether it's exact match to detect distracters."Keisuke Kuroyanagi2014-05-261-1/+1
|\
| * Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-261-1/+1
| | | | | | | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* | Keep showing important notice when "show correction suggestions" is offTadashi G. Takaoka2014-05-261-1/+2
|/ | | | | | | | | | | 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 Java 7 diamond operatorTadashi G. Takaoka2014-05-241-5/+4
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Merge "Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE."Keisuke Kuroyanagi2014-05-231-2/+3
|\
| * Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE.Keisuke Kuroyanagi2014-05-231-2/+3
| | | | | | | | | | Bug: 14119293 Change-Id: I5020e5f0aa64bc3e97b3a3c2c07a60c8b765ed64
* | Merge "Revert "Fix: too many calls to getSuggestedWordsForTypingInput""Ken Wakasa2014-05-231-6/+3
|\ \ | |/ |/|
| * Revert "Fix: too many calls to getSuggestedWordsForTypingInput"Ken Wakasa2014-05-231-6/+3
| | | | | | | | | | | | | | This reverts commit 7aa895e2e3edb59620c28354c7d7746b93964b10. Bug: 15148015 Change-Id: If39c4f8b897f247d4eb935923d55d81def4c8fb4
* | Have DictionaryFacilitator in LatinIME.Keisuke Kuroyanagi2014-05-231-11/+14
| | | | | | | | | | | | Bug: 13142176 Bug: 15094186 Change-Id: I9da67352ff2abcd289fa5885389895ced878a413
* | Merge "Fix: too many calls to getSuggestedWordsForTypingInput"Jean Chalard2014-05-221-3/+6
|\|
| * Fix: too many calls to getSuggestedWordsForTypingInputJean Chalard2014-05-221-3/+6
| | | | | | | | | | Bug: 15148015 Change-Id: Idcb729734bd62b537fb81acf8bdb5cae4470404c
* | Add beginning of sentence information in PrevWordsInfo.Keisuke Kuroyanagi2014-05-211-16/+19
| | | | | | | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I65320920e840082b0b697bb621676716d0933e0c
* | Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-17/+21
|/ | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-19/+16
| | | | | | | | | | This reverts commit ff50b39176370ab80a33bfdcf9979603c08a88b3. Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: If278b4ab236e38d20d8cdc0761b0438911bd4ff9
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-201-16/+19
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Fix a bug where changing languages kills the composition.Jean Chalard2014-05-141-2/+2
| | | | | Bug: 14926896 Change-Id: Id2a06c68a51f833db4d8bbc858a232c2696afb6e
* Don't send empty composing texts.Jean Chalard2014-05-141-1/+5
| | | | | Bug: 13160467 Change-Id: I5e3204ac8aaa18fe9219cc6b564b832ab6cf94fc
* Merge "Add freq=0 words to user history depending on the option."Keisuke Kuroyanagi2014-05-121-1/+1
|\
| * Add freq=0 words to user history depending on the option.Keisuke Kuroyanagi2014-05-121-1/+1
| | | | | | | | | | Bug: 14686585 Change-Id: Ia1c3adb1bcc625788016e378e1ac7b0792ea9f4e
* | Merge "Improve multi-word suggestion handling for user history."Keisuke Kuroyanagi2014-05-121-3/+4
|\|
| * Improve multi-word suggestion handling for user history.Keisuke Kuroyanagi2014-05-121-3/+4
| | | | | | | | | | Bug: 12902664 Change-Id: I03deed16047f0beaba8932d87c6129ec8061ba9c
* | Create the path for specifying combining rules in the subtypeJean Chalard2014-05-121-1/+17
|/ | | | | | | | Also add the skeleton of the combining rules for Myanmar reordering as a pilot. Bug: 13945569 Change-Id: Iabeb6838f45f1efff482143595ce5b48543e0c43
* Introduce clustering punctuationJean Chalard2014-05-011-10/+13
| | | | | Bug: 10081730 Change-Id: If198fa3df68ecb267da0a278da41fd509d6165f1
* Fix handling shift + enterTadashi G. Takaoka2014-04-231-1/+3
| | | | | Bug: 14278758 Change-Id: Id77c99b83cc69855972b27c9cebd482c8cbd3539
* Restart suggestions when restarting inputJean Chalard2014-04-162-0/+8
| | | | | Bug: 6851364 Change-Id: I3052924053f37f56c9c3953051aa1b22224a2b2e