aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/accessibility/KeyCodeDescriptionMapper.java (unfollow)
Commit message (Expand)AuthorFilesLines
2014-06-06Material theme•••BUG: 15467097 Change-Id: I1b6ed80d85e4c3c8913d4a9e08c519379cb3c6e0 Alan Viverette1-2/+2
2014-06-06DO NOT MERGE Material theme•••BUG: 15467097 Change-Id: I1b6ed80d85e4c3c8913d4a9e08c519379cb3c6e0 Alan Viverette1-2/+2
2014-06-06Refactor logic to determine showing suggestions strip or not•••The logic to determine when the suggestions strip (a.k.a. the contextual strip) should be shown is already complex. In addition to that the voice input key get shown on the strip as well. There are a several factors to be considered and a few things to control. - The password input field shouldn't have the strip. - Show voice input key on the strip or not. - User preference settings "Show Voice Input Key". - A voice IME exists and is enabled. - The input field may have a private IME option to prevent the voice input key from being displayed. - Application can specify auto completions. - Full screen mode or not. - User preference settings "Show correction suggestions". - Always show, Show in portrait mode, Always hide. - The input field may have flags to prevent showing suggestions or auto corrections. - Suggestions is empty or not. - An important notice may be shown. Bug: 14981852 Bug: 15436479 Change-Id: I3050fd53ee6271fc64a8f17b6b12d9581d37b750 Tadashi G. Takaoka3-61/+34
2014-06-06Make Distracter filter use getMaxFrequencyOfExactMatches().•••Bug: 13142176 Bug: 15428247 Change-Id: I5c23fbea2851f891f76f19d9da2cb70ae964569b Keisuke Kuroyanagi3-157/+77
2014-06-06Implement getMaxProbabilityOfExactMatches().•••Bug: 13142176 Bug: 15428247 Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54 Keisuke Kuroyanagi12-6/+185
2014-06-06Update shift key backgrounds for LXX_Dark•••Bug: 15310025 Change-Id: I2fa267e5c448e28435f4737666a03b40f1f4a4d5 (cherry picked from commit 0621dd1d3c09b63e5cc47dd98718bd13566ba971) Tadashi G. Takaoka16-0/+0
2014-06-06When starting input, include the literal word in suggestions•••This change also includes a fix that has suggestions re-computed when the typed word is included but no prior suggestions were found in spans. Bug: 2349475 Change-Id: Ic06e6ac492507126ffc1e96a5f396c971b567272 Jean Chalard2-14/+22
2014-06-06Fix a small bug with rotation.•••Bug: 2349475 Change-Id: Id4aa5ce56b1a545e4cb88ca1b01cf24642deade2 Jean Chalard1-1/+10
2014-06-06Always update voice key visibility•••Bug: 15128166 Change-Id: Ie15724c323efa3b102f6aebddc3bda210aad1727 Tadashi G. Takaoka4-29/+26
2014-06-06Remove unused supportsSwitchingToShortcutIme attribute•••Change-Id: I51c5247ac925a158facb79057f704b763b903552 Tadashi G. Takaoka11-51/+49
2014-06-06Add action key test for Lxx theme•••Change-Id: I849cec7deb5607e8ce8fb25c1f903f15328fb611 Tadashi G. Takaoka6-31/+171
2014-06-06Fix a bug on rotation with selection.•••The symptom : when text is selected and the device is rotated, sometimes the keyboard sets the word as being composed around the start of the selection. Upon the next rotation this ends up with the keyboard committing some text in place of the selection. The cause : another bug in the framework with rotation >.> The keyboard receives a call to startInput with a wrong cursor position, namely one that does not represent a selection. The keyboard sets a composition according to this wrong data. When the keyboard is rotated again, it commits the text, which takes the place of the selection. The solution : actually when restarting input the keyboard realizes that the cursor position is wrong. We cancel composition at that time. For robustness, this change also implements two other defensive changes : upon call to onUpdateSelection, we actually realize that the previous values were wrong, so we also fix it at that time, and in addition, when rotating, we finishComposingText() instead of commitText() which is less dangerous. Implementing this later change also allows us to let less internal variables from InputLogic escape to LatinIME, so it's also a good change for design. Bug: 14140799 Change-Id: Ib10de18e53e376ac1bbc8487e13d969828483346 Jean Chalard3-8/+18
2014-06-05Add getMaxFrequencyOfExactMatches() to Dictionary.•••Bug: 13142176 Bug: 15428247 Change-Id: I93b44ef40cafb6b811c68fa79f3a4971fc3916a5 Keisuke Kuroyanagi4-10/+64
2014-06-05Rename some boolean variables for readability•••Change-Id: I434cf507e68349b9893ac084645986d6b3d7da91 Tadashi G. Takaoka4-16/+16
2014-06-05Add jni method for getMaxFrequencyOfExactMatches().•••Bug: 13142176 Bug: 15428247 Change-Id: I2ae25090b67ad0c6df97dec7712e2f7e0bb08c40 Keisuke Kuroyanagi2-1/+24
2014-06-05Refactor show voice key preferece migration code•••Change-Id: I4f13e85a3db1ba4adf36c596cb23827bdcf93ae7 Tadashi G. Takaoka1-8/+8
2014-06-04Import translations. DO NOT MERGE•••Change-Id: Ia9a21cce0283a85dda9cd2fc82e694bf5aa44d00 Auto-generated-cl: translation import Baligh Uddin57-0/+456
2014-06-04Import translations. DO NOT MERGE•••Change-Id: Ice980abcc56dc1f432b574ef19e6e082a2cef239 Auto-generated-cl: translation import Baligh Uddin57-0/+114
2014-06-04Support more suggestions accessibility mode•••Bug: 12491371 Change-Id: Ib01452b6a2a53faa591b05e62014f356e0511308 Tadashi G. Takaoka4-1/+57
2014-06-04Support more keys accessibility mode•••Bug: 12491371 Change-Id: Ib1fc8affbccfbaca3424ecdc2812f47047106aa2 Tadashi G. Takaoka9-22/+367
2014-06-04Allow multiple shortcuts for a personal dictionary word•••Bug: 13869301 Change-Id: Icd77a308f85cc16dccffe65a532471c738d6fbc5 Jean Chalard1-1/+3
2014-06-04Add onRegisterHoverKey to accessibility delegate•••Bug: 12491371 Change-Id: I8c5b1e91f41146a023edcc405e6120c0bf33f49b Tadashi G. Takaoka1-2/+12
2014-06-04Don't recapitalize just at the start of input•••Bug: 13283555 Change-Id: Iab0466425dc44779d110f2cd29d725d22eb04827 Jean Chalard2-7/+21
2014-06-04Refactoring•••Rename `initialize' to `start' and `deactivate' to `stop' for ease of understanding. It's completely bizarre that you can "deactivate" a recapitalization and that will just restart a new one the next time you press shift. Start and stop are easier to understand. Change-Id: I455175aebfcfe11198c6c61bf2c6b19efc3f82df Jean Chalard3-29/+29
2014-06-04Revert "Pass hover event to accessibility key handling methods"•••It turns out passing hover event to accessibility key handling methods isn't necessary. This parically reverts I1f7feef707. Bug: 12491371 Change-Id: I9d71cd29723344433427795e44cb22ac41faace6 Tadashi G. Takaoka1-12/+9
2014-06-04Add a preference item for metrics logging•••BUG: 14324207 Change-Id: Idc8582655bc73cb24e416e8ba78470209b2ff702 Yohei Yukawa4-0/+48
2014-06-04Reorder keys around the spacebar•••This CL reorders keys around the spacebar. - On phone's symbols and symbols shift layout, the comma key is moved to the left of the spacebar to aligned with main layout. - On tablet's layout, the comma key is moved to the left of the spacebar on all layout to aligned with the same layout of phone's. Also the comma key has "settings" as more keys. - In Arabic and Perisan, the comma key of tablet already has some more keys This CL remove "/" and add "settings" instead. Bug: 15281451 Change-Id: I6e0e75e4d4abfb1f356e7499be91424c7c57c58b Tadashi G. Takaoka28-103/+160
2014-06-03Enrich the Spanish dictionary.•••Enrich the dictionary with many words generated from stems extracted from the dictionary and rules written by hand. This adds 45,619 words to the dictionary. Hopefully, almost none of them is incorrect, though a lot are not very common. Bug: 8010862 Change-Id: I51c7ebd16ff859ec1e765b0604dd1cfca159ab08 Jean Chalard2-0/+0
2014-06-03Load KeyCodeDescriptionMapper class lazily•••Change-Id: I2cba2bb5b2f449ed29895365b9c6ca285a7640fe Tadashi G. Takaoka4-20/+9
2014-06-03Update shift key backgrounds for LXX_Dark•••Bug: 15310025 Change-Id: I2fa267e5c448e28435f4737666a03b40f1f4a4d5 Tadashi G. Takaoka16-0/+0
2014-06-03Fix synthesizing MotionEvent•••KeyboardAccessibilityDelegate.synthesizeTouchEvent() wrongly passed pointer's id as a 6th argument of MotionEvent.obtain method that should be metaState. Change-Id: I822f9647a1ba27ee8cee39f373f6a1c003ebf665 Tadashi G. Takaoka1-9/+5
2014-06-03Fix PointerTracker debug output to reflect new KeyDetector•••Change-Id: I913ec290ddfd0ae4cc6e600ba95b7442167f0989 Tadashi G. Takaoka1-1/+1
2014-06-03More concise Key.toString()•••Change-Id: I0ef983f54e828193e9c7e4a10c888f72702d499c Tadashi G. Takaoka2-12/+23
2014-06-02Import translations. DO NOT MERGE•••Change-Id: Iffe895ca4827bb7e1addf1087c74c9023d2f130f Auto-generated-cl: translation import Baligh Uddin57-57/+228
2014-06-02Import translations. DO NOT MERGE•••Change-Id: I5af9740ea071063bb48738abe258a61d7e06ddae Auto-generated-cl: translation import Baligh Uddin11-0/+55
2014-06-02Create AccessibilityDelegate only when accessibility mode is on•••Change-Id: I4cbae476d16723778b46ff765dd97832f279785f Tadashi G. Takaoka1-10/+16
2014-06-02Fix an IOOB exception•••Bug: 14602663 Change-Id: Ie2060931df911b44230d5a5ba268f687cbdd0dc8 Jean Chalard1-4/+7
2014-06-02Pass hover event to accessibility key handling methods•••Bug: 12491371 Change-Id: I1f7feef707b95e8862db71cbc4f6f5585a2441dd Tadashi G. Takaoka1-12/+15
2014-06-02Add verbalization of symbols that are unsupported by TTS/TalkBack•••Bug: 13336905 Change-Id: Iefd117fa7b30b8ba240590b13b03d7044fd37ede Tadashi G. Takaoka4-4/+96
2014-06-02Fix to clear on hover visual cue•••Bug: 12491371 Change-Id: Ib7ca91ae73aa40e45ea5f6d4e53348a261a4b823 Tadashi G. Takaoka1-13/+17
2014-06-02Refactor MoreKeysKeyboardView a bit•••Bug: 12491371 Change-Id: I3ce1e6557e41a94146b882751f75ae4b5f6bc73d Tadashi G. Takaoka2-25/+26
2014-05-30Workaround to draw spacebar icon of emoji palettes•••Bug: 15321822 Change-Id: Iab7cef83ffdf91c877c3ed2e59d412496b516e1c Tadashi G. Takaoka3-9/+25
2014-05-30Update shift key icon for LXX_Dark•••Bug: 15310025 Change-Id: I20bde50a2e751a5cd9871debd5ed1df0334c78e2 Tadashi G. Takaoka8-0/+0
2014-05-30Make prevWord = null if the next word starts from a connector.•••This fixes PunctuationTests# testAutoCorrectionWithSingleQuotesAround. Bug: 14119293 Bug: 15334309 Change-Id: I604c21a21e89a5fc431fd56ab7b6ad03f4736b01 Keisuke Kuroyanagi3-9/+31
2014-05-30Update action key backgrounds for LXX_Dark•••Bug: 15295839 Change-Id: I77206c88c38a31193db97ce42c9d00fc25c7ff58 Tadashi G. Takaoka8-0/+0
2014-05-30Update enter and send icons for LXX_Dark•••Bug: 15298065 Bug: 15327280 Change-Id: I4dfade1afe3578e29daba777567f81d4ec782956 Tadashi G. Takaoka8-0/+0
2014-05-30Update spacebar icon of LXX_Dark•••This CL does't fix Bug: 15321822 though. Bug: 15298065 Bug: 15321822 Change-Id: Ie6ab1e230c1657317dc06193da598f04f682f521 Tadashi G. Takaoka6-2/+2
2014-05-30Limit recapitalization for reasonable performance.•••At 100k text, it's reasonably fast (less than 1s on latest hardware). Bug: 12913404 Change-Id: I426b918b2610af24364934a1c37a7314f1142ad0 Jean Chalard2-9/+16
2014-05-29Don't reuse main keyboard's spacebar icon for Emoji palette•••Bug: 15321822 Change-Id: I6a5a865364fb98e0ebb6206d80d5629bbcb817b8 Tadashi G. Takaoka2-5/+17
2014-05-29Fix tests•••DEBUG in LatinIME has been changed by Ie52007dc to mean both DebugSettings.PREF_DEBUG_MODE and Settings.PREF_KEY_IS_INTERNAL instead of just DEBUG_MODE as used to be the case. Tests depend on the debug mode to test many things and they make sure they run in debug mode or they fail. This has tests understand the change in policy. Change-Id: Ie9f29e6a1d85e19704c8940d3fcf97c13c3dbaa6 Jean Chalard1-3/+3