aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/compat (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove the other deprecated constructor to SuggestedWordsJean Chalard2014-11-171-10/+14
| | | | Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-34/+33
| | | | | | | | | | | | | | | | | | | | | 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
* Add a utility method to SuggestionSpanUtilsYohei Yukawa2014-10-061-0/+26
| | | | | | | This is a ground work for subsequent CLs. BUG: 16995261 Change-Id: Icbb708a35412a635a0d625b520069840c0bb0904
* Add unittest for SuggestionSpanUtilsYohei Yukawa2014-10-061-0/+181
| | | | | | | | This adds unittest for SuggestionSpanUtils for subsequent CLs. No behavior change is intended in this CL. BUG: 16995261 Change-Id: I90d1591cab893a1421ca633963b7c8f00a5fe4b4
* Simplify the wrapper for TextInfo#getCharSequenceYohei Yukawa2014-07-091-1/+1
| | | | | | | | | This CL simplifies the wrapper method for TextInfo#getCharSequence() because in the almost all cases we want to use the result of TextInfo#getText() as the default value. BUG: 16029304 Change-Id: I62f987aed8ca42b093255e6c0703d6120fa01299
* Fix test failur on pre-L devicesYohei Yukawa2014-07-091-1/+2
| | | | | | | This is a follow up CL for Iafbf2877db393dbd040295c21d. BUG: 16029304 Change-Id: I0bfdcf901adb3178e6b9201d598ce9f588dcd253
* Add a compatibility utility class for TextInfoYohei Yukawa2014-07-081-0/+85
| | | | | | | | | | This is a groundwork for enabling LocaleSpan support in spell checker service. TextInfo#getCharSequence is supposed to be available in API Level 21 and later. We need some abstraction layer as usual. BUG: 16029304 Change-Id: Iafbf2877db393dbd040295c21d429334e3a13a5f
* Ensure each character is coverted by at most one LocaleSpanYohei Yukawa2014-07-071-0/+174
| | | | | | | | | | | | | | This is a groundwork to attach LocaleSpan for committed text in LatinIME. This CL adds a utility method to ensure that a given range of the text is coverted by at most one LocaleSpan. Of course it could be possible to allow a substring to be coverted by multiple LocaleSpans at the same time, but ensuring uniqueness for LocaleSpan is supposed to be a good starting point. BUG: 16029304 Change-Id: Ic33a7178d0df1f05d3626aeb5773ec902254703f
* Add compatibility utility class for LocaleSpanYohei Yukawa2014-07-041-0/+38
| | | | | | | | | This is a groundwork for enabling LocaleSpan support. LocaleSpan is available in API Level 17 and later. We need some abstraction layer as usual. BUG: 16029304 Change-Id: Iead1afdc540216edb1b17f91a40d9edb2e790168
* Fix the build. Corresponding to I0f1a0deeKen Wakasa2012-03-301-103/+0
| | | | Change-Id: Ibe31549a200f4c307fa4c1d4ef9ddac0a5952218
* Add ArraysCompatUtils.binarySearchTadashi G. Takaoka2011-06-211-0/+103
Until API version 9, java.util.Arrays.binarySearch(int[], int, int, int) doesn't exist. Change-Id: Ife0ed4fbac642eda069e7b6f6b8dd30e0cd5fdee