aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/inputlogic (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Move Constants.java to the latin.common packageKen Wakasa2014-10-231-1/+1
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-231-4/+6
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-212-44/+47
| | | | | | | | | | | | | | | | | | | | | This CL fixes the following compiler warnings. - Indirect access to static member - Access to a non-accessible member of an enclosing type - Parameter assignment - Method can be static - Local variable declaration hides another field or variable - Value of local variable is not used - Unused import - Unused private member - Unnecessary 'else' statement - Unnecessary declaration of throw exception - Redundant type arguments - Missing '@Override' annotation - Unused '@SuppressWarning' annotations Bug: 18003991 Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
* am 8435acd7: am f7f786d8: am d9c04a6b: am 6456af0e: am ecea8551: Fix a bug ↵Jean Chalard2014-10-151-3/+5
|\ | | | | | | | | | | | | with no suggestions flag * commit '8435acd789bd4f9c1322a73b9e0567c2dee7b336': Fix a bug with no suggestions flag
| * Fix a bug with no suggestions flagJean Chalard2014-10-151-3/+5
| | | | | | | | | | | | | | | | We should reset the composition state when moving the cursor inside the word after a gesture when the text field specifies no suggestions. Bug: 17959921 Change-Id: I977fea775f7b7e145e343636f0fb94266a40953a
* | Always show the typed word in recorrections.Jean Chalard2014-10-091-20/+11
| | | | | | | | | | | | | | Bug: 11330140 Bug: 17875601 Bug: 17623275 Change-Id: Ie4620f36f312c54c7b01b5f6cbdb0bc9171b6179
* | [ML19] Actually switch the language when appropriateJean Chalard2014-10-091-0/+5
| | | | | | | | | | | | | | | | That is, when auto-correcting or when manually picking. This is not great, but it's a good starting point. Bug: 11230254 Change-Id: I07627f48e2de1c28053d6572c7c72625808ec79c
* | [ML18] Make WordComposer#getAutoCorrection a word infoJean Chalard2014-10-081-25/+22
| | | | | | | | | | Bug: 11230254 Change-Id: I6ad2e7f89862fbfe7af5502961643320c782347f
* | Fix missing prediction words on contextual stripTadashi G. Takaoka2014-10-071-3/+2
| | | | | | | | | | Bug: 17874801 Change-Id: Iaba935a6b2548376f10a0ecd80f07ea7ada6c60a
* | Remove ENABLE_CURSOR_ANCHOR_INFO_CALLBACKYohei Yukawa2014-10-061-7/+4
| | | | | | | | | | | | | | | | | | We can now start relying on L APIs even in unbundled release. This means ENABLE_CURSOR_ANCHOR_INFO_CALLBACK can be always true. Hence we simply remove it. Change-Id: I0353e992e97e252059f83accea100504594bf171
* | Add calls to stub for API to consume gesture data.David Faden2014-10-032-0/+81
| | | | | | | | | | Bug: 17400259 Change-Id: Ib3511afffe1d14662e7dd14611f384689516e664
* | Merge "Never include the typed word in recorrections"Jean Chalard2014-10-011-19/+5
|\ \
| * | Never include the typed word in recorrectionsJean Chalard2014-10-011-19/+5
| | | | | | | | | | | | | | | Bug: 17623275 Change-Id: I2461e5e8baf06fb80a05b87f9d3db7a4d1952a01
* | | Merge "Make a better effort to detect a framework lie."Jean Chalard2014-10-011-12/+14
|\ \ \
| * | | Make a better effort to detect a framework lie.Jean Chalard2014-10-011-12/+14
| |/ / | | | | | | | | | | | | Bug: 17130496 Change-Id: I1a3631670c152d9b7667c9c4e08e14c48569eef5
* / / Fix an NPE on ICS factory rom.Jean Chalard2014-10-011-2/+4
|/ / | | | | | | | | | | | | | | | | | | In ICS factory rom and MR0, there was a bug where calling the constructor for SuggestionSpan that doesn't take a context as an argument would always return in a crash. Don't call it, and pass an explicit context instead. Bug: 13552505 Change-Id: I5c919499b9d086c2cf283795b2af5b91cb425933
* | Avoid double space when autocorrect is triggeredAdrian Velicu2014-09-301-1/+9
| | | | | | | | | | Bug: 17596034 Change-Id: Iaa6cc066eefd2436195a91791f2628e9a5f1c449
* | Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-17/+17
| | | | | | | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* | Merge "Hiding SuggestedWords.EMPTY and refactoring code that compares ↵Adrian Velicu2014-09-221-10/+9
|\ \ | | | | | | | | | SuggestedWords instances directly to it to use isEmpty instead"
| * | Hiding SuggestedWords.EMPTY and refactoring code that compares ↵Adrian Velicu2014-09-221-10/+9
| | | | | | | | | | | | | | | | | | | | | SuggestedWords instances directly to it to use isEmpty instead Bug: 17560717 Change-Id: I7032bf0ab46f9cf5e3b3312a14e689b5496764c1
* | | Invoke onWordCommitUserTyped on startInput() with non empty wordcomposerMohammadinamul Sheik2014-09-181-0/+7
|/ / | | | | | | | | | | | | In chat clients, the last committed word is not committed via rich input connection. This will handle those missed out cases. Change-Id: If3f1f6e1927cdf56a09d3e9124f05c66ca75de53
* | Add word commit methods to StatsUtilsMohammadinamul Sheik2014-09-181-1/+17
| | | | | | | | Change-Id: Ibb2cf0150cd9a851ff48d097688edc916dc82998
* | resolved conflicts for merge of 233a2f21 to masterYohei Yukawa2014-09-181-112/+80
|\| | | | | | | Change-Id: If391cc622367dfb4448c6a5c32b82111d352d86e
| * Use Add-To-Dictionary indicator onlyYohei Yukawa2014-09-181-112/+80
| | | | | | | | | | | | | | | | | | | | With this CL, the previously used commit indicator was reverted. Instead we use the add-to-dictionary indicator only at the moment. This CL also fixes the indicator position in bidi context. BUG: 17335734 Change-Id: I5f7cf173ddc30876e2b01320acaff8ba4265edf6
* | Add StatsUtils.onAutoCorrection method.Mohammadinamul Sheik2014-09-161-2/+11
| | | | | | | | Change-Id: I9547b6c0f082ef7c09b251a6458badb65a841229
* | Add backspace event methods to StatsUtilsMohammadinamul Sheik2014-09-101-0/+14
| | | | | | | | Change-Id: Id45d217073e49ca5f2ba639b608d168d136bba58
* | am 61e7afa6: am 0eaa25e0: am 914078fd: Fix a bug where recorrection would ↵Jean Chalard2014-09-081-2/+1
|\| | | | | | | | | | | | | stop on connectors * commit '61e7afa6fa98939f9dcb9f7a2ebb5678a51d4201': Fix a bug where recorrection would stop on connectors
| * Fix a bug where recorrection would stop on connectorsJean Chalard2014-09-081-2/+1
| | | | | | | | | | Bug: 16733686 Change-Id: I7a9f79a81e33a1f5bf5f3daf0b78d0f1e4447e7a
* | Fix the sentence separator for Hindi.Jean Chalard2014-09-081-2/+5
| | | | | | | | | | Change-Id: I623e4ccbc324751eb67ec4bb777e2be5ae2a60d1 Bug: 17418371
* | Add StatsUtils.onPickSuggestionManually and SuggestedWords.indexOf.Mohammadinamul Sheik2014-09-071-0/+3
| | | | | | | | Change-Id: I1588448154d086569cb026825fdc36cd1812a582
* | am f2c509a8: am 310da35c: Merge "Follow up API signature change" into lmp-devYohei Yukawa2014-09-031-1/+1
|\| | | | | | | | | * commit 'f2c509a81ef107e6c71dc6804417469d12c94fca': Follow up API signature change
| * Follow up API signature changeYohei Yukawa2014-09-031-1/+1
| | | | | | | | | | | | | | | | This is a follow up CL for API signature change in I772c48ff18918e48a81e807b48ff907614485c09 BUG: 17320996 Change-Id: Ic8b6162bda12bf74fae79af212c5d81c400eb9e8
* | am c925ca43: am 97681ebd: Set highlight color along with the commit indicatorYohei Yukawa2014-08-271-2/+39
|\| | | | | | | | | * commit 'c925ca43a6e0b3175feb002ce6b5577ef7d66507': Set highlight color along with the commit indicator
| * Set highlight color along with the commit indicatorYohei Yukawa2014-08-271-2/+39
| | | | | | | | | | | | | | | | | | | | With this CL, the text highlight color is applied when the commit indicator is displayed. Note that the underline is not rendered when the background color is enabled. This is a known issue. Change-Id: Ia19355e1303e3a10e8a7d69bc47c779feb70248a
* | resolved conflicts for merge of 8159336b to masterKen Wakasa2014-08-271-11/+43
|\| | | | | | | Change-Id: I9dd726593c6768b1db35305935ee69b0937358ef
| * Set the text bgcolor only when CursorAnchorInfo is availableYohei Yukawa2014-08-271-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | When CursorAnchorInfo is unavailable, we shouldn't try to show the commit indicator and set the text highlight color. With this CL, RichInputConnection can be used to track if the application responded that it does support CursorAnchorInfo or not. This result will be taken into consideration when InputLogic needs to determine whether the commit indicator should be displayed or not. Change-Id: I945d70eeb02a7a5f3d9b22459b23d7028508910f
| * Introduce a mechanism to hide the indicator speculativelyYohei Yukawa2014-08-261-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an optional optimization to reduce the UI latency. Imagine that the commit indicator is now displayed and the composing text is being updated, it is highly likely that the commit indicator will disappear unless the application rejects the setComposingText request. If we assume that the application will accept the new composing text without any modifications, we can hide the indicator without waiting for the arrival of new CursorAnchorInfo event. This optimization isn't dangerous because we can show the indicator again when we receive new CursorAnchorInfo event and the assumption is turned out to be invalid. Change-Id: Id59c6607a1029782410611e768791af9984f14ac
* | resolved conflicts for merge of 0268f736 to masterKen Wakasa2014-08-271-4/+140
|\| | | | | | | Change-Id: Ib89ef55a8752f9b5e357eed3a05c79dd28d0ec0e
| * Introduce commit/add-to-dictionary indicatorsYohei Yukawa2014-08-261-4/+140
| | | | | | | | | | | | | | | | | | | | This CL introduces commit/add-to-dictionary indicators. Note that the text is not yet highlighted when the commit indicator is displayed. It will be addressed in subsequent CLs. Change-Id: I7e9b0fcfdc0776a50a1d8cfb41ee0add813317dd
* | Merge "Fix a bug where mic/emoji key wouldn't work."Ken Wakasa2014-08-261-3/+3
|\ \ | |/ |/|
| * Fix a bug where mic/emoji key wouldn't work.Jean Chalard2014-08-261-3/+3
| | | | | | | | | | | | Bug: 17272902 Bug: 17269948 Change-Id: I561609fa84a6265f8148db7d2411bc1fd38dd163
* | Fix a bug where the top prediction would disappear.Jean Chalard2014-08-261-12/+8
|/ | | | | | | | | | This is because prediction can't be easily distinguished in style. This fixes the bug by simulating the right members, but some refactoring should be done to remove useless booleans. Bug: 17271923 Change-Id: Ib88f3fb95678021624e59535492926dd315d26fb
* Fix build due to an illegal characterYohei Yukawa2014-08-241-1/+1
| | | | Change-Id: I597ab26db70387b80ddcd7d51de6ae751380030d
* Merge "Dismiss "Add to dictionary" hint with non-special char event" into ↵Yohei Yukawa2014-08-251-2/+7
|\ | | | | | | lmp-dev
| * Dismiss "Add to dictionary" hint with non-special char eventYohei Yukawa2014-08-241-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | This CL slightly extends the condition when "Add to dictionary" hint is dismissed. With this CL, "Add to dictionary hint" will be dismissed by any non-special char event. This is more comfortable especially if we start using more intrusive UIs such as indicator and/or background color with the text hint in the suggestion strip. Change-Id: I2ea0fa40d9c6663ebf5d5439be3eca2a2cbd5166
* | Introduce #shouldShowAddToDictionaryHintYohei Yukawa2014-08-241-8/+15
| | | | | | | | | | | | | | | | This is a groundwork for subsequent CLs where we need to call this method from multiple places. This CL does not change any existing behaviors. Change-Id: Id8fa0360305d7383571edffab6752b2240367cf9
* | Allow to add/remove background color to/from the committed textYohei Yukawa2014-08-241-2/+22
|/ | | | | | | | | | | | | | This is a groundwork for subsequent CLs where we need to add/remove background color to/from the commited text. In this CL, we use Spanned#SPAN_COMPOSING so that we can easily remove such a background color by calling InputConnection#finishComposingText. To make this operation easy and realiable, we need to track whether we have specified the background color to the commited text or not at one place. Here we use RichInputConnection for this purpose. Change-Id: I5f9bc4425c5d1b80a719a20e5baf336729ec08d2
* Add the input style to SuggestedWords.Jean Chalard2014-08-142-19/+30
| | | | Change-Id: I81f37d08659d449822b027d3d5912e11eec8b8ff
* Revert "[HS2] Move more stuff to onStartInput"Jean Chalard2014-08-061-1/+1
| | | | | | | This reverts commit 93b00a314e307cb257abf1cab88cb24d57ff3885. Bug: 16830599 Change-Id: I955e7da77978c3a495660aa29247e010d489c36b
* [HS3] Fix a bug on ICSJean Chalard2014-08-061-0/+1
| | | | | | | | | | There is a bug in ICS where the input connection won't take any writing commands after rotation until the cursor moves. This fixes it by wiggling the cursor position once before trying to do anything. Bug: 16810766 Change-Id: Ib14c70bd0550420cecfa86dea501d13a1a91e296