aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SuggestedWords.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-448/+0
|
* Add prev words context to the SuggestedWordInfo.Mohammadinamul Sheik2015-03-191-24/+6
| | | | | | Bug: 19712589 Bug: 19715579 Change-Id: Ie06665cab8405455c1b0a2ff034e0bb0731c9156
* Deprecate SuggestedWords.mSourceDictTom Ouyang2015-03-131-0/+2
| | | | Change-Id: I29d9bec427660a7a501054fe9b1ea71be2d5ee3f
* Don't assume that correctable words are invalidDan Zivkovic2015-02-251-9/+24
| | | | | | | | | | | | Currently, the Delight3DictionaryFacilitator sets a boolean flag when the top suggestion score exceeds the auto-correction threshold. This flag is used to trigger auto-correction of the typed word. Also, the existing logic assumes that if allowsToBeAutoCorrected then the word is invalid, which is no longer true after we stopped using whitelists. Bug 19518376. Change-Id: Ifa7f6a09c07d25ac68c6cf3aec91f358bd88689f
* Add accessor methods for typed word info to SuggestedWords and for wordChieu Nguyen2015-02-041-0/+16
| | | | | | and source dictionary to SuggestedWordInfo. Change-Id: Ic3bdf67a9edd5352f3b911f5cb72a25986e31e2c
* Quit auto-correct explicit accented letters to base letters.Keisuke Kuroyanagi2014-12-091-0/+5
| | | | | Bug: 7677193 Change-Id: I66eddbf27a9db8682c0347a1be19922792a3bea7
* Remove unused import and local variableTadashi G. Takaoka2014-11-281-1/+0
| | | | Change-Id: I256d1c6bf96c07b10d2d063d7935e20e0ab8ea17
* Allow whitelist changes when no close wordJean Chalard2014-11-261-30/+7
| | | | | | | | | | | | | | When there isn't a close word in another language of the current multi-language set, we allow whitelist entries to take force even if we are not confident in the current language. Bug: 18063142 Bug: 18130489 Bug: 18132240 Bug: 18136721 Bug: 18200415 Change-Id: I044674ba7b70aa86ab2a48d2e4d53a1c8007b62c
* Annotate the typed word with its source dictionaryJean Chalard2014-11-201-15/+32
| | | | | | | | | | | | | ...when applicable of course. This will allow for informing the language switching authorities that the typed word was a specific language, instead of leaving them in the dark. Bug: 18063142 Bug: 18130489 Bug: 18132240 Bug: 18136721 Bug: 18200415 Change-Id: Ice3e7026a68c3018f54d730ec84f6762bf55899b
* Make the typed word a SuggestedWordInfoJean Chalard2014-11-201-12/+14
| | | | | | | | That allows to carry the language information in an accurate manner. Bug: 18063142 Change-Id: I0bca8981372ae10648274095b18b26a3686b762b
* Remove the other deprecated constructor to SuggestedWordsJean Chalard2014-11-171-17/+7
| | | | Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
* Remove a deprecated constructor to SuggestedWordsJean Chalard2014-11-071-12/+2
| | | | Change-Id: If4d358b3a11fb25fc214c728269519d8c25f9adc
* Remove DrawingHandlerTadashi G. Takaoka2014-10-291-0/+4
| | | | Change-Id: I658a5b16cca1e56f0b944009b8aef09e0a97a0db
* 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 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
* Merge "Make SuggestionWordInfo non-final for testabilty"Jatin Matani2014-10-101-1/+2
|\
| * Make SuggestionWordInfo non-final for testabiltyJatin Matani2014-10-071-1/+2
| | | | | | | | | | | | Needed for ag/563043 Bug:17731683 Change-Id: I4d19e512a311547204f7e8d7885fc886757a18b7
* | Always show the typed word in recorrections.Jean Chalard2014-10-091-22/+0
| | | | | | | | | | | | | | Bug: 11330140 Bug: 17875601 Bug: 17623275 Change-Id: Ie4620f36f312c54c7b01b5f6cbdb0bc9171b6179
* | Fix missing prediction words on contextual stripTadashi G. Takaoka2014-10-071-0/+13
|/ | | | | Bug: 17874801 Change-Id: Iaba935a6b2548376f10a0ecd80f07ea7ada6c60a
* Hiding SuggestedWords.EMPTY and refactoring code that compares ↵Adrian Velicu2014-09-221-1/+5
| | | | | | | SuggestedWords instances directly to it to use isEmpty instead Bug: 17560717 Change-Id: I7032bf0ab46f9cf5e3b3312a14e689b5496764c1
* Fix showing important notice even at beginning of sentenceTadashi G. Takaoka2014-09-181-4/+10
| | | | | | | This is a cherry-pick of Ic72d6fecc3 from lmp-dev. Bug: 17536096 Change-Id: Id76b8f8dc85d03bc7ed5f24800301c081a82a8d2
* Add StatsUtils.onPickSuggestionManually and SuggestedWords.indexOf.Mohammadinamul Sheik2014-09-071-0/+9
| | | | Change-Id: I1588448154d086569cb026825fdc36cd1812a582
* Fix an IOOB exceptionJean Chalard2014-08-291-1/+1
| | | | | Bug: 17316001 Change-Id: Iaa2cfd30ebbe0d49e10a5c3a30336e06817d0a8b
* Fix a bug where the top prediction would disappear.Jean Chalard2014-08-261-14/+14
| | | | | | | | | | 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
* Indroduce SuggestedWords#getTypedWordInfoOrNullYohei Yukawa2014-08-241-0/+15
| | | | | | | This is a groundwork for subsequent CLs whith need to do certain things for and only for the typed word. Change-Id: I374b79cbc79470f57f523c996010301ea5701a61
* Add the input style to SuggestedWords.Jean Chalard2014-08-141-7/+23
| | | | Change-Id: I81f37d08659d449822b027d3d5912e11eec8b8ff
* Rename LatinImeLogger to DebugFlagsTadashi G. Takaoka2014-07-161-1/+2
| | | | | Bug: 15318007 Change-Id: Ic0268fd12865c9a692a5e7110a9beb76cb8b6d7f
* [CS4] Remove useless tests and processingJean Chalard2014-06-261-4/+12
| | | | | | | | Since we have a de-duped and transformed collection, we can just read from it instead of computing it separately. Bug: 13238601 Change-Id: I0aa4b0d91d3b350f9449e13658bfb587fc538764
* [CS3.5] Small correctionJean Chalard2014-06-241-4/+5
| | | | | Bug: 13238601 Change-Id: I7bd82a4678d8bf88f16bf271f20be8d37f9b97d7
* [CS2] Refactor a bit removeDupsJean Chalard2014-06-231-18/+19
| | | | | | | | This way is more understandable, and also supporting an external string is helping for future refactorings Bug: 13238601 Change-Id: I4ebeed46eb0b35011164946af71ac257c6449ddb
* Clean up for Iba6eeb7981634e7ddb.Keisuke Kuroyanagi2014-05-291-4/+3
| | | | | Bug: 15298959 Change-Id: I6921db77b7d231ad3aad99d4c380ae2ed6bbf540
* Stop directly checking SuggestedWordInfo.mKindKeisuke Kuroyanagi2014-05-281-13/+25
| | | | | | Bug: 15298959 Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
* Add TODO comment about SuggestedWordInfo's kind and flagsTadashi G. Takaoka2014-05-281-0/+6
| | | | | | This CL must be checked in together with I6fd87e1eec. Change-Id: I4b24157f3e3ce6327579d37122a34d7a30069885
* Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-261-4/+9
| | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-8/+6
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* [IL111] Remove a member.Jean Chalard2014-03-041-9/+24
| | | | | | | ...and improve encapsulation and readability. Bug: 8636060 Change-Id: I36407630b307df0721ea7fdb7e7a22cdf2b018b3
* [QRP5] Fix boldness for predictions, and small refactoringJean Chalard2014-02-251-1/+1
| | | | | | | | | This is more correct. When predictions, the typed word should always be null unless explicitly passed. The text color should be that of a valid typed word only if it's actually the typed word. Bug: 13170509 Change-Id: I769ae100e112c37c6f02064fe9ef2f81372ca9e5
* Add PunctuationSuggestions classTadashi G. Takaoka2014-02-141-17/+39
| | | | | | | This change must be checked in together with I366c477516. Bug: 12640318 Change-Id: I8d3864b9d9649c9e3306e82b01a6327b11281b1f
* Conditionally store the raw suggestions.Jean Chalard2014-02-061-8/+14
| | | | | Bug: 12913520 Change-Id: Ie15f97d90c142c51089280252b35b5ad1d226e19
* [IL103] Save the typed word separately in SuggestedWords.Jean Chalard2014-01-291-3/+22
| | | | | | | | This helps managing the cases where the typed word is not in the suggestions. This happens during recorrection. Bug: 8636060 Change-Id: I6784feb793cae96272a7f1d123a0e3bbb8f03143
* [IL100] Pull up a checkJean Chalard2014-01-281-0/+2
| | | | | Bug: 8636060 Change-Id: I344ed59f5f55b412880fc6dc70205eecb1e79961
* [IL76] Remove a SuggestionStripView dependencyJean Chalard2014-01-231-0/+3
| | | | | | | | This constant is better located in SuggestedWords. Or it could be in Constants, that would be fine too. Bug: 8636060 Change-Id: I3e721bb1e2559f028dce8929eceadfe0478c5924
* [IL37] Small simplificationJean Chalard2013-12-261-5/+1
| | | | | Bug: 8636060 Change-Id: I08a6c04986a0bd86ce4c232893e804766ebeebb9
* Add a sequence number to SuggestedWords.Jean Chalard2013-10-221-0/+14
| | | | | | | | This allows testing for suggestion freshness in an asynchronous suggestions world. Bug: 11301597 Change-Id: Ic76cd17568598d8534aec81e037f9e37f52eb6b4
* [AC8] Restrict the suggestion strip to the correct partJean Chalard2013-09-171-0/+20
| | | | | | | ...for phrase gesture. Bug: 9059617 Change-Id: Ic5c0616f28af4ba45ca72a5721d1926029adc1c5
* [AC4] Add native methods necessary for auto-commitJean Chalard2013-09-131-3/+20
| | | | | Bug: 9059617 Change-Id: I7a47b0675446fc4f39628c60d16de9aea90d1b4d
* [AC3] Start calling the methods for auto-commit.Jean Chalard2013-08-201-0/+10
| | | | | Bug: 9059617 Change-Id: I190a4baf2fa831b70e00e129b5dfaa8c9c32b3a0
* [AC2] Reference a dict rather than a string in suggestion infosJean Chalard2013-08-201-5/+4
| | | | | Bug: 9059617 Change-Id: Ic17bc0fd5d812268fd37d7fd35b4e9ebfb95fa5e
* [AC1] Add a memory of where to cut the first word.Jean Chalard2013-08-201-3/+11
| | | | | Bug: 9059617 Change-Id: I931b6d1eb49f9f7dd7d5b18956e35751d1b2b631