summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/latin/WordComposer.java
Commit message (Collapse)AuthorAgeFilesLines
* [HW12] Use the consumed status of the Event.Jean Chalard2014-08-041-0/+3
| | | | Change-Id: I1619f6132f8f71bc1291fd6a5604a5e1e3431ae2
* [HW7.5] Introduce the @Nonnull annotation (take 2)Ken Wakasa2014-07-301-0/+3
| | | | Change-Id: I05512b5434810046c8b72d6bb41567b6cd8b9d6e
* [HW7] Introduce consumed eventsJean Chalard2014-07-301-3/+3
| | | | Change-Id: I692c35b8e701d5a84500b949884472545b1f424d
* [HW6] Split processing and applying the event.Jean Chalard2014-07-301-7/+21
| | | | | | ...take 2 Change-Id: I9d13b6d51e13ce2e76ae3febebfb8c310eba509d
* Revert "[HW6] Split processing and applying the event."Ken Wakasa2014-07-301-15/+5
| | | | | | | | This reverts commit 1db3d860ca0d7380c5a6a3a0f95751565f23043b. Reverting due to a few critical bugs and unit test failures. Change-Id: I5e2d02300320438ef9c29577ec5b0860ea91d822
* [HW6] Split processing and applying the event.Jean Chalard2014-07-291-5/+15
| | | | | | If anyone has better names for those... Change-Id: Ia2dfc75381816bd688948647e2c50c10657b9e89
* Rename LatinImeLogger to DebugFlagsTadashi G. Takaoka2014-07-161-1/+2
| | | | | Bug: 15318007 Change-Id: Ic0268fd12865c9a692a5e7110a9beb76cb8b6d7f
* [CM1] Let predictions be aware of capitalize mode.Jean Chalard2014-06-161-4/+24
| | | | | Bug: 15554503 Change-Id: If5e8c0d94ed26d929400ccbb0d45ac23dd98d180
* Remove mPrevWordsInfoJean Chalard2014-06-101-45/+19
| | | | | | | | 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
* Fix an IOOB exceptionJean Chalard2014-06-021-4/+7
| | | | | Bug: 14602663 Change-Id: Ie2060931df911b44230d5a5ba268f687cbdd0dc8
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-2/+1
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE.Keisuke Kuroyanagi2014-05-231-3/+3
| | | | | Bug: 14119293 Change-Id: I5020e5f0aa64bc3e97b3a3c2c07a60c8b765ed64
* Add beginning of sentence information in PrevWordsInfo.Keisuke Kuroyanagi2014-05-211-3/+3
| | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I65320920e840082b0b697bb621676716d0933e0c
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-6/+5
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-5/+6
| | | | | | | | | | 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-6/+5
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Use PrevWordsInfo instead of String in Java side.Keisuke Kuroyanagi2014-05-191-15/+13
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I3d5da84881a49a04550180dd9aac2c37da2ed762
* Fix: StringIndexOutOfBoundsException.Keisuke Kuroyanagi2014-05-161-10/+2
| | | | | Bug: 14985751 Change-Id: I9df2f737555ab02e24e0fbd231a97c1eec26bc57
* Fix a bug where changing languages kills the composition.Jean Chalard2014-05-141-8/+7
| | | | | Bug: 14926896 Change-Id: Id2a06c68a51f833db4d8bbc858a232c2696afb6e
* Create the path for specifying combining rules in the subtypeJean Chalard2014-05-121-0/+16
| | | | | | | | Also add the skeleton of the combining rules for Myanmar reordering as a pilot. Bug: 13945569 Change-Id: Iabeb6838f45f1efff482143595ce5b48543e0c43
* Fix a bug for counting code points in WordComposer.javaXiaojun Bi2014-04-181-7/+10
| | | | | | | | | | | | 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
* [CB26] Remove useless variables.Jean Chalard2014-04-101-49/+11
| | | | | | | | This is nice for code simplicity, but it has a small adverse impact on performance. Bug: 13406701 Change-Id: I9316b3fe8d79b940fbd83cf1187c8c0d10b26c71
* [CB25] Refactor some array copyingJean Chalard2014-04-091-15/+28
| | | | | Bug: 13406701 Change-Id: I09edd822f5cc2446b324d41c76d835bcff1191e6
* [CB23] Merge add and deleteLastJean Chalard2014-04-071-16/+9
| | | | | Bug: 13406701 Change-Id: Id9a2e4144b1908ad27d78228ee19e6fc4d4d669f
* [CB22] Merge add and deleteJean Chalard2014-04-071-19/+15
| | | | | | | ...but this time, it works. Bug: 13406701 Change-Id: Iaa00339a6be76413ffaeb74ff1556e15b3bb039d
* Revert "[CB22] Merge add and delete"Ken Wakasa2014-04-041-13/+19
| | | | | | | | This reverts commit f6bce235ae4cb4dc366dbfa534e26ad416b14e6b. Seeing several new unit test failures after this CL. Reverting.. Change-Id: Ie97127550ee36dd4a07a36701e9c5118684dfbc5
* [CB22] Merge add and deleteJean Chalard2014-04-021-19/+13
| | | | | Bug: 13406701 Change-Id: Ic9e90dd226b58b5ddb9693e04259cde00916007e
* [CB21] More refactoringJean Chalard2014-04-021-17/+20
| | | | | Bug: 13406701 Change-Id: I96e0a7fa2d9f4dfd8c355da4effc116bbd0f7f18
* [CB20] Some more refactoringJean Chalard2014-04-021-8/+10
| | | | | Bug: 13406701 Change-Id: I4502658f4f1e1997d0ac245d95e2d4a1415b1861
* [CB19] Some refactoringJean Chalard2014-04-021-6/+8
| | | | | Bug: 13406701 Change-Id: Ie4d420e8cabbbd93c3eea13a80baa4d766ee61d0
* [CB18] Move some code aroundJean Chalard2014-04-021-27/+27
| | | | | | | Bring next to each other two methods scheduled for a merge Bug: 13406701 Change-Id: I335c7202cc07d8865f4ab92e4023c1d93d1f83ac
* [CB17] Remove a member.Jean Chalard2014-04-021-31/+18
| | | | | Bug: 13406701 Change-Id: I2e271f637f6b529a4191a7adc5cdfa5af437761b
* Some cleanupJean Chalard2014-03-281-1/+6
| | | | Change-Id: Ia11d656a70623168b091763ac6524750f9cca8d8
* [CB14.5] Stop copying WordComposers.Jean Chalard2014-03-281-19/+7
| | | | | | | | | | | | | | 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
* Revert "[CB15] Remove a redundant variable."Jean Chalard2014-03-271-2/+30
| | | | | | This reverts commit 0de7a6d1a272d52a9544df1c693ae199ab5abc52. Change-Id: I327679b76a14cf9c3aec4b00b013b921408c32f9
* [CB15] Remove a redundant variable.Jean Chalard2014-03-271-30/+2
| | | | | | | | | 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
* [CB14] Implement backspace in the combiner chainJean Chalard2014-03-251-22/+7
| | | | | | Bug: 13622107 Bug: 13406701 Change-Id: I0023b398c4451253f9f717e2bd990b8a054004bc
* [CB13] Remove an unused method.Jean Chalard2014-03-241-7/+0
| | | | Change-Id: If4d2fa9c6499ce9b2427cea424abd497ec4a966b
* [CB12] Reset the combining state when resetting the composerJean Chalard2014-03-241-0/+5
| | | | | Bug: 13406701 Change-Id: I490574b7ca4b953f67dd2c0ef97401297fade0a4
* [CB11] Get the result of the combinationJean Chalard2014-03-201-1/+4
| | | | Change-Id: I165ec4a24f5b1334d55c14948e4d942ec40eb33b
* [CB09] Pass events through the combiner chainJean Chalard2014-03-201-0/+1
| | | | | Bug: 13406701 Change-Id: I4696f145478afdd132314b7d3c148c3a9ca11c9c
* [CB08] Create a combiner chain in the word composer.Jean Chalard2014-03-201-0/+5
| | | | | Bug: 13406701 Change-Id: I3b9f75de9283f76366d1bef7e14a8f22f2186669
* [CB04] Add an event array to WordComposer.Jean Chalard2014-03-141-6/+27
| | | | | Bug: 13406701 Change-Id: I9ecd2709c8f1c678a85b0cfaf7c5ed4f78459821
* [IL73] Remove all refs to Key and Keyboard in WordComposerJean Chalard2014-01-231-21/+0
| | | | | | | | Please hold my gun while I have this nice cup of tea. Yes !! Bug: 8636060 Change-Id: I33c8ffe51bb2106b17f7941235ad1e427e3a81f7
* [IL70] Remove unused argumentsJean Chalard2014-01-231-3/+1
| | | | | Bug: 8636060 Change-Id: Iec56bce362ebfc52fedab02b127978abb4f3c7f9
* [IL69] Oust Keyboard from WordComposer#setComposingWordJean Chalard2014-01-231-7/+10
| | | | | Bug: 8636060 Change-Id: I624a45500603dfad355ee3b8b794b2d895219c0b
* [IL68] Start refactoring setComposingWordJean Chalard2014-01-231-0/+3
| | | | | Bug: 8636060 Change-Id: I242b7c264abf380bcd6b6b3c848238921f988e54
* [IL56] Don't erase suggestions when reverting a commit.Jean Chalard2014-01-161-6/+7
| | | | | Bug: 12297051 Change-Id: Iffa1c98b8fe2b816c3ac6bc171037288107f637d
* Rename InputPointers.addPointer and ResizableIntArray.addTadashi G. Takaoka2014-01-081-1/+1
| | | | Change-Id: I5580250c91b29f93ed886b080ce33845b3b67ace
* Fix a bug where predictions would not pop upon manual pickJean Chalard2013-12-261-1/+1
| | | | | Bug: 12295276 Change-Id: Id359c92acde44758b12929e7bac719d5c9c7577b