aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/compat/InputMethodServiceCompatWrapper.java (unfollow)
Commit message (Expand)AuthorFilesLines
2012-01-17Remove KeyboardSwicther.toggleCapslock•••Change-Id: Id613c06e2df770659095d78d42637aed063d0c70 Tadashi G. Takaoka6-38/+17
2012-01-17Rename KeyboardActionListener methods•••* Rename KeyboardActionListener.onPress to onPressKey * Rename KeyboardActionListener.onRelease to onReleaseKey * Merge KeyboardSwicther.onPressShift, onPressSymbol, and onPressOtherKey to onPressKey. * Merge KeyboardSwitcher.onReleaseShift and onReleaseSymbol to onReleaseKey. * Merge KeyboardState.onPressShift, onPressSymbol, and onPressOtherKey to onPressKey. * Merge KeyboardState.onReleaseShift and onReleaseSymbol to onReleaseKey. Change-Id: Icf28fd18e238c5e534c292893e4ab5b6b98e72f8 Tadashi G. Takaoka12-219/+230
2012-01-17Remove toggleShift and toggleAlphabetAndSymbols from KeyboardSwitcher•••Change-Id: I9bb8f78b0a766cd7937d5cbe1c1e5e35898b2997 Tadashi G. Takaoka6-525/+197
2012-01-17Fix a bug where words disappear on inserting separators•••The basic idea is that in some situations, we would restart suggestions, but before evaluating them we would bail out because suggestions were not requested. This would lead to the "correction" set to null, so we would commit a null word. This fix does two things: - Do not restart suggestions when not requested. - If we still end up with a composing word when suggestions are not requested, we select the typed word as the correct version. Bug: 5846646 Change-Id: Ic35351841d0cb20afa99092ef681ecb7bd68bec6 Jean Chalard1-1/+7
2012-01-17Prepair for advanced two words error correction•••Change-Id: I4c8a21f0f6e349ddafd9b402583321a60855cfe8 satok6-7/+198
2012-01-17Fix a bug where suggestion would restart at a bad time•••Bug: 5846646 Change-Id: I7c907d0a9478e0878b92ead94173caefc21b627b Jean Chalard1-3/+16
2012-01-17Support EditorInfo.IME_FLAG_FORCE_ASCII•••Bug: 5850605 Change-Id: I6665b483f775094903f2e26f5584e4b141592ab5 Tadashi G. Takaoka3-5/+30
2012-01-17Add "force non-distinct multitouch" debug option•••Change-Id: I9fd6fabf03515011cedb8aaa30fdb7a77f2d4d12 Tadashi G. Takaoka5-1/+22
2012-01-17Use edit distance for transposing correction•••+1 73 -1 4 +2 0 -2 0 +3 0 -3 0 +4 11 -4 19 +5 9 -5 3 +6 2 -6 63 +7 2 -7 8 Change-Id: I269cd2386f451f8932e4e0ae66223e794fdfa862 satok2-13/+15
2012-01-17Small cleanup•••The method deleteWordAtCursor would call finishComposingText, which is a very unexpected state change and would probably cause surprising bugs to any parent that would call it. As it happens, it's not used anywhere any more so let's just remove it. Change-Id: Iaa9200866e40b4e914f76baa987279948300679c Jean Chalard2-18/+1
2012-01-17Add some comments about resuming auto-suggestion•••Bug: 5846646 Change-Id: Ib2c76ec173972eb7acadbfaae7e930849d546721 Jean Chalard1-0/+5
2012-01-16Remove redundant permission tag•••Change-Id: I717e2fc9dca13096d76c159f8c3bebff065c6ca1 Tadashi G. Takaoka1-2/+0
2012-01-16Remove duplicate logic from KeyboardSwitcher and KeyboardState•••Change-Id: I1d331ee7f71501baa4ec2df01df39340499834e4 Tadashi G. Takaoka2-22/+10
2012-01-16KeyboardState unit tests for non-distinct multitouch device•••Bug: 5708602 Change-Id: Id85db2f8b7b427ba62205f5aaad481a3d33e65fc Tadashi G. Takaoka3-1/+316
2012-01-16Add shortcut only to xml output.•••Change-Id: I23b53826ce30b0ac81962d2f916514cb60bea6ff Jean Chalard3-3/+9
2012-01-16Actually add shortcut-only entries.•••Change-Id: I84bec8fb560cec2ad9cc857397a3f77a96b1d12d Jean Chalard3-23/+64
2012-01-16Stop avoiding adding what the user typed to candidates•••There does not seem to be any reason other than a historical one to avoid doing this, but it takes processing power and makes things more complicated. This has a very limited impact on regression tests: 5 -> 3 [He, the] 5 -> 3 [An, an] 5 -> 3 [Where, where] 5 -> 3 [This, this] 7 -> 1 [wAtch, watch] 6 -> 4 [oveNs, oceans] 5 -> 1 [Ahere, Where] 7 -> 1 [Hast, Hast] 7 -> 5 [bjp, bill] 5 -> 1 [What, What] 5 -> 3 [Sound, So und] 7 -> 3 [causalities, casualties] 7 -> 3 [discontentment, discontent] 7 -> 3 [irregardless, regardless] 5 -> 1 : 2 5 -> 3 : 5 6 -> 4 : 1 7 -> 1 : 2 7 -> 3 : 3 7 -> 5 : 1 +1 4 -1 0 +2 0 -2 0 +3 8 -3 0 +4 1 -4 0 +5 1 -5 7 +6 0 -6 1 +7 0 -7 6 Change-Id: I6407cf922f27bbd3992df11d63690e71fc61111b Jean Chalard3-3/+4
2012-01-16Fix double tap shift key to turn off capslock mode•••Bug: 5873562 Change-Id: If1f5ae1684905c1418ae43e55df38509444d29e2 Tadashi G. Takaoka2-3/+12
2012-01-16Read the group count correctly from the binary format•••...in makedict, for reverse makedict. Change-Id: I74774b50998eb605e8091d95cebdda6ad7f5fce3 Jean Chalard1-12/+34
2012-01-16Add more KeyboardState unit test cases•••Bug: 5708602 Change-Id: Ib9d2b7a2878f78adecc857fd569fba8965cf4a03 Tadashi G. Takaoka1-24/+318
2012-01-16Store suggestions for each input length for missing space algorithm etc.•••Change-Id: Ief8f6ddd29e043744863e5b9be3a51a70987291c satok7-65/+99
2012-01-16Add auto caps function simulation to MockKeyboardSwitcher•••Change-Id: I049c224994a37121de031b9fd61edb52eb912e20 Tadashi G. Takaoka1-6/+10
2012-01-16Write multi-byte chargroup count to the binary dict•••Change-Id: I093739933652c1e8c70c06f92077d1e3dbd7d7da Jean Chalard1-14/+36
2012-01-16Read multi-byte char group counts•••Change-Id: Idc62382f1c814e9bd1466c9f7dda1fcc8ba4137d Jean Chalard2-3/+6
2012-01-16Make MockKeyboardSwitcher top level class•••Change-Id: I52c1bc237c20b8bd49fca2431b83843a6e2af10b Tadashi G. Takaoka2-105/+152
2012-01-16Remove a bunch of obsolete methods.•••Change-Id: I218007bf411489d1d648fd9b8b408c5d27c41811 Jean Chalard2-76/+1
2012-01-16Don't cache resource value that depends on orientation•••Bug: 5794655 Change-Id: Ib324366c772e20bb54aba63c2f4540dc0f9de515 Tadashi G. Takaoka2-3/+8
2012-01-16Add a helper method•••Change-Id: I7a898940d5f672bbee0da0c02af7a08297051ec3 Jean Chalard1-0/+10
2012-01-16Update shift state when alphabet keyboard has been set•••Bug: 5857492 Change-Id: I5ef78af21a76e8cf645e223d1ffa6212690bb1eb Tadashi G. Takaoka3-1/+17
2012-01-16Cleanup KeyboardStateTests a bit•••Move test target KeyboardState into MockKeyboardSwitcher. Change-Id: I0998a5306a59e777360df9d1321b545313b939f9 Tadashi G. Takaoka1-40/+85
2012-01-13Fix a native crash with shortcuts•••Creation of the TerminalAttributes object failed to take into account that there may be children on this node. Change-Id: I8224a1a51532d1a40a8555f46425e3744388326b Jean Chalard1-2/+3
2012-01-13Use KeyboardSet for unit test•••Change-Id: I6a08e04628bac0222140e5b1b108f6bcb39859a2 Tadashi G. Takaoka5-19/+25
2012-01-13Remove reference of SubtypeSwitcher and SettingsValues from KeyboardSet•••Change-Id: I6c1150eea5f0a931d01578b0157f06e0aff0cc65 Tadashi G. Takaoka3-40/+69
2012-01-13New LOG lib•••Change-Id: I977e7e10fa58c0a64ca0c3c7b5cb2272446e3efe satok10-70/+74
2012-01-13Use placement new to construct the queue•••Change-Id: I455f9954165bd4524f2883db7ea24a6fed3015f9 satok3-12/+31
2012-01-13Fix SuggestTests•••We need revised scoring test because dictionary look up algorithm has been changed significantly since this SuggestTests was made. Change-Id: I69d527a6bfa24ed0dc189fddad1afab0566c6eb8 Tadashi G. Takaoka4-4/+5
2012-01-13Cleanup UtilsTests•••Change-Id: I5631d010194423fd3d9c216db760ffa726131977 Tadashi G. Takaoka1-2/+0
2012-01-13Fix UserBigramSuggestTests•••Change-Id: I3363fba44ee70876fd7ba8e27c6ca3c83753b53a Tadashi G. Takaoka1-1/+1
2012-01-13Fix SubtypeLocaleTests•••Change-Id: Id85814aa3bcd9cacbe446b2dfda3ca2ab9146c13 Tadashi G. Takaoka5-35/+22
2012-01-13Fix a bug in the logic to show 3 dots of the ime switcher•••Bug: 5806103 Change-Id: I67b3f0bb25d5fb9cfb902c03f41ae3e582107187 satok2-5/+16
2012-01-12Move auto correction thresthold to the native code•••bug: 5858137 Change-Id: Ic4b6270c6e51ef4ed25a6a1d8ddd7fdfa70fd78d satok8-128/+148
2012-01-12Change the application name of aosp latin ime•••Change-Id: I96281709736bc20d70e63af170bfb48b5df3f18d satok2-2/+4
2012-01-12Remove an excessive parens•••Change-Id: If8aa4253ab0f664e628ed7f4d7a3adc02a898cc7 Jean Chalard1-1/+1
2012-01-12Add a sanity check•••Check if any character is both a magic space swapper and a magic space stripper for the current language, and throw an exception if found. Since this is expensive, it's done only in debug mode. Change-Id: Ibd166db87c91495b76878ea0e4f420a62c7bb276 Jean Chalard1-0/+8
2012-01-12Fix a crash where revertSwap would be wrongly called•••This would crash the program when inputting a punctuation symbol that should not swap with a weak space through the suggestion strip, then press backspace. Those include all two-part punctuation symbols in French for example, as well as magic space strippers like the dash in English. For English all suggestion strips symbols happen to be magic space swappers so this would not happen in English by default. Also fix a typo. Change-Id: Ia40678c264e978509b5786290a75a3c57181648e Jean Chalard1-2/+3
2012-01-12Fix a bug where last candidate would not be reset•••Bug: 5851148 Change-Id: Ic270318842d8e16bc62d78d5fe0d6be0ca1fb532 Jean Chalard1-0/+6
2012-01-11Add internal structure support for isShortcutOnly (B8)•••Change-Id: Iaac80937540a45849c347f80400762032b27c82c Jean Chalard2-14/+39
2012-01-11Add EnabledWhenDefaultIsNotAsciiCapable to English keyboard subtype•••Bug: 5806103 Change-Id: Iffdc68565f4a8b5af98247a4dff9dc4e76b4056a satok1-1/+1
2012-01-11Add shortcuts to XML output of makedict (B7)•••Change-Id: I579e43cd147c4323c390cf1c9bf5e94ae79f9d86 Jean Chalard1-0/+10
2012-01-10Get rid of Keyboard.CODE_DUMMY•••Change-Id: Id2320f4d9b5f22f0ac844ab20ce42b0c4e7c6880 Tadashi G. Takaoka12-72/+70