Jatin Matani
48cc0d6420
Merge "Nuke Amanatto"
2015-02-03 19:20:40 +00:00
Jatin Matani
15acbdc905
Nuke Amanatto
...
Change-Id: Ieff2cd37f869dca69abf53ac32a576c2e45cc1e3
2015-02-02 17:10:38 -08:00
Dan Zivkovic
53e81fdc55
Remove custom code for Emoji keyboard Delete key.
...
The code tries to implement a completely separate touch handler for the Delete
key, so it can do fancy things like suppress haptic feedback during long press.
This is not really necessary.
Change-Id: I0eae758b617e94605035c40e0df15d972ae733c1
2015-02-02 15:24:17 -08:00
Mohammadinamul Sheik
a0efc133bd
Merge "Create a new KeyboardLayout class to represent the layout."
2015-01-31 01:46:12 +00:00
Mohammadinamul Sheik
d543984d2e
Create a new KeyboardLayout class to represent the layout.
...
Change-Id: Ia08c8194f460271c831702675cfb687ab9f6678b
2015-01-30 17:24:09 -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
Dan Zivkovic
e1758feeff
Disable the Burmese keyboard.
...
We'll resurrect this effort in the new code base.
Bug 16900511.
Change-Id: Iae4cd27cb29cb8f991e97cffd88ed59c30d66628
2015-01-29 10:17:33 -08:00
Mario Tanev
ab6f3b36d0
Change DictionaryFacilitator.java to an interface, create its
...
implementation DictionaryFacilitatorImpl.java and add a java-overridable
factory DictionaryFacilitatorProvider.java used to create a
DictionaryFacilitator.
Change-Id: Id4a58ae31feaa4d12a048a772c8d76ff82fdee45
2015-01-27 21:38:32 +00:00
Chieu Nguyen
d523bacebc
Merge "Add a method for handling for words not found in dictionary."
2015-01-23 16:35:16 +00:00
Dan Zivkovic
fc47007674
Merge "AOSP change for showing the app icon."
2015-01-16 17:49:37 +00:00
Dan Zivkovic
d913617e0c
AOSP change for showing the app icon.
...
This change deletes a bunch of code that was used to conditionally show/hide
the keyboard app icon given system states and user preferences.
Bug 19001197.
Change-Id: I69a57aa21872a571af87a193b3e52b7f985e5168
2015-01-16 09:37:30 -08:00
Jean Chalard
9fe700ec4f
Merge "Fix moving the cursor inside composition in lang w/o spaces"
2015-01-16 03:22:18 +00:00
Chieu Nguyen
2e8d536678
Add a method for handling for words not found in dictionary.
...
This is apparently called only once for every unique word, so repeated instances
of the same word are not handled separately. Upon changing orientation of the
device, however, all invalid words in the textbox are underlined again and this
method is called for each unique instance in order.
Change-Id: Ic57e4b9e5675bd7abd723644aa318d964f7f875f
2015-01-14 16:20:42 -08:00
Dan Zivkovic
303a2ae5c9
Fix NPE in PunctuationSuggestions.
...
The NPE happens when the keyboard doesn't specify any punctuation suggestions.
Bug 18047927.
Change-Id: I9f8aa35df4f163b527dc6580a99afc6da45a96b8
2015-01-13 13:24:16 -08:00
Jatin Matani
a1a9896b42
Rename production flag for cloud sync feature
...
Change-Id: I24cbe94f128f54fb9bfeeef78cf271fee2216c8e
2014-12-29 12:45:27 -08:00
Jean Chalard
8e235191dd
Fix moving the cursor inside composition in lang w/o spaces
...
Also introduce the cursor move event, which we needed to do
anyway
Bug: 18827118
Change-Id: I30e994764c095b4423b874dc05d1bbedc0de592f
2014-12-22 17:47:33 +09:00
Jatin Matani
3e35b8712c
[3]Ping dictionary stats:Pass DictionaryFacilitator
...
Pass dictionaryFacilitator to StatsUtilsManager from
LatinIME
Bug:16553957
Change-Id: I912a0b447e5684909ff67e3653a4bd8649cd03c5
2014-12-18 13:42:41 -08:00
Jatin Matani
20469a8779
Merge "[2]Pass context to StatsUtilsManager for alarms."
2014-12-18 21:35:45 +00:00
Jatin Matani
2b69244555
[2]Pass context to StatsUtilsManager for alarms.
...
Change corresponding to ag/605384
Bug:16553957
Change-Id: I77024957b9497c45296bbbb24ca972b26348a8c3
2014-12-17 12:16:02 -08:00
Tadashi G. Takaoka
dbdc81a36a
Merge "Cleanup InputMethodInfoCache"
2014-12-17 06:39:19 +00:00
Tadashi G. Takaoka
4077a7e52f
Merge "Remove SubtypeSwitcher"
2014-12-17 06:39:07 +00:00
Jatin Matani
bc4ae6bdc0
Passing account info to dictionaryFacilitator
...
Attempt to use dictionary facilitor without invoking
preference manager. Instead use account from settings only when
things are being reset/changed. Discussion forked from ag/591663
Overall, the idea here is to maintain an account information
inside dictionary groups. Reset the dictionary groups if
account changes (the way we do for locale). Since only user
history dictionary is currently affected, the check to reset user
history dictionary also includes the check to verify the account.
For other things remain the same.
SettingsValues holds the current account (and is updated if prefs change
due to change in account settings). The updated settings are then
propagated to dictionary facilitator via LatinIME#loadSettings.
Bug:18104749,18469539
Change-Id: I553e776e7ea125d0fb7a1fe70a4c7eb0b2277fb8
2014-12-16 15:56:00 -08:00
Jatin Matani
25daca0053
Merge "Provide a preference to delete data from cloud."
2014-12-12 19:43:16 +00:00
Tadashi G. Takaoka
afd52dfc60
Cleanup InputMethodInfoCache
...
Change-Id: I40afeb4557c3b1ad32bd90f67502a625df2bc3fb
2014-12-12 13:53:13 +09:00
Tadashi G. Takaoka
31a10e226d
Remove SubtypeSwitcher
...
Change-Id: Ic4def69a9f742f13c98bc3e518c406658b52797d
2014-12-12 13:45:46 +09:00
Tadashi G. Takaoka
8cfad7ed64
Merge "Make LanguageOnSpacebarHelper as utility class"
2014-12-12 04:42:09 +00:00
Jean Chalard
498dbfbd9d
Disable multiple language input
...
Bug: 18705799
Change-Id: I73730ccf59e2697acfb3fe436c01b94c40307f2f
2014-12-11 14:50:03 +09:00
Tadashi G. Takaoka
4934a88b61
Make LanguageOnSpacebarHelper as utility class
...
Change-Id: I546f3b1943999a41803222bd14f9ddd23aa87a51
2014-12-11 14:22:21 +09:00
Tadashi G. Takaoka
2b25f674f2
Add NetworkConnectivityUtils class
...
Change-Id: I7bd71f1d4ef0fc0fe21ddfd9f3e11463f53ac4e7
2014-12-11 01:37:44 +00:00
Jatin Matani
6814e7aa87
Provide a preference to delete data from cloud.
...
For now, it is a debug preference, but we may make this a proper
user setting in the future. Thus note that the messaging is not
final.
Pref looks like :
1. https://screenshot.googleplex.com/OLxW0myWD9.png
2. https://screenshot.googleplex.com/YeqWYXGstw.png
Bug: 18106936
Change-Id: I88bbc1a2ee0c23a48ff3972a91d57c218b10bb65
2014-12-09 12:45:34 -08:00
Keisuke Kuroyanagi
52e92f812b
Merge "Quit auto-correct explicit accented letters to base letters."
2014-12-09 10:24:56 +00:00
Keisuke Kuroyanagi
515c508135
Quit auto-correct explicit accented letters to base letters.
...
Bug: 7677193
Change-Id: I66eddbf27a9db8682c0347a1be19922792a3bea7
2014-12-09 19:23:27 +09:00
Tadashi G. Takaoka
be819dbe2b
Revert "Add keyboard margin options to place the keyboard dynamically."
...
This reverts commit 8584db1461
.
Bug: 18675223
Bug: 18675476
Change-Id: I4e25d87ac261c44b1943df832115f8cca690103a
2014-12-09 17:53:24 +09:00
Jatin Matani
45bbdc20bb
Merge "Rename variable name to remove ambiguity"
2014-12-09 03:53:22 +00:00
Jatin Matani
88cd34f8f8
Rename variable name to remove ambiguity
...
Change-Id: If95c34c9eab09cbc941bef5ee3d34b9048bf3bf9
2014-12-08 19:27:25 -08:00
Tadashi G. Takaoka
8af412d80c
Remove unnecessary cast and import
...
Change-Id: I9bcd6c9c48ad51aa0f95937869eb6757e4dd4511
2014-12-09 11:57:32 +09:00
Jatin Matani
2bdd5290a9
Merge "Hook for fetching sync content from UserHistoryDict"
2014-12-08 20:00:10 +00:00
Tadashi G. Takaoka
3dca77ec07
Merge "Refactor KeysCache to UniqueKeysCache"
2014-12-08 08:33:38 +00:00
Tadashi G. Takaoka
5ac8b040e8
Merge "Remove RichInputMethodManager.updateShortcutIME call from SubtypeSwitcher"
2014-12-06 01:44:54 +00:00
Andy Wang
8584db1461
Add keyboard margin options to place the keyboard dynamically.
...
Keyboard location and location can now be set in the debug options
section.
Change-Id: I87c5a1d679489e12dccf26632c399af28087629e
2014-12-05 16:21:20 +09:00
Keisuke Kuroyanagi
e79d504cf5
Merge "Cancel interval alarm for dictionary decaying in onDestroy."
2014-12-03 02:32:52 +00:00
Keisuke Kuroyanagi
47ae0c3af4
Cancel interval alarm for dictionary decaying in onDestroy.
...
Bug: 18528171
Change-Id: I6e12c006bd9eff15f3fa9cfd335bdd9fa081be61
2014-12-02 15:10:10 +09:00
Andy Wang
d179e40899
Stop passing through keyPrefs as it's already available.
...
Change-Id: I43a56beba0cf0fdf5f93c5c764edbd279ee033b2
2014-12-02 05:17:51 +00:00
Adrian Velicu
11a3965f8c
Fix a misspelled method name
...
Change-Id: I1151dc1d5db3986a97daf68c1e387dbc2e4610dc
2014-12-02 12:53:56 +09:00
Tadashi G. Takaoka
391e83dc8f
Merge "Add null analysis annotations to keyboard package"
2014-12-01 03:37:53 +00:00
Tadashi G. Takaoka
4486314225
Remove RichInputMethodManager.updateShortcutIME call from SubtypeSwitcher
...
Change-Id: I5661a7926cf5a404788516c542b25cc0707bb417
2014-12-01 12:16:10 +09:00
Jean Chalard
949045b6a3
Merge "Be always confident in the current language when only one"
2014-11-28 03:25:29 +00:00
Jean Chalard
2d81c1f183
Be always confident in the current language when only one
...
Change-Id: I7ea289f7e78aa33562c7737e91024a25c02333b6
2014-11-28 12:22:16 +09:00
Tadashi G. Takaoka
063b2e8d71
Merge "Make LocaleUtils.constructLocaleFromString as @Nonnull"
2014-11-28 03:02:20 +00:00
Tadashi G. Takaoka
b0a0ce0b31
Remove unused import and local variable
...
Change-Id: I256d1c6bf96c07b10d2d063d7935e20e0ab8ea17
2014-11-28 11:53:12 +09:00
Tadashi G. Takaoka
60d880cf5e
Remove unnecessary code of CustomInputStylePreference
...
Change-Id: I68d2c85139e01684d5f0705f621ba223fc5e4425
2014-11-27 17:05:37 +09:00
Tadashi G. Takaoka
01d54002b3
Refactor KeysCache to UniqueKeysCache
...
Change-Id: I8e3c4705c705a1c6e05e9112211d7012912d7e41
2014-11-27 15:44:22 +09:00
Tadashi G. Takaoka
9d5d01a543
Add null analysis annotations to keyboard package
...
Change-Id: I6f020ece3c45d584d413e4265d6d3fbdf1ea8bd8
2014-11-27 12:37:38 +09:00
Tadashi G. Takaoka
bb4075bc93
Merge "Fix possible NPE in MainKeyboardView"
2014-11-27 03:03:54 +00:00
Tadashi G. Takaoka
2ffcad113a
Merge "Remove unused code from DictionaryFactory"
2014-11-27 03:01:46 +00:00
Tadashi G. Takaoka
b5a7ece02b
Merge "Remove obsolete comment"
2014-11-27 02:52:04 +00:00
Jatin Matani
12d63820d4
Hook for fetching sync content from UserHistoryDict
...
Add API to ExpandableBinaryDictionary to dump content
from a given dictionary. We use this for dumping data
for sync process.
Refactored UserHistoryDictionaryTests to scrap out the util
methods for testing. These utility methods would be used
for testing sync + user dictionary code in LatinIMEGoogleTests
Bug:18106539
Change-Id: I357f9192ea1bd69a526d0b620c25616a2e8e9d5b
2014-11-26 11:17:24 -08:00
Jean Chalard
56577461d6
Allow whitelist changes when no close word
...
When there isn't a close word in another language of the
current multi-language set, we allow whitelist entries
to take force even if we are not confident in the current
language.
Bug: 18063142
Bug: 18130489
Bug: 18132240
Bug: 18136721
Bug: 18200415
Change-Id: I044674ba7b70aa86ab2a48d2e4d53a1c8007b62c
2014-11-26 18:43:22 +09:00
Jean Chalard
e752aab70d
Use confidence to fix whitelist
...
With this the most obvious problem is fixed. However there
are two remaining items : we should still enforce whitelist
when there are no close candidates at all, and we should
start in confident mode when pressing the globe key.
Bug: 18063142
Bug: 18130489
Bug: 18132240
Bug: 18136721
Bug: 18200415
Change-Id: Ibc0571ae35fc28f8d13760aa86b25db1163d3e31
2014-11-26 17:29:59 +09:00
Tadashi G. Takaoka
cbefc0c8f9
Remove obsolete comment
...
Change-Id: I9e606fd573a60d12482b12e0e9adaecd552f66a7
2014-11-26 12:02:07 +09:00
Jean Chalard
b479a56f28
Merge "Add confidence."
2014-11-25 06:22:30 +00:00
Jean Chalard
d06dd0ca12
Add confidence.
...
Bug: 18063142
Bug: 18130489
Bug: 18132240
Bug: 18136721
Bug: 18200415
Change-Id: Ica09d11cb95308dd014c4e4e0d99a30dd66bfea9
2014-11-25 14:41:27 +09:00
Tadashi G. Takaoka
8e32700914
Merge "Refactor PointerTracker and MainKeyboardView"
2014-11-25 02:09:25 +00:00
Tadashi G. Takaoka
a414b81a6c
Remove unused code from DictionaryFactory
...
Change-Id: I666308ada968ee7993235ad98b92f2ad522af122
2014-11-21 17:58:50 +09:00
Tadashi G. Takaoka
8a711f2a54
Remove unneeded Context argument
...
Change-Id: Ib34931836a617d0dc049fb3c9ae6686374ec8c12
2014-11-21 12:49:04 +09:00
Tadashi G. Takaoka
53b6d627e7
Refactor PointerTracker and MainKeyboardView
...
This CL reorganize the key press/release state visual drawing code.
Change-Id: I4aa10f57309ae2f81333a1e2bd863c23a7a41d82
2014-11-21 12:40:00 +09:00
Tadashi G. Takaoka
ebe5b42f71
Make LocaleUtils.constructLocaleFromString as @Nonnull
...
Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
2014-11-21 12:02:06 +09:00
Jean Chalard
a7efe06208
Annotate the typed word with its source dictionary
...
...when applicable of course. This will allow for informing the
language switching authorities that the typed word was a
specific language, instead of leaving them in the dark.
Bug: 18063142
Bug: 18130489
Bug: 18132240
Bug: 18136721
Bug: 18200415
Change-Id: Ice3e7026a68c3018f54d730ec84f6762bf55899b
2014-11-20 18:31:01 +09:00
Tadashi G. Takaoka
a66069abd8
Fix possible NPE in MainKeyboardView
...
Change-Id: I1fc21a981d9f1740315763b5ca0c1024ece1fa4d
2014-11-20 15:07:28 +09:00
Jean Chalard
a94733cbca
Fix an NPE.
...
Change-Id: Ie5ab5cc716ef1211eb9ad76baa0467455e1f1a71
2014-11-20 14:48:33 +09:00
Jean Chalard
1d80cb2301
Merge "Fix a NPE"
2014-11-20 05:28:47 +00: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
0e00f5fe3a
Fix a NPE
...
Bug: 18451316
Change-Id: Ia20bf388471f84c963354df050182e722d966a02
2014-11-20 13:50:27 +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
Tadashi G. Takaoka
6c47403e27
Rename StringUtils methods that handle title case manipulation
...
Change-Id: Iee0dd077a0423f110f4f8dad0f04933045baef2a
2014-11-19 19:08:05 +09:00
Jean Chalard
fde0cce103
Merge "Remove the other deprecated constructor to SuggestedWords"
2014-11-19 08:30:03 +00:00
Tadashi G. Takaoka
b9116af29f
Fix SubtypeLocaleUtils.getSubtypeNameForLogging accepting null
...
Change-Id: Ic5cb55e24a2d843027ccc4e8e5d6954f9391c125
2014-11-19 11:57:49 +09: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
Tadashi G. Takaoka
76f47ee433
Merge "Refactor KeyboardState.SavedKeyboardState class a bit"
2014-11-17 10:00:02 +00:00
Tadashi G. Takaoka
81dde500a8
Merge "Remove deprecated Canvas.clipRegion(Region) call"
2014-11-17 09:05:12 +00:00
Jean Chalard
83f9524b87
Remove the other deprecated constructor to SuggestedWords
...
Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
2014-11-17 16:23:52 +09:00
Adrian Velicu
37f5b0d4ff
Bumping metadata database version to 11.
...
Change-Id: I19e2f701f3e2334355bfd7105f9b62dcb53cc209
2014-11-14 15:14:21 -08:00
Adrian Velicu
91a81a2790
More verbosity when reporting broken dictionaries
...
Also added toString for AssetFileAddress for easier debugging.
Change-Id: Ie5d15d12bae46c31b28d8c67002e627f4c6690e3
2014-11-14 13:42:24 -08:00
Adrian Velicu
39d50e7e7a
Merge "UpdateHandler to support v202 dicts."
2014-11-14 03:45:32 +00:00
Jatin Matani
d60f9c046e
Merge "Implement UserHistoryDictionary for each user account."
2014-11-14 00:46:37 +00:00
Jatin Matani
5365191a9d
Implement UserHistoryDictionary for each user account.
...
UserHistoryDictionary currently uses locale to determine the
UserHistoryDictionary on the filesystem. With this change we
use the account name as well. Thus each UserHistoryDictionary
would following the following spec:
UserHistoryDictionary.<locale>.<account>.dict.
In case no account is selected, we default to the existing
spec:
UserHistoryDictionary.<locale>.dict
Example
UserHistoryDictionary.en_US.testaccount@example.com.dict
Bug: 18104749
Change-Id: Iab031e166b55cf2ded68275a7e9be22475737b37
2014-11-13 14:21:38 -08:00
Tadashi G. Takaoka
d6e367ff5b
Move isRtlLanguage method to LocaleUtils
...
Change-Id: I485a076b81927fed0da593216fea2c740449ef4c
2014-11-12 16:47:38 -08:00
Tadashi G. Takaoka
63e076764b
Merge "Add RichInputMethodSubtype.getKeyboardLayoutSetName"
2014-11-13 00:41:10 +00:00
Tadashi G. Takaoka
6de31466b0
Add RichInputMethodSubtype.getKeyboardLayoutSetName
...
Change-Id: I90cc74ee882e8aa2b243885d3b994223ca3b6f44
2014-11-12 15:41:38 -08:00
Tadashi G. Takaoka
1dfdd9b509
Clean SubtypeLocaleUtils a bit
...
Change-Id: If8b981715983e3a12867c9b7c53bfa5effaddd39
2014-11-12 15:14:52 -08:00
Adrian Velicu
de29278592
UpdateHandler to support v202 dicts.
...
Change-Id: Ib61a5005a82927f5e12a19c9c14f20d46572cf31
2014-11-12 12:04:38 -08:00
Tadashi G. Takaoka
dd0b8a06a8
Refactor KeyboardState.SavedKeyboardState class a bit
...
Change-Id: I5be7339c4797b0308c1a192d2984056619fdfbdd
2014-11-10 16:40:59 -08:00
Tadashi G. Takaoka
0d6ce46528
Move logic to determine spacebar text to LanguageOnSpacebarHelper
...
Change-Id: Ib9dbbb4bd4e35c15fd752c364d3012e8a7da2410
2014-11-08 18:50:59 -08:00
Tadashi G. Takaoka
52a87a4cc3
Merge "Clean up KeyboardLayoutSet a bit"
2014-11-07 18:02:48 +00:00
Tadashi G. Takaoka
ec0d6bb9b7
Merge "Move current subtype management code to RichInputMethodManager"
2014-11-07 18:02:22 +00:00
Jean Chalard
5c4f642df6
Merge "Move util classes under common"
2014-11-07 09:15:35 +00:00
Jean Chalard
5b91b551e5
Move util classes under common
...
Also why did we have two copies of LocaleUtils >.>
Bug: 18108776
Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
2014-11-07 18:00:03 +09:00
Jean Chalard
e0c2e5b2f7
Merge "Remove a deprecated constructor to SuggestedWords"
2014-11-07 08:49:26 +00:00
Jean Chalard
c3e211bd6b
Remove a deprecated constructor to SuggestedWords
...
Change-Id: If4d358b3a11fb25fc214c728269519d8c25f9adc
2014-11-07 16:40:24 +09:00