aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use Locale.ROOT for locale neutral operationsTadashi G. Takaoka2013-05-241-7/+7
| | | | | Bug: 9112465 Change-Id: I6cd63007287b5a1a57cfbabff35d53f66fc5620e
* Remove unnecessary methods of KeyboardSwitcherTadashi G. Takaoka2013-05-221-5/+0
| | | | Change-Id: Idd3647bb1a1d40df8bb89eda715d45427a58d0cd
* Don't process recorrection or resets when not shownJean Chalard2013-05-152-2/+26
| | | | | Bug: 8954116 Change-Id: Ica27dbfc570643bb81e6cdf34cc7c796ea080d71
* Back to previous keyboard layout by canceling sliding inputTadashi G. Takaoka2013-05-143-39/+288
| | | | | Bug: 8915171 Change-Id: Iabdeb7920f67f89246087c3ee06240406ecfbc3d
* Fix PointerTrackerQueue.releaseAllPointerOlderThanTadashi G. Takaoka2013-05-141-140/+141
| | | | Change-Id: If353869720895ee5355079c15c724132762dd70c
* Support regular expression for condition patternTadashi G. Takaoka2013-05-131-0/+36
| | | | | Bug: 8556975 Change-Id: Iffc53d6a40dd77860434c5f7f4f59af5cd1ba92b
* Support multiple condition for getDeviceOverrideValueTadashi G. Takaoka2013-05-132-60/+141
| | | | | Bug: 8556975 Change-Id: I29d3a305b6ac3d8e3620c6d8592d85047d62bf48
* Refactor StringUtils.findPrefixedString to findValueOfKeyTadashi G. Takaoka2013-05-101-0/+59
| | | | | Bug: 8556975 Change-Id: I275c99db8a0d10594a5a8c0c27ebc1a87495c307
* Save automatic shift state while orientation changingTadashi G. Takaoka2013-05-021-0/+11
| | | | | Bug: 8734294 Change-Id: Ib2bc262aacedf786a318c2fe1bd4420a21e7d847
* Mark some unit tests as @MediumTestTadashi G. Takaoka2013-05-023-6/+6
| | | | Change-Id: Iaa0a691903526f57510a0305c02cc42cf8d90f9e
* Fix buildSatoshi Kataoka2013-05-011-0/+6
| | | | Change-Id: Ib9373b26b04b0f4789b3cd6a7af64e4bcd2c4b9c
* Fix Google spell checker testsSatoshi Kataoka2013-05-016-74/+84
| | | | | | Bug: 8613307 Change-Id: Ief04a4abb6dc1f79660a2e419c9c5e271802b5a1
* Don't triger onPress and startLongPressTimer when gesture is canceledTadashi G. Takaoka2013-04-221-1/+1
| | | | | Bug: 8650846 Change-Id: Ice5ef07d6833422906b0b756206e097f75d1f2db
* Don't insert automatic spaces when text looks like a URLJean Chalard2013-04-162-0/+27
| | | | | | | | | | | | | | | This is about as ad-hoc as it gets, but then again, what we want is probably as ad-hoc as it gets. All URL boxes I know of double as search bars, and not adding automatic spaces there sucks (e.g. in Chrome URL bar). And in other boxes actually you don't want to add a space if it looks like a URL. QSB isn't even a search box, and it behaves like this. So I think this is actually the right answer to the problem. Bug: 7062925 Change-Id: Ib09472b34644fd5bf2dc84bb97cedeeba28bcd02
* Match the keyboard state to the recapitalize state.Jean Chalard2013-04-161-2/+3
| | | | | Bug: 7657025 Change-Id: I2f8fe7fc4596a498322ba5ccabbd0c18a2bc36cf
* Clean up RecapitalizeStatusJean Chalard2013-04-161-27/+15
| | | | Change-Id: Ib4d002f90cd3a0e9ad4c04b883b0c1f05ada3ccf
* Remove a useless functionJean Chalard2013-04-151-18/+0
| | | | | Bug: 8583091 Change-Id: I9195d68e44e9a282e25ccd2978d7b4088f600170
* Merge "Have Latin IME re-capitalize a selected string"Jean Chalard2013-04-151-0/+203
|\
| * Have Latin IME re-capitalize a selected stringJean Chalard2013-04-151-0/+203
| | | | | | | | | | | | | | | | | | | | Upon pressing Shift, if there is currently a selected string, have Latin IME change its capitalization. This does not yet have the keyboard mode follow the mode - the change is complicated enough as is. Bug: 7657025 Change-Id: I54fe8485f44e04efd72c71ac9feee5ce21ba06f2
* | If there are no suggestion span, recompute suggestions.Jean Chalard2013-04-151-0/+60
|/ | | | | Bug: 8084810 Change-Id: I1743c09c43ca6835bb2f607684b037bf17d36335
* Clean up tests and increase speedJean Chalard2013-04-151-5/+6
| | | | | | | | Conservatively reduce the number of unigrams to test from 1000 to 100. Bug: 8583091 Change-Id: I48621ec44ff5f0590640d7c6b174ab5a6d267aaf
* Fix a typoJean Chalard2013-04-151-1/+1
| | | | Change-Id: I27b925be030e9e6ee8ae49dc13f39accec996d7e
* Merge "Fix Binary dict tests"Jean Chalard2013-04-151-1/+4
|\
| * Fix Binary dict testsJean Chalard2013-04-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two problems here. The first one is the tests would send an invalid unicode character. Although we could want dicttool to handle this more gracefully, it's fine for now. The second problem is much more serious. If a node has more than 128 children, then the java code will crash trying to read the dictionary back because of a bug that this change fixes. In theory, it's possible that happens when we try to load the user history dictionary back from the disk - native code is not affected so there is no other point that may cause a problem. In the practice, that means you'd need to have 129 words with a common prefix (including empty string) but all different after this. It's almost impossible with Google Keyboard since there are only so many keys on the keyboard that you can make a word out of, and then again you'd have to do it repeatedly until it actually enters the user history dictionary, wait for it to get saved on the disk. The bad news is, if you manage to get this far, the keyboard will crash every time and won't be able to get up until you clear data for the package. The good news is, the dictionary itself is not corrupted and only the reading code is wrong. So updating to a newer version would actually even recover from this situation. All in all, considering how almost-impossible this is to trigger, I don't think even a single user actually did hit this bug. Bug: 8583091 Change-Id: Iabb2a7f47cbd9ed3193d2a3487318d280753e071
* | Tighten unit test condition of MoreKeysKeyboardBuilderTadashi G. Takaoka2013-04-152-8/+8
| | | | | | | | | | Bug: 8601979 Change-Id: Icf584f3b35adce69cc3dfc46f3aacfef05e5dd2a
* | Fix failing testsJean Chalard2013-04-121-7/+8
|/ | | | | | | | RichInputConnection#getWordRangeAtCursor may now returning either a SpannableString or a String. We can't test that with String#equals(), but TextUtils#equals() does the job for us. Change-Id: I59ebe54207e92f4d90b49476b64f1e12fd4929cb
* Remove voodoo magic.Jean Chalard2013-04-121-32/+9
| | | | | | | There was a much, much simpler way of achieving the same thing. Bug: 8583091 Change-Id: I8882f389312caad3b17335672892a31d30cd00bc
* Add some utility functions.Jean Chalard2013-04-111-0/+79
| | | | | Bug: 7657025 Change-Id: I4889721b5348c77ed56c5157557e9988dea48a02
* Fix a faulty testJean Chalard2013-04-101-1/+1
| | | | Change-Id: I5c03cea41e9b6e936e8f93b7d756f0fc9520002d
* Fix a bug where autocorrection status would be wrong.Jean Chalard2013-04-102-10/+30
| | | | Change-Id: Ic220129dc59f585164dbf63591cd1c96de17fe6f
* Separate StringUtils.capitalizeFirstCharacterTadashi G. Takaoka2013-04-102-4/+3
| | | | | Bug: 8582061 Change-Id: Iac8f65defdd92d7df533bdf0e2937ad897d96363
* Merge "Offer to add any OOV typed word to the dictionary."Jean Chalard2013-04-091-1/+3
|\
| * Offer to add any OOV typed word to the dictionary.Jean Chalard2013-04-091-1/+3
| | | | | | | | | | | | | | That includes gestures, which used not to work. Bug: 8532637 Change-Id: I04606565d7000faadf954c4a806c39d4d162a2c1
* | Fix bugs and add testsJean Chalard2013-04-051-0/+46
|/ | | | Change-Id: I6b56b91ace57f4a49584b5dceb71b145859f839e
* Change which backdoor the tests goes throughJean Chalard2013-04-021-8/+12
| | | | | | | | Yes that's even harder to understand. The old technique doesn't work any more, so I have to drill a new hole in this class. Bug: 8303100 Change-Id: I70a41b5094dab2bb56a17eaf55b2a2df853e4bb6
* Fix a test.Jean Chalard2013-04-021-3/+3
| | | | | | | | | | | | | | The test was not passing the correct input type when it was creating the text view, resulting in mismatched types seen from TextView and LatinIME with some bad results. The test would even go as far as restoring it after it's been fixed by TextView. Additionally, since we want to enter litteral carriage returns, the input type should be MULTI_LINE. If not, TextView does not allow carriage returns. Bug: 8302690 Change-Id: I1c20bcf6ca554ad981048ec181e19c649f6c742e
* Interpolate gesture preview trailsTadashi G. Takaoka2013-04-011-0/+203
| | | | | | | There is the boolean flag to kill interpolation. Bug: 7167303 Change-Id: Iac7e4cb88cf437c2ee77c003c9cddb92416025c7
* Fix two nasty bugs with surrogate pairs.Jean Chalard2013-04-011-14/+14
| | | | | | | | | | | | | | | | The important bug is in findWordInTree. The problem, which is not obvious, is that we were calling codePointAt() with the code point index in the string, instead of the char index. The other bug this change fixes was harmless in the practice, because it's in the iteration which is only used for debug and pretty printing purposes. It's very similar in that it would substract a length in code point to a length in chars and truncate a StringBuilder at that length, so it would fail in a quite similar manner. This changes the meaning of the "length" attribute in Position, but it's clearer this way anyway. Bug: 8450145 Change-Id: If396f883a9e6449de39351553ba83f5be5bd30f0
* Remove reference to string.english_ime_nameTadashi G. Takaoka2013-03-221-3/+5
| | | | | Bug: 6789579 Change-Id: I062c076f0ca16cc39274e20955aa83d667b7380d
* Separate suggestions from SuggestionViewJean Chalard2013-02-281-9/+16
| | | | | | | This is a cleanup change, but it's also necessary for Bug: 8152758 Change-Id: Id6ba06243f573fdb856f87d1df03277c9f2e5e71
* Fix failed unit test due to resource string changeTadashi G. Takaoka2013-02-261-3/+3
| | | | Change-Id: Ie7acdf6895a9769eb43ea8a1c70c0d13b32ed349
* Merge "Separate caps mode related utils to CapsModeUtils"Tadashi G. Takaoka2013-02-1224-250/+273
|\
| * Separate caps mode related utils to CapsModeUtilsTadashi G. Takaoka2013-02-1224-250/+273
| | | | | | | | Change-Id: I32700c434b296bb3fd39e040c2dda1fe90667daf
* | Merge "Move parseCsvString to StringUtils"Tadashi G. Takaoka2013-02-121-1/+3
|\|
| * Move parseCsvString to StringUtilsTadashi G. Takaoka2013-02-121-1/+3
| | | | | | | | Change-Id: I602f33991ca57b6057ec2defe01573552b322857
* | CleanupsJean Chalard2013-02-112-16/+16
|/ | | | | | Follow-up to Idc6f419a Change-Id: I4aae8f4e19f27a0a309879dc19af6e40906d58c5
* Follow up to If933fcad56d81dcc956b6114727e01be9686ee9cKen Wakasa2013-02-101-1/+1
| | | | | Bug: 7405756 Change-Id: I415936db98296cd1d2fe6e4a590375061935ba8a
* Fix a testJean Chalard2013-02-061-1/+1
| | | | | | | | The test is wrong - it checks a struct that contains a string instead of checking the string itself. Bug: 8149360 Change-Id: Ifb93d61f25a64a64e1c1e689de792f27994487b6
* Remove android.test.runner from tests appTadashi G. Takaoka2013-02-051-2/+2
| | | | | Bug: 8132168 Change-Id: I7ed84de27a4436539fca0ca4f0efb5e6448480cb
* Add unit tests tagsTadashi G. Takaoka2013-02-0427-27/+70
| | | | | Bug: 8131968 Change-Id: Ibca5a0d63a492134b8af401a62ca3a5748e003cf