aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Call KeyboardState.onUpdateShiftState from onCodeInput if code is a normal ↵Tadashi G. Takaoka2012-01-101-6/+7
| | | | | | | | letter This will be helpful to write unit test code. Change-Id: Ib61cc46ac547084e0dc9ecd3a50814fecf08ace2
* Move KeyboardBuilder and KeyboardParams classes into Keyboard classTadashi G. Takaoka2011-12-181-4/+2
| | | | | | | This change also moves XmlParseUtils to com.android.inputmethod.latin package. Bug: 5778201 Change-Id: I7d9faa344460753ce178ad4048e0fadb65c75614
* Remove LatinKeyboard classTadashi G. Takaoka2011-12-181-4/+8
| | | | Change-Id: I68c667b00dadf2ed9f1c62fb7da37d2cf499cd81
* Move KeyboardSwitcher.getKeyboard to KeyboardSetTadashi G. Takaoka2011-12-162-5/+6
| | | | | | | | This change also gets rid of XML id from KeyboardId. Bug: 5002108 Bug: 5679585 Change-Id: I7086c7da3c01ba4ade7f77ee5cc731310da46404
* Fix broken buildTadashi G. Takaoka2011-12-161-1/+2
| | | | Change-Id: I84c20db21e13422817cfb85af522feaa5295626a
* Remove EditorInfo from KeyboardIdTadashi G. Takaoka2011-12-141-2/+1
| | | | Change-Id: I70919ff30622afa1d8c29ca45589fa617f2c1f0e
* Cleanup settings key related stuffTadashi G. Takaoka2011-12-141-1/+1
| | | | Change-Id: Ie0d1204e94fcdf9d578974256bf2ae3e87797f13
* Utilize KeyboardSet XML definitionsTadashi G. Takaoka2011-12-141-4/+3
| | | | | | | | | This change introduces KeyboardSet and SubKeyboard XML definitions to represent a set of keyboard layouts. Bug: 5002108 Bug: 5679585 Change-Id: Ib6c8d5936187381bb6725c9fe574e93871c01a86
* Add unit test of KeyboardStateTadashi G. Takaoka2011-12-121-0/+260
| | | | | Bug: 5708602 Change-Id: I1a8a9f4320948bb500a96df8773b0bfa1a1d4167
* Stop a flag from escaping.Jean Chalard2011-12-092-12/+15
| | | | | | | The ultimate intent is to close it up in the settings, as it does not change while typing, only when the keyboard is open again. Change-Id: I12ff56e7482c1584877fe5531473bf03e95a60f6
* Get rid of usage of key indexTadashi G. Takaoka2011-11-291-1/+0
| | | | Change-Id: I7596ce3ae52fde436d06c2dd95ae873c7aa5ef7f
* Resume suggestion when backspacing to the end of a wordJean Chalard2011-11-291-18/+1
| | | | | Bug: 5515381 Change-Id: I26fea896feaf2e9716c7ae3d4f2630360f23ac50
* Fix a bug with the whitelistJean Chalard2011-10-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This bug would kill the case where the whitelist contains a word to be autocorrected to an uppercased version of itself, and the user would enter the uppercase version. In this case, this bug would cause the typed word to be killed off the list of candidates, and possibly autocorrected to the *next* candidate. When the whitelist checks whether this the typed word is a candidate for whitelisting, this change has it check whether the whitelisting results in the typed word before returning. Hence, it can keep the case-insensitive behavior of the whitelist. Coincidentally, this change renames the method used to do this, because it does not comply with the general contract of Dictionary. This happens to be in the way of another upcoming change. Bug: 5420371 Change-Id: Ifb305271acc5f171adf9b18c762ae7975b14be0a
* Make the whitelist an instanciable class.Jean Chalard2011-10-064-9/+14
| | | | | | | | This goes together with I6b8628b9acc32449e4147a2a754b222fbb76c754 or it will break the build Bug: 5402436 Change-Id: I07c6266b713773a8de80bb22afdd4c566261f78a
* Remove code related to AutoTextsatok2011-10-032-10/+9
| | | | | | Bug: 5245751 Change-Id: Ic02f951e8e1dbde9d8964d2c16e4928fb374ca41
* Rename PopupCharactersParser to MoreKeySpecParserTadashi G. Takaoka2011-08-311-9/+9
| | | | | | Also renames PopupPanel to MoreKeysPanel Change-Id: I37209a5a8fe7dbba1eef03e3be88ba5253653926
* Move locale-related utility methods to LocaleUtils.Jean Chalard2011-08-291-2/+2
| | | | Change-Id: I7e9e6e5bc4486d8618d0213b112308c3d305c15e
* Refactor and rename popup mini keyoard related classesTadashi G. Takaoka2011-08-231-2/+2
| | | | Change-Id: Ia92ec4612090b03829db9a87ce68d701db6e15bc
* Code cleanupKen Wakasa2011-08-161-134/+0
| | | | Change-Id: I7df8c813038adec750eda260740bcc8a4da41acf
* Create a way to pass the proximity info to the dictionaryJean Chalard2011-08-042-10/+17
| | | | | | This is a preparative change for inserting the spell checker. Change-Id: Ie441879cac4f67078ec27a95f1fcbbf3ef373df7
* Cleanup Keyboard related code and rename some classesTadashi G. Takaoka2011-08-022-83/+81
| | | | | | | This is a follow up change of I90ffbde0 Bug: 5023981 Change-Id: I3a6b862d05f5f907dee954cd6d6fee983b20ab5e
* Make Keyboard object immutable except shift stateTadashi G. Takaoka2011-08-011-3/+3
| | | | | | | This is the first step to implement suggestions pane as mini keyboard. Bug: 5023981 Change-Id: I90ffbde0fda19b4be68add449310997b56bf6904
* Add orientation to regression testsTadashi G. Takaoka2011-08-014-10/+25
| | | | Change-Id: Iaf2cb7841c4622eedeb4bf880d55988bfa61e823
* Remove enableShiftLock attribute from KeyboardIdTadashi G. Takaoka2011-07-281-1/+1
| | | | | | | This change is a follow up of Ia72de236. Bug: 4311428 Change-Id: I0ad0f1fb93545ceb40df8dffe377240b020c2602
* Remove swipe gestureTadashi G. Takaoka2011-07-081-154/+0
| | | | | Bug: 4971680 Change-Id: Ifff27f3bd3dd26417bfcb7072aaba074025b1bb7
* Move key hysteresis distance parameter to KeyDetector classTadashi G. Takaoka2011-07-041-2/+2
| | | | | Bug: 4768084 Change-Id: Ib8771afd7363a4a5590b2b4a586e3014c026be34
* Remove top padding parameter from MiniKeyboardBuilder constructorTadashi G. Takaoka2011-07-021-75/+75
| | | | | | | To keep unit test simple, instead of specifying top padding in the constructor, make separate setter for it. Change-Id: I8870622cc1bd97420637b8c465bdb6c9dd366062
* Add top padding to mini keyboardTadashi G. Takaoka2011-07-011-75/+75
| | | | | | | | Because Key only has bottom padding, to make mini keyboard vertically symmetric and looks nicer, we should add mini keyboard top padding that equals to Key bottom padding (a.k.a. vertical gap). Change-Id: Icceb687d50edfa48e0f0830a60a1e230836c982f
* Merge "Fix "Show settings key" option on 7" device"Tadashi G. Takaoka2011-06-231-1/+1
|\
| * Fix "Show settings key" option on 7" deviceTadashi G. Takaoka2011-06-241-1/+1
| | | | | | | | | | | | | | Cherry-pic I993ac772 from Honeycomb-MR2. Bug: 4586882 Change-Id: Ie74138523a3ae7958c7bec674c49aa0ab1a72d05
* | Move Key class out of internal packageTadashi G. Takaoka2011-06-231-1/+1
|/ | | | | Bug: 4903326 Change-Id: I2493d6dae613d2e37dfa8ce96b4cddc9a038160c
* Remove colorScheme attribute from KeyboardViewTadashi G. Takaoka2011-06-221-5/+4
| | | | Change-Id: I9de118e8be60b9a6fe1aecc00332ba08872db918
* Move icon declaration to Keyboard themeTadashi G. Takaoka2011-06-221-135/+146
| | | | | Bug: 4436327 Change-Id: I074014d28dcb323b60dbc8fd9e169c75c393e0b3
* Move keyboard related internal class to separate packageTadashi G. Takaoka2011-06-225-7/+9
| | | | Change-Id: Ic1459066b865cde5104b3734193f76c997959c68
* Add ArraysCompatUtils.binarySearchTadashi G. Takaoka2011-06-211-0/+103
| | | | | | | Until API version 9, java.util.Arrays.binarySearch(int[], int, int, int) doesn't exist. Change-Id: Ife0ed4fbac642eda069e7b6f6b8dd30e0cd5fdee
* Fix arguments order of KeyboardId constructorTadashi G. Takaoka2011-05-251-1/+1
| | | | Change-Id: I0b958f10e2146a3a70c9c0643f62ad48ae472631
* Merge "Reload keyboard after SoftInputWindow size changed"Tadashi G. Takaoka2011-05-202-4/+5
|\
| * Reload keyboard after SoftInputWindow size changedTadashi G. Takaoka2011-05-202-4/+5
| | | | | | | | | | Bug: 4450008 Change-Id: Ic6c457db808d8e7479bfaa509192c07a384453e2
* | Show full display names in the popup of the spacebar language swichersatok2011-05-181-1/+3
|/ | | | | | | - Multiply the speed of the slide Bug: 4427222 Change-Id: Ifd2de9843191296f0f311440ea7b8ab075c67d8d
* Use user-history bigrams when no input if available.Jean Chalard2011-04-221-0/+67
| | | | | | | | This also fixes a small inconsistency upon clicking on whitespace twice in a row. Also add some unit tests for an introduced and an existing method. Change-Id: I1be2fb53c9624f4d0f5299009632cb4384fdfc15
* Move language-specific keyboard setting to resources.Jean Chalard2011-04-201-1/+1
| | | | | | | | | | | | | | Some flag settings used to be stored in a keyboard layout extravalue setting. This change: - Introduces the capability of setting such specific flags in values/config.xml - Retains the ability to use extravalues (for layout-specific settings), though there is no more any such setting at the moment. - Fixes a bug where loading a dictionary from outside does not initialize the flags. - Moves Flag to another class. Note: this needs I705ec68c to avoid breaking the build Change-Id: Ia7703aae3215b06c0b3cb792821649806e8998c1
* Refactoring keyboard drawing code and KeyDetectorTadashi G. Takaoka2011-04-151-3/+2
| | | | Change-Id: I55009bf38b1422301223bd90463f837562559dc5
* Auto mini keyboard layoutTadashi G. Takaoka2011-04-152-207/+1311
| | | | | Bug: 4280617 Change-Id: I34c344cbf350fe125589aa14ad69e4bd1f4e6f66
* Add different ways of reading the dictionary file.Jean Chalard2011-03-181-1/+3
| | | | | | | | | | | | | | | | | | This change adds basic support for an external dictionary provider. It adds methods for reading the dictionary itself from an asset in the dictionary provider package directly, obtaining the file name through the ContentProvider interface; it also adds a way of getting the data through an InputStream and copying the file locally. Incidentally this change also adds the code needed to listen for updating the dictionary provider package and reloading it in time. This change also goes hand-in-hand with Iab31db6e, which implements the small closed part of this. Issue: 3414944 Change-Id: I5e4fff99a59bb99dbdb002102db6c90e6cb41c8a
* Refactor BinaryDictionary a bitTadashi G. Takaoka2011-03-161-1/+1
| | | | | | | | | This changes: * Flag initialization code in BinaryDictionary to be more unit test friendly. * Removing unnecessary class hierarchy of LatinIME inner class WordAlternatives. * Formatting normalized score neatly. Change-Id: I9f10c093d4f36258fe883cf3fb10cbbda2770497
* Add whitelist dictionarysatok2011-03-081-1/+2
| | | | | | Bug: 3447571 Change-Id: I538e4e706982129b666ca1ab1085f1b68b69f87f
* Fix unit test helperTadashi G. Takaoka2011-03-031-0/+1
| | | | Change-Id: I161b451404bbecb30d8e229004786b9e9882e41c
* Add createKeyboardId helper methodTadashi G. Takaoka2011-02-254-8/+13
| | | | Change-Id: Ibb356e95e4acd965a0dfbf695de1cebcefc5cd9e
* Add proximity info to nativesatok2011-02-231-4/+4
| | | | | | Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b
* Add "passwordInput" attribute to case tag of KeyboardTadashi G. Takaoka2011-02-201-3/+4
| | | | | | | | This change also introduces number password (a.k.a. PIN) layout. The text password layout will follow. Bug: 3384942 Change-Id: I50b5e413e47a28d5285fd0468115e11ce46c7f18