aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Make PrevWordsInfo have multiple words' information."Keisuke Kuroyanagi2014-06-245-19/+23
|\
| * Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-255-19/+23
| | | | | | | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* | Make Beginning-of-Sentence prediction require two exposures.Keisuke Kuroyanagi2014-06-251-4/+10
| | | | | | | | | | Bug: 15868192 Change-Id: I4b577ad11c992d872d6f902fd50527d9ca5cc1ba
* | Fix: unit tests by clearing personalized dictsKeisuke Kuroyanagi2014-06-251-0/+2
| | | | | | | | | | Bug: 14119293 Change-Id: I61cc05fb09342103f453ba83709c6be68d2f695e
* | Merge "Support migration/dump of Beginning-of-Sentence entries."Keisuke Kuroyanagi2014-06-242-12/+28
|\ \
| * | Support migration/dump of Beginning-of-Sentence entries.Keisuke Kuroyanagi2014-06-242-12/+28
| |/ | | | | | | | | Bug: 14119293 Change-Id: Ie975138f819794d5c34a7a547be5a6117050e084
* / Add a test for Armenian periods.Jean Chalard2014-06-182-19/+26
|/ | | | | Bug: 11463389 Change-Id: Ic1a612bd6b2693369a1688e6a2273cff26fbe6d1
* Merge "Add a method to update contextual dictionary."Keisuke Kuroyanagi2014-06-101-0/+75
|\
| * Add a method to update contextual dictionary.Keisuke Kuroyanagi2014-06-161-0/+75
| | | | | | | | | | Bug: 14161647 Change-Id: I2111f841c94e31d62b670da4236fc738df03a708
* | Update unit test for beginning-of-sentence.Keisuke Kuroyanagi2014-06-121-11/+7
|/ | | | | Bug: 14119293 Change-Id: I594a1ca1096f0c12c678dd30eb75de905e55c5bb
* Special case periods in the spell checkerJean Chalard2014-06-101-1/+18
| | | | | | | | Special case <valid word>.<valid word> to send as a suggestion the same string where the periods is replaced by a space. Bug: 10780091 Change-Id: I43c94675977f9ab5d7ee5671486cb742b39f3974
* Remove a useless methodJean Chalard2014-06-101-14/+0
| | | | Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1
* Remove mPrevWordsInfoJean Chalard2014-06-101-35/+19
| | | | | | | | This member has outlived its usefulness. It's not clear now that it makes things really faster, but it does bring a lot of complexity that we can avoid by removing it. Change-Id: Ifbc8094a45b56b958fe165b1930f4cc358a97721
* Merge "Make keyboard theme test robust"Tadashi G. Takaoka2014-06-091-11/+15
|\
| * Make keyboard theme test robustTadashi G. Takaoka2014-06-091-11/+15
| | | | | | | | Change-Id: I2547c8af6fa73e646f697cb4450140859d87625e
* | Check isInDictionary() before the distracter test.Keisuke Kuroyanagi2014-06-091-3/+3
| | | | | | | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I7ce2c09ebbef6ca8c056807c2a35f2f987fd436e
* | Add Dictionary.isInDictionary().Keisuke Kuroyanagi2014-06-091-4/+4
|/ | | | | | Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
* Make Distracter filter use getMaxFrequencyOfExactMatches().Keisuke Kuroyanagi2014-06-061-11/+54
| | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5c23fbea2851f891f76f19d9da2cb70ae964569b
* Implement getMaxProbabilityOfExactMatches().Keisuke Kuroyanagi2014-06-061-0/+29
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
* Remove unused supportsSwitchingToShortcutIme attributeTadashi G. Takaoka2014-06-062-7/+7
| | | | Change-Id: I51c5247ac925a158facb79057f704b763b903552
* Add action key test for Lxx themeTadashi G. Takaoka2014-06-065-13/+144
| | | | Change-Id: I849cec7deb5607e8ce8fb25c1f903f15328fb611
* Merge "Refactoring"Jean Chalard2014-06-041-13/+13
|\
| * RefactoringJean Chalard2014-06-041-13/+13
| | | | | | | | | | | | | | | | | | Rename `initialize' to `start' and `deactivate' to `stop' for ease of understanding. It's completely bizarre that you can "deactivate" a recapitalization and that will just restart a new one the next time you press shift. Start and stop are easier to understand. Change-Id: I455175aebfcfe11198c6c61bf2c6b19efc3f82df
* | Reorder keys around the spacebarTadashi G. Takaoka2014-06-0412-29/+49
|/ | | | | | | | | | | | | | This CL reorders keys around the spacebar. - On phone's symbols and symbols shift layout, the comma key is moved to the left of the spacebar to aligned with main layout. - On tablet's layout, the comma key is moved to the left of the spacebar on all layout to aligned with the same layout of phone's. Also the comma key has "settings" as more keys. - In Arabic and Perisan, the comma key of tablet already has some more keys This CL remove "/" and add "settings" instead. Bug: 15281451 Change-Id: I6e0e75e4d4abfb1f356e7499be91424c7c57c58b
* Make prevWord = null if the next word starts from a connector.Keisuke Kuroyanagi2014-05-301-0/+4
| | | | | | | | | | This fixes PunctuationTests# testAutoCorrectionWithSingleQuotesAround. Bug: 14119293 Bug: 15334309 Change-Id: I604c21a21e89a5fc431fd56ab7b6ad03f4736b01
* Fix testsJean Chalard2014-05-291-3/+3
| | | | | | | | | | | DEBUG in LatinIME has been changed by Ie52007dc to mean both DebugSettings.PREF_DEBUG_MODE and Settings.PREF_KEY_IS_INTERNAL instead of just DEBUG_MODE as used to be the case. Tests depend on the debug mode to test many things and they make sure they run in debug mode or they fail. This has tests understand the change in policy. Change-Id: Ie9f29e6a1d85e19704c8940d3fcf97c13c3dbaa6
* Merge "Remove PrioritizedSerialExecutor."Keisuke Kuroyanagi2014-05-292-106/+57
|\
| * Remove PrioritizedSerialExecutor.Keisuke Kuroyanagi2014-05-292-106/+57
| | | | | | | | | | Bug: 15320560 Change-Id: Icb88a96ebd685da1d2cba7b07889a2751c603a2e
* | Fix: too many calls to getSuggestedWordsForTypingInputJean Chalard2014-05-291-0/+21
|/ | | | | | | | | | | This reverts commit d941ea18 and builds on it to fix the behavior of the broken cases. It also fixes a small, related bug that probably has existed for a very long time: predictions not displayed when cancelling double-space-to-period. Bug: 15148015 Change-Id: I1f9358f8b6f5804f831643611576be347e83999d
* Merge "Add PersonalizationDictionaryTests."Keisuke Kuroyanagi2014-05-291-0/+117
|\
| * Add PersonalizationDictionaryTests.Keisuke Kuroyanagi2014-05-291-0/+117
| | | | | | | | | | Bug: 11778342 Change-Id: Ice88f439ae11714e5ec9dd3b7616d0c2d59ea812
* | Merge "Remove researcher logger"Tadashi G. Takaoka2014-05-291-171/+0
|\ \
| * | Remove researcher loggerTadashi G. Takaoka2014-05-291-171/+0
| |/ | | | | | | | | | | | | This CL must be checked in together with I5cc76807e3. Bug: 15318007 Change-Id: I61423c3377ddc299fb332e742d6626c2e47145bb
* / Disable a test that fails for an unknown reasonJean Chalard2014-05-291-1/+1
|/ | | | | | | | It works when tested on the actual device, and on some versions of the platform. Until we know what's wrong with resource loading when running under the test harness, we need to disable this test. Change-Id: I2d7ed9db940b9b73739de8325665bdafb6af58cb
* Merge "Stop directly checking SuggestedWordInfo.mKind"Keisuke Kuroyanagi2014-05-281-4/+4
|\
| * Stop directly checking SuggestedWordInfo.mKindKeisuke Kuroyanagi2014-05-281-4/+4
| | | | | | | | | | | | Bug: 15298959 Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
* | Run test only on KitKat devicesJean Chalard2014-05-281-10/+19
|/ | | | | | | | | This won't work on < KK because it needs the armenian locale to be present on the device. I don't know why, but when under test, apps don't seem to be able to resolve resources for locales not supported by the system. Change-Id: Ie0f4fc30954978061cae751024bab5569a2ab2eb
* Merge "Return whether the dynamic dict operation was success."Keisuke Kuroyanagi2014-05-271-9/+30
|\
| * Return whether the dynamic dict operation was success.Keisuke Kuroyanagi2014-05-271-9/+30
| | | | | | | | | | Bug: 12184250 Change-Id: Iee7e00c1e84c95551a077f4dd023c0a9b9ac9466
* | Fix unit test build.Keisuke Kuroyanagi2014-05-271-3/+4
|/ | | | Change-Id: Id2c92c5035d7b357fa66c7ca671b72a1a33ebf3b
* Stop filtering out when perfect freq > top non-perfect freq.Keisuke Kuroyanagi2014-05-271-2/+27
| | | | | Bug: 13142176 Change-Id: I0290df918a5bd5018bf55231dc462d5e797155c6
* Apply distracter filter for UserHistoryDictionary.Keisuke Kuroyanagi2014-05-271-2/+5
| | | | | Bug: 13142176 Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978
* Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-261-14/+11
| | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-2427-173/+127
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Merge "Update RichInputConnectionAndTextRangeTests."Keisuke Kuroyanagi2014-05-231-9/+15
|\
| * Update RichInputConnectionAndTextRangeTests.Keisuke Kuroyanagi2014-05-231-9/+15
| | | | | | | | | | Bug: 14119293 Change-Id: I952daaa8e938c67bd9e0e699d71a77a3b0bf8b0d
* | Merge "Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE."Keisuke Kuroyanagi2014-05-233-4/+4
|\|
| * Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE.Keisuke Kuroyanagi2014-05-233-4/+4
| | | | | | | | | | Bug: 14119293 Change-Id: I5020e5f0aa64bc3e97b3a3c2c07a60c8b765ed64
* | Version up dynamic dict format from 401 to 402.Keisuke Kuroyanagi2014-05-232-3/+3
|/ | | | Change-Id: Ibea36af905ade773ae3db3a5456f7b5a0ad7d220
* Extend jni methods and enable Beginning-of-Sentence.Keisuke Kuroyanagi2014-05-233-21/+127
| | | | | Bug: 14119293 Change-Id: I78fc877367dd0d6240eeacb750b6d2d0b93cba83