aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/personalization/UserHistoryDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-136/+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-251-6/+35
| | | | | | 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
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-161-22/+10
| | | | | | | | | | | | | | | | | | | | 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
* Implement UserHistoryDictionary for each user account.Jatin Matani2014-11-131-5/+55
| | | | | | | | | | | | | | | | | | 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 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/+8
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-2/+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
* Allow adding DICTIONARY_MAX_WORD_LENGTH-length words.Keisuke Kuroyanagi2014-07-281-2/+2
| | | | | Bug: 12725817 Change-Id: Ib9b30473ba94242a7b97ccd3b850068f596a5d17
* 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
* Add prefix to the arguments of getDictionary().Keisuke Kuroyanagi2014-06-101-1/+1
| | | | | Bug: 13630847 Change-Id: Ib4513b8cb6981e01dd33fd9703cc01646a2c7ccc
* Add Dictionary.isInDictionary().Keisuke Kuroyanagi2014-06-091-6/+0
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
* Apply distracter filter for UserHistoryDictionary.Keisuke Kuroyanagi2014-05-271-3/+6
| | | | | Bug: 13142176 Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978
* 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
* Use dictType to class map to create sub dicts.Keisuke Kuroyanagi2014-05-011-0/+2
| | | | | Bug: 13755213 Change-Id: I4dcd5684bc65f13361bf9c4f9d50b07b1e33c62d
* Create factory methods for sub dicts.Keisuke Kuroyanagi2014-05-011-4/+5
| | | | | Bug: 13755213 Change-Id: I046af54b4860d2839328f2089ea785d81d04cf43
* Handle user history dictionary as an ExpandableBinaryDictionary.Keisuke Kuroyanagi2014-04-241-4/+29
| | | | | Bug: 13755213 Change-Id: I1ea8a6df007af7153852f2d32bf5e8ec669c432b
* Refactor dictionary constructorTadashi G. Takaoka2014-02-131-7/+5
| | | | | | | This change must be checked in together with I3923d5af2a. Bug: 12994268 Change-Id: I19de6efbdfa3b6c6c69a20a836e53962fd5737de
* Stop considering personalization dicts outputs as wordsJean Chalard2014-02-051-0/+6
| | | | | | Bug: 12800726 Bug: 12798403 Change-Id: I6d60f9ad39761757f8a64533f40d6441f3a36410
* Remove personalized dicts when the option is turned off.Keisuke Kuroyanagi2013-12-251-2/+1
| | | | | | Bug: 11757851 Change-Id: I94f32859d862fe41e39845ab2bfc2d396c6aea0f
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-7/+16
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Set header attributes for ExpandableBinaryDictionary.Keisuke Kuroyanagi2013-09-281-0/+40
| | | | | | Bug: 6669677 Change-Id: I2462777eaa07600f1c774226adfc4f351882f523
* Refactor on the user history dictionarySatoshi Kataoka2013-07-311-397/+0
| | | | | | Bug: 9429906 Bug: 4192129 Change-Id: I1a2bfe96e18119d30a72290aa48746f77a021018
* Add personalization dictionary helperSatoshi Kataoka2013-07-291-26/+2
| | | | | | | Bug: 9429906 Bug: 4192129 Change-Id: Ic618b0b09a54ed46b20633bd4c1c570d4ac775af
* Add a place holder of the personalization dictionarySatoshi Kataoka2013-07-261-1/+1
| | | | | | | Bug: 9429906 Bug: 4192129 Change-Id: Ieacd0559e0bf286c5933e9dba716289303f533d6
* Refactor on UserHistoryDictionarySatoshi Kataoka2013-07-261-0/+421
Bug: 9429906 Change-Id: I576a91643bdaf5017cc826ac2e07a74a9a275d60