summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/KeyDetector.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix NPE in KeyDetectorTadashi G. Takaoka2014-02-271-0/+3
| | | | | | | This is actually a follow up of I9290974821. Bug: 13215075 Change-Id: Ib7eef55fd1cfbb05d06aeeb0726bc10c87b07d85
* Fix IllegalStateException raied by monkeyTadashi G. Takaoka2014-02-191-27/+8
| | | | | Bug: 13082467 Change-Id: I9290974821d22067e7ddd60dce441b11ca533a0f
* Fix null KeyDetector referenceTadashi G. Takaoka2014-02-141-10/+6
| | | | | | | This change must be checked in together with I737c266c45. Bug: 13011041 Change-Id: Ia3d25be6de47fa16ab7156a25641e53a23948ff4
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-1/+1
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Add getters and copy constructor to Key classTadashi G. Takaoka2013-08-151-3/+4
| | | | Change-Id: I78eb96dcc26378926dc63acbfeb4828cbd44435d
* Fix Apache license commentTadashi G. Takaoka2013-01-211-8/+8
| | | | Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
* Move code point constants from Keyboard to Constants classTadashi G. Takaoka2012-10-291-2/+2
| | | | Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d
* Add separate key hysteresis distance for sliding modifier inputTadashi G. Takaoka2012-10-071-3/+19
| | | | | Bug: 7294402 Change-Id: I78c8be9e1a7b2d49d86bfe1e3a46d1785bfe5d48
* Reduce amount of empty space in which keypresses are detectedTadashi G. Takaoka2012-09-041-3/+9
| | | | | Bug: 6942329 Change-Id: Ie92ccf43f307b8ceb9a311c30390d0cb2abf2cd7
* Rename and consolidate some constantsTadashi G. Takaoka2012-08-211-3/+3
| | | | Change-Id: I7863936cca18b28bf0117afcbcf544a5fd7f185d
* Fix NPE and don't call UI API from non-UI threadTadashi G. Takaoka2012-08-091-0/+3
| | | | | | | | | This change also reverts I29ec3e9f10484f30288fac76f0c45b3707bc2259 Bug: 6956969 Bug: 6891020 Bug: 6947253 Change-Id: I7901c0f9489b4deb79314c2c903b138611bfd78e
* Fix IllegalStateException of KeyDetectorTadashi G. Takaoka2012-08-061-3/+2
| | | | | | | | | A KeyDetector without Keyboard may exist in some rare cases. This change eliminates throwing IllegalStateException and checks explicitly against null. Bug: 6891020 Change-Id: I29ec3e9f10484f30288fac76f0c45b3707bc2259
* Remove unused setProximityCorrectionEnabled() methodsTadashi G. Takaoka2012-07-251-9/+0
| | | | Change-Id: I03aa6608ee435b36377de41684162b303740f571
* Remove WordComposer.add(int, int, int, KeyDetector) methodTadashi G. Takaoka2012-07-041-0/+1
| | | | Change-Id: Ie6af46acba18a2d1cf3ddd1578d60ded4c90f89a
* Cleanup proximity related codesatok2012-03-191-182/+3
| | | | | Bug: 4343280 Change-Id: I57c0f9e20d9d8911009ea97057251a7f7a81512f
* Make the primary character stablesatok2012-03-191-2/+2
| | | | | Bug: 4343280 Change-Id: I3e6eaa3803dc32a837825f3a64403430721b6192
* Calculate proximity characters in the native codesatok2012-03-161-4/+11
| | | | | | Bug: 4343280 Change-Id: I6adaf560f7a4f1f96dcb6ec2f61f20ee3001167e
* Remove touch dead zoneTadashi G. Takaoka2012-03-151-15/+30
| | | | | | | | KeyDetector should use the distance from the hit box to detect the key. Bug: 6174250 Change-Id: Id1745d90222d1d1a10467f194b45307c12449944
* Fix coordinates sent to native codesatok2012-03-061-2/+2
| | | | Change-Id: I2c8b093b59ad36ffe860c3c4d360d87251d101c4
* Readable debug outputTadashi G. Takaoka2012-03-021-1/+1
| | | | Change-Id: I4110791832d2ab1d681b01c9e8a237567442c827
* Use additional proximity chars even when no key is detected.Tadashi G. Takaoka2012-02-161-27/+36
| | | | Change-Id: I06a8c66421fcdd43066934ec31d0a38a7cf12bf2
* Support additional proximity characterssatok2012-02-021-3/+38
| | | | Change-Id: Ifbe0d7e4eafea1926bbce968eae4724dd5769689
* Get rid of key index from ProxymityInfoTadashi G. Takaoka2011-12-161-21/+16
| | | | Change-Id: I9bee0a643d09cdd89e42ae913285c9e78d875c1c
* Move KeyDetector.printableCode to KeyboardTadashi G. Takaoka2011-12-121-7/+1
| | | | Change-Id: I9cde21fbb45c1e5f1a568bb97b1b1a76524f4bf2
* Fix debug messages neatlyTadashi G. Takaoka2011-12-011-3/+22
| | | | Change-Id: I40538d5ffbdf64df4e2848de33393327d704fc1e
* Get rid of usage of key indexTadashi G. Takaoka2011-11-291-18/+19
| | | | Change-Id: I7596ce3ae52fde436d06c2dd95ae873c7aa5ef7f
* Refactor and rename popup mini keyoard related classesTadashi G. Takaoka2011-08-231-0/+4
| | | | Change-Id: Ia92ec4612090b03829db9a87ce68d701db6e15bc
* Cleanup Keyboard related code and rename some classesTadashi G. Takaoka2011-08-021-2/+2
| | | | | | | This is a follow up change of I90ffbde0 Bug: 5023981 Change-Id: I3a6b862d05f5f907dee954cd6d6fee983b20ab5e
* Make Keyboard object immutable except shift stateTadashi G. Takaoka2011-08-011-1/+1
| | | | | | | This is the first step to implement suggestions pane as mini keyboard. Bug: 5023981 Change-Id: I90ffbde0fda19b4be68add449310997b56bf6904
* Let KeyDetector hold KeyboardTadashi G. Takaoka2011-07-071-5/+4
| | | | | Bug: 4768084 Change-Id: Ia28d6971fc59086dd4e6fedc9fd1b50f13b59854
* Move key hysteresis distance parameter to KeyDetector classTadashi G. Takaoka2011-07-041-0/+18
| | | | | Bug: 4768084 Change-Id: Ib8771afd7363a4a5590b2b4a586e3014c026be34
* Move Key class out of internal packageTadashi G. Takaoka2011-06-231-2/+0
| | | | | Bug: 4903326 Change-Id: I2493d6dae613d2e37dfa8ce96b4cddc9a038160c
* Move keyboard related internal class to separate packageTadashi G. Takaoka2011-06-221-0/+2
| | | | Change-Id: Ic1459066b865cde5104b3734193f76c997959c68
* Fix copyright author from Google to AOSPTadashi G. Takaoka2011-05-201-1/+1
| | | | Change-Id: Iaceedc783181e43af6dd48ece218a42eace66532
* Include horizontal and vertical gap in the count of Key.isOnKeyTadashi G. Takaoka2011-04-291-9/+12
| | | | | | | | This change also reverts I8f6102d6 and considers that the point is on the key while sorting in proximity key detection. Bug: 4348994 Change-Id: I3ee913675e28da7e7b164805a7a683f0814b38b9
* Fix a bug where dead space would appear on the keyboard.Jean Chalard2011-04-281-1/+2
| | | | | | | | | | | | | This change fixes a bug where there would be pixels on the keyboard that would not return a key although it's between two keys - or even right on top of one. This change makes it so that the closest key to the touch - within a certain threshold - is always returned, regardless of whether the touch is inside or not. Bug: 4348994 Change-Id: I8f6102d6787eb025cc3c50a26d3a475aeafc4b64
* Disable key preview of space, return and deleteTadashi G. Takaoka2011-04-211-1/+1
| | | | | | This change also re-orders punctuation mini keyboard. Change-Id: I987ef14fe5956d13439a0a76de367feed825314c
* Refactoring keyboard drawing code and KeyDetectorTadashi G. Takaoka2011-04-151-26/+112
| | | | Change-Id: I55009bf38b1422301223bd90463f837562559dc5
* Auto mini keyboard layoutTadashi G. Takaoka2011-04-151-28/+0
| | | | | Bug: 4280617 Change-Id: I34c344cbf350fe125589aa14ad69e4bd1f4e6f66
* Count up horizontal gap as part of key widthTadashi G. Takaoka2011-04-151-1/+1
| | | | Change-Id: Ic9a070a9b6a461f4c8330d1cc3e2c33fd7369f73
* Remove next letters frequency handlingTadashi G. Takaoka2011-02-171-4/+5
| | | | | Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
* Move and rename computeProximityThresholdTadashi G. Takaoka2011-02-081-0/+28
| | | | | | | | | | | Move and rename KeyboardView.computeProximityThreshold to KeyDetector.getMostCommonKeyWidth. And make it public for unit test use. This is a part of multi-project change (If751659a, Idb18f362) Bug: 3414081 Change-Id: If751659a53c7412f836d6d28866760ffe84b179b
* Move NOT_A_TOUCH_COORDINATE constant to KeyboardActionListenerTadashi G. Takaoka2011-01-011-2/+1
| | | | Change-Id: Iff3fde48682a7c56201fc9eb3640755e0090d0ee
* Move some inner static class to top class in new packageTadashi G. Takaoka2010-12-021-0/+112
This change introduces new package com.android.inputmethod.keyboard which hosts keyboard related classes. Also adds missing @Override and @SuppressWarning("unused") annotation Change-Id: I0317f5cfa317e13f3c77815f48ffc69b5d1ade05