aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update personalized dict only when single subtype is used.Keisuke Kuroyanagi2014-01-071-2/+6
| | | | | Bug: 12424891 Change-Id: If041d1ab45988dbf9b878ae3367fee0fbc8a8988
* [IL52] Remove a useless method.Jean Chalard2013-12-271-1/+2
| | | | | | | | | | | | | | | This old method doesn't even re-read the old suggestions. It used to recompute them without the coordinates. Re-using the recorrection code, which is much more advanced, is the right thing to do here. Also, refining the test. It's no use trying to resume suggestion if we don't have a suggestion strip, since we aren't going to auto-correct anything anyway. Not the motivation for this change, but this also fixes Bug: 11620256 Change-Id: Id49efa32e293c49837c61fdc752c86bbac1d2c88
* [IL50] Move the InputUpdater out of LatinIME.Jean Chalard2013-12-271-161/+11
| | | | | | | ...at last Bug: 8636060 Change-Id: If5e27a9d28ff64d318dd76792f55edfc8a78d2d7
* [IL49] Move InputLogic-related init code to InputLogic.Jean Chalard2013-12-271-17/+3
| | | | | Bug: 8636060 Change-Id: Ie5027512f066d9c530a686ac559e4649a39bf439
* Merge "[IL48] Move onEndBatchInputAsyncInternal to InputLogic."Jean Chalard2013-12-271-35/+2
|\
| * [IL48] Move onEndBatchInputAsyncInternal to InputLogic.Jean Chalard2013-12-271-35/+2
| | | | | | | | | | Bug: 8636060 Change-Id: Idfabf7231a80e21786ce1910b5140bb3dddcac7d
* | Merge "[IL47] Inline getSuggestedWordsGestureLocked"Jean Chalard2013-12-271-23/+10
|\|
| * [IL47] Inline getSuggestedWordsGestureLockedJean Chalard2013-12-271-23/+10
| | | | | | | | | | | | | | | | | | This method is confusing with the *Locked convention, and the two-step call creates a useless callback object. This is better inlined both for readability and for performance. Bug: 8636060 Change-Id: I7c427c3ca4e831388a6d54de6728b32206a45d80
* | Merge "[IL46] Remove a useless message passing."Jean Chalard2013-12-271-20/+2
|\|
| * [IL46] Remove a useless message passing.Jean Chalard2013-12-271-20/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only point of this message is to send the processing on another thread. However, this will be accomplished later. Here is the exact call graph: 0. onUpdateBatchInput 1. -> MSG_UPDATE_GESTURE_PREVIEW_AND_SUGGESTION_STRIP 2. -> updateBatchInputSync 3. -> getSuggestedWordsGestureLocked 4. -> MSG_GET_SUGGESTED_WORDS 5. -> LatinIME#getSuggestedWords The point of both step 1. and step 4. is to make sure the processing is happening on the InputUpdater thread. Thus, it's useless to do it twice. Bug: 11326092 Bug: 8636060 Change-Id: Iceebb9e8879a8f15b73c987f5fd3489f27699be4
* | Merge "[IL45] Remove lingering messages"Jean Chalard2013-12-271-4/+9
|\|
| * [IL45] Remove lingering messagesJean Chalard2013-12-271-4/+9
| | | | | | | | | | | | | | Bug: 8636060 And possibly bug: 12085864 Change-Id: I867036bc3d8bd255dc8ceebdd30e28b4b3dc4b2d
* | Merge "[IL44] Some factorization"Jean Chalard2013-12-271-26/+62
|\|
| * [IL44] Some factorizationJean Chalard2013-12-271-26/+62
| | | | | | | | | | | | | | | | | | This sheds some light on what's happening here. Some comments were at least misleading, maybe indicating something is not sequenced as intended. Bug: 8636060 Change-Id: Ia74feb457a39fe4a672c27fe4203264fda940f04
* | Merge "Make setAdditionalDictionaries private."Keisuke Kuroyanagi2013-12-271-15/+22
|\ \ | |/ |/|
| * Make setAdditionalDictionaries private.Keisuke Kuroyanagi2013-12-271-15/+22
| | | | | | | | | | Bug: 8187060 Change-Id: I17be7b77ff89972d3ca6823b087b7bf35105af56
* | [IL43] Small cleanupJean Chalard2013-12-261-8/+7
| | | | | | | | | | | | | | All calls are already passing this Bug: 8636060 Change-Id: I13accefd7c17039dc5ec12dc9e8133ebc86451ad
* | [IL42] Inline getSuggestedWordsOrOlderSuggestionsAsyncJean Chalard2013-12-261-17/+7
| | | | | | | | | | Bug: 8636060 Change-Id: I5c47370a3ea5962caff4d40db2faa62accfc7147
* | [IL41] Remove a useless call and trampoline.Jean Chalard2013-12-261-14/+14
|/ | | | | | | | No point in calling maybeRetrieveOlderSuggestions now that the same work is done right here. The callback is also useless now. Bug: 8636060 Change-Id: Ic14849cb6f6e6293a42cfe068f5c6b18b7677bc0
* Extract dict operations from Suggest to a new class.Keisuke Kuroyanagi2013-12-261-12/+17
| | | | | Bug: 8187060 Change-Id: I77775aa50763158d99753c2312fa11fe14267aef
* [IL39] Change a test.Jean Chalard2013-12-261-5/+5
| | | | | | | | | I don't see why we would want to remove other suggestions just because the only suggestion happens to be a dictionary word. That's just inconsistent. Bug: 8636060 Change-Id: Ie2d990e5785273d625e6e5518026364165a8f2df
* [IL38] Fix a wrong double callJean Chalard2013-12-261-7/+7
| | | | | | This only gives bad results if a gesture results in only one suggestion. Change-Id: I5a2f27f83f6901a5a9ecf22f02bdfc9cca6d9f1d
* [IL37] Small simplificationJean Chalard2013-12-261-4/+3
| | | | | Bug: 8636060 Change-Id: I08a6c04986a0bd86ce4c232893e804766ebeebb9
* [IL36] Inline setAutoCorrectionJean Chalard2013-12-261-14/+9
| | | | | | | There are far too many one-use methods. Bug: 8636060 Change-Id: I84e0669b8d2cc5a2817c42b089e874dc60e84769
* [IL35] Preparative cleanupJean Chalard2013-12-251-11/+7
| | | | | Bug: 8636060 Change-Id: Id6791085816891c78289b0223bf0807db2da6300
* Use SettingsValues instead of Settings in Suggest.Keisuke Kuroyanagi2013-12-251-5/+3
| | | | | Bug: 8187060 Change-Id: Idba1e708d67c036072b728949d17f8bd98ae0115
* Move dict operations to Suggest.Keisuke Kuroyanagi2013-12-251-8/+5
| | | | | | Bug: 8187060 Change-Id: Iabe13abcd43b381360f7080b3f4ee0533f246160
* Remove personalized dicts when the option is turned off.Keisuke Kuroyanagi2013-12-251-5/+12
| | | | | | Bug: 11757851 Change-Id: I94f32859d862fe41e39845ab2bfc2d396c6aea0f
* [IL33] Opportunistically remove some KeyboardSwitcherJean Chalard2013-12-241-1/+3
| | | | | Bug: 8636060 Change-Id: I0480ac03b9902e940f566b5558b8499647983968
* [IL31] Move *BatchInput to InputLogicJean Chalard2013-12-201-107/+18
| | | | | Bug: 8636060 Change-Id: If0309be038518a71d735108b78ac9efbfe38c82b
* [IL30] Minor refactoringJean Chalard2013-12-201-3/+3
| | | | Change-Id: I8a8aa9f703c6fca5e25ec573b41f325680ac92dc
* [IL29] Move retryResetCaches and tryFixLyingCursorPositionJean Chalard2013-12-201-66/+5
| | | | | Bug: 8636060 Change-Id: I45b322e4844f023e91b80f9c2e0f7fa0166bcc59
* [IL28] Remove useless codeJean Chalard2013-12-201-25/+0
| | | | | | | | | I don't understand why this was checked in. The tests are completely useless, that makes the variables write-only, and the only side effect is useless as the keyboard commits suicide upon exiting debug settings. Change-Id: I4eb25295183f43a2e947a6a0467ea168d023c18a
* [IL27] Some refactoringJean Chalard2013-12-201-4/+6
| | | | | Bug: 8636060 Change-Id: Iedfdf71350f5fe3ab451fc5ec6e3c9901f71e50f
* [IL26] Move restartSuggestionsOnWordTouchedByCursorJean Chalard2013-12-201-111/+8
| | | | | Bug: 8636060 Change-Id: I373874585f4fa663b4207b9a02d751805259eb36
* [IL25] Inline handleCloseJean Chalard2013-12-201-12/+6
| | | | | | | Only ever used here. Bug: 8636060 Change-Id: Ia98c8bbe1c63ad4d057efe1cee87829b06124479
* [IL24] Move mDisplayOrientation to SettingsValues.Jean Chalard2013-12-201-14/+15
| | | | | Bug: 8636060 Change-Id: Id57ced0cca9dc9e5e85c3a53683588feb28c1402
* [IL22] Move onTextInput to InputLogic.Jean Chalard2013-12-201-46/+1
| | | | | | | Also pull the TLD specific processing Bug: 8636060 Change-Id: I20931ac6fc6c55a05aa8f8b97b0210c07d230ea2
* [IL21] Move the workaround utils to a better place.Jean Chalard2013-12-201-27/+11
| | | | | Bug: 8636060 Change-Id: I566f9e109ebcabe3a6a778118434ce79d02d1113
* [IL20] Remove some useless processing.Jean Chalard2013-12-201-8/+7
| | | | | | | | If we have the same text field, then the target app is necessarily the same. No need to re-evaluate it. Bug: 8636060 Change-Id: I66eb194c4cd08a6c1d47b26b99bd7f420130097e
* [IL19] Resolve a TODO.Jean Chalard2013-12-201-2/+1
| | | | | Bug: 8636060 Change-Id: Iec7c1001c46cf8e9a44422e3f9008e437cc5cab6
* [IL18] Move and rename updateSuggestionStripJean Chalard2013-12-201-55/+6
| | | | | Bug: 8636060 Change-Id: I3d00095cd0e83d1ee3834b37ff188b5aa9806fcb
* [IL17] Move commitChosenWord to InputLogic.Jean Chalard2013-12-201-75/+8
| | | | | | | | Also not-cache a value whose documentation says not to cache it. That makes it write only, so remove it. Bug: 8636060 Change-Id: I39798a039cebf79ad78a41fe457c9d9764a3f275
* [IL16] Improve getTextWithSuggestionSpanJean Chalard2013-12-201-1/+1
| | | | | | | | | | | | Dynamically test for the presence of main dict suggestions. This is much more potent and more accurate than the vaguely defined boolean. Also, resolve a TODO and avoid creating an object uselessly. Not directly related, but helpful with: Bug: 8636060 Change-Id: Ib1745f77ee6d9ec7cd8bbfa5a548652ec84ec902
* [IL15] Some small refactoringJean Chalard2013-12-201-3/+2
| | | | | Bug: 8636060 Change-Id: I4bfdf1628c9b55a79bd2d88ee30bf10b08a49232
* [IL14] Move getCurrent*Caps* to InputLogicJean Chalard2013-12-201-23/+12
| | | | | Bug: 8636060 Change-Id: I6338dcee0f7a80f2181ba0369f71350cb21d231a
* [IL12] move restartSuggestions* to InputLogicJean Chalard2013-12-191-34/+0
| | | | | Bug: 8636060 Change-Id: I99474248e8fa35eb3053b5520abc8716805fdfb4
* [IL11] CleanupJean Chalard2013-12-191-1/+1
| | | | | | | Make some methods private and add comments. Bug: 8636060 Change-Id: I6c7d13dca8a22dd1a6f110e8b18d52864429579f
* [IL10] Move revertCommit to InputLogicJean Chalard2013-12-191-60/+2
| | | | | Bug: 8636060 Change-Id: Ia5788b365f05ae880bad957cbef00ecc93abb5d1
* [IL9] Move commitCurrentAutoCorrection to InputLogicJean Chalard2013-12-191-43/+5
| | | | | Bug: 8636060 Change-Id: I405c4a537858a6d5ab0b29502a2792e8c3b2564e