aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/accessibility/KeyCodeDescriptionMapper.java (unfollow)
Commit message (Expand)AuthorFilesLines
2014-06-12Add removeUnigramEntry() to native dictionary policy.•••Bug: 15552347 Change-Id: Ic713f79ef26b5963060304df9c0a3a402c3cc6d4 Keisuke Kuroyanagi7-0/+28
2014-06-10Make dump dictionary settings easily extensible.•••This adds "Dump contextual dictionary". Bug: 14161647 Change-Id: I41a6d6e131d9d8c300ac0120d903d46d88bb3346 Keisuke Kuroyanagi4-45/+23
2014-06-10Special case periods in the spell checker•••Special case <valid word>.<valid word> to send as a suggestion the same string where the periods is replaced by a space. Bug: 10780091 Change-Id: I43c94675977f9ab5d7ee5671486cb742b39f3974 Jean Chalard3-1/+37
2014-06-10Purge dict reading code for 401 and create for 402.•••Change-Id: Ib0150b3306bb2db8aff443d1158fecc8464cbbdb Keisuke Kuroyanagi42-319/+331
2014-06-10Add prefix to the arguments of getDictionary().•••Bug: 13630847 Change-Id: Ib4513b8cb6981e01dd33fd9703cc01646a2c7ccc Keisuke Kuroyanagi6-21/+24
2014-06-10Update dictionaries•••>>> dictionaries/en_GB_wordlist.combined.gz Header : date : 1400639634 <=> 1402373154 version : 45 <=> 47 Body : Shortcut added: lust list 15 >>> dictionaries/en_US_wordlist.combined.gz Header : date : 1400750526 <=> 1402373154 version : 45 <=> 47 Body : Shortcut added: lust list 15 >>> dictionaries/en_wordlist.combined.gz Header : date : 1400639659 <=> 1402373178 version : 45 <=> 47 Body : Shortcut added: lust list 15 >>> java/res/raw/main_en.dict Header : date : 1400639659 <=> 1402373178 version : 45 <=> 47 Body : Shortcut added: lust list 15 Bug: 15347469 Change-Id: I35cb410bdb7b641f2f0d4d9bb19a17e3f4eb9c0b Jean Chalard4-0/+0
2014-06-10Debug log when failed to add/remove n-gram entry.•••Change-Id: Ibf0a4e01e1abc81b09aec104ba39d2ec18f4db8b Keisuke Kuroyanagi1-5/+12
2014-06-10Remove a useless method•••Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1 Jean Chalard2-32/+0
2014-06-10Remove mPrevWordsInfo•••This member has outlived its usefulness. It's not clear now that it makes things really faster, but it does bring a lot of complexity that we can avoid by removing it. Change-Id: Ifbc8094a45b56b958fe165b1930f4cc358a97721 Jean Chalard5-133/+57
2014-06-10Add audio and haptic feedback for Emoji and Suggestions•••Bug: 15378862 Change-Id: Ia14929bd9eb63ad5735cae0ad98ad0e2ad301128 Tadashi G. Takaoka8-37/+79
2014-06-09Set content descrition of words in suggestions strip•••Bug: 14849593 Change-Id: If020e2352c8e950ce87dc4711c39b8a6a41f66fc Tadashi G. Takaoka3-8/+9
2014-06-09Use RichInputConnection to get the previous word.•••We don't need the optimization of storing the old words now that the RichInputConnection can supply it without IPC. Bug: 13703802 Change-Id: I37ccb8d5fba879fb04b4f23d33571849736d897c Jean Chalard1-25/+6
2014-06-09Split the sentences into words ourselves•••The framework's default split is not suitable for all languages. Also it does not perform very well when space is mistyped as period. Bug: 9063355 Bug: 10780091 Change-Id: I400d790ff1c29f221697fd94d79bbf67c61c7b8a Jean Chalard2-2/+243
2014-06-09Fix TalkBack descriptions of keyboard shift mode transition•••Bug: 14846348 Change-Id: I32435a31f919974a506e598d1f3cc1b55a0866ae Tadashi G. Takaoka1-0/+14
2014-06-09Use rectangle region to ignore hover events after long press•••Bug: 15500282 Bug: 15501718 Change-Id: Ia4771198c3120a980b0a2cdd210928a4f47f5b83 Tadashi G. Takaoka1-9/+47
2014-06-09Refactor KeyCodeDescriptionMapper class a bit•••This CL adds getDescriptionForCode() method. Bug: 15500282 Change-Id: I3bb92c8f356ea623fc992c924506b11e09256e98 Tadashi G. Takaoka2-43/+28
2014-06-09Add distracter cache to optimize the distracter test.•••Bug: 13142176 Bug: 15428247 Change-Id: Ia390b148ffb36ace6c2010daf0f14838492413e8 Keisuke Kuroyanagi1-0/+18
2014-06-09Fix: NPE after turning on personalized suggestion.•••Bug: 13142176 Bug: 15428247 Change-Id: I236202e3c1b70a11d512c946798035087945c0ac Keisuke Kuroyanagi1-2/+7
2014-06-09Check isInDictionary() before the distracter test.•••Bug: 13142176 Bug: 15428247 Change-Id: I7ce2c09ebbef6ca8c056807c2a35f2f987fd436e Keisuke Kuroyanagi5-12/+72
2014-06-09Rename keyboard theme Quantum to Material•••Bug: 15467097 Change-Id: Id909723cd979ccd24740b034720591c9b1bcc2b1 Tadashi G. Takaoka1-3/+3
2014-06-09Make keyboard theme test robust•••Change-Id: I2547c8af6fa73e646f697cb4450140859d87625e Tadashi G. Takaoka1-11/+15
2014-06-09Add Dictionary.isInDictionary().•••Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e Keisuke Kuroyanagi12-49/+38
2014-06-08Fix overwriting accessibility delegate in setKeyboard•••A keyboard accessibility delegate object should be a singleton for each keyboard view. Bug: 15437933 Bug: 15419386 Change-Id: Ia70853c644d950ea6130c1f209b89929b1cb1ee5 Tadashi G. Takaoka4-12/+34
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