aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/personalization (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-113-310/+0
|
* Use BinaryDicitonary.MAX_PREV_WORD_COUNT_FOR_NGRAM for D2 dictioanries.Mohammadinamul Sheik2015-03-171-1/+2
| | | | | | Fixes the UserHistoryDictionaryTests Change-Id: I49776f53298ced3cd7e771cfe77a940b80b01f20
* Stop waking up to decay dynamic dictionaries.Dan Zivkovic2015-02-254-223/+45
| | | | | | Bug 19516048. Change-Id: Ibc27a792b4fa80fa8c6af4721c47a617526e9584
* Remove distracter filter from client.Dan Zivkovic2015-02-091-5/+3
| | | | | | Bug 19296201. Change-Id: Ic834e5956347cd86a96bd14024c42ad8ee258659
* Move decoder specific constants to DecoderSpecificConstants.javaMohammadinamul Sheik2015-02-051-5/+2
| | | | Change-Id: Ie4d325b3152e1e7e424b8b436e222e194e4d9da0
* Nuke AmanattoJatin Matani2015-02-025-179/+1
| | | | Change-Id: Ieff2cd37f869dca69abf53ac32a576c2e45cc1e3
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-164-25/+19
| | | | | | | | | | | | | | | | | | | | 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 "Hook for fetching sync content from UserHistoryDict"Jatin Matani2014-12-081-2/+1
|\
| * Hook for fetching sync content from UserHistoryDictJatin Matani2014-11-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Cancel interval alarm for dictionary decaying in onDestroy.Keisuke Kuroyanagi2014-12-022-8/+31
|/ | | | | Bug: 18528171 Change-Id: I6e12c006bd9eff15f3fa9cfd335bdd9fa081be61
* 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 util classes under commonJean Chalard2014-11-071-1/+1
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* 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-233-8/+16
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-212-6/+0
| | | | | | | | | | | | | | | | | | | | | 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
* Make UserHistoryDictionary use updateEntriesForWordWithNgramContext()Keisuke Kuroyanagi2014-10-061-29/+2
| | | | | Bug: 14425059 Change-Id: I409ebf90f68f4a0f1638128ac5ee6af859323d30
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-10/+10
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Refactoring PrevWordsInfo.Keisuke Kuroyanagi2014-09-261-3/+2
| | | | | Bug: 14425059 Change-Id: I48a193b965e3055bd10a00046322c2b7b19a6232
* Prepare supporting n-gram for user history dictionary.Keisuke Kuroyanagi2014-09-221-12/+23
| | | | | Bug:17097992 Change-Id: Ic8bfde3d4cc0e720bf7681e08e16fb2ad94d5670
* Enable personalization for multilingual users.Keisuke Kuroyanagi2014-09-101-0/+2
| | | | | Bug: 16547557 Change-Id: I03eda34edc902fc4732d16d234216344d8d84d88
* Merge "Abolish source code overlay and inroduce overridable src dir"Ken Wakasa2014-08-162-89/+0
|\
| * Abolish source code overlay and inroduce overridable src dirKen Wakasa2014-08-162-89/+0
| | | | | | | | | | | | | | | | This should make IDEs happy with appropriate source code directory selection. bug: 16829244 Change-Id: Ic734bd4d20aa050c688a3158b1a382ae0ac18991
* | Add language to PersonalizationDataChunk.Keisuke Kuroyanagi2014-08-191-3/+3
|/ | | | | Bug: 16547557 Change-Id: I11b82667631cbd5263cc08ccb304fc97bf692050
* Merge "Allow adding DICTIONARY_MAX_WORD_LENGTH-length words." into lmp-devKeisuke Kuroyanagi2014-07-251-2/+2
|\
| * Allow adding DICTIONARY_MAX_WORD_LENGTH-length words.Keisuke Kuroyanagi2014-07-281-2/+2
| | | | | | | | | | Bug: 12725817 Change-Id: Ib9b30473ba94242a7b97ccd3b850068f596a5d17
* | Fix NPE when context.getFilesDir() returns null.Keisuke Kuroyanagi2014-07-281-0/+1
|/ | | | | Bug: 16416948 Change-Id: I0fac5ab26d6efbadbd688d033a79f6705e0161a5
* Use CharSequence for spell checker to keep spans preservedYohei Yukawa2014-07-201-2/+3
| | | | | | | | | | | | This is a ground work to take per word locale information into consideration in the spell checker. This CL is supposed to change no user visible behavior. With this CL, the spell checker session is able to read span information if necessary. BUG: 16029304 Change-Id: Icb1e1ecdf40fe0445e14565b685b1b878b746210
* Fix build.Keisuke Kuroyanagi2014-06-261-1/+1
| | | | Change-Id: I5c6c0a9098c5a228ed82b208aa6f237a41f2f6cc
* Merge "Make PrevWordsInfo have multiple words' information."Keisuke Kuroyanagi2014-06-241-1/+1
|\
| * Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-251-1/+1
| | | | | | | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* | Make Beginning-of-Sentence prediction require two exposures.Keisuke Kuroyanagi2014-06-251-1/+7
| | | | | | | | | | Bug: 15868192 Change-Id: I4b577ad11c992d872d6f902fd50527d9ca5cc1ba
* | Enable beginning-of-sentence prediction.Keisuke Kuroyanagi2014-06-241-5/+0
|/ | | | | Bug: 14119293 Change-Id: I23c407f0afed0ae4af290a1195b0e3bbcd5af8d7
* Fix: NPE when initializing AOSP keyboard.Keisuke Kuroyanagi2014-06-171-3/+12
| | | | | Bug: 15677822 Change-Id: Ibebb215a08795482c0f1eef965db06af57558906
* Update suggestion strip when the contextual dict is updated.Keisuke Kuroyanagi2014-06-161-1/+2
| | | | | Bug: 14161647 Change-Id: Ic7d53464bd051bffc8c7f8d097325321fe0aaee7
* Merge "Contextual dictionary updater."Keisuke Kuroyanagi2014-06-101-0/+36
|\
| * Contextual dictionary updater.Keisuke Kuroyanagi2014-06-131-0/+36
| | | | | | | | | | Bug: 14161647 Change-Id: I8106419678d5d26a4debec7bbef43af079c1ab18
* | Merge "Personalization dictionary updater."Keisuke Kuroyanagi2014-06-101-14/+13
|\|
| * Personalization dictionary updater.Keisuke Kuroyanagi2014-06-131-14/+13
| | | | | | | | | | Bug: 14161647 Change-Id: I7ab3d701525e9a19bc100aa577527e332bb2ad95
* | Merge "Enable Beginning-of-Sentence prediction for contextual dict."Keisuke Kuroyanagi2014-06-101-0/+6
|\ \ | |/ |/|
| * Enable Beginning-of-Sentence prediction for contextual dict.Keisuke Kuroyanagi2014-06-121-0/+6
| | | | | | | | | | | | Bug: 14161647 Bug: 14119293 Change-Id: I0c00f13966db88e4de85e245e7bced43c9d474b2
* | Fix: Wrong name for ContextualDictionary.Keisuke Kuroyanagi2014-06-111-1/+1
|/ | | | | Bug: 15557070 Change-Id: I5796df54a74c111d361da8c548e5597aba8e24d0
* Add prefix to the arguments of getDictionary().Keisuke Kuroyanagi2014-06-103-3/+3
| | | | | Bug: 13630847 Change-Id: Ib4513b8cb6981e01dd33fd9703cc01646a2c7ccc
* Add Dictionary.isInDictionary().Keisuke Kuroyanagi2014-06-093-12/+6
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
* Apply distracter filter for UserHistoryDictionary.Keisuke Kuroyanagi2014-05-271-3/+6
| | | | | Bug: 13142176 Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-243-12/+8
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Move distracter filter to dictionary facilitator.Keisuke Kuroyanagi2014-05-232-5/+39
| | | | | | Bug: 13142176 Bug: 15094186 Change-Id: Ib9e42f8e25538009f3ba62cf1e034cae3f6823c7
* Have DictionaryFacilitator in LatinIME.Keisuke Kuroyanagi2014-05-231-3/+3
| | | | | | Bug: 13142176 Bug: 15094186 Change-Id: I9da67352ff2abcd289fa5885389895ced878a413
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-12/+16
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-16/+12
| | | | | | | | | | This reverts commit ff50b39176370ab80a33bfdcf9979603c08a88b3. Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: If278b4ab236e38d20d8cdc0761b0438911bd4ff9
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-201-12/+16
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3