aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/WordComposer.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Fix a bug for counting code points in WordComposer.java•••This bug threw an ArrayIndexOutOfBoundsException when the word length is 49 (maxSize + 1) when calling StringUtils.copyCodePointsAndReturnCodePointCount(...) in the same function. This bug is discovered by running SKETCH. The intent is to count the code points from index 0 to index i (included). The original code only counted the code points from index 0 to index (i-1). Bug: 13969542 Change-Id: Idbf596aba2379ba552dbe580c83c42044d505aaf Xiaojun Bi2014-04-181-7/+10
* [CB26] Remove useless variables.•••This is nice for code simplicity, but it has a small adverse impact on performance. Bug: 13406701 Change-Id: I9316b3fe8d79b940fbd83cf1187c8c0d10b26c71 Jean Chalard2014-04-101-49/+11
* [CB25] Refactor some array copying•••Bug: 13406701 Change-Id: I09edd822f5cc2446b324d41c76d835bcff1191e6 Jean Chalard2014-04-091-15/+28
* [CB23] Merge add and deleteLast•••Bug: 13406701 Change-Id: Id9a2e4144b1908ad27d78228ee19e6fc4d4d669f Jean Chalard2014-04-071-16/+9
* [CB22] Merge add and delete•••...but this time, it works. Bug: 13406701 Change-Id: Iaa00339a6be76413ffaeb74ff1556e15b3bb039d Jean Chalard2014-04-071-19/+15
* Revert "[CB22] Merge add and delete"•••This reverts commit f6bce235ae4cb4dc366dbfa534e26ad416b14e6b. Seeing several new unit test failures after this CL. Reverting.. Change-Id: Ie97127550ee36dd4a07a36701e9c5118684dfbc5 Ken Wakasa2014-04-041-13/+19
* [CB22] Merge add and delete•••Bug: 13406701 Change-Id: Ic9e90dd226b58b5ddb9693e04259cde00916007e Jean Chalard2014-04-021-19/+13
* [CB21] More refactoring•••Bug: 13406701 Change-Id: I96e0a7fa2d9f4dfd8c355da4effc116bbd0f7f18 Jean Chalard2014-04-021-17/+20
* [CB20] Some more refactoring•••Bug: 13406701 Change-Id: I4502658f4f1e1997d0ac245d95e2d4a1415b1861 Jean Chalard2014-04-021-8/+10
* [CB19] Some refactoring•••Bug: 13406701 Change-Id: Ie4d420e8cabbbd93c3eea13a80baa4d766ee61d0 Jean Chalard2014-04-021-6/+8
* [CB18] Move some code around•••Bring next to each other two methods scheduled for a merge Bug: 13406701 Change-Id: I335c7202cc07d8865f4ab92e4023c1d93d1f83ac Jean Chalard2014-04-021-27/+27
* [CB17] Remove a member.•••Bug: 13406701 Change-Id: I2e271f637f6b529a4191a7adc5cdfa5af437761b Jean Chalard2014-04-021-31/+18
* Some cleanup•••Change-Id: Ia11d656a70623168b091763ac6524750f9cca8d8 Jean Chalard2014-03-281-1/+6
* [CB14.5] Stop copying WordComposers.•••This is an overdue refactoring that I have been wanted to do forever, and that we can at last do now that suggestions come only from instances of BinaryDictionary instances. With this, all unit tests and regression tests are passing again. Bug: 13667648 Bug: 13665487 Bug: 8636060 Change-Id: Ie23a19f9b7e692edf2ee0b107ddaff2d7db564b6 Jean Chalard2014-03-281-19/+7
* Revert "[CB15] Remove a redundant variable."•••This reverts commit 0de7a6d1a272d52a9544df1c693ae199ab5abc52. Change-Id: I327679b76a14cf9c3aec4b00b013b921408c32f9 Jean Chalard2014-03-271-2/+30
* [CB15] Remove a redundant variable.•••This is a tiny bit slower, but probably unnoticeable. Still, it gains some performance in other places, saves memory, and more importantly makes for simpler code, so it's certainly better. Change-Id: Id1ab4f73f71acd73f5920bc729817abd22cf0d07 Jean Chalard2014-03-271-30/+2
* [CB14] Implement backspace in the combiner chain•••Bug: 13622107 Bug: 13406701 Change-Id: I0023b398c4451253f9f717e2bd990b8a054004bc Jean Chalard2014-03-251-22/+7
* [CB13] Remove an unused method.•••Change-Id: If4d2fa9c6499ce9b2427cea424abd497ec4a966b Jean Chalard2014-03-241-7/+0
* [CB12] Reset the combining state when resetting the composer•••Bug: 13406701 Change-Id: I490574b7ca4b953f67dd2c0ef97401297fade0a4 Jean Chalard2014-03-241-0/+5
* [CB11] Get the result of the combination•••Change-Id: I165ec4a24f5b1334d55c14948e4d942ec40eb33b Jean Chalard2014-03-201-1/+4
* [CB09] Pass events through the combiner chain•••Bug: 13406701 Change-Id: I4696f145478afdd132314b7d3c148c3a9ca11c9c Jean Chalard2014-03-201-0/+1
* [CB08] Create a combiner chain in the word composer.•••Bug: 13406701 Change-Id: I3b9f75de9283f76366d1bef7e14a8f22f2186669 Jean Chalard2014-03-201-0/+5
* [CB04] Add an event array to WordComposer.•••Bug: 13406701 Change-Id: I9ecd2709c8f1c678a85b0cfaf7c5ed4f78459821 Jean Chalard2014-03-141-6/+27
* [IL73] Remove all refs to Key and Keyboard in WordComposer•••Please hold my gun while I have this nice cup of tea. Yes !! Bug: 8636060 Change-Id: I33c8ffe51bb2106b17f7941235ad1e427e3a81f7 Jean Chalard2014-01-231-21/+0
* [IL70] Remove unused arguments•••Bug: 8636060 Change-Id: Iec56bce362ebfc52fedab02b127978abb4f3c7f9 Jean Chalard2014-01-231-3/+1
* [IL69] Oust Keyboard from WordComposer#setComposingWord•••Bug: 8636060 Change-Id: I624a45500603dfad355ee3b8b794b2d895219c0b Jean Chalard2014-01-231-7/+10
* [IL68] Start refactoring setComposingWord•••Bug: 8636060 Change-Id: I242b7c264abf380bcd6b6b3c848238921f988e54 Jean Chalard2014-01-231-0/+3
* [IL56] Don't erase suggestions when reverting a commit.•••Bug: 12297051 Change-Id: Iffa1c98b8fe2b816c3ac6bc171037288107f637d Jean Chalard2014-01-161-6/+7
* Rename InputPointers.addPointer and ResizableIntArray.add•••Change-Id: I5580250c91b29f93ed886b080ce33845b3b67ace Tadashi G. Takaoka2014-01-081-1/+1
* Fix a bug where predictions would not pop upon manual pick•••Bug: 12295276 Change-Id: Id359c92acde44758b12929e7bac719d5c9c7577b Jean Chalard2013-12-261-1/+1
* Fix a bug with languages without spaces and predictions•••This is simpler and more correct. Change-Id: I41806d2fc12b4ca25f76e32972b38f91f3d05c2b Jean Chalard2013-12-161-21/+17
* Don't use the previous word after a non-whitespace separator•••Bug: 12101276 Change-Id: Icf36d55ec171194e5561b946021bcf648782ddd4 Jean Chalard2013-12-131-1/+13
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20c•••The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854 Ken Wakasa2013-12-131-8/+31
* Add getters and copy constructor to Key class•••Change-Id: I78eb96dcc26378926dc63acbfeb4828cbd44435d Tadashi G. Takaoka2013-08-151-2/+2
* Refactor on UserHistoryDictionary•••Bug: 9429906 Change-Id: I576a91643bdaf5017cc826ac2e07a74a9a275d60 Satoshi Kataoka2013-07-261-1/+1
* Fix a bug when moving the pointer in a > 48 chars word•••Bug: 9892261 Change-Id: I9db20c5b20a0764bd9f5b5e2bdc98180bbb9ec15 Jean Chalard2013-07-221-2/+24
* Do not re-resume suggestion if it's not needed.•••This is much better interface-wise. It eliminates all blinking of the line in the practice. Bug: 8874148 Bug: 8864306 Change-Id: I87754e44784327c2e9c8b162d598d145e20668e8 Jean Chalard2013-07-011-0/+34
* Consolidate dummy proximity info to the spell checker info•••Bug: 8783170 Change-Id: I067486e5ec1ae7cdef8e2121392464ba71ee8add Satoshi Kataoka2013-05-081-3/+1
* If there are no suggestion span, recompute suggestions.•••Bug: 8084810 Change-Id: I1743c09c43ca6835bb2f607684b037bf17d36335 Jean Chalard2013-04-151-2/+14
* Reject a previously user-refused suggestion.•••If the user gestures a word, then hits backspace in disapproval, and gestures about the same thing again, make sure that we don't suggest the same thing again. Bug: 7549311 Change-Id: I793bc4df7c3841fa8f2f4146707c26e873f374c1 Jean Chalard2013-04-151-0/+20
* Restart suggestions when the cursor moves.•••This uses the old suggestions. It does not try to recompute new suggestions if there are no old suggestions yet: this is coming in a later change. If there are no suggestions, this shows the word itself as a suggestion. Bug: 8084810 Change-Id: I4c2e25df0ff3673be1825f57a0c19a9d23d47a48 Jean Chalard2013-04-121-0/+16
* Use WordComposer.addKeyInfo for testing•••Change-Id: I500654e7a26717aa5547942357e56060afb72969 Tadashi G. Takaoka2013-02-201-1/+3
* Fix Apache license comment•••Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086 Tadashi G. Takaoka2013-01-211-8/+8
* Reset forgotten members (D3)•••Only resetting mCapitalizedMode is enough to fix bug#8013488, but we may as well correctly reset both fields. Bug: 8013488 Change-Id: Icb0d7c5b1e93368e8eb7848aa9137b45d5d3531e Jean Chalard2013-01-171-0/+2
* Forward the capitalized mode to the positional info (D1)•••Bug: 7972124 Change-Id: I3c74f3b075e698b9e9dd1d2c7b6f173073539063 Jean Chalard2013-01-171-1/+2
* Privatize a few constants in BinaryDictionary.java•••Change-Id: I7defaf1f577fd67e678cac83ff935e8181dd0a48 Ken Wakasa2012-12-171-7/+7
* Move code point constants from Keyboard to Constants class•••Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d Tadashi G. Takaoka2012-10-291-3/+3
* Replace useless CharSequence to String•••Change-Id: Idc478f901185ee1b4912acc82d0cbc54fee4e991 Tadashi G. Takaoka2012-10-221-9/+10
* Fix possible NPE caused while monkey test•••Bug: 7269036 Change-Id: I9054b33ad3c8996cac3ee5f0e9c01ba8ceea4971 Tadashi G. Takaoka2012-10-031-8/+10
* Cleanup: Make some classes as final•••Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e Tadashi G. Takaoka2012-09-271-1/+1