aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize Utils classTadashi G. Takaoka2013-07-051-11/+13
| | | | Change-Id: I7294d1547def5dcfcae9d1d53b277cb3cc9f2d18
* Handling key repeat by emulating key press and code inputTadashi G. Takaoka2013-07-021-8/+12
| | | | | | | | This change also eliminates a reference of AudioAndHapticFeedbackManager from KeyboardSwitcher and MainKeyboard. Bug: 6522943 Change-Id: Iac42ec8ff00c66deb76a660ffc07477923a58959
* Merge "Move Range out of RichInputConnection and rename it."Jean Chalard2013-07-011-2/+2
|\
| * Move Range out of RichInputConnection and rename it.Jean Chalard2013-07-011-2/+2
| | | | | | | | | | | | Range has grown a bit too big to stay an internal class. Change-Id: Ic3fbc48a5d10776eedd7559c4d696e5926b88288
* | Do not re-resume suggestion if it's not needed.Jean Chalard2013-07-011-1/+6
|/ | | | | | | | | This is much better interface-wise. It eliminates all blinking of the line in the practice. Bug: 8874148 Bug: 8864306 Change-Id: I87754e44784327c2e9c8b162d598d145e20668e8
* Merge "Ignore spans that are not the right size."Jean Chalard2013-06-271-16/+9
|\
| * Ignore spans that are not the right size.Jean Chalard2013-06-261-16/+9
| | | | | | | | | | | | Bug: 8839763 Bug: 8862327 Change-Id: I5d49c86edcbc0fc1b2b147856437cfbadd678377
* | Merge "Resume suggestion at start input"Jean Chalard2013-06-261-0/+1
|\ \ | |/ |/|
| * Resume suggestion at start inputJean Chalard2013-06-251-0/+1
| | | | | | | | | | Bug: 9568410 Change-Id: I65468268f8613c863fa7f3a497b64656da0a221c
* | Readability improvementJean Chalard2013-06-261-2/+6
| | | | | | | | Change-Id: I2f350145f333ba1fa4eb20027b0f41107c2df02c
* | Fixing follow-up to I548d899bJean Chalard2013-06-261-1/+7
|/ | | | | | | | | | I548d899b introduced a new method to fix a sync miss between the cursor position and the cached cursor position, but did not take into account that it should also update the cached text before and after the cursor in this case and that there was already a method for doing this. Change-Id: I31bd741893207c822827304e77791b1159774e1a
* Make UserLogRingCharBuffer an external classKen Wakasa2013-06-251-5/+0
| | | | Change-Id: I9d506995337d64ec11c72939a8d739423ee46efa
* Merge "Fix a bug in the cached cursor pos, and simplify selection handling"Jean Chalard2013-06-251-9/+6
|\
| * Fix a bug in the cached cursor pos, and simplify selection handlingJean Chalard2013-06-211-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The documentation for setComposingRegion states explicitly that it does not move the cursor. This is just a bug. This does not have any ill effects right now, but it will have in later changes if not fixed. As for the selection handling, the specific test that this code removes used to serve a purpose, but it does not any more because the code using the value has been much sanitized. Now the variable can just take the obvious value, and become so self-explanatory that the comments are unnecessary. Change-Id: I548d899b38776bd3ab5f5361aab0d89d98f12e73
* | Merge "Fix a small bug"Jean Chalard2013-06-241-4/+4
|\ \
| * | Fix a small bugJean Chalard2013-06-241-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SpannableStrings are not the only type of Spanned, they are only the mutable kind. SpannedString is the immutable one. Spanned is the correct class to use there. Bug: 8839763 Bug: 8862327 Change-Id: Ic5e6199a51f22368914f2748ac2d0d1ca6a33f78
* | | Load the native lib eagerlyKen Wakasa2013-06-241-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | in the hope of avoiding UnsatisfiedLinkError. This is definitely not a confident fix as we still don't know the root cause of the issue. bug: 9325110 Change-Id: I1abf8031b98509f63fce6a2d069d497895ea712c
* | | Merge "Move util classes to the latin/utils directory"Ken Wakasa2013-06-241-1/+11
|\ \ \ | |/ / |/| |
| * | Move util classes to the latin/utils directoryKen Wakasa2013-06-241-1/+11
| | | | | | | | | | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* | | Refactor text range to be able to get spans larger than the wordJean Chalard2013-06-241-7/+10
|/ / | | | | | | | | | | | | | | | | This changes how the Range class stores its data, but not its functionality. It also improves encapsulation a bit. Bug: 8839763 Bug: 8862327 Change-Id: I5bd583b3fc96a99b93a2632882d8fd587c03ab76
* / Defer disk-intensive tasks until after the keyboard is shownJean Chalard2013-06-211-9/+33
|/ | | | | Bug: 8689779 Change-Id: Ia78d3540f44ec0028c3246a8e0163e9ecf061ecf
* Log score, kind, and sourceDict for manual suggestion and gestureKurt Partridge2013-06-131-1/+2
| | | | | | b/9422713 Change-Id: I4880fad6a5b10d09ca11b63311f14862bee724e5
* Merge "Cache subtype lists reasonably."Jean Chalard2013-06-131-0/+2
|\
| * Cache subtype lists reasonably.Jean Chalard2013-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This will spare a lot of IPC for Latin IME at the cost of very little retained memory. This improves the loading by potentially a lot - between 15 and 30% when the layout is cached (which should now be the case almost every time), and half that if it's not. More importantly, it makes the load time less sensitive to high device load, which is one of the sore points. Bug: 8689779 Change-Id: I2e07736f1a92c38eed0e203bc690761a181da8b9
* | Allow downloadable dictionaries in development buildsKurt Partridge2013-06-051-21/+10
|/ | | | | | Bug: 9305379 Change-Id: Iab32753070a056d3861a45aa898911b7ab67dfb6
* Merge "Add CODE_CAPSLOCK for long press shift key"Tadashi G. Takaoka2013-06-051-5/+10
|\
| * Add CODE_CAPSLOCK for long press shift keyTadashi G. Takaoka2013-06-041-5/+10
| | | | | | | | | | | | | | This change utilizes the no panel auto more key feature to implement long press shift key for shift lock. Change-Id: I3995d25dc35aea3c67b5aa29299815462eff9cad
* | Clear previous suggestions when gesture typing startsTadashi G. Takaoka2013-06-031-1/+3
|/ | | | | Bug: 8651076 Change-Id: Ic65ed3e3696409edea4e35080c11e4d1869a5a7e
* Merge "Uncommit separator LogUnits"Kurt Partridge2013-06-031-3/+5
|\
| * Uncommit separator LogUnitsKurt Partridge2013-06-021-5/+5
| | | | | | | | | | | | | | | | | | Now that separators have their own LogUnits, they must be uncommitted from the LogBuffer when backspacing over them. Bug: 9088919 Change-Id: Ib36cc94939b93abe18850a06bced17caf8aaa5b9
* | Merge "Uncommit LogUnits when reverting textInput"Kurt Partridge2013-06-031-0/+3
|\ \
| * | Uncommit LogUnits when reverting textInputKurt Partridge2013-06-011-0/+3
| |/ | | | | | | | | | | Bug: 9088919 Change-Id: I17187aa0afc1c3e9d32269c65f66cfb3a08663cb
* / Remove uncommit on reverting batch inputKurt Partridge2013-06-011-2/+0
|/ | | | | | | | | | | Currently when the user reverts a batch input, a LogUnit is uncommitted from the LogBuffer. It should not be, because the LogUnit containing the batch input is never committed in the first place (it is only committed to the LogBuffer when a key is pressed or a new batch input is entered). Bug: 9088919 Change-Id: I323af453ce082437a663ccae977b21b775a964bc
* Tell the text view we reset state on finish inputJean Chalard2013-05-291-0/+1
| | | | | | | | This should be done in onFinishInput rather than onFinishInputView but for an unknown reason onFinishInput never comes. Bug: 9113167 Change-Id: Iafb40846a3ed8fad78bfc160d17cd431f81fe891
* Implement KIND_OOV_CORRECTIONSatoshi Kataoka2013-05-271-3/+5
| | | | | Bug: 9127749 Change-Id: I96db15a3138e6b522c4c6ad16cc7faad577d3772
* Use localized toLowerString in AutoCorrection.isValidWordTadashi G. Takaoka2013-05-241-1/+1
| | | | | Bug: 9112465 Change-Id: I63eb4115f393444560e80220d4c90f0f7101b934
* Remove unnecessary methods of KeyboardSwitcherTadashi G. Takaoka2013-05-221-1/+2
| | | | Change-Id: Idd3647bb1a1d40df8bb89eda715d45427a58d0cd
* am 167ba345: am 89fe1f50: Add a method to work around apps broken by ↵Jean Chalard2013-05-201-0/+4
|\ | | | | | | | | | | | | recorrection * commit '167ba3459b0ce02b9add12ade9388bd2b1e6eb62': Add a method to work around apps broken by recorrection
| * Add a method to work around apps broken by recorrectionJean Chalard2013-05-211-0/+4
| | | | | | | | | | Bug: 8944307 Change-Id: I8986622554f30aaf4f595099c4ab5652b75c972c
* | am 5906b05b: am 7058b02a: Extract a new class for app-specific workarounds.Jean Chalard2013-05-201-21/+16
|\| | | | | | | | | * commit '5906b05bb50c0a67bd4f03fcfae41db3daefe0bc': Extract a new class for app-specific workarounds.
| * Extract a new class for app-specific workarounds.Jean Chalard2013-05-211-21/+16
| | | | | | | | | | Bug: 8944307 Change-Id: Iaff9dd03d3d856a6bdaa2b16c4e71e95cd2b6349
| * am f1dcf725: Merge "Don\'t process recorrection or resets when not shown"Jean Chalard2013-05-151-3/+13
| | | | | | | | | | * commit 'f1dcf725061b3e61e40540566a5385cf4934f424': Don't process recorrection or resets when not shown
* | Fix punctuation loggingKurt Partridge2013-05-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Punctuation is currently put into the same LogUnit as the following word. This is counter-intuitive and makes post-processing more complicated. This change causes punctuation to be put into its own LogUnit. A tricky case is the phantom space. A phantom space is inserted right before other text, whose MotionEvents have already been collected and inserted into mCurrentLogBuffer. Phantom spaces are handled by creating their own LogUnit and inserting it into the LogBuffer right before mCurrentLogBuffer is shifted in. Change-Id: I102d7cd93982ad37ba0abb6c1ac0f66b85b5f95d
* | Merge "Remove unnecessary commit/uncommit"Kurt Partridge2013-05-151-2/+0
|\ \
| * | Remove unnecessary commit/uncommitKurt Partridge2013-05-141-2/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user reverts a commit, this causes the committed word to be changed. The user usually then goes back to edit that word. Going back to edit causes an uncommit, so that the editing actions are added onto the LogUnit containing the operations used to construct the word. But currently, reverting also involves its own commit/uncommit pair, with the caller performing the uncommit, and the commit happening inside the revert command. This may have been necessary in the past, when revert was called in different situations, but is unnecessary now. Furthermore, the guarding conditions are currently such that the uncommit doesn't always undo the effects of the commit, corrupting the log output. Change-Id: I74af41f4f1db2fcabfa496dcc4a2d7bd0af19b3a
* / Don't process recorrection or resets when not shownJean Chalard2013-05-151-3/+13
|/ | | | | Bug: 8954116 Change-Id: Ica27dbfc570643bb81e6cdf34cc7c796ea080d71
* Merge "Revert "Fix isSuggestionsStripVisible when keyboard hidden""Ken Wakasa2013-05-141-14/+5
|\
| * Revert "Fix isSuggestionsStripVisible when keyboard hidden"Ken Wakasa2013-05-141-14/+5
| | | | | | | | | | | | | | This reverts commit cb0d1c4c584f3f47da3f630441b7de1e741584e0 Change-Id: Ie2c8e01c25bd051b6157e8f32ab84392a0c7252a bug: 8954116
* | Back to previous keyboard layout by canceling sliding inputTadashi G. Takaoka2013-05-141-3/+10
|/ | | | | Bug: 8915171 Change-Id: Iabdeb7920f67f89246087c3ee06240406ecfbc3d
* Fix isSuggestionsStripVisible when keyboard hiddenJean Chalard2013-05-141-5/+14
| | | | | | | | When the keyboard is hidden, the suggestion strip is never visible. Bug: 8954116 Change-Id: I9f242d07b49ad60b625a22429bb013251e814905