aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug with no suggestions flagJean Chalard2014-10-151-1/+2
| | | | | | | | 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
* Merge "(DO NOT MERGE) Fix showing important notice even at beginning of ↵Tadashi G. Takaoka2014-09-181-5/+9
|\ | | | | | | sentence" into lmp-dev
| * (DO NOT MERGE) Fix showing important notice even at beginning of sentenceTadashi G. Takaoka2014-09-181-5/+9
| | | | | | | | Bug: 17536096 Change-Id: Ic72d6fecc3241c1a9aba87b82a46750cbd69e001
* | Use Add-To-Dictionary indicator onlyYohei Yukawa2014-09-181-26/+1
|/ | | | | | | | | | 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
* Fix not always showing input view with physical keyboard connectedTadashi G. Takaoka2014-09-121-17/+19
| | | | | Bug: 17163374 Change-Id: I57f7eeac0c9ac0a15d3d55927e18a2d97849c508
* Support CursorAnchorInfo in the full-screen modeYohei Yukawa2014-09-111-2/+50
| | | | | | | | | | | | This CL allows to emulate the behavior of CursorAnchorInfo in the full-screen mode to work around the limitation of the framework. Basically this CL copies relevant code from the framework to LatinIME. This is actually a code duplicate which isn't great, but probably the only way that is available right now. Change-Id: I30bc8c3387c91c8e47252ba699cbd967d8927dad
* Don't resume suggestions with H/W keyboardJean Chalard2014-09-081-41/+72
| | | | | | | ...unless we do support a hardware keyboard, which we still do not at the moment. Change-Id: Iec24b1ae8ba5e23e0bbb7e5a468b7404296d4b18
* Resolve an old TODO.Jean Chalard2014-09-051-3/+6
| | | | | | | This is cleaner. Bug: 17347779 Change-Id: I5b612783b1ec98a1a11401f00d68db49654f3023
* Simplify onComputeInsets of LatinIMETadashi G. Takaoka2014-08-271-65/+36
| | | | | | | | | | | This CL expands SoftInputWindow to the entire screen. Thus a key review backing view is eliminated and onComputeInsets() gets simplified too. Bug: 17212702 Bug: 10841052 Bug: 10541453 Change-Id: I2d859f4e4698c64cabe399000821f13bab729996
* Set the text bgcolor only when CursorAnchorInfo is availableYohei Yukawa2014-08-271-11/+4
| | | | | | | | | | | | | 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
* Introduce commit/add-to-dictionary indicatorsYohei Yukawa2014-08-261-11/+38
| | | | | | | | | | 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
* Fix a bug where the top prediction would disappear.Jean Chalard2014-08-261-1/+1
| | | | | | | | | | 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
* Merge "Use more descriptive names for some internal fields" into lmp-devYohei Yukawa2014-08-251-11/+12
|\
| * Use more descriptive names for some internal fieldsYohei Yukawa2014-08-251-11/+12
| | | | | | | | | | | | | | This CL clarifies that delay parameters are specified with milliseconds. Change-Id: I401a60b8c09c2a04201af5b74babcdb091c07f4a
* | Show view even when IME is explicitly shown with physical keyboardTadashi G. Takaoka2014-08-251-0/+12
|/ | | | | | Bug: 17242477 Bug: 13988700 Change-Id: I519c0481760a9aa93a5d9bee68e0f6a3a8fc4d9d
* follow-up to API change in I4a577bfd02b37bYohei Yukawa2014-08-211-13/+1
| | | | | | BUG: 17182367 BUG: 17185263 Change-Id: Id54ca29c191b9752fa82ffe5a960113b2e97e5c1
* Use #onStartInputInternal to initialize cursor rect retrievalYohei Yukawa2014-08-211-12/+12
| | | | | | | This CL simply moves the method calls of #requestCursorAnchorInfo into #onStartInputInternal just to consolidate the logic. Change-Id: Ia205738b9614e9ae375c1dab767a91d2e1f6d0d3
* Let the backing view cover the entire content areaYohei Yukawa2014-08-161-1/+4
| | | | | | | | With this CL, the backing view starts covering the content area entirely. This allows the IME to render its UI elements at an arbitrary position on the screen. Change-Id: I8b4173410931b776964dddf66de2fe247e51d9de
* Add the input style to SuggestedWords.Jean Chalard2014-08-141-8/+19
| | | | Change-Id: I81f37d08659d449822b027d3d5912e11eec8b8ff
* Enable CursorAnchorInfo callback when necessaryYohei Yukawa2014-08-131-3/+6
| | | | Change-Id: If3dda7442418053600ac935da50baaddb0e31d37
* Add stub implementation of #onUpdateCursorAnchorInfoYohei Yukawa2014-08-131-0/+12
| | | | | | | | This CL never changes existing behavior because ProductionFlags.ENABLE_CURSOR_ANCHOR_INFO_CALLBACK is not yet turned on. Change-Id: I4bcbd2aebd05977b07231e8aa14acdcf6d8e1fa0
* (DO NOT MERGE) Add debug setting to force hardware special keyTadashi G. Takaoka2014-08-131-1/+2
| | | | | | Bug: 13988700 Change-Id: If23f8a14097431e76a303a6d6c24e8d9835fb655 (cherry picked from commit 3659c70fc3174b00ac24e105677d7e480596bf56)
* (DO NOT MERGE) Add SpecialkeyDetectorTadashi G. Takaoka2014-08-121-3/+9
| | | | | | Bug: 13988700 Change-Id: I215e879ad33b149370c1d0a5fdcf2203c0fc8b4a (cherry picked from commit 34541bfeb68e63bad71b83f1b7eba7922cca1723)
* (DO NOT MERGE) Show InputView even when hardware keyboard is connectedTadashi G. Takaoka2014-08-121-0/+21
| | | | | | Bug: 13988700 Change-Id: I4aeb01bf3571afc97959c213474a6424d7896120 (cherry picked from commit 06514f00f43f15e702ad3d8287e0d90bff555b7f)
* Rename distracter filter class.Keisuke Kuroyanagi2014-08-081-2/+3
| | | | | | Bug: 13142176 Bug: 15531638 Change-Id: I89cef5264073eed25ffb5be10fdff731df0a3138
* Merge "Revert "Introduce onEvent() to improve testability"" into lmp-devKen Wakasa2014-08-051-26/+17
|\
| * Revert "Introduce onEvent() to improve testability"Ken Wakasa2014-08-061-26/+17
| | | | | | | | | | | | | | | | This reverts commit ef74e737f580f7ac0b3bd70d6255dde3c87d9078. Apparently, this CL broke several unit tests. Change-Id: I86cf5f1ffb0214707afe99ee97f92ba8c5157f3f
* | Revert "[HS1] Save some data in startInputView"Jean Chalard2014-08-061-29/+7
| | | | | | | | | | | | | | This reverts commit f1accd4f04b13f764e1ffa7c7964e4b7c41ddf4b. Bug: 16830599 Change-Id: I4c9367f742b8ee8463920e91263b05c2195f8480
* | Revert "[HS2] Move more stuff to onStartInput"Jean Chalard2014-08-061-57/+50
|/ | | | | | | This reverts commit 93b00a314e307cb257abf1cab88cb24d57ff3885. Bug: 16830599 Change-Id: I955e7da77978c3a495660aa29247e010d489c36b
* Introduce onEvent() to improve testabilityJean Chalard2014-08-061-17/+26
| | | | | | ...and prepare for the future Change-Id: Ieed96ab552993fd148e80b9c3355f1b569bd716f
* Fix an NPE when running with Keep.Jean Chalard2014-08-061-4/+4
| | | | Change-Id: Ie703e14bff42d34608f11d0c2d7758950b84c88c
* [HS2] Move more stuff to onStartInputJean Chalard2014-08-061-50/+61
| | | | | Bug: 8152758 Change-Id: Ida05df7d151ceb582886e2ad06c5bdf0b59978ee
* Merge "[HW14] Cleanup" into lmp-devJean Chalard2014-08-041-1/+1
|\
| * [HW14] CleanupJean Chalard2014-08-051-1/+1
| | | | | | | | | | | | | | Do away with the didAutoCorrect local variables which are unnatural to return out of all these functions. Change-Id: I22024004d2c489de018beff812c2c589bfd8ca32
* | [HS1] Save some data in startInputViewJean Chalard2014-08-041-7/+25
|/ | | | | Bug: 8152758 Change-Id: Ic57d3918b08e775769d4ba5d73ba5c31231e0d6a
* Show "navigate up" icon on settings activityTadashi G. Takaoka2014-07-291-10/+8
| | | | | Bug: 15813742 Change-Id: I8b1feb5c35377e62199e5a909640d9c50f970654
* Merge "Wait for an event before actually realizing it" into lmp-devJean Chalard2014-07-251-1/+1
|\
| * Wait for an event before actually realizing itJean Chalard2014-07-281-1/+1
| | | | | | | | | | | | | | This would wrongly emit a 'timeout' log entry when switching between two instances of the same language. Change-Id: I56e5de121b87f3e762b58f0b2a77e9abc784036e
* | Make "Show correction suggestions" as a binary optionTadashi G. Takaoka2014-07-271-7/+7
|/ | | | | | | | | | | | 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
* Enable InputMethodService#onUpdateCursor behind the flagYohei Yukawa2014-07-201-5/+9
| | | | | | | | | | With this CL, InputMethodService#onUpdateCursor and InputMethodService#onUpdateCursorAnchorInfo can be enabled on L when ENABLE_CURSOR_ANCHOR_INFO_CALLBACK and ENABLE_CURSOR_RECT_CALLBACK are specified, respectively. BUG: 16382260 Change-Id: I29924128f6bd2f08cbd91cc4e82c9c4a6ecce3ff
* Rename ProductionFlag to ProductionFlagsTadashi G. Takaoka2014-07-161-3/+3
| | | | Change-Id: I5da2dbf8828fa0e176e7c2496392a5f561ebfe20
* Rename LatinImeLogger to DebugFlagsTadashi G. Takaoka2014-07-161-3/+5
| | | | | Bug: 15318007 Change-Id: Ic0268fd12865c9a692a5e7110a9beb76cb8b6d7f
* 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