aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/WordComposer.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-481/+0
|
* Race condition in cursor move.Dan Zivkovic2015-02-271-8/+10
| | | | | | | | | | | | | | The method WordComposer.moveCursorByAndReturnIfInsideComposingWord() iterates through all the code points in the word that's currently being composed, and it tries to adjust the cursor position by a given amount (left or right). It copies the code points to a new array while processing. But the code point count comes from a member variable. If the member variable changes while the method is processing the copy of the code points, it can run over the length of the code point array. Bug 18876474. Change-Id: Ib3a2d90a4e82b76d381efa774e6b3d6bca99c869
* Move decoder specific constants to DecoderSpecificConstants.javaMohammadinamul Sheik2015-02-051-1/+2
| | | | Change-Id: Ie4d325b3152e1e7e424b8b436e222e194e4d9da0
* AOSP changes to use KeyboardLayout to support the new DictionaryFacilitatorMohammadinamul Sheik2015-02-041-0/+11
| | | | Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844
* Disable the Burmese keyboard.Dan Zivkovic2015-01-291-2/+1
| | | | | | | | We'll resurrect this effort in the new code base. Bug 16900511. Change-Id: Iae4cd27cb29cb8f991e97cffd88ed59c30d66628
* Fix moving the cursor inside composition in lang w/o spacesJean Chalard2014-12-221-2/+2
| | | | | | | | Also introduce the cursor move event, which we needed to do anyway Bug: 18827118 Change-Id: I30e994764c095b4423b874dc05d1bbedc0de592f
* Move util classes under commonJean Chalard2014-11-071-1/+1
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Remove Dict dependency on WordComposer and ProximityInfoJean Chalard2014-10-291-32/+5
| | | | | Bug: 18108776 Change-Id: I9b399a44241e05a7add9bb8094263aa76de37880
* Move InputPointers and ResizableIntArray to commonJean Chalard2014-10-291-0/+1
| | | | | Bug: 18108776 Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe
* Move StringUtils under common.Jean Chalard2014-10-281-1/+1
| | | | | Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
* Move Constants.java to the latin.common packageKen Wakasa2014-10-231-0/+1
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-231-1/+1
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-2/+1
| | | | | | | | | | | | | | | | | | | | | This CL fixes the following compiler warnings. - Indirect access to static member - Access to a non-accessible member of an enclosing type - Parameter assignment - Method can be static - Local variable declaration hides another field or variable - Value of local variable is not used - Unused import - Unused private member - Unnecessary 'else' statement - Unnecessary declaration of throw exception - Redundant type arguments - Missing '@Override' annotation - Unused '@SuppressWarning' annotations Bug: 18003991 Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
* [ML18] Make WordComposer#getAutoCorrection a word infoJean Chalard2014-10-081-13/+5
| | | | | Bug: 11230254 Change-Id: I6ad2e7f89862fbfe7af5502961643320c782347f
* Add calls to stub for API to consume gesture data.David Faden2014-10-031-2/+1
| | | | | Bug: 17400259 Change-Id: Ib3511afffe1d14662e7dd14611f384689516e664
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-2/+2
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Add StatsUtils.onAutoCorrection method.Mohammadinamul Sheik2014-09-161-1/+10
| | | | Change-Id: I9547b6c0f082ef7c09b251a6458badb65a841229
* [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