aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-1611-75/+142
| | | | | | | | | | | | | | | | | | | | 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
* Merge "Provide a preference to delete data from cloud."Jatin Matani2014-12-121-2/+36
|\
| * Provide a preference to delete data from cloud.Jatin Matani2014-12-091-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Make LanguageOnSpacebarHelper as utility class"Tadashi G. Takaoka2014-12-122-10/+103
|\ \
| * | Make LanguageOnSpacebarHelper as utility classTadashi G. Takaoka2014-12-112-10/+103
| | | | | | | | | | | | Change-Id: I546f3b1943999a41803222bd14f9ddd23aa87a51
* | | Disable multiple language inputJean Chalard2014-12-111-3/+1
|/ / | | | | | | | | Bug: 18705799 Change-Id: I73730ccf59e2697acfb3fe436c01b94c40307f2f
* | Add NetworkConnectivityUtils classTadashi G. Takaoka2014-12-113-32/+116
| | | | | | | | Change-Id: I7bd71f1d4ef0fc0fe21ddfd9f3e11463f53ac4e7
* | Merge "Quit auto-correct explicit accented letters to base letters."Keisuke Kuroyanagi2014-12-092-0/+9
|\ \
| * | Quit auto-correct explicit accented letters to base letters.Keisuke Kuroyanagi2014-12-092-0/+9
| | | | | | | | | | | | | | | Bug: 7677193 Change-Id: I66eddbf27a9db8682c0347a1be19922792a3bea7
* | | Revert "Add keyboard margin options to place the keyboard dynamically."Tadashi G. Takaoka2014-12-097-85/+16
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8584db1461d286f8eb966c40eb0bc76e8c9df76a. Bug: 18675223 Bug: 18675476 Change-Id: I4e25d87ac261c44b1943df832115f8cca690103a
* | | Rename variable name to remove ambiguityJatin Matani2014-12-081-3/+3
| |/ |/| | | | | Change-Id: If95c34c9eab09cbc941bef5ee3d34b9048bf3bf9
* | Merge "Hook for fetching sync content from UserHistoryDict"Jatin Matani2014-12-082-2/+38
|\ \
| * | Hook for fetching sync content from UserHistoryDictJatin Matani2014-11-262-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Remove RichInputMethodManager.updateShortcutIME call from ↵Tadashi G. Takaoka2014-12-064-40/+34
|\ \ \ | | | | | | | | | | | | SubtypeSwitcher"
| * | | Remove RichInputMethodManager.updateShortcutIME call from SubtypeSwitcherTadashi G. Takaoka2014-12-014-40/+34
| | | | | | | | | | | | | | | | Change-Id: I5661a7926cf5a404788516c542b25cc0707bb417
* | | | Add keyboard margin options to place the keyboard dynamically.Andy Wang2014-12-057-16/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Keyboard location and location can now be set in the debug options section. Change-Id: I87c5a1d679489e12dccf26632c399af28087629e
* | | | Merge "Cancel interval alarm for dictionary decaying in onDestroy."Keisuke Kuroyanagi2014-12-033-8/+32
|\ \ \ \ | |_|_|/ |/| | |
| * | | Cancel interval alarm for dictionary decaying in onDestroy.Keisuke Kuroyanagi2014-12-023-8/+32
| | | | | | | | | | | | | | | | | | | | Bug: 18528171 Change-Id: I6e12c006bd9eff15f3fa9cfd335bdd9fa081be61
* | | | Stop passing through keyPrefs as it's already available.Andy Wang2014-12-023-6/+5
| | | | | | | | | | | | | | | | Change-Id: I43a56beba0cf0fdf5f93c5c764edbd279ee033b2
* | | | Fix a misspelled method nameAdrian Velicu2014-12-022-2/+2
| |/ / |/| | | | | | | | Change-Id: I1151dc1d5db3986a97daf68c1e387dbc2e4610dc
* | | Merge "Be always confident in the current language when only one"Jean Chalard2014-11-281-0/+3
|\ \ \
| * | | Be always confident in the current language when only oneJean Chalard2014-11-281-0/+3
| | | | | | | | | | | | | | | | Change-Id: I7ea289f7e78aa33562c7737e91024a25c02333b6
* | | | Merge "Make LocaleUtils.constructLocaleFromString as @Nonnull"Tadashi G. Takaoka2014-11-289-78/+118
|\ \ \ \
| * | | | Make LocaleUtils.constructLocaleFromString as @NonnullTadashi G. Takaoka2014-11-219-78/+118
| | | | | | | | | | | | | | | | | | | | Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
* | | | | Remove unused import and local variableTadashi G. Takaoka2014-11-281-1/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I256d1c6bf96c07b10d2d063d7935e20e0ab8ea17
* | | | | Remove unnecessary code of CustomInputStylePreferenceTadashi G. Takaoka2014-11-271-20/+0
| |/ / / |/| | | | | | | | | | | Change-Id: I68d2c85139e01684d5f0705f621ba223fc5e4425
* | | | Merge "Remove unused code from DictionaryFactory"Tadashi G. Takaoka2014-11-273-53/+16
|\ \ \ \
| * | | | Remove unused code from DictionaryFactoryTadashi G. Takaoka2014-11-213-53/+16
| | | | | | | | | | | | | | | | | | | | Change-Id: I666308ada968ee7993235ad98b92f2ad522af122
* | | | | Allow whitelist changes when no close wordJean Chalard2014-11-266-46/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Use confidence to fix whitelistJean Chalard2014-11-262-4/+29
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Add confidence.Jean Chalard2014-11-251-11/+21
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18063142 Bug: 18130489 Bug: 18132240 Bug: 18136721 Bug: 18200415 Change-Id: Ica09d11cb95308dd014c4e4e0d99a30dd66bfea9
* | / Remove unneeded Context argumentTadashi G. Takaoka2014-11-212-6/+5
| |/ |/| | | | | Change-Id: Ib34931836a617d0dc049fb3c9ae6686374ec8c12
* | Annotate the typed word with its source dictionaryJean Chalard2014-11-202-21/+44
|/ | | | | | | | | | | | | ...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
* Fix an NPE.Jean Chalard2014-11-201-2/+1
| | | | Change-Id: Ie5ab5cc716ef1211eb9ad76baa0467455e1f1a71
* Merge "Fix a NPE"Jean Chalard2014-11-201-0/+6
|\
| * Fix a NPEJean Chalard2014-11-201-0/+6
| | | | | | | | | | Bug: 18451316 Change-Id: Ia20bf388471f84c963354df050182e722d966a02
* | Make the typed word a SuggestedWordInfoJean Chalard2014-11-204-49/+56
|/ | | | | | | | That allows to carry the language information in an accurate manner. Bug: 18063142 Change-Id: I0bca8981372ae10648274095b18b26a3686b762b
* Merge "Fix oscillations on ICS"Jean Chalard2014-11-192-11/+33
|\
| * Fix oscillations on ICSJean Chalard2014-11-192-11/+33
| | | | | | | | | | Bug: 18181427 Change-Id: Ib4dd62037b1f7b2d10496ee3e45b4a138e29f90a
* | Merge "Remove the other deprecated constructor to SuggestedWords"Jean Chalard2014-11-194-22/+19
|\ \
| * | Remove the other deprecated constructor to SuggestedWordsJean Chalard2014-11-174-22/+19
| |/ | | | | | | Change-Id: Ied821df01e032ebc913d2f15dffdf41a51372ea4
* | Fix SubtypeLocaleUtils.getSubtypeNameForLogging accepting nullTadashi G. Takaoka2014-11-191-1/+2
| | | | | | | | Change-Id: Ic5cb55e24a2d843027ccc4e8e5d6954f9391c125
* | Rename a confusing method nameJean Chalard2014-11-181-10/+12
|/ | | | | | | ...and fix a bug that happened because of it. Bug: 18417740 Change-Id: I7a33780adcb8f4e2625abcd3eec906dfee1f5dcf
* More verbosity when reporting broken dictionariesAdrian Velicu2014-11-142-1/+7
| | | | | | Also added toString for AssetFileAddress for easier debugging. Change-Id: Ie5d15d12bae46c31b28d8c67002e627f4c6690e3
* Merge "UpdateHandler to support v202 dicts."Adrian Velicu2014-11-141-2/+2
|\
| * UpdateHandler to support v202 dicts.Adrian Velicu2014-11-121-2/+2
| | | | | | | | Change-Id: Ib61a5005a82927f5e12a19c9c14f20d46572cf31
* | Merge "Implement UserHistoryDictionary for each user account."Jatin Matani2014-11-142-11/+74
|\ \
| * | Implement UserHistoryDictionary for each user account.Jatin Matani2014-11-132-11/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Move isRtlLanguage method to LocaleUtilsTadashi G. Takaoka2014-11-123-22/+3
| | | | | | | | | | | | Change-Id: I485a076b81927fed0da593216fea2c740449ef4c
* | | Merge "Add RichInputMethodSubtype.getKeyboardLayoutSetName"Tadashi G. Takaoka2014-11-132-4/+5
|\ \ \