aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-06-12Add jni method for removeUnigramEntry().Keisuke Kuroyanagi1-0/+14
Bug: 15552347 Change-Id: Iadcdc73d3335d561a27b9314d3fcdab0b0c96e49
2014-06-12Add removeUnigramEntry() to native dictionary policy.Keisuke Kuroyanagi7-0/+28
Bug: 15552347 Change-Id: Ic713f79ef26b5963060304df9c0a3a402c3cc6d4
2014-06-10Make dump dictionary settings easily extensible.Keisuke Kuroyanagi4-45/+23
This adds "Dump contextual dictionary". Bug: 14161647 Change-Id: I41a6d6e131d9d8c300ac0120d903d46d88bb3346
2014-06-10Special case periods in the spell checkerJean Chalard3-1/+37
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
2014-06-10Purge dict reading code for 401 and create for 402.Keisuke Kuroyanagi42-319/+331
Change-Id: Ib0150b3306bb2db8aff443d1158fecc8464cbbdb
2014-06-10Add prefix to the arguments of getDictionary().Keisuke Kuroyanagi6-21/+24
Bug: 13630847 Change-Id: Ib4513b8cb6981e01dd33fd9703cc01646a2c7ccc
2014-06-10Update dictionariesJean Chalard4-0/+0
>>> 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
2014-06-10Debug log when failed to add/remove n-gram entry.Keisuke Kuroyanagi1-5/+12
Change-Id: Ibf0a4e01e1abc81b09aec104ba39d2ec18f4db8b
2014-06-10Remove a useless methodJean Chalard2-32/+0
Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1
2014-06-10Remove mPrevWordsInfoJean Chalard5-133/+57
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
2014-06-10Add audio and haptic feedback for Emoji and SuggestionsTadashi G. Takaoka8-37/+79
Bug: 15378862 Change-Id: Ia14929bd9eb63ad5735cae0ad98ad0e2ad301128
2014-06-09Set content descrition of words in suggestions stripTadashi G. Takaoka3-8/+9
Bug: 14849593 Change-Id: If020e2352c8e950ce87dc4711c39b8a6a41f66fc
2014-06-09Use RichInputConnection to get the previous word.Jean Chalard1-25/+6
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
2014-06-09Split the sentences into words ourselvesJean Chalard2-2/+243
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
2014-06-09Fix TalkBack descriptions of keyboard shift mode transitionTadashi G. Takaoka1-0/+14
Bug: 14846348 Change-Id: I32435a31f919974a506e598d1f3cc1b55a0866ae
2014-06-09Use rectangle region to ignore hover events after long pressTadashi G. Takaoka1-9/+47
Bug: 15500282 Bug: 15501718 Change-Id: Ia4771198c3120a980b0a2cdd210928a4f47f5b83
2014-06-09Refactor KeyCodeDescriptionMapper class a bitTadashi G. Takaoka2-43/+28
This CL adds getDescriptionForCode() method. Bug: 15500282 Change-Id: I3bb92c8f356ea623fc992c924506b11e09256e98
2014-06-09Add distracter cache to optimize the distracter test.Keisuke Kuroyanagi1-0/+18
Bug: 13142176 Bug: 15428247 Change-Id: Ia390b148ffb36ace6c2010daf0f14838492413e8
2014-06-09Fix: NPE after turning on personalized suggestion.Keisuke Kuroyanagi1-2/+7
Bug: 13142176 Bug: 15428247 Change-Id: I236202e3c1b70a11d512c946798035087945c0ac
2014-06-09Check isInDictionary() before the distracter test.Keisuke Kuroyanagi5-12/+72
Bug: 13142176 Bug: 15428247 Change-Id: I7ce2c09ebbef6ca8c056807c2a35f2f987fd436e
2014-06-09Rename keyboard theme Quantum to MaterialTadashi G. Takaoka1-3/+3
Bug: 15467097 Change-Id: Id909723cd979ccd24740b034720591c9b1bcc2b1
2014-06-09Make keyboard theme test robustTadashi G. Takaoka1-11/+15
Change-Id: I2547c8af6fa73e646f697cb4450140859d87625e
2014-06-09Add Dictionary.isInDictionary().Keisuke Kuroyanagi12-49/+38
Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
2014-06-08Fix overwriting accessibility delegate in setKeyboardTadashi G. Takaoka4-12/+34
A keyboard accessibility delegate object should be a singleton for each keyboard view. Bug: 15437933 Bug: 15419386 Change-Id: Ia70853c644d950ea6130c1f209b89929b1cb1ee5
2014-06-06Material themeAlan Viverette1-2/+2
BUG: 15467097 Change-Id: I1b6ed80d85e4c3c8913d4a9e08c519379cb3c6e0
2014-06-06DO NOT MERGE Material themeAlan Viverette1-2/+2
BUG: 15467097 Change-Id: I1b6ed80d85e4c3c8913d4a9e08c519379cb3c6e0
2014-06-06Refactor logic to determine showing suggestions strip or notTadashi G. Takaoka3-61/+34
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
2014-06-06Make Distracter filter use getMaxFrequencyOfExactMatches().Keisuke Kuroyanagi3-157/+77
Bug: 13142176 Bug: 15428247 Change-Id: I5c23fbea2851f891f76f19d9da2cb70ae964569b
2014-06-06Implement getMaxProbabilityOfExactMatches().Keisuke Kuroyanagi12-6/+185
Bug: 13142176 Bug: 15428247 Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
2014-06-06Update shift key backgrounds for LXX_DarkTadashi G. Takaoka16-0/+0
Bug: 15310025 Change-Id: I2fa267e5c448e28435f4737666a03b40f1f4a4d5 (cherry picked from commit 0621dd1d3c09b63e5cc47dd98718bd13566ba971)
2014-06-06When starting input, include the literal word in suggestionsJean Chalard2-14/+22
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
2014-06-06Fix a small bug with rotation.Jean Chalard1-1/+10
Bug: 2349475 Change-Id: Id4aa5ce56b1a545e4cb88ca1b01cf24642deade2
2014-06-06Always update voice key visibilityTadashi G. Takaoka4-29/+26
Bug: 15128166 Change-Id: Ie15724c323efa3b102f6aebddc3bda210aad1727
2014-06-06Remove unused supportsSwitchingToShortcutIme attributeTadashi G. Takaoka11-51/+49
Change-Id: I51c5247ac925a158facb79057f704b763b903552
2014-06-06Add action key test for Lxx themeTadashi G. Takaoka6-31/+171
Change-Id: I849cec7deb5607e8ce8fb25c1f903f15328fb611
2014-06-06Fix a bug on rotation with selection.Jean Chalard3-8/+18
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
2014-06-05Add getMaxFrequencyOfExactMatches() to Dictionary.Keisuke Kuroyanagi4-10/+64
Bug: 13142176 Bug: 15428247 Change-Id: I93b44ef40cafb6b811c68fa79f3a4971fc3916a5
2014-06-05Rename some boolean variables for readabilityTadashi G. Takaoka4-16/+16
Change-Id: I434cf507e68349b9893ac084645986d6b3d7da91
2014-06-05Add jni method for getMaxFrequencyOfExactMatches().Keisuke Kuroyanagi2-1/+24
Bug: 13142176 Bug: 15428247 Change-Id: I2ae25090b67ad0c6df97dec7712e2f7e0bb08c40
2014-06-05Refactor show voice key preferece migration codeTadashi G. Takaoka1-8/+8
Change-Id: I4f13e85a3db1ba4adf36c596cb23827bdcf93ae7
2014-06-04Import translations. DO NOT MERGEBaligh Uddin57-0/+456
Change-Id: Ia9a21cce0283a85dda9cd2fc82e694bf5aa44d00 Auto-generated-cl: translation import
2014-06-04Import translations. DO NOT MERGEBaligh Uddin57-0/+114
Change-Id: Ice980abcc56dc1f432b574ef19e6e082a2cef239 Auto-generated-cl: translation import
2014-06-04Support more suggestions accessibility modeTadashi G. Takaoka4-1/+57
Bug: 12491371 Change-Id: Ib01452b6a2a53faa591b05e62014f356e0511308
2014-06-04Support more keys accessibility modeTadashi G. Takaoka9-22/+367
Bug: 12491371 Change-Id: Ib1fc8affbccfbaca3424ecdc2812f47047106aa2
2014-06-04Allow multiple shortcuts for a personal dictionary wordJean Chalard1-1/+3
Bug: 13869301 Change-Id: Icd77a308f85cc16dccffe65a532471c738d6fbc5
2014-06-04Add onRegisterHoverKey to accessibility delegateTadashi G. Takaoka1-2/+12
Bug: 12491371 Change-Id: I8c5b1e91f41146a023edcc405e6120c0bf33f49b
2014-06-04Don't recapitalize just at the start of inputJean Chalard2-7/+21
Bug: 13283555 Change-Id: Iab0466425dc44779d110f2cd29d725d22eb04827
2014-06-04RefactoringJean Chalard3-29/+29
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
2014-06-04Revert "Pass hover event to accessibility key handling methods"Tadashi G. Takaoka1-12/+9
It turns out passing hover event to accessibility key handling methods isn't necessary. This parically reverts I1f7feef707. Bug: 12491371 Change-Id: I9d71cd29723344433427795e44cb22ac41faace6
2014-06-04Add a preference item for metrics loggingYohei Yukawa4-0/+48
BUG: 14324207 Change-Id: Idc8582655bc73cb24e416e8ba78470209b2ff702