Seigo Nonaka
f53e034a17
Update language to comply with Android’s inclusive language guidance
...
See https://source.android.com/setup/contribute/respectful-code for reference
Bug: 161896447
Test: tapas LatinIME && m
Change-Id: I2ffb39ff70f61e579b62761d3da526a545dead1f
2020-07-22 14:08:35 -07:00
Dan Zivkovic
ecea6a6113
Merge changes Iaed8abfb,I8e55b57c into jb-ub-latinimegoogle
...
* changes:
LatinIME portion of StatsUtil change.
Do not decorate committed spans.
2015-06-23 20:55:23 +00:00
Tom Ouyang
912016b69f
Workaround for preserving responsiveness on a slow InputConnection.
...
1. Add mechanism to detect a slow or non-resonsive InputConnection (IC)
2. When IC slowness is detected, skip certain IC calls that are known
to be expensive (e.g., getTextAfterCursor).
3. Similarly, disables learning / unlearning on a slow IC.
4. IC slowness flag is reset when starting input on a new TextView or
when a fixed amount of time has passed.
Note: These are mostly temporary workarounds. The permanent solution is
to refactor RichInputConnection so that it is less sensitive to IC
slowness in general.
Bug: 21926256
Change-Id: I383fab0516d3f3a8e0f71e5d760a8336a7730f7c
2015-06-23 10:34:44 -07:00
Dan Zivkovic
ee6de1466b
Do not decorate committed spans.
...
Users rarely tap on committed words, and the cost of sending the spans back
through the input connection, back and forth to the target app, is too high.
Bug 21926256.
Change-Id: I8e55b57ce2148ed313dc927425b6d9c958634958
2015-06-23 10:25:58 -07:00
Dan Zivkovic
0232e73dfa
Cleanup before fixing getTextAfterCursor().
...
We never delete text after the cursor, so constrain the API accordingly.
Define the number of characters to read before and after.
Set them to reasonable values.
The next CL will start caching text after the cursor.
Bug 21926256.
Change-Id: Idd58daf68614de4a69344aa3c8a4323720c5d3a0
2015-06-19 12:06:18 -07:00
Tom Ouyang
6d8e783d18
Do not learn from cursor corrections when autocorrection is disabled.
...
Bug: 20681528
Change-Id: I80e7095b70a151f3ccc36856d7e0837613a35972
2015-05-01 00:00:47 +00:00
Yohei Yukaw
490fa47a46
Always specify non-null Locale object to SuggestionSpan
...
Confusingly, specifying a null Locale object to the constructor
of SuggestionSpan does not necessarily mean that
SuggestionSpan#getLocale() returns null. The constructor in
question also receives Context object, and Context's locale can
be used as a fallback locale to initialize locale of
SuggestionSpan.
With this CL, LatinIME always specify non-null Locale object
when instantiating SuggestionSpan object. It basically
corresponds to the active main dictionary, but can be
Locale#ROOT when one locale is not determined for some reasons.
BUG: 20435013
Change-Id: I2c152466410327300e7dba4d7ed9a22f57c17c4f
2015-04-20 20:29:44 -07:00
Mohammadinamul Sheik
db96122787
Fix the NPE on selection string on unlearnWord
...
Bug: 20150386
Change-Id: I2ed69aba7b1fdaba1e2ac07b8218a265dfe23e09
2015-04-13 16:30:22 -07:00
Tom Ouyang
e1b13a4550
Log timing for performUpdateSuggestionStripSync.
...
Change-Id: Id08daf7c06e874b43deed77a49b65969dadb1565
2015-04-03 15:23:52 -07:00
Dan Zivkovic
4c326c66e9
Merge "Log timing of commitChosenWord()"
2015-04-02 22:57:12 +00:00
Dan Zivkovic
5d2314fea0
Log timing of commitChosenWord()
...
Bug 19987461.
Change-Id: If5bb798a350e9083ee8b67a84af132c100f0a7eb
2015-04-02 15:54:28 -07:00
Dan Zivkovic
3350f70371
Merge "Log timing of commitChosenWord()"
2015-04-02 22:46:57 +00:00
Dan Zivkovic
9731fadcb4
Log timing of commitChosenWord()
...
Bug 19987461.
Change-Id: Ibeebb9f1b1c4f3a9ed988c9e20209a9c83b5a359
2015-04-02 15:43:11 -07:00
Dan Zivkovic
915b1ed34a
Merge "Log interrupted tasks in AOSP."
2015-04-02 22:15:19 +00:00
Dan Zivkovic
5a53505fe4
Log interrupted tasks in AOSP.
...
Bug 19987461.
Change-Id: Ia2714f555146f8f31a6d8c61f555d2b6fecdab7d
2015-04-02 14:47:36 -07:00
Tom Ouyang
f3392aca58
Learn corrections that were made in the middle of a word.
...
These occur when the user moves the cursor into a word.
Bug: 19571104
Change-Id: Ibc2e4f0146f7c1130ad078bd0c0a871dafa5d694
2015-04-02 10:20:08 -07:00
Tom Ouyang
1a58c47ebe
Unlearn word when the user moves the cursor in to correct it.
...
Change-Id: I36358e551d6c51e786b6e09b1a1368ebf3c48f69
2015-04-01 17:26:35 -07:00
Dan Zivkovic
fe716f0f73
Resolve some InputLogic todo comments.
...
Change-Id: Ic3d7d11ad90cc09edf62f48aa5362e71d692f7dd
2015-03-20 10:49:15 -07:00
Mohammadinamul Sheik
7df95c54fa
Merge "Add prev words context to the SuggestedWordInfo."
2015-03-20 00:41:27 +00:00
Mohammadinamul Sheik
ab59129594
Add prev words context to the SuggestedWordInfo.
...
Bug: 19712589
Bug: 19715579
Change-Id: Ie06665cab8405455c1b0a2ff034e0bb0731c9156
2015-03-19 16:07:04 -07:00
Dan Zivkovic
dbf117b661
Log accepted punctuation suggestions.
...
Bug 19825927.
Change-Id: If65b56aa5c269e47bcc609bdc673ba18c450ee66
2015-03-19 15:40:40 -07:00
Mohammadinamul Sheik
4024984c1e
Pass DictionaryFacilitator for autocorrection and suggestion stats
...
Bug: 19715579
Change-Id: Ic48de74bde0f9f5d5e68e8289948cc5e92cbfa1e
2015-03-17 15:18:21 -07:00
Dan Zivkovic
4e1f0f1bb0
Redundant code matches multiple languages.
...
InputLogic should not have code that tweaks suggestion ranking based on the
language of the source dictionary.
Bug 19744396.
Change-Id: I8c0849555e74cec1302e78da04148dedd1cddabe
2015-03-16 14:11:59 -07:00
Dan Zivkovic
5455179b54
Revert "Next-word suggestion bit in keyboard settings."
...
This reverts commit 1ae16dc3db
.
Bug 19596067.
Change-Id: Ie7286acbb70b215d7bd08e271bcf14526b68576f
2015-03-16 11:23:22 -07:00
Dan Zivkovic
7e1dfaae3d
Merge "Remove ALS from LatinIME."
2015-03-12 17:17:59 +00:00
Dan Zivkovic
107fb4c476
Remove ALS from LatinIME.
...
This fixes unit tests and brings us closer to a green build.
Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
2015-03-11 17:29:12 -07:00
Chieu Nguyen
4e0af43673
Remove unused phrase gesture code.
...
Bug: 19687841
Change-Id: I0862aa3127bf7f1564a4845efdf99ebf5ae4d5ac
2015-03-11 17:09:44 -07:00
Tom Ouyang
222f647137
Restart suggestions when backspacing into a reverted word.
...
This is required for the final corrected word to be learned,
as learning only occurs when suggestions are active.
Note: This is already happening when backspacing into a non-reverted
word
Bug: 19619907
Bug: 18465402
Change-Id: I99a1d4f0ca0d62a2cdfa24cc0833ce89391715d9
2015-03-05 17:42:35 -08:00
Dan Zivkovic
1ae16dc3db
Next-word suggestion bit in keyboard settings.
...
This feature works in supported languages.
We don't need a user setting.
Bug 19596067.
Change-Id: Icdded772745f9816da47f8a5e3b87b733083b121
2015-03-04 15:02:53 -08:00
Chieu Nguyen
fdf3cc41ee
Handle double space inserting a period.
...
Change-Id: I109f0e9cf3e972bf60aa3fbbe817337aef70ea3c
2015-02-27 13:19:21 -08:00
Mario Tanev
487e038ff3
Use Keyboard in several interfaces.
...
Simplify interfaces by passing Keyboard instead of
KeyboardLayout and ProximityInfo directly. Also require
the Keyboard passed be non-null and change the SpellChecker
to bail out if there is no keyboard for the locale.
Change-Id: I960f15ff60171f55d3e0a96fd6469b7dc3a045e2
2015-02-25 17:20:00 -08:00
Jatin Matani
f7058c2a89
Merge "Pass long timestamps to DictionaryFacilitator"
2015-02-24 20:57:34 +00:00
Tom Ouyang
edb2d23802
Check for null TextRange in InputLogic.unlearnWordBeingDeleted
...
Change-Id: Ia0df0ab740c76185f94966f59a74a6ebdd1cffe8
2015-02-24 11:30:42 -08:00
Jatin Matani
94b8523566
Pass long timestamps to DictionaryFacilitator
...
Change-Id: I95500f210ed409c0ff254b08b68fe3b5b59ba4f4
2015-02-23 16:50:02 -08:00
Tom Ouyang
edea47ff2e
Add more options for calling removeWordFromPersonalizedDicts.
...
Bug: 19441205
Change-Id: I41aff536a64271d2dc9489a20df33d64170756cc
2015-02-19 12:03:42 -08:00
Dan Zivkovic
6e0467c20e
Fix accidentally inverted if check.
...
Change-Id: I9c28f4154f69c63564a2bda357c16cef4e68dc0d
2015-02-04 18:23:38 -08:00
Dan Zivkovic
c4977b5f89
Merge "Removing code from RichInputConnection."
2015-02-05 01:14:46 +00:00
Dan Zivkovic
a6d2cf5ec7
Removing code from RichInputConnection.
...
Followup CL that removes some more unused methods and variables.
Change-Id: I4163c7cd017f59d1fd445adb6294fc89dcaafe6e
2015-02-04 16:47:56 -08:00
Mohammadinamul Sheik
b00c054125
AOSP changes to use KeyboardLayout to support the new DictionaryFacilitator
...
Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844
2015-02-04 12:50:31 -08:00
Dan Zivkovic
23574d1231
LatinIME portion of "green plus" feature.
...
Removes the feature that adds strings to the user dictionary,
aka the "green highlight with a plus sign".
Bug 19237189.
Change-Id: I2387129a3add2d69d625f2ff16ed8cab3f10a735
2015-02-03 15:12:01 -08:00
Dan Zivkovic
77e0fa1d67
LatinIME portion of multi-lang option removal.
...
Bug 19188067.
Change-Id: Ic9a3637f59dda30c699141222b9dcac3cd624b99
2015-01-29 15:57:03 -08:00
Jean Chalard
a2cb2f36a6
Make the typed word a SuggestedWordInfo
...
That allows to carry the language information in an
accurate manner.
Bug: 18063142
Change-Id: I0bca8981372ae10648274095b18b26a3686b762b
2014-11-20 13:57:01 +09:00
Jean Chalard
8736f2d719
Merge "Fix oscillations on ICS"
2014-11-19 10:23:28 +00:00
Jean Chalard
9444d70514
Fix oscillations on ICS
...
Bug: 18181427
Change-Id: Ib4dd62037b1f7b2d10496ee3e45b4a138e29f90a
2014-11-19 19:22:04 +09:00
Jean Chalard
fde0cce103
Merge "Remove the other deprecated constructor to SuggestedWords"
2014-11-19 08:30:03 +00:00
Jean Chalard
6d1201915d
Rename a confusing method name
...
...and fix a bug that happened because of it.
Bug: 18417740
Change-Id: I7a33780adcb8f4e2625abcd3eec906dfee1f5dcf
2014-11-18 11:52:35 +09:00
Jean Chalard
83f9524b87
Remove the other deprecated constructor to SuggestedWords
...
Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
2014-11-17 16:23:52 +09:00
Jean Chalard
36799b2aa2
Move InputPointers and ResizableIntArray to common
...
Bug: 18108776
Change-Id: Ie5c0430aa41a8d6c58bf510a10173223d7dfe9fe
2014-10-29 12:09:11 +09:00
Jean Chalard
4beeb9253a
Move StringUtils under common.
...
Bug: 18108776
Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
2014-10-28 22:44:30 +09:00
Ken Wakasa
9342484e8d
Move Constants.java to the latin.common package
...
Our intention is to have classes of latinime-common under the common
package as much as we can.
Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
2014-10-23 20:27:37 +09:00