aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge "[HW5] Make the word composer package private."Ken Wakasa2014-06-261-10/+1
|\
| * [HW5] Make the word composer package private.Jean Chalard2014-07-011-10/+1
| | | | | | | | Change-Id: I66ed277751272eb3ae2fd5e55e9f3e413970082f
* | Merge "[HW4] Move a reference to WordComposer out of LatinIME"Jean Chalard2014-06-261-11/+0
|\|
| * [HW4] Move a reference to WordComposer out of LatinIMEJean Chalard2014-07-011-11/+0
| | | | | | | | Change-Id: I5436432c0da86ed1e33b3c9d40204f4ea013ff55
* | Merge "Fix a unit test"Jean Chalard2014-06-261-8/+40
|\ \ | |/ |/|
| * Fix a unit testJean Chalard2014-07-011-8/+40
| | | | | | | | | | | | | | When switching languages, we need to wait until the dictionary is loaded to compute suggestions. Change-Id: I7c32a900b297cd6302bfdc020842581315f3007f
* | [HW3] Some refactoringJean Chalard2014-07-011-9/+11
|/ | | | Change-Id: I303ce084a56c6ec709d3eab239a4d9d2274d0dea
* [SD4] Restart suggestions on language changeJean Chalard2014-06-301-19/+19
| | | | | | | | | | | | | | ...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
* [SD3] Forward the script ID to where it will be usedJean Chalard2014-06-271-6/+13
| | | | | Bug: 15840116 Change-Id: If2073e76fed74ae6e1cdd7670013e0e985b0e630
* Don't override application-specified completionsJean Chalard2014-06-271-0/+3
| | | | | | | | | ...for any given input. This is not necessarily the best fix, but it's simple and it works well enough. Bug: 15869703 Change-Id: I54b262be8bdbec37031dea655c60a5573b3d8ec3
* Merge "[CM1] Let predictions be aware of capitalize mode."Jean Chalard2014-06-101-12/+2
|\
| * [CM1] Let predictions be aware of capitalize mode.Jean Chalard2014-06-161-12/+2
| | | | | | | | | | Bug: 15554503 Change-Id: If5e8c0d94ed26d929400ccbb0d45ac23dd98d180
* | Update suggestion strip when the contextual dict is updated.Keisuke Kuroyanagi2014-06-161-1/+7
| | | | | | | | | | Bug: 14161647 Change-Id: Ic7d53464bd051bffc8c7f8d097325321fe0aaee7
* | Contextual dictionary updater.Keisuke Kuroyanagi2014-06-131-1/+8
|/ | | | | Bug: 14161647 Change-Id: I8106419678d5d26a4debec7bbef43af079c1ab18
* Personalization dictionary updater.Keisuke Kuroyanagi2014-06-131-18/+15
| | | | | Bug: 14161647 Change-Id: I7ab3d701525e9a19bc100aa577527e332bb2ad95
* Fix logic to show suggestionsTadashi G. Takaoka2014-06-111-6/+11
| | | | | Bug: 15531465 Change-Id: Ic7fe5743ad3767cdaed699e5e2d1ebcaa75e22c2
* Use RichInputConnection to get the previous word.Jean Chalard2014-06-091-25/+6
| | | | | | | | We don't need the optimization of storing the old words now that the RichInputConnection can supply it without IPC. Bug: 13703802 Change-Id: I37ccb8d5fba879fb04b4f23d33571849736d897c
* Merge "Check isInDictionary() before the distracter test."Keisuke Kuroyanagi2014-06-091-2/+2
|\
| * Check isInDictionary() before the distracter test.Keisuke Kuroyanagi2014-06-091-2/+2
| | | | | | | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I7ce2c09ebbef6ca8c056807c2a35f2f987fd436e
* | Refactor logic to determine showing suggestions strip or notTadashi G. Takaoka2014-06-061-45/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "When starting input, include the literal word in suggestions"Jean Chalard2014-06-061-4/+9
|\ \
| * | When starting input, include the literal word in suggestionsJean Chalard2014-06-061-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-061-2/+3
|\ \ \ | |/ / |/| |
| * | Always update voice key visibilityTadashi G. Takaoka2014-06-061-2/+3
| |/ | | | | | | | | 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-061-1/+2
|/ | | | Change-Id: I51c5247ac925a158facb79057f704b763b903552
* Merge "Fix a bug on rotation with selection."Jean Chalard2014-06-061-5/+1
|\
| * Fix a bug on rotation with selection.Jean Chalard2014-06-061-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+3
|/ | | | Change-Id: I434cf507e68349b9893ac084645986d6b3d7da91
* Remove LatinImeLogger and UsabilityStudyLogUtilsTadashi G. Takaoka2014-05-291-8/+0
| | | | | | | This CL must be checked in together with Ie52007dc5c. Bug: 15318007 Change-Id: Ie665f296e43b5485ae8ba7e949aa262794ee0dcc
* Remove researcher loggerTadashi G. Takaoka2014-05-291-30/+0
| | | | | | | This CL must be checked in together with I5cc76807e3. Bug: 15318007 Change-Id: I61423c3377ddc299fb332e742d6626c2e47145bb
* Keep showing important notice when "show correction suggestions" is offTadashi G. Takaoka2014-05-261-4/+11
| | | | | | | | | | | 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-3/+1
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Make DistracterFilter interface.Keisuke Kuroyanagi2014-05-231-2/+2
| | | | | | Bug: 13142176 Bug: 15094186 Change-Id: If94b0a155b5ea2ff6b839e7da9d12a9cc6553931
* Move distracter filter to dictionary facilitator.Keisuke Kuroyanagi2014-05-231-11/+11
| | | | | | Bug: 13142176 Bug: 15094186 Change-Id: Ib9e42f8e25538009f3ba62cf1e034cae3f6823c7
* Have DictionaryFacilitator in LatinIME.Keisuke Kuroyanagi2014-05-231-30/+21
| | | | | | Bug: 13142176 Bug: 15094186 Change-Id: I9da67352ff2abcd289fa5885389895ced878a413
* Fix NPE happening in unit tests.Keisuke Kuroyanagi2014-05-221-2/+3
| | | | Change-Id: I2fc0dba53e18883755ff77351c152a9d3534c92b
* Merge "Use enabled subtypes for Keyboard in DistracterFilter."Keisuke Kuroyanagi2014-05-221-2/+3
|\
| * Use enabled subtypes for Keyboard in DistracterFilter.Keisuke Kuroyanagi2014-05-211-2/+3
| | | | | | | | | | | | Bug: 13142176 Bug: 15094186 Change-Id: I142eeaa11f838080a4fc5a342155e5d470eab3d4
* | Add beginning of sentence information in PrevWordsInfo.Keisuke Kuroyanagi2014-05-211-5/+6
|/ | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I65320920e840082b0b697bb621676716d0933e0c
* Use PrevWordsInfo instead of String in Java side.Keisuke Kuroyanagi2014-05-191-5/+5
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I3d5da84881a49a04550180dd9aac2c37da2ed762
* Use dedicated DictionaryFacilitator for DistracterFilterKeisuke Kuroyanagi2014-05-171-5/+5
| | | | | Bug: 15002249 Change-Id: Ic77eaa7d627d406daad7dcd15cb4884d9f647312
* Revert "Use dedicated DictionaryFacilitator for DistracterFilter"Keisuke Kuroyanagi2014-05-161-5/+5
| | | | | | This reverts commit 7122fe76e3ca48a12f1e069ee0c742788c1884b6. Change-Id: I341089864a2b58de6e0f35844a12fb632bd1eabb
* Use dedicated DictionaryFacilitator for DistracterFilterKeisuke Kuroyanagi2014-05-161-5/+5
| | | | | Bug: 15002249 Change-Id: I2ebf1941fb0453ea4b97c0e539f8b36e5e0262c1
* Remove unused auto correction led for spacebar featureTadashi G. Takaoka2014-05-151-2/+0
| | | | Change-Id: Ie1544bd0d28684d9b7887fddff37b224ed4f8201
* Merge "Simplify StatsUtils"Yohei Yukawa2014-05-151-1/+3
|\
| * Simplify StatsUtilsYohei Yukawa2014-05-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | With this CL, the implementation of StatsUtils no longer needs to know how to read settings from the system. Insted, the LatinIME class is now responsible for notifying StatsUtils whenever the settings is changed. BUG: 14324207 Change-Id: Ic3d26ec31c8d2c082d3e7487b578b323aad2f960
* | Fix off-device buildXiaojun Bi2014-05-141-1/+3
|/ | | | | | | | | This CL fixed the breakage caused by DistracterFilter. It should be checked in together with I8f53e9481c0f Bug: 14911612 Bug: 13142176 Change-Id: I33c3526165cea58926d10404552f1fadc385c2e5
* Merge "Implement the distracter filter"Xiaojun Bi2014-05-131-12/+5
|\