aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/compat/SuggestionSpanUtils.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-121/+0
|
* Always specify non-null Locale object to SuggestionSpanYohei Yukaw2015-04-201-6/+5
| | | | | | | | | | | | | | | | | Confusingly, specifying a null Locale object to the constructor of SuggestionSpan does not necessarily mean that SuggestionSpan#getLocale() returns null. The constructor in question also receives Context object, and Context's locale can be used as a fallback locale to initialize locale of SuggestionSpan. With this CL, LatinIME always specify non-null Locale object when instantiating SuggestionSpan object. It basically corresponds to the active main dictionary, but can be Locale#ROOT when one locale is not determined for some reasons. BUG: 20435013 Change-Id: I2c152466410327300e7dba4d7ed9a22f57c17c4f
* Forgot to remove reference to deleted class.Dan Zivkovic2015-03-031-5/+2
| | | | Change-Id: Ic662a536e468390a3f7266daf9c56e4fc5a70ac6
* Make LocaleUtils.constructLocaleFromString as @NonnullTadashi G. Takaoka2014-11-211-5/+1
| | | | Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
* Move util classes under commonJean Chalard2014-11-071-1/+1
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Add a utility method to SuggestionSpanUtilsYohei Yukawa2014-10-061-0/+28
| | | | | | | This is a ground work for subsequent CLs. BUG: 16995261 Change-Id: Icbb708a35412a635a0d625b520069840c0bb0904
* Add unittest for SuggestionSpanUtilsYohei Yukawa2014-10-061-1/+6
| | | | | | | | This adds unittest for SuggestionSpanUtils for subsequent CLs. No behavior change is intended in this CL. BUG: 16995261 Change-Id: I90d1591cab893a1421ca633963b7c8f00a5fe4b4
* 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
* Clean up compatible utility classesTadashi G. Takaoka2014-08-041-2/+2
| | | | Change-Id: I95a682052037d292801477db0f05e04926b61412
* Rename LatinImeLogger to DebugFlagsTadashi G. Takaoka2014-07-161-2/+2
| | | | | Bug: 15318007 Change-Id: Ic0268fd12865c9a692a5e7110a9beb76cb8b6d7f
* Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-261-1/+1
| | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-2/+1
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Add PunctuationSuggestions classTadashi G. Takaoka2014-02-141-2/+1
| | | | | | | This change must be checked in together with I366c477516. Bug: 12640318 Change-Id: I8d3864b9d9649c9e3306e82b01a6327b11281b1f
* [IL57] Don't require a main dict suggestion.Jean Chalard2014-01-161-12/+0
| | | | | | | | | | This is bad for recorrection (it will ignore recorrection suggestions). But if you think about it well, if you didn't have a main dict, then you probably will compute the same stuff anyway. It's not useful to make this check at all. Bug: 12297051 Change-Id: I6d6cf4d9353b7c668c5413c67701563b243e585c
* [IL16] Improve getTextWithSuggestionSpanJean Chalard2013-12-201-6/+20
| | | | | | | | | | | | Dynamically test for the presence of main dict suggestions. This is much more potent and more accurate than the vaguely defined boolean. Also, resolve a TODO and avoid creating an object uselessly. Not directly related, but helpful with: Bug: 8636060 Change-Id: Ib1745f77ee6d9ec7cd8bbfa5a548652ec84ec902
* Fix some warningsJean Chalard2013-07-311-3/+1
| | | | Change-Id: I7290cd1fb675a1b85b9b6ac2d464c932b5bca1dd
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-1/+1
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Small code cleanupsKen Wakasa2013-01-071-9/+11
| | | | | | Multi-project commit with I249d5fbe Change-Id: Ia28c4e970992aa1299a30e604eaa5d096655c3a5
* Clean up SuggestionSpanUtils for API level 14+Ken Wakasa2012-12-171-62/+17
| | | | Change-Id: Iadc235524341b48e7618e9ce05907c786409e004
* Replace useless CharSequence to StringTadashi G. Takaoka2012-10-221-12/+7
| | | | Change-Id: Idc478f901185ee1b4912acc82d0cbc54fee4e991
* Add SuggestedWords.isEmpty() methodTadashi G. Takaoka2012-10-031-2/+2
| | | | Change-Id: I0fcb104a6a81aee4b99f5ee848eba7495630dc7d
* Make utility classes finalTadashi G. Takaoka2012-08-291-1/+1
| | | | Change-Id: Ic4f69b4c8da33c9fca50d6829724179310c2f875
* Add CollectionUtils class to create generic collection easilyTadashi G. Takaoka2012-08-221-5/+6
| | | | Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
* Cleanup unused import and dead codeTadashi G. Takaoka2012-08-061-3/+0
| | | | Change-Id: Ife877620561d29a8f25602916420741186104617
* Do not set "SuggestionSpan"s for suggestions from the next word predicitionsatok2012-05-151-0/+1
| | | | | Bug: 6294817 Change-Id: I5010eafa5ba7e947743706adf7e722f4f0cfb415
* Do not pass misspelled flags to TextViewsatok2012-04-171-6/+1
| | | | | | | Bug: 6310268 Original CL: I2f7a54ae0d63235a0b94e039109ab8 Change-Id: I28f64a4d0bb262db819f5f8c0ffc58a259c8e62d
* Add isDictionaryAvailable to SubtypeSwitchersatok2012-04-121-2/+3
| | | | Change-Id: I534878d330b57bbfaa8b7711082456969771f4dc
* Don't draw red underline for manually picked words that came from bigram ↵Ken Wakasa2012-04-051-0/+2
| | | | | | prediction Change-Id: I544680c8b4b1baff71bd08168630a34e803c40b9
* Add private constructor to utility classesTadashi G. Takaoka2012-04-031-0/+4
| | | | | Bug: 6129704 Change-Id: I52925ae7bd80683f63efc48649448865a5654f41
* Fix some obvious compiler warningsTadashi G. Takaoka2012-03-291-1/+1
| | | | Change-Id: I10a634f7492b45d5a72345f14d36cf341946387d
* Put a misspelled flag if the word is not valid by the same logic of Android ↵satok2012-03-271-7/+25
| | | | | | | | | | spell checker. Bug: 6222722 Currently, the flags of the suggestion span from the Latin IME is different from the flags from Android spell checker. Change-Id: I2f7a54ae0d63235a0b94e039109ab8b2f1311055
* Use the unique flag in SuggestionsViewJean Chalard2012-03-151-1/+0
| | | | | | | Also, the first word in a sugestions list can never be obsolete. Change-Id: Ib21439aac8db4e6ce5b15b7a2aabe4222bc354db
* Refactor reflection membersatok2011-12-061-7/+7
| | | | Change-Id: I112dbf851e10dae9e4291cf440f01b28d51180f4
* Fix a field value for the suggestion max sizesatok2011-12-051-3/+3
| | | | | | | | Bug: 5574747 This bug was introduced by I5e40edf6f790c078c4a05d Change-Id: I5b0f51e1f5e8a12d786657167082bc604089505e
* Use reflection to get field values of SuggestionSpansatok2011-10-281-7/+23
| | | | | Bug: 5440299 Change-Id: I5e40edf6f790c078c4a05d0d347a89d63f7c042a
* Set SuggestionSpan with FLAG_AUTO_CORRECTION as a composing spansatok2011-10-151-1/+2
| | | | | Bug: 5460262 Change-Id: Ibeb875bb885fb663ed23f0299d671e995a66b642
* Put SuggestionSpan as the indicater of the auto-correctionsatok2011-10-101-0/+23
| | | | | | Bug: 5245468 Change-Id: Ia5609e1b3c69f5553e3632fbce60a55665a5b185
* Do not put the suggestion span for obsolete suggestions.satok2011-08-261-1/+2
| | | | | | Bug: 5219037 Change-Id: I0300fbc7e1cc97f0f8ba4d21e0e699d9fe66ed76
* Refactor of SuggestionSpanUtilssatok2011-06-171-10/+11
| | | | Change-Id: Id266062831e8c28a346e129168b883ee3d5622bf
* Remove the original text from SuggestionSpansatok2011-06-151-8/+16
| | | | Change-Id: If70d32cad980b46ba77f399606d7ab3957c5d096
* Add SuggestionSpan suggestion picked notification receiversatok2011-05-261-11/+20
| | | | | | Bug: 4443922 Change-Id: I8a9dc5077ae06c6d0c39fd7fdd823fc4f4d05f45
* Disable the legacy recorrection functionalities if the suggestion span is ↵satok2011-05-251-0/+5
| | | | | | | | supported Bug: 4346045 Change-Id: Ib4594a9073b961038564bbcd601f9c290d153d5d
* Put SuggestionSpan at commitTextsatok2011-05-251-0/+64
Bug: 4346045 Change-Id: Iaabdb8a148b2601bb9cbc2b08509adac164105a4