aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/PointerTracker.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move some inner static class to top class in new packageTadashi G. Takaoka2010-12-021-546/+0
| | | | | | | | | 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
* Key release event should be sent when finger slidingTadashi G. Takaoka2010-12-011-6/+10
| | | | | | | This change is cherry-pick I1a020e3d from Gingerbread-MR Bug: 3132881 Change-Id: I885eab7744369dfb841f9b34d210b6c2aef8f19a
* Implement both automatic and manual temporary upper casesTadashi G. Takaoka2010-11-181-3/+3
| | | | | | | | | | | | | | With this change, - Shift and Shift lock state of keyboard is maintained by LatinKeyboard.ShiftState. - Shift key state is maintained by ShiftKeyState object in KeyboardSwitcher. - LatinIME informs KeyboardSwitcher that shift key press, release and long press and KeyboardSwitcher determines which state LatinKeyboard and ShiftLeyState should be. Bug: 3193390 Change-Id: I948ef26fda512eb1cb0ebddc89d322c4f4f4d670
* Implement temporary upper case hint iconTadashi G. Takaoka2010-11-161-10/+4
| | | | | | | | | | | | This change partially implements the requested feature. The following are not supported yet. - Non-letter key handling on automatic temporary upper case layout. - Non-letter key handling on shift chording in caps lock layout. - Hint icons for manual temporary upper case layout are not final ones. Bug: 3193390 Change-Id: I636da99d1be05b1337935d87c6f4d140661e1cc8
* Should cancel both normal and shift long press timersTadashi G. Takaoka2010-11-101-2/+2
| | | | | | Bug: 3132881 Change-Id: Ib89e2efa4e68e7d57ac1123df2ec6241f1b902d1
* Using distance to the edge of key as proximity detectionTadashi G. Takaoka2010-11-061-13/+1
| | | | | | | | | | | | | | | Because there may be very long key, such as space bar on tablet, we should not use the distance between the touch point and the center of key as proximity detection. Instead of that, this change uses the distance between the point and the nearest edge of key as proximity detection. Also this change fixes the bug that space key (code 32) was not counted in proximity detection. Bug: 3164020 Bug: 3168138 Change-Id: I687f1ce94a8e944c3f6eea0fe00e18ed6e68e278
* Rename LatinKeyboardBaseView class to KeyboardBaseViewTadashi Takaoka2010-11-051-3/+3
| | | | Change-Id: I496ecbfa7d398583d01f821398f49f75d17311d8
* am e32a77c6: am 9dce586e: Bugfix: IME gives haptic feedback when button ↵Ken Wakasa2010-10-281-5/+6
|\ | | | | | | | | | | | | wasn\'t pressed * commit 'e32a77c691567bdb3031d877e80786508bd47e4a': Bugfix: IME gives haptic feedback when button wasn't pressed
| * Bugfix: IME gives haptic feedback when button wasn't pressedKen Wakasa2010-10-291-5/+6
| | | | | | | | | | bug: 3142416 Change-Id: If7630b89d6c2a8ec38e191c263c03f8f11d3c498
* | Revise caps lock sequencesTadashi G. Takaoka2010-10-251-14/+24
| | | | | | | | | | | | | | | | | | This change also fixes that the popup preview of ALT on symbol keyboard is not showing. Bug: 3122877 Bug: 3127255 Change-Id: I978cb30a0d05298274d8ab6541b91323a0fef211
* | Follow up change of If9472a2aTadashi G. Takaoka2010-10-131-4/+3
| | | | | | | | | | | | This change is follow up of If9472a2acb029e56790dc4d19ab62e608c970175 Change-Id: I0a474a130f49e2acccbb5a164bdf2984a5bd9042
* | Fix merge that should have been manually mergedKenny Root2010-10-101-2/+1
| | | | | | | | | | | | | | master was still using the deleted constants in different places and Java 6 didn't like the imports. Change-Id: If9472a2acb029e56790dc4d19ab62e608c970175
* | resolved conflicts for merge of 23d50bfb to masterKenny Root2010-10-101-12/+17
|\| | | | | | | Change-Id: Ia3fd85bd0c231f7b910b14caad38fa453a2336f6
| * Reduce delay before mini popup keyboard is shownTadashi G. Takaoka2010-10-081-12/+15
| | | | | | | | | | | | | | | | | | Before this change, the delay was 500 ms that came from ViewConfiguration.getLongPressTimeout(). This change reduces the delay to 400 ms. Bug: 3074984 Change-Id: Ia5af5e877a3c4bb29211ef4040c728ac09a9fe85
* | Add keyHintIcon attribute to BaseKeyboard.Key classTadashi G. Takaoka2010-10-051-6/+31
| | | | | | | | | | | | | | This keyHintIcon attribute is used to specify hint icon drawable at top right corner of Key. Change-Id: Icaa91e63c4473b2513396bd3fbeb8ed6fd73586c
* | Unbundle Keyboard.java to BaseKeyboard.javasatok2010-10-021-6/+5
|/ | | | Change-Id: I8b310c2c0cae1a151e53c22001c586697346982c
* Mini keyboard works even while shift is being pressedTadashi G. Takaoka2010-09-291-2/+3
| | | | | Bug: 3038861 Change-Id: I94011ca80710ff6eb24e940104f7d9d3bb86840a
* Fixed key code and key coordinates when move debounce has been in actionTadashi G. Takaoka2010-09-281-119/+129
| | | | | | | | | This change refactors a key index and pointer position variables into a separate static inner class KeyState . This change also disables time debouncing. Bug: 3033737 Change-Id: Ie4fc37316c260330d8f0861e0771ea903a99cfce
* Fix issue space key preview remains on screen and would not dismissTadashi G. Takaoka2010-09-221-0/+5
| | | | | | | | | | | | | | The space key preview should be displayed one of the following case. - Popup preview is enabled - Language switcher is in action, whether popup preview is enabled or not. For phone number keyboard, popup preview is never displayed even if popup preview is enabled. Bug: 3006612 Bug: 3021091 Change-Id: I5385c776d0e8e3981fc8d8851db9140d92599ce5
* All keys should be processed before processing modifier keyTadashi G. Takaoka2010-09-151-2/+10
| | | | | Bug: 2987077 Change-Id: I971c44be121d8780ec27aa1649fd0925e249fbbc
* Add keyHysteresisDistance xml attributeTadashi G. Takaoka2010-09-141-7/+6
| | | | | | | | | This change also introduces MiniKeyboardKeyDetector and mini_keyboad_slide_allowance parameter to tune the key detection behavior. Bug: 2993769 Change-Id: I1932b0a382e172cb77b9e098ae182049c834dfe0
* Symbol key acts as modifier keyTadashi G. Takaoka2010-09-091-10/+17
| | | | | | | | | | On a device that has distinct multi-touch panel, pressing '123?' key will change keyboard layout to symbol mode. While pressing '123?' key, you can press other symbol key to input. Then releasing '123?' key will change keyboard layout back to alphabet mode. Bug: 2973383 Change-Id: I3b069fb19141820def8060db4766a08c7c0a6ff0
* Dismiss mini keyboard when finger is released outside mini keyboardTadashi G. Takaoka2010-09-071-3/+7
| | | | | | Bug: 2978975 Change-Id: Ie634e8ae827fe093c5c673b75d85835050b03794
* Fixed extra periods when chording with shift and spaceTadashi G. Takaoka2010-09-071-4/+7
| | | | | | | | Actually it was caused by canceling repeat key (space and delete) when multiple pointer are touching. Bug: 2975041 Change-Id: If82183b9225efdace7b5418860b9664f1705b7ec
* Support multi-touch only when device has distinct multi-touch panelTadashi G. Takaoka2010-09-061-4/+30
| | | | | Bug: 2973373 Change-Id: I9871c09ec8c1c2aa945d97392e61ee1ec585baef
* One alternate is treated as key action, not open mini keyboardTadashi G. Takaoka2010-09-031-1/+7
| | | | | | | | This change also fixes bug#2973683. Bug: 2973546 Bug: 2973683 Change-Id: I67573e5b7cad4af261591a4a608d0596dd7901f2
* Fix NPE in LatinKeyboardBaseViewTadashi G. Takaoka2010-09-031-5/+9
| | | | | | | | This change also refactors some mini-keyboard related methods in LatinKeyboardBaseView and PointerTracker class. Bug: 2973236 Change-Id: I3190fe89ea3ac3c6d351ed4b6d77de98a0aa65db
* Support sliding pop-up mini-keyboard inputTadashi G. Takaoka2010-09-031-1/+19
| | | | | | | | | | | TODO: - Remove close button on mini-keyboard - Dismiss mini-keyboard when finger leave the screen while no key is selected This change also renames some instance variables to have more meaningful name. Bug: 2959169 Change-Id: I9fd79116a647d7be82415c6e9e7cdaf6edcb2bf6
* Corresponding to TBR of Ie6cf6768Tadashi G. Takaoka2010-09-021-4/+3
| | | | | | | This is follow up change of Ie6cf67681180467bd8ba35d0205ce6727b7684a2 Bug: 2959169 Change-Id: I9e4cb0c9178856ddd6049f0b751b54f3ad26a266
* Encapsulate vertical and horizontal correction values into KeyDetector.Tadashi G. Takaoka2010-09-021-30/+30
| | | | | Bug: 2959169 Change-Id: Id2b0b974fffdf6f09ee1828e957b973d2ce1c315
* Add PointerTracker argument to long press related methodsTadashi G. Takaoka2010-09-021-6/+23
| | | | | | | This change also adds debugging log to PointerTracker class Bug: 2959169 Change-Id: Ie6cf67681180467bd8ba35d0205ce6727b7684a2
* Queuing PointerTracker to support n-key roll-over and shift modifier.Tadashi G. Takaoka2010-09-021-1/+21
| | | | | Bug: 2910379 Change-Id: I5cfae33e72a406585137842a2260310813cee07f
* Refactor PointerTracker to add isValidKeyIndex() predicate.Tadashi G. Takaoka2010-09-021-22/+32
| | | | | Bug: 2910379 Change-Id: If2b28764dc777bb62949a95bc61c4a16ff152220
* Add new public attribute mPointerId to PointerTrackerTadashi G. Takaoka2010-09-021-1/+4
| | | | | | | | It is easier to track each pointer if a PointerTracker object keeps its pointer id. Bug: 2910379 Change-Id: If3e3b0cf3d834d22302598f4d85d54c9a4ce92ba
* Make abstract KeyDetector classTadashi G. Takaoka2010-09-021-2/+2
| | | | | | | | | | The KeyDetector abstracts key detection algorithm. The ProximityKeyDetector is one of its concrete implementations. Another one that might be called XAxisKeyDetector will follow to realize the pop-up mini-keyboard behavior described in bug#2959169. Bug: 2959169 Change-Id: Idd3fc53282e6b721ec7a4ce500af8aba21ce07a3
* Track all pointers eventsTadashi G. Takaoka2010-09-011-18/+0
| | | | | Bug: 2910379 Change-Id: I179ae4359afb57c351d5fcc5f5453c30d3ef0c01
* Introduce multiple PointerTrackerTadashi G. Takaoka2010-09-011-1/+1
| | | | | Bug: 2910379 Change-Id: Iefafa2d30ad16f898a00664e4bf3e3e88dcd2cb2
* Make KeyDebounce class a top-level class and rename it to PointerTrackerTadashi G. Takaoka2010-09-011-0/+400
Bug: 2910379 Change-Id: I9503b2211b272a4a2903d0732985e5ab8ee39440