aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/personalization/PersonalizationHelper.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-108/+0
|
* Stop waking up to decay dynamic dictionaries.Dan Zivkovic2015-02-251-43/+10
| | | | | | Bug 19516048. Change-Id: Ibc27a792b4fa80fa8c6af4721c47a617526e9584
* Nuke AmanattoJatin Matani2015-02-021-35/+1
| | | | Change-Id: Ieff2cd37f869dca69abf53ac32a576c2e45cc1e3
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-161-1/+2
| | | | | | | | | | | | | | | | | | | | 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-021-1/+1
|/ | | | | Bug: 18528171 Change-Id: I6e12c006bd9eff15f3fa9cfd335bdd9fa081be61
* Implement UserHistoryDictionary for each user account.Jatin Matani2014-11-131-6/+19
| | | | | | | | | | | | | | | | | | 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
* Fix NPE when context.getFilesDir() returns null.Keisuke Kuroyanagi2014-07-281-0/+1
| | | | | Bug: 16416948 Change-Id: I0fac5ab26d6efbadbd688d033a79f6705e0161a5
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-9/+6
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Fix: NPE when context.getFilesDir() returns null.Keisuke Kuroyanagi2014-05-151-4/+6
| | | | | Bug: 14517587 Change-Id: Ib99bea14eab3a25ddb5042527b757133734a6ba6
* Periodic GC for personalization dict.Keisuke Kuroyanagi2014-05-081-3/+1
| | | | Change-Id: I1ef922684cbf1de10c45c66eb119c2343d194da3
* Remove clearAndFlushDictionary() and use clear().Keisuke Kuroyanagi2014-04-241-1/+1
| | | | | | | | | 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
* Added a method and run GC for testing.Keisuke Kuroyanagi2014-02-281-8/+31
| | | | | Bug: 13231889 Change-Id: If64b7422967c3e4107c845072b64a7bb26a35f7e
* Remove personalization dicts for multilingual users.Keisuke Kuroyanagi2014-02-191-3/+6
| | | | | Bug: 13067743 Change-Id: I1f50cb137b6054dc9442237586b70fc0aa2bf427
* Update personalization dict via dictionary facilitator.Keisuke Kuroyanagi2014-01-151-7/+0
| | | | Change-Id: I512c41e12d8d31f03b5df6ad03bf7711611c80f5
* Remove personalized dicts when the option is turned off.Keisuke Kuroyanagi2013-12-251-0/+46
| | | | | | Bug: 11757851 Change-Id: I94f32859d862fe41e39845ab2bfc2d396c6aea0f
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-51/+19
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Try decaying user history at hourly intervals.Keisuke Kuroyanagi2013-10-021-1/+12
| | | | | | Bug: 6669677 Change-Id: Ib465fa7e1a7f289a07843535ba89d0dd5259e803
* Set header attributes for ExpandableBinaryDictionary.Keisuke Kuroyanagi2013-09-281-9/+7
| | | | | | Bug: 6669677 Change-Id: I2462777eaa07600f1c774226adfc4f351882f523
* Use PrioritizedSerialExecutor instead of ReentrantReadWriteLock.Yuichiro Hanada2013-09-101-1/+1
| | | | Change-Id: I003b769e408ebd692085a7e17fed6d9396876202
* Make DynamicPred...Base extend ExpandableBinaryDictionary.Keisuke Kuroyanagi2013-08-261-0/+122
Bug: 6669677 Change-Id: I06afad35d3eb73510c34d10cd4116f5bcf934f7c