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
Merge commit '40ac45ebdcd71940394dda00371d4847f7db0f26' into gingerbread-plus-aosp
* commit '40ac45ebdcd71940394dda00371d4847f7db0f26':
Get rid of arrows in candidate view
Merge commit 'd4f60bc8fcf60990aa7593a866c645eaf7c08a93' into gingerbread-plus-aosp
* commit 'd4f60bc8fcf60990aa7593a866c645eaf7c08a93':
Fix new theme assets and resources
- Add a layout for popup for new theme
- Change the color of language bar
- Fix a drawable for settings feedback
Change-Id: I7c0c9e238c8223554a62f7b0c8092d074cf9743f
Merge commit '31adfa78e2edae188edb05e869f9f68798857582' into gingerbread-plus-aosp
* commit '31adfa78e2edae188edb05e869f9f68798857582':
Add a new theme for Gingerbread
Merge commit 'fd36a98dacaaa2ddf57abe6bfa140dea060f9b5d' into gingerbread-plus-aosp
* commit 'fd36a98dacaaa2ddf57abe6bfa140dea060f9b5d':
Add new assets for LatinIME
Merge commit '409731fb46f5a7298005f3d6dbdd0bf4ee435236' into gingerbread-plus-aosp
* commit '409731fb46f5a7298005f3d6dbdd0bf4ee435236':
Make KeyDebounce class a top-level class and rename it to PointerTracker
Merge commit 'ca4e42785f598af9f24a9e3e2ae644ffa83c77ed' into gingerbread-plus-aosp
* commit 'ca4e42785f598af9f24a9e3e2ae644ffa83c77ed':
Fix UnsatisfiedLinkError for Latin IME. Don't use old NDK version in a platform build.
This change moves the following methods into KeyDebounce class.
- MotionEvent handling methods (onDownEvent etc.).
- Keyboard action event generator method (detectAndSendKey).
- Multi-tap key support methods (resetMultiTap etc.).
- Key preview text generator method (getPreviewText).
The change that makes KeyDebounce a top-level class will follow.
Bug: 2910379
Change-Id: I1526c0461e247d97f0c4b3bd580330f137c787be
Extract key press and release handling out of previewKey() to
KeyDebouncer class. And pass Key object as argument of previewKey()
instead of key index.
Bug: 2910379
Change-Id: Ifec39cfc4845bd92da2f62eba2b26ac6a5cbb341
Merge commit '164972b678b986aecdf96e239cd0bce838b2033d' into gingerbread-plus-aosp
* commit '164972b678b986aecdf96e239cd0bce838b2033d':
Import revised translations. DO NOT MERGE
These three conditions assign true to the mAbortKey flag.
1. setKeyboard() sets the new keyboard layout.
2. long press shows the pop-up mini keyboard.
3. ACTION_CANCEL event is occurred.
In the case 1, in LatinIME so far, only "symbol key" and "language
switch" cause keyboard layout change. In both cases, the event is
occurred in onUpEvent(), so we do not need to worry about aborting
event.
In the case 2, long press is used only to pop-up mini-keyboard and at that
time mMiniKeyboardOnScreen could be used as a flag.
In the case 3, though I'm not sure when this case occurs, in
onCancelEvent() all the things that should be canceled are canceled
in onCancelEvent().
Bug: 2910379
Change-Id: I12377c5f3e808f1c017ce980e12b1513895047bc
Merge commit '82798ac066c8ffc497a68a313aee17cc4ad56bbd' into gingerbread-plus-aosp
* commit '82798ac066c8ffc497a68a313aee17cc4ad56bbd':
Disable long-press on symbol keys on international locale keyboards.