aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-232/+0
|
* Update language to comply with Android’s inclusive language guidanceSeigo Nonaka2020-07-311-12/+12
| | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: tapas LatinIME && m Change-Id: Ic06f948c023a091e1532db826a78dd01031d7205
* Migrate packages/inputmethods/LatinIME to androidx.testBrett Chabot2018-12-131-7/+8
| | | | | | | See go/jetpack-test-android-migration Test: make checkbuild Change-Id: I63edeced1465725cd8d6467cd75ea1acc2608932
* Migrate to Android Testing Support Lib (part 5/N)Yohei Yukawa2018-07-061-14/+32
| | | | | | | | | | | | | This CL converts 19 test classes under com.android.inputmethod.latin to Android Testing Support Library. Bug: 110805255 Test: verified as follows. No new test failures. tapas adb LatinIME LatinIMETests arm64 userdebug && \ DISABLE_PROGUARD=true make -j LatinIME && \ adb install -r $OUT/system/app/LatinIME/LatinIME.apk && \ atest LatinIMETests:com.android.inputmethod.latin Change-Id: I878fcae0126f57c43a644af341e5a0a8ac8f5cc9
* Stop waking up to decay dynamic dictionaries.Dan Zivkovic2015-02-251-60/+0
| | | | | | Bug 19516048. Change-Id: Ibc27a792b4fa80fa8c6af4721c47a617526e9584
* Remove distracter filter from client.Dan Zivkovic2015-02-091-3/+1
| | | | | | Bug 19296201. Change-Id: Ic834e5956347cd86a96bd14024c42ad8ee258659
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-161-39/+44
| | | | | | | | | | | | | | | | | | | | 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
* Hook for fetching sync content from UserHistoryDictJatin Matani2014-11-261-105/+31
| | | | | | | | | | | | | 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
* Implement UserHistoryDictionary for each user account.Jatin Matani2014-11-131-16/+48
| | | | | | | | | | | | | | | | | | 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 some compiler warningsTadashi G. Takaoka2014-10-211-3/+3
| | | | | | | | | | | | | | | | | | | | | 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
* Quit using currentTimeMillis() for user history unit tests.Keisuke Kuroyanagi2014-09-291-5/+4
| | | | Change-Id: I24bd81e6781148302d5679850ed0a9bda71a3d27
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-8/+8
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Call stopTestModeInNativeCode() in testDecaying().Keisuke Kuroyanagi2014-09-241-0/+1
| | | | Change-Id: I939fdbda31ff066ea6e807ad1438a8f77fb6ddef
* Quit using try catch in addAndWriteRandomWords.Keisuke Kuroyanagi2014-09-221-7/+3
| | | | Change-Id: I1f3137bacf02bf6bad03a9a99fa56346ff0cd763
* Quit depending on SoftReference in UserHistoryDictionaryTests.Keisuke Kuroyanagi2014-09-221-45/+38
| | | | Change-Id: I96533abf939d39873c5eaab9a9b02f71681aafcf
* Add retry for dict file existence tests.Keisuke Kuroyanagi2014-08-151-25/+21
| | | | Change-Id: Ife8d30e1de22336ea87faadb8c6ad7451679337b
* Print files when dict file existence check is failed.Keisuke Kuroyanagi2014-08-131-0/+8
| | | | Change-Id: Id71f239afa95b68961192714998695c21ed48002
* Remove all test dictionary files before and after unit test.Keisuke Kuroyanagi2014-08-131-4/+26
| | | | Change-Id: I92db6318daa98684639ab959f55d047a941fe265
* Add additional wait for writing file in testAddManyWords().Keisuke Kuroyanagi2014-08-121-0/+10
| | | | Change-Id: Ibb79b9821dac3d48e18c684e8aca605254bec045
* Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-251-3/+4
| | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* Add Dictionary.isInDictionary().Keisuke Kuroyanagi2014-06-091-4/+4
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
* Apply distracter filter for UserHistoryDictionary.Keisuke Kuroyanagi2014-05-271-2/+5
| | | | | Bug: 13142176 Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-4/+3
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE.Keisuke Kuroyanagi2014-05-231-1/+1
| | | | | Bug: 14119293 Change-Id: I5020e5f0aa64bc3e97b3a3c2c07a60c8b765ed64
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-6/+7
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-7/+6
| | | | | | | | | | 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-6/+7
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Use ReentrantReadWriteLock in ExpandableBinaryDictionary.Keisuke Kuroyanagi2014-04-281-0/+1
| | | | | Bug: 8187060 Change-Id: Ic665f0a5e940708aa9addedac068a64900b307e7
* Handle user history dictionary as an ExpandableBinaryDictionary.Keisuke Kuroyanagi2014-04-241-2/+2
| | | | | Bug: 13755213 Change-Id: I1ea8a6df007af7153852f2d32bf5e8ec669c432b
* 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
* Change default decaying parameters.Keisuke Kuroyanagi2014-03-141-2/+2
| | | | | Bug: 13458617 Change-Id: I4942af4a48881fb6ca866c74140b262e6d323f4a
* Separate utility methods from BinaryDictionary.Keisuke Kuroyanagi2014-03-051-3/+3
| | | | | Bug: 8187060 Change-Id: Ice2984e332b7bd3bb17174aefc80b5635b72fc50
* Added a method and run GC for testing.Keisuke Kuroyanagi2014-02-281-2/+2
| | | | | Bug: 13231889 Change-Id: If64b7422967c3e4107c845072b64a7bb26a35f7e
* Fix: UserHistoryDictionaryTests.testDecaying().Keisuke Kuroyanagi2014-02-201-4/+14
| | | | | Bug: 13106697 Change-Id: If81f77c3cefdefae94cb9145aa9f700494f8237a
* Add user history dictionary decaying test.Keisuke Kuroyanagi2014-02-201-0/+62
| | | | | | Bug: 10667710 Change-Id: Ib2be57d8c4cbbb34f64555d84ea6fd571cfdd247
* Fix UserHistoryDictionaryTestsTadashi G. Takaoka2014-02-131-54/+47
| | | | Change-Id: I5f2f555f9c3f471545921ef80e4cf528976be837
* Stop considering personalization dicts outputs as wordsJean Chalard2014-02-051-1/+1
| | | | | | Bug: 12800726 Bug: 12798403 Change-Id: I6d60f9ad39761757f8a64533f40d6441f3a36410
* Fix flaky unit test.Keisuke Kuroyanagi2014-01-141-0/+2
| | | | Change-Id: I8df0f9a0398b29f679844f256ad84f09ebcea8ee
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-40/+16
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Fix UserHistoryDictionaryTests.Keisuke Kuroyanagi2013-10-031-47/+45
| | | | | | | Bug: 6669677 Bug: 10667710 Change-Id: I6cdc6a6c9cacc7f276fda3a26ec31e3eb928471c
* Merge "Set header attributes for ExpandableBinaryDictionary."Keisuke Kuroyanagi2013-09-291-13/+13
|\
| * Set header attributes for ExpandableBinaryDictionary.Keisuke Kuroyanagi2013-09-281-13/+13
| | | | | | | | | | | | Bug: 6669677 Change-Id: I2462777eaa07600f1c774226adfc4f351882f523
* | Fix PrioritizedSerialExecutor.Yuichiro Hanada2013-09-271-9/+4
|/ | | | | | | | It was possible that fetchNextTasks() would be called by multiple threads concurrently. If it happens, some tasks in the task queues might be ignored. Change-Id: Idc81c43c45e382da3850cc55b9a42c281548d2a8
* Quit using ExpandableDictionary.Keisuke Kuroyanagi2013-09-241-1/+42
| | | | | Bug: 6669677 Change-Id: Ie90417fa9b726454fe729a665fcd549efabb9e94
* Add shutdown and isTerminated to PrioritizedSerialExecutor.Yuichiro Hanada2013-09-131-3/+18
| | | | Change-Id: Id185224d135c8571a39efe8a41a66ce769142903
* Use PrioritizedSerialExecutor instead of ReentrantReadWriteLock.Yuichiro Hanada2013-09-101-1/+1
| | | | Change-Id: I003b769e408ebd692085a7e17fed6d9396876202
* Check contents in user history dictionary testsSatoshi Kataoka2013-09-091-3/+20
| | | | | | Bug: 10667710 Change-Id: I45ebb08cb4ef9a9f6d2da31e2c50e740f88209c2
* Make DynamicPred...Base extend ExpandableBinaryDictionary.Keisuke Kuroyanagi2013-08-261-1/+1
| | | | | Bug: 6669677 Change-Id: I06afad35d3eb73510c34d10cd4116f5bcf934f7c
* Remove an unnecessary debug output.Yuichiro Hanada2013-08-191-1/+0
| | | | Change-Id: If92bf1e3908257c4c0cd68d041b122404e301e08