aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "Integrate the logic to calculate the proximities"satok2012-03-051-27/+3
|\
| * Integrate the logic to calculate the proximitiessatok2012-03-061-27/+3
| | | | | | | | | | | | Bug: 4343280 Change-Id: I0f6a7e6912ed4abea07c10d266da4c7ccb0dae76
* | Fix a testJean Chalard2012-03-061-0/+4
|/ | | | | | | | | | | | | | | To some extent, the test was wrong here. After space is typed in this case, we wait a small delay before updating the suggestion strip so that we can display bigram predictions without introducing delays. The suggestion strip is not displayed until then. The test was bypassing this by simulating a press on the suggestion strip, but for LatinIME it was not displayed yet, hence the bug. The new code waits for the delay, makes sure the suggestion strip is actually displaying punctuation marks, then press the mark and do the intended test on space. Change-Id: I18f82da1bc0a8e584e9b1bac59ff48823d78ec12
* Merge "Support dividers in MoreKeysKeyboard"Tadashi G. Takaoka2012-03-022-2/+2
|\
| * Support dividers in MoreKeysKeyboardTadashi G. Takaoka2012-03-022-2/+2
| | | | | | | | | | Bug: 6080806 Change-Id: Iacd78c6aab6abf948717d34da7489a79c41316d2
* | Merge "Remove obsolete tests"Tadashi G. Takaoka2012-03-016-663/+0
|\ \
| * | Remove obsolete testsTadashi G. Takaoka2012-03-026-663/+0
| |/ | | | | | | Change-Id: Ibfbe6b39580ae13e4c32fb2ceab7a6c6f3a24ccb
* / Add basic tests for auto-correct indicator.Jean Chalard2012-03-021-0/+119
|/ | | | | Bug: 5975557 Change-Id: I39e782f89813b9d585e369e590d6288e696168a2
* Refactor more keys spec handlingTadashi G. Takaoka2012-03-012-5/+9
| | | | Change-Id: Ibd95eff0725724ea35ad58e1d1ec7ec3d02a6e90
* Merge "Reset previous symbols shifted state when auto switch backed"Tadashi G. Takaoka2012-02-291-0/+2
|\
| * Reset previous symbols shifted state when auto switch backedTadashi G. Takaoka2012-03-011-0/+2
| | | | | | | | | | Bug: 6072517 Change-Id: I00337b3ed5c85df4627e8f5a02465d406c4d9178
* | Add a method to run the handler's messages from the testsJean Chalard2012-02-291-0/+47
|/ | | | | | | | | | | This is really brutal, but after trying many many things I didn't find a better way. It works with the current implementation of MessageQueue. Since this only introduces a utility method it doesn't really do anything, but the functionality it provides will be essential to Bug: 5975557 Change-Id: I81c4113a08f9a8d8a88294d7dd3b6c8c483c8b1d
* Add some unit tests.Jean Chalard2012-02-221-0/+51
| | | | | | | | | | | | | | | - Type "tgis", manually pick "thus", press backspace. Backspace should revert the manual pick. Check "tgis" is the result. - Type "tgis" followed by a period. Period should trigger auto-correct to "this". Check "this" is the result. - Type "tgis" followed by a period, then backspace. Period should trigger auto-correct to "this", and backspace should revert the auto-correction. Check "tgis." is the result. Change-Id: I7e23c8a26fbdbe23336149a05ff01bc51707422e
* Merge "Support fixed order more keys"Tadashi G. Takaoka2012-02-173-406/+3810
|\
| * Support fixed order more keysTadashi G. Takaoka2012-02-173-406/+3810
| | | | | | | | Change-Id: I979f54e8b54243da4d23cfbe08198d2aa495f870
* | Remove unnecessary and harmful KeyboardState.onUpdateShiftState callTadashi G. Takaoka2012-02-163-0/+86
|/ | | | | | | | | This change also cancels double tap and long press timers if other letter key is pressed after shift key. Bug: 5693999 Bug: 6017610 Change-Id: I3b5f3debfb8915fa73a93b409a38afadf24132e9
* Refactor MoreKeysKeyboard.BuilderTadashi G. Takaoka2012-02-101-1136/+1336
| | | | Change-Id: Ib5f58b1143be60c748b81299ccc3b237d2587846
* Merge "Rename mini keyboard to more keys keyboard"Tadashi G. Takaoka2012-02-081-83/+83
|\
| * Rename mini keyboard to more keys keyboardTadashi G. Takaoka2012-02-081-83/+83
| | | | | | | | Change-Id: Ie4c85e8ca5a1f41a420aae5c1cd9c1cb07e237e5
* | Fix the auto-composer to support supplementary charsJean Chalard2012-02-081-2/+19
|/ | | | Change-Id: I61ff218ae2ca4eb443a370e581b677755258670a
* Merge "Add some unit tests for punctuation and special keys"Jean Chalard2012-02-071-0/+65
|\
| * Add some unit tests for punctuation and special keysJean Chalard2012-02-071-0/+65
| | | | | | | | | | Bug: 5962053 Change-Id: I7dd68767be6e724675428910fa2c00290f76e869
* | Convert one letter Key.outputText to Key.codeTadashi G. Takaoka2012-02-071-4/+8
|/ | | | | | | | This change also uses Key.code instead of Key.outputText for the variety of parentheses keys taht introduced by I85998f17. Bug: 5975484 Change-Id: I86879c9942d264edc71e5893325a2f582763d12f
* Fix a race condition that makes tests unstableJean Chalard2012-02-071-0/+14
| | | | Change-Id: Ic19d380eb64855884bc6ded8547c200dd772ffe9
* Merge "Recursively resolve @string/resource reference in key key spec parsing"Tadashi G. Takaoka2012-02-032-0/+15
|\
| * Recursively resolve @string/resource reference in key key spec parsingTadashi G. Takaoka2012-02-032-0/+15
| | | | | | | | Change-Id: I9d172605e90e828e00f7c4c8d49548498aa3b50d
* | Merge "Stop inserting a space after a manually picked word."Jean Chalard2012-02-031-3/+3
|\ \ | |/ |/|
| * Stop inserting a space after a manually picked word.Jean Chalard2012-02-031-3/+3
| | | | | | | | | | Bug: 4994861 Change-Id: I6ae256a94dbaddea4304304779d17025620c5025
* | Merge "Filter out empty entry from more keys CSV"Tadashi G. Takaoka2012-02-031-2/+8
|\ \
| * | Filter out empty entry from more keys CSVTadashi G. Takaoka2012-02-031-2/+8
| |/ | | | | | | Change-Id: I9a26aaa58f0f502b3bfef9de422370d2b0add8d8
* / Fix KeySpecParserTests to read correct icon idTadashi G. Takaoka2012-02-031-13/+17
|/ | | | Change-Id: Ic002e7fbe84a7001874ebd59e6af8ba695d173de
* Merge "Get rid of Key.setIcon(Drawable)"Tadashi G. Takaoka2012-02-021-1/+1
|\
| * Get rid of Key.setIcon(Drawable)Tadashi G. Takaoka2012-02-031-1/+1
| | | | | | | | Change-Id: If6ebbdefcbfd0cc14c72858f9bb44861e8abe079
* | Fix a bug when deleting the last charJean Chalard2012-02-031-0/+9
| | | | | | | | | | | | And unit test Change-Id: Ic4fc3626f8b86e10156d770d41cd6deab5d31f39
* | Fix string iterations in a couple places.Jean Chalard2012-02-031-1/+1
|/ | | | | | | | Seems I didn't get how to iterate on a String correctly >.> Talk about a big bug. Anyway, I think it's working now. Bug: 5955228 Change-Id: I988c900cf2a16c44b9505cfd4f77c7cda7e592f0
* Parse escaped sequence strictly in CSV parserTadashi G. Takaoka2012-02-022-47/+78
| | | | | | | | | | | | | | | This change alters the CSV parser behavior. The parser only resolves * String resource reference. ["@string/res" -> "<content_of_res>"] * Other occurrence of escape sequence will be intact. ["\x" -> "\x"] Before this change, escape sequence in moreKeys string is parsed three times. At first in parsing string resource, next in CSV parser, and at last in KeySpecParser. So that representing single escape character itself is a bit annoying, "\\\\\\\\". Now we can represent single escape character itself in string resource by "\\\\". Change-Id: Ib978e17b779cc82585eed8241ac3857508b14bc7
* Merge "Add unit tests in prevision of magic space removal"Jean Chalard2012-02-021-0/+73
|\
| * Add unit tests in prevision of magic space removalJean Chalard2012-02-021-0/+73
| | | | | | | | | | Bug: 4994861 Change-Id: I114a1117cf19aa6e514ac7342f733175dc5d5df1
* | Move CSV parser to KeySpecParserTadashi G. Takaoka2012-02-021-2/+1
| | | | | | | | Change-Id: I424fb47bc70e9b6aaa5a16ae9b2500d23da75c26
* | Make KeySpecParser and CSV parser code point awareTadashi G. Takaoka2012-02-022-9/+75
|/ | | | | | This change also renames MoreKeySpecParser to KeySpecParser Change-Id: I35733cdbb344f16b57ffa2cfe79055c089b4e409
* Use MoreKeySpecParser to parse puctuations strip resourcesTadashi G. Takaoka2012-02-011-1/+2
| | | | | | | | | | | This change also * Doesn't use Key.getRtlParenthesisCode to get correct parentheses code in RTL context. Intead uses the outputText feature of moreKeys specification. * Move CVS string parser from KeyStyles to Utils. Bug: 5948247 Change-Id: I45752c7d01b4f7d3f3da900b110a2185b336a1f0
* Move long press shift handling from PointerTracker to KeyboardStateTadashi G. Takaoka2012-02-014-35/+73
| | | | | | | | | | | | | This change also * Rename phone shift keyboard to phone symbols keyboard. Use CODE_SWITCH_ALPHA_SYMBOL code to switch between phone and phone symbols keyboard. * Remove phone symbols keyboard from tablet. * Introduces enableLongPress flag of Key.keyActionFlags attribute. * Remove clumsy long press code from PointerTracker. * Remove CODE_CAPSLOCK handling from LatinIME. * Make KeyboardSwitcher to invoke haptic and audio feedback. Change-Id: I00e1f697a10ab5112aec75e36853b96246ff5054
* Merge "Save/restore alphabet shift locked state while rotating even in ↵Tadashi G. Takaoka2012-01-311-7/+51
|\ | | | | | | symbols mode"
| * Save/restore alphabet shift locked state while rotating even in symbols modeTadashi G. Takaoka2012-01-311-7/+51
| | | | | | | | | | Bug: 5730212 Change-Id: Id2342dacd149d6385d61001f880ebcd1883cf0b4
* | Cleanup redundant methods of KeyboardSetTadashi G. Takaoka2012-01-311-9/+8
| | | | | | | | Change-Id: I69fa1b5661695d0323222c2969679f4792b6ef0d
* | Fix double tap shift key enable/disable shift locked modeTadashi G. Takaoka2012-01-313-9/+55
|/ | | | | Bug: 5942452 Change-Id: I2c7b1605bceac2b2f929cd4d97c417ef15c6f754
* Support addtionalMoreKeysTadashi G. Takaoka2012-01-301-0/+210
| | | | | | | This change also removes * Unused more_keys_for_q, w, and p. Change-Id: Idb99e5f6d8c2ad2d28437f42b35b21c282cd181f
* Save and restore previous mode keyboard state at ↵Tadashi G. Takaoka2012-01-272-7/+149
| | | | | | | KeyboardState.toggleAlphabetAndSymbols Bug: 5881820 Change-Id: I9b1718b16c60f27c05ba727724c0189aa5284334
* Add KeyboardState.SwitchActions.setAlphabetShiftLockShiftedTadashi G. Takaoka2012-01-263-10/+17
| | | | Change-Id: I6c49d8eb0a8272840ff03e0940d88a31c3d20bd9
* Add a missing braceJean Chalard2012-01-261-0/+1
| | | | Change-Id: Ia51da6506d78a295b8b70a241208fb81602cf0ea