aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/personalization/UserHistoryDictionary.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* 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 Jatin Matani2014-12-161-22/+10
* 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 Jatin Matani2014-11-131-5/+55
* 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 Ken Wakasa2014-10-231-1/+1
* Fix Javadoc and null analysis related warnings•••This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1 Tadashi G. Takaoka2014-10-231-4/+8
* Fix some compiler warnings•••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 Tadashi G. Takaoka2014-10-211-2/+0
* Make UserHistoryDictionary use updateEntriesForWordWithNgramContext()•••Bug: 14425059 Change-Id: I409ebf90f68f4a0f1638128ac5ee6af859323d30 Keisuke Kuroyanagi2014-10-061-29/+2
* Rename PrevWordsInfo to NgramContext.•••Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984 Keisuke Kuroyanagi2014-09-291-10/+10
* Refactoring PrevWordsInfo.•••Bug: 14425059 Change-Id: I48a193b965e3055bd10a00046322c2b7b19a6232 Keisuke Kuroyanagi2014-09-261-3/+2
* Prepare supporting n-gram for user history dictionary.•••Bug:17097992 Change-Id: Ic8bfde3d4cc0e720bf7681e08e16fb2ad94d5670 Keisuke Kuroyanagi2014-09-221-12/+23
* Allow adding DICTIONARY_MAX_WORD_LENGTH-length words.•••Bug: 12725817 Change-Id: Ib9b30473ba94242a7b97ccd3b850068f596a5d17 Keisuke Kuroyanagi2014-07-281-2/+2
* Use CharSequence for spell checker to keep spans preserved•••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 Yohei Yukawa2014-07-201-2/+3
* Fix build.•••Change-Id: I5c6c0a9098c5a228ed82b208aa6f237a41f2f6cc Keisuke Kuroyanagi2014-06-261-1/+1
* Merge "Make PrevWordsInfo have multiple words' information."Keisuke Kuroyanagi2014-06-241-1/+1
|\
| * Make PrevWordsInfo have multiple words' information.•••Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a Keisuke Kuroyanagi2014-06-251-1/+1
* | Make Beginning-of-Sentence prediction require two exposures.•••Bug: 15868192 Change-Id: I4b577ad11c992d872d6f902fd50527d9ca5cc1ba Keisuke Kuroyanagi2014-06-251-1/+7
|/
* Add prefix to the arguments of getDictionary().•••Bug: 13630847 Change-Id: Ib4513b8cb6981e01dd33fd9703cc01646a2c7ccc Keisuke Kuroyanagi2014-06-101-1/+1
* Add Dictionary.isInDictionary().•••Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e Keisuke Kuroyanagi2014-06-091-6/+0
* Apply distracter filter for UserHistoryDictionary.•••Bug: 13142176 Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978 Keisuke Kuroyanagi2014-05-271-3/+6
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.•••Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815 Keisuke Kuroyanagi2014-05-211-12/+16
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."•••This reverts commit ff50b39176370ab80a33bfdcf9979603c08a88b3. Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: If278b4ab236e38d20d8cdc0761b0438911bd4ff9 Ken Wakasa2014-05-201-16/+12
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.•••Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3 Keisuke Kuroyanagi2014-05-201-12/+16
* Use dictType to class map to create sub dicts.•••Bug: 13755213 Change-Id: I4dcd5684bc65f13361bf9c4f9d50b07b1e33c62d Keisuke Kuroyanagi2014-05-011-0/+2
* Create factory methods for sub dicts.•••Bug: 13755213 Change-Id: I046af54b4860d2839328f2089ea785d81d04cf43 Keisuke Kuroyanagi2014-05-011-4/+5
* Handle user history dictionary as an ExpandableBinaryDictionary.•••Bug: 13755213 Change-Id: I1ea8a6df007af7153852f2d32bf5e8ec669c432b Keisuke Kuroyanagi2014-04-241-4/+29
* Refactor dictionary constructor•••This change must be checked in together with I3923d5af2a. Bug: 12994268 Change-Id: I19de6efbdfa3b6c6c69a20a836e53962fd5737de Tadashi G. Takaoka2014-02-131-7/+5
* Stop considering personalization dicts outputs as words•••Bug: 12800726 Bug: 12798403 Change-Id: I6d60f9ad39761757f8a64533f40d6441f3a36410 Jean Chalard2014-02-051-0/+6
* Remove personalized dicts when the option is turned off.•••Bug: 11757851 Change-Id: I94f32859d862fe41e39845ab2bfc2d396c6aea0f Keisuke Kuroyanagi2013-12-251-2/+1
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20c•••The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854 Ken Wakasa2013-12-131-7/+16
* Set header attributes for ExpandableBinaryDictionary.•••Bug: 6669677 Change-Id: I2462777eaa07600f1c774226adfc4f351882f523 Keisuke Kuroyanagi2013-09-281-0/+40
* Refactor on the user history dictionary•••Bug: 9429906 Bug: 4192129 Change-Id: I1a2bfe96e18119d30a72290aa48746f77a021018 Satoshi Kataoka2013-07-311-397/+0
* Add personalization dictionary helper•••Bug: 9429906 Bug: 4192129 Change-Id: Ic618b0b09a54ed46b20633bd4c1c570d4ac775af Satoshi Kataoka2013-07-291-26/+2
* Add a place holder of the personalization dictionary•••Bug: 9429906 Bug: 4192129 Change-Id: Ieacd0559e0bf286c5933e9dba716289303f533d6 Satoshi Kataoka2013-07-261-1/+1
* Refactor on UserHistoryDictionary•••Bug: 9429906 Change-Id: I576a91643bdaf5017cc826ac2e07a74a9a275d60 Satoshi Kataoka2013-07-261-0/+421