aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/personalization/PersonalizationHelper.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Nuke Amanatto•••Change-Id: Ieff2cd37f869dca69abf53ac32a576c2e45cc1e3 Jatin Matani2015-02-021-35/+1
* 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-1/+2
* Merge "Hook for fetching sync content from UserHistoryDict"Jatin Matani2014-12-081-2/+1
|\
| * 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 Jatin Matani2014-11-261-2/+1
* | Cancel interval alarm for dictionary decaying in onDestroy.•••Bug: 18528171 Change-Id: I6e12c006bd9eff15f3fa9cfd335bdd9fa081be61 Keisuke Kuroyanagi2014-12-021-1/+1
|/
* 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-6/+19
* Move util classes under common•••Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab Jean Chalard2014-11-071-1/+1
* Fix NPE when context.getFilesDir() returns null.•••Bug: 16416948 Change-Id: I0fac5ab26d6efbadbd688d033a79f6705e0161a5 Keisuke Kuroyanagi2014-07-281-0/+1
* Use Java 7 diamond operator•••Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef Tadashi G. Takaoka2014-05-241-9/+6
* Fix: NPE when context.getFilesDir() returns null.•••Bug: 14517587 Change-Id: Ib99bea14eab3a25ddb5042527b757133734a6ba6 Keisuke Kuroyanagi2014-05-151-4/+6
* Periodic GC for personalization dict.•••Change-Id: I1ef922684cbf1de10c45c66eb119c2343d194da3 Keisuke Kuroyanagi2014-05-081-3/+1
* Remove clearAndFlushDictionary() and use clear().•••clearAndFlushDictionary() was needed when dictionaries are constructed in java side. All expandable dictionaries now use native code; thus, this method is same to clear() and no longer needed. Bug: 13755213 Change-Id: Ifd836e64f8ff807930f7cd2319b103b65e8fce70 Keisuke Kuroyanagi2014-04-241-1/+1
* Added a method and run GC for testing.•••Bug: 13231889 Change-Id: If64b7422967c3e4107c845072b64a7bb26a35f7e Keisuke Kuroyanagi2014-02-281-8/+31
* Remove personalization dicts for multilingual users.•••Bug: 13067743 Change-Id: I1f50cb137b6054dc9442237586b70fc0aa2bf427 Keisuke Kuroyanagi2014-02-191-3/+6
* Update personalization dict via dictionary facilitator.•••Change-Id: I512c41e12d8d31f03b5df6ad03bf7711611c80f5 Keisuke Kuroyanagi2014-01-151-7/+0
* Remove personalized dicts when the option is turned off.•••Bug: 11757851 Change-Id: I94f32859d862fe41e39845ab2bfc2d396c6aea0f Keisuke Kuroyanagi2013-12-251-0/+46
* 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-51/+19
* Try decaying user history at hourly intervals.•••Bug: 6669677 Change-Id: Ib465fa7e1a7f289a07843535ba89d0dd5259e803 Keisuke Kuroyanagi2013-10-021-1/+12
* Set header attributes for ExpandableBinaryDictionary.•••Bug: 6669677 Change-Id: I2462777eaa07600f1c774226adfc4f351882f523 Keisuke Kuroyanagi2013-09-281-9/+7
* Use PrioritizedSerialExecutor instead of ReentrantReadWriteLock.•••Change-Id: I003b769e408ebd692085a7e17fed6d9396876202 Yuichiro Hanada2013-09-101-1/+1
* Make DynamicPred...Base extend ExpandableBinaryDictionary.•••Bug: 6669677 Change-Id: I06afad35d3eb73510c34d10cd4116f5bcf934f7c Keisuke Kuroyanagi2013-08-261-0/+122