aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Selections spans should not split surrogate pair.Dan Zivkovic2015-02-041-0/+36
| | | | | | | | | | When committing a span after a revert, the offset logic was such that it split a surrogate unicode pair used to express an emoji. Checking the last character of the span lets us avoid this problem. Fix for bug 19255233. Change-Id: I07d18d9002b5075f7925319dd05962011656c311
* Merge "Nuke Amanatto"Jatin Matani2015-02-032-213/+0
|\
| * Nuke AmanattoJatin Matani2015-02-022-213/+0
| | | | | | | | Change-Id: Ieff2cd37f869dca69abf53ac32a576c2e45cc1e3
* | Create a new KeyboardLayout class to represent the layout.Mohammadinamul Sheik2015-01-301-0/+61
|/ | | | Change-Id: Ia08c8194f460271c831702675cfb687ab9f6678b
* Disable the Burmese keyboard.Dan Zivkovic2015-01-294-543/+1
| | | | | | | | We'll resurrect this effort in the new code base. Bug 16900511. Change-Id: Iae4cd27cb29cb8f991e97cffd88ed59c30d66628
* Change DictionaryFacilitator.java to an interface, create itsMario Tanev2015-01-272-2/+6
| | | | | | | | implementation DictionaryFacilitatorImpl.java and add a java-overridable factory DictionaryFacilitatorProvider.java used to create a DictionaryFacilitator. Change-Id: Id4a58ae31feaa4d12a048a772c8d76ff82fdee45
* Merge "Re-enable new keyboard layouts in Fava."Dan Zivkovic2015-01-219-18/+18
|\
| * Re-enable new keyboard layouts in Fava.Dan Zivkovic2015-01-209-18/+18
| | | | | | | | | | | | This reverts commit da27faeb87dc47656f82ba90ee590872a3993985. Change-Id: I08e2b2510efcafd20743679de4a1ef7f09d9949a
* | Merge "Fix moving the cursor inside composition in lang w/o spaces"Jean Chalard2015-01-161-0/+28
|\ \ | |/ |/|
| * Fix moving the cursor inside composition in lang w/o spacesJean Chalard2014-12-221-0/+28
| | | | | | | | | | | | | | | | Also introduce the cursor move event, which we needed to do anyway Bug: 18827118 Change-Id: I30e994764c095b4423b874dc05d1bbedc0de592f
* | Revert "Enable preliminary subtypes for F-release"Dan Zivkovic2015-01-129-18/+18
|/ | | | | | | | Bug 17743363: Preliminary subtypes should be removed from F-release This reverts commit 45c917e23852861d144eba085304ad5a2e665e98. Change-Id: I5e91a7fd0efdc16e140a91fab6300bd8ba9cd6c7
* Revert "Fix unit test failure due to translation glitch"Tadashi G. Takaoka2014-12-171-10/+2
| | | | | | This reverts commit f8705dd2bdb9aeb61860e6a0125102afc63a351d. Change-Id: I7ddc1eced8109ff0bb50eb8a217db0d276848a1e
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-163-41/+48
| | | | | | | | | | | | | | | | | | | | Attempt to use dictionary facilitor without invoking preference manager. Instead use account from settings only when things are being reset/changed. Discussion forked from ag/591663 Overall, the idea here is to maintain an account information inside dictionary groups. Reset the dictionary groups if account changes (the way we do for locale). Since only user history dictionary is currently affected, the check to reset user history dictionary also includes the check to verify the account. For other things remain the same. SettingsValues holds the current account (and is updated if prefs change due to change in account settings). The updated settings are then propagated to dictionary facilitator via LatinIME#loadSettings. Bug:18104749,18469539 Change-Id: I553e776e7ea125d0fb7a1fe70a4c7eb0b2277fb8
* Make LanguageOnSpacebarHelper as utility classTadashi G. Takaoka2014-12-111-13/+11
| | | | Change-Id: I546f3b1943999a41803222bd14f9ddd23aa87a51
* Revert "Add keyboard margin options to place the keyboard dynamically."Tadashi G. Takaoka2014-12-091-1/+1
| | | | | | | | This reverts commit 8584db1461d286f8eb966c40eb0bc76e8c9df76a. Bug: 18675223 Bug: 18675476 Change-Id: I4e25d87ac261c44b1943df832115f8cca690103a
* Merge "Hook for fetching sync content from UserHistoryDict"Jatin Matani2014-12-082-105/+175
|\
| * Hook for fetching sync content from UserHistoryDictJatin Matani2014-11-262-105/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | Add API to ExpandableBinaryDictionary to dump content from a given dictionary. We use this for dumping data for sync process. Refactored UserHistoryDictionaryTests to scrap out the util methods for testing. These utility methods would be used for testing sync + user dictionary code in LatinIMEGoogleTests Bug:18106539 Change-Id: I357f9192ea1bd69a526d0b620c25616a2e8e9d5b
* | Merge "Refactor KeysCache to UniqueKeysCache"Tadashi G. Takaoka2014-12-081-19/+1
|\ \
| * | Refactor KeysCache to UniqueKeysCacheTadashi G. Takaoka2014-11-271-19/+1
| | | | | | | | | | | | Change-Id: I8e3c4705c705a1c6e05e9112211d7012912d7e41
* | | Add keyboard margin options to place the keyboard dynamically.Andy Wang2014-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | Keyboard location and location can now be set in the debug options section. Change-Id: I87c5a1d679489e12dccf26632c399af28087629e
* | | Fix a misspelled method nameAdrian Velicu2014-12-021-1/+1
|/ / | | | | | | Change-Id: I1151dc1d5db3986a97daf68c1e387dbc2e4610dc
* / Remove unneeded Context argumentTadashi G. Takaoka2014-11-213-3/+3
|/ | | | Change-Id: Ib34931836a617d0dc049fb3c9ae6686374ec8c12
* Fix unit test failure due to translation glitchTadashi G. Takaoka2014-11-201-2/+10
| | | | | | | Once the translation strings are updated, the uni test starts failing. Then this CL should be reverted. Change-Id: I884663feaa53998a98dd0e488ae8e3e6d0ad4ffd
* Make the typed word a SuggestedWordInfoJean Chalard2014-11-201-2/+3
| | | | | | | | That allows to carry the language information in an accurate manner. Bug: 18063142 Change-Id: I0bca8981372ae10648274095b18b26a3686b762b
* Cleanup StringAndJsonUtilsTestsTadashi G. Takaoka2014-11-194-503/+495
| | | | Change-Id: I7d35492c439c9419915251387b0c12e205740586
* Rename StringUtils methods that handle title case manipulationTadashi G. Takaoka2014-11-193-32/+28
| | | | Change-Id: Iee0dd077a0423f110f4f8dad0f04933045baef2a
* Merge "Fix Greek accented upper case letters"Tadashi G. Takaoka2014-11-193-2/+196
|\
| * Fix Greek accented upper case lettersTadashi G. Takaoka2014-11-193-2/+196
| | | | | | | | | | Bug: 18418991 Change-Id: I7b34b126bec70300c83e17bea39e1036de4bf7c2
* | Remove the other deprecated constructor to SuggestedWordsJean Chalard2014-11-172-13/+23
|/ | | | Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
* Merge "Implement UserHistoryDictionary for each user account."Jatin Matani2014-11-141-16/+48
|\
| * Implement UserHistoryDictionary for each user account.Jatin Matani2014-11-131-16/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UserHistoryDictionary currently uses locale to determine the UserHistoryDictionary on the filesystem. With this change we use the account name as well. Thus each UserHistoryDictionary would following the following spec: UserHistoryDictionary.<locale>.<account>.dict. In case no account is selected, we default to the existing spec: UserHistoryDictionary.<locale>.dict Example UserHistoryDictionary.en_US.testaccount@example.com.dict Bug: 18104749 Change-Id: Iab031e166b55cf2ded68275a7e9be22475737b37
* | Remove unused importTadashi G. Takaoka2014-11-121-1/+0
| | | | | | | | Change-Id: I9e2a79534673b2c6587f57fad663b85d971658b9
* | Update SubtypeLocaleUtilsTests to test Serbian Latin in SeribianTadashi G. Takaoka2014-11-121-8/+6
| | | | | | | | Change-Id: I80399b311ff5ed35f246e7e3d06d7386f03a0684
* | Merge "Move logic to determine spacebar text to LanguageOnSpacebarHelper"Tadashi G. Takaoka2014-11-101-8/+4
|\ \
| * | Move logic to determine spacebar text to LanguageOnSpacebarHelperTadashi G. Takaoka2014-11-081-8/+4
| | | | | | | | | | | | Change-Id: Ib9dbbb4bd4e35c15fd752c364d3012e8a7da2410
* | | Just tiny cosmetic fixes in makefileKen Wakasa2014-11-111-1/+1
|/ / | | | | | | Change-Id: I470ba8a03d70aa520311c50f5d21979f476798b7
* | Add more test cases to LanguageOnSpacebarHelperTestsTadashi G. Takaoka2014-11-081-99/+149
| | | | | | | | Change-Id: I54a4b89db84bbbd6bc7f5886f27b8bb6429ca8db
* | Rename unit testTadashi G. Takaoka2014-11-081-3/+6
|/ | | | Change-Id: I0d18562a0b036a3e76a6df989a143bb05f0ed833
* Merge "Move current subtype management code to RichInputMethodManager"Tadashi G. Takaoka2014-11-071-1/+1
|\
| * Move current subtype management code to RichInputMethodManagerTadashi G. Takaoka2014-11-061-1/+1
| | | | | | | | Change-Id: I82d5a17a5ec96f26047d29e79f3f28850fc5b3bb
* | Move util classes under commonJean Chalard2014-11-0711-10/+14
|/ | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Fix the build : move offdevice tests in an off device fileJean Chalard2014-11-061-61/+0
| | | | | | Also fix a failing test Change-Id: I280aa6b5836c7332da08a88f1258546edeb25a37
* Add a header command to dicttool.Jean Chalard2014-11-061-7/+70
| | | | | | | | | | | | This will allow to greatly improve the performance of the metadata-generating files, as they won't have to wait for the info command to read the entire dictionary when the header is all we need. Also add tests, and while we're at it, use the seed as intended to enable reproducible tests. Change-Id: I0ba79ef62f0292b23e63aed57ff565bb102281a2
* Add a *FAST* dictionary header reader.Jean Chalard2014-11-061-0/+42
| | | | | | | | | | | It's still unused as of this change but the next change will use it As a reference point, generating the metadata for Bayo takes 3'02" on my machine with the info command; it's down to 16" if made to use this instead. The gains increases with the number of dictionaries obviously. Change-Id: I0eeea2d8f81bb74b0d1570af658e91b56f7c2b79
* Fix missing ZWNJ key of BengaliAkhhor keyboardTadashi G. Takaoka2014-11-041-0/+5
| | | | | | This CL also fixes the wrong script of Bengali Akkhor. Change-Id: Id4af2ea160b4ef3cfd40ffc5984354bc60f0b7b7
* Update v4 format version from 402 to 403.Keisuke Kuroyanagi2014-10-312-83/+42
| | | | | | | | | | | | | | | | | | | | | | Without personalization: Total words: 1134774, Success Num: 899230, Success Percentage: 79.243% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1871, Bad Failure Percentage: 0.165% Failures, with auto-correction (F-C): 29084, F-C Percentage: 2.563% Max Keystrokes: 6072959, Min Keystrokes: 4436090, Keystroke Saving Percentage:26.953% Before: Total words: 1134646, Success Num: 925194, Success Percentage: 81.540% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1316, Bad Failure Percentage: 0.116% Failures, with auto-correction (F-C): 28288, F-C Percentage: 2.493% Max Keystrokes: 6072831, Min Keystrokes: 3946188, Keystroke Saving Percentage:35.019% After Total words: 1134659, Success Num: 944746, Success Percentage: 83.263% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1258, Bad Failure Percentage: 0.111% Failures, with auto-correction (F-C): 28016, F-C Percentage: 2.469% Max Keystrokes: 6072844, Min Keystrokes: 3387333, Keystroke Saving Percentage:44.222% Change-Id: I3af42ec37a11847c0429c28616e726f6a339247f
* Merge "Add documentation for CollectionUtils#arrayAsList"Ken Wakasa2014-10-311-1/+32
|\
| * Add documentation for CollectionUtils#arrayAsListDavid Faden2014-10-311-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (This is a cherrypick of http://ag/576739) Also, modify the IllegalArgumentException to capture the values passed for start, end, and array.length to make debugging easier in the unlikely event that it is thrown. Add corresponding tests for the exceptions. Tested: tapas LatinImeGoogle LatinImeGoogleTests userdebug make -j30 && \ adb install -r \ out/target/product/generic/data/app/LatinImeGoogleTests/LatinImeGoogleTests.apk && \ adb install -r \ out/target/product/generic/system/app/LatinImeGoogle/LatinImeGoogle.apk && \ adb shell am instrument -w -e class \ com.android.inputmethod.latin.utils.CollectionUtilsTests \ com.google.android.inputmethod.latin.tests/android.support.test.runner.AndroidJUnitRunner Change-Id: I0c579ca4f4f2a9b2575aa6f8fa75e3ee4a21cf8a
* | Update unit tests for new static dict version.Adrian Velicu2014-10-313-27/+32
| | | | | | | | | | Bug: 11031090 Change-Id: Ifd7b241f1a0a30678ca7de97cc6e96927a9b5c8f
* | Using "blacklist" flag as "possibly offensive"Adrian Velicu2014-10-312-2/+4
|/ | | | | Bug: 11031090 Change-Id: I5cc0d006ab003656498eb82b0875eb9c051d331e