aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Revert "Introduce onEvent() to improve testability"Ken Wakasa2014-08-061-7/+3
| | | | | | | | | | | | | | | | This reverts commit ef74e737f580f7ac0b3bd70d6255dde3c87d9078. Apparently, this CL broke several unit tests. Change-Id: I86cf5f1ffb0214707afe99ee97f92ba8c5157f3f
* | Deactivate tests for MyanmarJean Chalard2014-08-061-0/+3
|/ | | | | | | | | They are pretty extensive already and require an implementation that works pretty well. However ours is based on an old architecture and updating them will take time, so for the time being it's best to just deactivate the tests. Change-Id: I649a220d13fc455b4306706bb964602c27a5a28c
* Introduce onEvent() to improve testabilityJean Chalard2014-08-061-3/+7
| | | | | | ...and prepare for the future Change-Id: Ieed96ab552993fd148e80b9c3355f1b569bd716f
* Make dict log cleanup.Akifumi Yoshimoto2014-08-061-10/+3
| | | | | | Delete unneeded output when creating a dictionary Change-Id: If7dc5dc74a53d0054967cb801e5ccfdd53ebe179
* Clean up compatible utility classesTadashi G. Takaoka2014-08-041-1/+1
| | | | Change-Id: I95a682052037d292801477db0f05e04926b61412
* Make "Show correction suggestions" as a binary optionTadashi G. Takaoka2014-07-271-11/+9
| | | | | | | | | | | | Formerly "Show correction suggestions" had three options, "always show", "show in portrait mode", and "always hide". The reason behind "show in portrait mode" was that there may not be enough screen estate in landscape mode to show suggestions. Because recent phone devices have relatively large screen, we decide to remove "show in portrait mode" option. Bug: 15780939 Change-Id: I896d737452c3893d43ce20bd88127f10c1eb3d83
* Update Hindi Compact keyboard layoutTadashi G. Takaoka2014-07-191-2/+4
| | | | | Bug: 13779052 Change-Id: I350e5521b41d2a0b1cc17b6d4a48e6a816db916c
* Enable StringUtils to split CharSequence like String#splitYohei Yukawa2014-07-191-0/+170
| | | | | | | | | | | | This is a groundwork for enabling LocaleSpan. To enable LocaleSpan everywhere, we need to switch to CharSequence from String so that Span infromation can be preserved end-to-end. To achieve this, we need to have CharSequence version of String#split. BUG: 16029304 Change-Id: I0dd103185dcf62fb1e25054a374340790e6a4678
* Clean up under the util package.Ken Wakasa2014-07-182-649/+0
| | | | | | | - Move util classes that are unused in AOSP - Remove unused methods Change-Id: Ic97fd313f1e2bafd50609d42aa3a2d090b63eafc
* Merge "Add some virama combinations and tall-a for Myanmar"Tadashi G. Takaoka2014-07-091-6/+38
|\
| * Add some virama combinations and tall-a for MyanmarTadashi G. Takaoka2014-07-091-6/+38
| | | | | | | | | | Bug: 7963632 Change-Id: I478ecdc3b7409ccd8dc729da28ad4816a2eda75e
* | Add Material Light themeTadashi G. Takaoka2014-07-101-22/+31
| | | | | | | | | | Bug: 15782668 Change-Id: Id2ae47cfb2065d73f13701b9c6a041129dfd08ae
* | 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
* Merge "Fix test failur on pre-L devices"Yohei Yukawa2014-07-021-1/+2
|\
| * 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
* | Fix alphabet label of Kannada and TeluguTadashi G. Takaoka2014-07-092-8/+8
|/ | | | | | Bug: 10029252 Bug: 10028759 Change-Id: Iea9cc1b7cafa97280503b0236b005cea57ba2c3d
* Add Telugu keyboardTadashi G. Takaoka2014-07-093-1/+227
| | | | | Bug: 10028759 Change-Id: Id1bf030a9928124ead695aa7bf76db48ca58de4b
* Add Kannada keyboardTadashi G. Takaoka2014-07-093-1/+235
| | | | | Bug: 10029252 Change-Id: Ia03ff886f9e62a2fe228fe59b504b033eead7631
* Merge "Add Malayalam keyboard"Tadashi G. Takaoka2014-07-023-1/+226
|\
| * Add Malayalam keyboardTadashi G. Takaoka2014-07-083-1/+226
| | | | | | | | | | Bug: 10417006 Change-Id: Ieb03fe1f08c85417b5d9ad4d62c8a5bc6d0632bc
* | Merge "Add a compatibility utility class for TextInfo"Yohei Yukawa2014-07-021-0/+85
|\ \ | |/ |/|
| * 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
* | Fix Tamil keyboard unit test for tablet deviceTadashi G. Takaoka2014-07-081-0/+6
|/ | | | | | | This is a follow up change of I226e640fe4. Bug: 9978106 Change-Id: I6b4657a57bc36e01b0b6f8c56c48d31320b90702
* Merge "Add Tamil keyboard"Tadashi G. Takaoka2014-07-023-1/+182
|\
| * Add Tamil keyboardTadashi G. Takaoka2014-07-083-1/+182
| | | | | | | | | | Bug: 9978106 Change-Id: I226e640fe453076063121176121ed5923d1ccfa1
* | Update Bengali keyboard to add a few vowel signsTadashi G. Takaoka2014-07-081-5/+10
|/ | | | | Bug: 10028755 Change-Id: Ia0b8624470c5b0667a3d7267d3cf8d4c937b0b0c
* Fix Armenian comma on phone deviceTadashi G. Takaoka2014-07-081-4/+17
| | | | | Bug: 7963631 Change-Id: Ia28b4020652174daa2731b3eed7636db9639c6b6
* Merge "Ensure each character is coverted by at most one LocaleSpan"Yohei Yukawa2014-07-021-0/+174
|\
| * 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
* | Fix keyboard layout unit testTadashi G. Takaoka2014-07-071-10/+2
| | | | | | | | | | | | | | This is a followup of I065824f3fa. Bug: 6911143 Change-Id: I47de962f9fbcfd8bbcd3af2f8005538322ffb932
* | Move getPrevWordsInfoFromNthPreviousWord to PrevWordsInfoUtils.Keisuke Kuroyanagi2014-07-071-21/+22
|/ | | | | Bug: 14425059 Change-Id: Id37022ac6c1545d6845abfbcdb7ed47f0e250eec
* Merge "Add Bengali keyboard layout"Tadashi G. Takaoka2014-07-023-1/+238
|\
| * Add Bengali keyboard layoutTadashi G. Takaoka2014-07-043-1/+238
| | | | | | | | | | | | | | This is a preliminary keyboard layout. Bug: 10028755 Change-Id: I365fb8e942a60d4b690a4af95fcd35bf73fffbe4
* | Merge "Add compatibility utility class for LocaleSpan"Yohei Yukawa2014-07-021-0/+38
|\ \
| * | 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
* | | Remove dead code to fix test failure due to NoSuchMethodErrorYohei Yukawa2014-07-041-42/+0
|/ / | | | | | | | | | | | | | | | | | | This CL removes following methods from StringUtils, which are no longer used since Id3c262386a7bc7ed75966b1395a50171abe550d3. - #joinCommaSplittableText - #appendToCommaSplittableTextIfNotExists BUG: 16000850 Change-Id: Ibdc9b7e463a19cdfac788b24c0a6322d0c5850c5
* / Additional subtype ID should be independent of OS-versionYohei Yukawa2014-07-045-34/+209
|/ | | | | | | | | | | | | | | | | | | | | This CL consolidates the initialization logic for additional subtypes so that each additional subtypes can have predictable subtype ID regardless of OS version. Previously subtype IDs for additional subtypes are calculated differently depending on the running OS version with hoping it minimizes the risk of compatibility issues. However, it is getting harder and harder to maintain slightly different logic between OSes. Thus we decided to unify the logic into that in KitKat even though it may causes some breaking changes. Note that the actual extra values that are used to instantiate InputMethodSubtype object are still determined on the fly depending on the running OS version. However these actual extra values are no longer used for the subtype ID calculation. BUG: 16000850 Change-Id: Id3c262386a7bc7ed75966b1395a50171abe550d3
* Merge "Fix a unit test"Jean Chalard2014-06-261-4/+8
|\
| * Fix a unit testJean Chalard2014-07-011-4/+8
| | | | | | | | | | | | | | When switching languages, we need to wait until the dictionary is loaded to compute suggestions. Change-Id: I7c32a900b297cd6302bfdc020842581315f3007f
* | [SD7] Actually check for script.Jean Chalard2014-07-011-9/+31
|/ | | | | | | ...also implement the check for Hebrew and Arabic. Bug: 15840116 Change-Id: Ia6433d7d98038ade64c171be4fe4b3f094111fac
* [SD5(2)] Remove useless argsJean Chalard2014-07-011-36/+10
| | | | | Bug: 15840116 Change-Id: I1123426fbd9d420c1be64ccc917a5f870e70e6fa
* Fix testsJean Chalard2014-06-304-46/+40
| | | | Change-Id: I12ba56d021b50c03dc62e3f3c8db3ecada2f6a4b
* Merge "Revert "Move getPrevWordsInfoFromNthPreviousWord to StringUtlis.""Ken Wakasa2014-06-261-21/+21
|\
| * Revert "Move getPrevWordsInfoFromNthPreviousWord to StringUtlis."Ken Wakasa2014-06-271-21/+21
| | | | | | | | | | | | | | This reverts commit ba463c9a66f75e8d00f4658e32b763eb54215231 that broke the dicttool build. Bug: 14425059 Change-Id: Ie1685587104d26e4416624747c97f6087c13388a
* | Merge "Move getPrevWordsInfoFromNthPreviousWord to StringUtlis."Keisuke Kuroyanagi2014-06-261-21/+21
|\|
| * Move getPrevWordsInfoFromNthPreviousWord to StringUtlis.Keisuke Kuroyanagi2014-06-271-21/+21
| | | | | | | | | | Bug: 14425059 Change-Id: I3eb24e840c165e43f68c2a60fccf9974affb57a6
* | Merge "Find multiple previous word information to support n-gram."Keisuke Kuroyanagi2014-06-261-0/+11
|\|
| * Find multiple previous word information to support n-gram.Keisuke Kuroyanagi2014-06-271-0/+11
| | | | | | | | | | | | Bug: 14425059 Change-Id: Ieace636334a9b2a094527341d4fcfc05958296c5
* | Add preliminary subtypes disabled for L-previewTadashi G. Takaoka2014-06-274-7/+7
| | | | | | | | | | | | | | | | Bug: 13966540 Bug: 13779052 Bug: 10028772 Bug: 7963632 Change-Id: Ieec809f2d391e90b1ec547a3a89e929db47a5ed1
* | Add Sinhala keyboard layoutTadashi G. Takaoka2014-06-272-0/+222
|/ | | | | Bug: 6911143 Change-Id: I9ff87ece3e68381c0e9855106e7320c227f09965