aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-232/+0
* Update language to comply with Android’s inclusive language guidance•••See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: tapas LatinIME && m Change-Id: Ic06f948c023a091e1532db826a78dd01031d7205 Seigo Nonaka2020-07-311-12/+12
* Migrate packages/inputmethods/LatinIME to androidx.test•••See go/jetpack-test-android-migration Test: make checkbuild Change-Id: I63edeced1465725cd8d6467cd75ea1acc2608932 Brett Chabot2018-12-131-7/+8
* Migrate to Android Testing Support Lib (part 5/N)•••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 Yohei Yukawa2018-07-061-14/+32
* Stop waking up to decay dynamic dictionaries.•••Bug 19516048. Change-Id: Ibc27a792b4fa80fa8c6af4721c47a617526e9584 Dan Zivkovic2015-02-251-60/+0
* Remove distracter filter from client.•••Bug 19296201. Change-Id: Ic834e5956347cd86a96bd14024c42ad8ee258659 Dan Zivkovic2015-02-091-3/+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-39/+44
* 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-105/+31
* 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-16/+48
* 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 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-3/+3
* Quit using currentTimeMillis() for user history unit tests.•••Change-Id: I24bd81e6781148302d5679850ed0a9bda71a3d27 Keisuke Kuroyanagi2014-09-291-5/+4
* Rename PrevWordsInfo to NgramContext.•••Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984 Keisuke Kuroyanagi2014-09-291-8/+8
* Call stopTestModeInNativeCode() in testDecaying().•••Change-Id: I939fdbda31ff066ea6e807ad1438a8f77fb6ddef Keisuke Kuroyanagi2014-09-241-0/+1
* Quit using try catch in addAndWriteRandomWords.•••Change-Id: I1f3137bacf02bf6bad03a9a99fa56346ff0cd763 Keisuke Kuroyanagi2014-09-221-7/+3
* Quit depending on SoftReference in UserHistoryDictionaryTests.•••Change-Id: I96533abf939d39873c5eaab9a9b02f71681aafcf Keisuke Kuroyanagi2014-09-221-45/+38
* Add retry for dict file existence tests.•••Change-Id: Ife8d30e1de22336ea87faadb8c6ad7451679337b Keisuke Kuroyanagi2014-08-151-25/+21
* Print files when dict file existence check is failed.•••Change-Id: Id71f239afa95b68961192714998695c21ed48002 Keisuke Kuroyanagi2014-08-131-0/+8
* Remove all test dictionary files before and after unit test.•••Change-Id: I92db6318daa98684639ab959f55d047a941fe265 Keisuke Kuroyanagi2014-08-131-4/+26
* Add additional wait for writing file in testAddManyWords().•••Change-Id: Ibb79b9821dac3d48e18c684e8aca605254bec045 Keisuke Kuroyanagi2014-08-121-0/+10
* Make PrevWordsInfo have multiple words' information.•••Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a Keisuke Kuroyanagi2014-06-251-3/+4
* Add Dictionary.isInDictionary().•••Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e Keisuke Kuroyanagi2014-06-091-4/+4
* Apply distracter filter for UserHistoryDictionary.•••Bug: 13142176 Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978 Keisuke Kuroyanagi2014-05-271-2/+5
* Use Java 7 diamond operator•••Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef Tadashi G. Takaoka2014-05-241-4/+3
* Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE.•••Bug: 14119293 Change-Id: I5020e5f0aa64bc3e97b3a3c2c07a60c8b765ed64 Keisuke Kuroyanagi2014-05-231-1/+1
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.•••Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815 Keisuke Kuroyanagi2014-05-211-6/+7
* 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-7/+6
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.•••Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3 Keisuke Kuroyanagi2014-05-201-6/+7
* Use ReentrantReadWriteLock in ExpandableBinaryDictionary.•••Bug: 8187060 Change-Id: Ic665f0a5e940708aa9addedac068a64900b307e7 Keisuke Kuroyanagi2014-04-281-0/+1
* Handle user history dictionary as an ExpandableBinaryDictionary.•••Bug: 13755213 Change-Id: I1ea8a6df007af7153852f2d32bf5e8ec669c432b Keisuke Kuroyanagi2014-04-241-2/+2
* 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
* Change default decaying parameters.•••Bug: 13458617 Change-Id: I4942af4a48881fb6ca866c74140b262e6d323f4a Keisuke Kuroyanagi2014-03-141-2/+2
* Separate utility methods from BinaryDictionary.•••Bug: 8187060 Change-Id: Ice2984e332b7bd3bb17174aefc80b5635b72fc50 Keisuke Kuroyanagi2014-03-051-3/+3
* Added a method and run GC for testing.•••Bug: 13231889 Change-Id: If64b7422967c3e4107c845072b64a7bb26a35f7e Keisuke Kuroyanagi2014-02-281-2/+2
* Fix: UserHistoryDictionaryTests.testDecaying().•••Bug: 13106697 Change-Id: If81f77c3cefdefae94cb9145aa9f700494f8237a Keisuke Kuroyanagi2014-02-201-4/+14
* Add user history dictionary decaying test.•••Bug: 10667710 Change-Id: Ib2be57d8c4cbbb34f64555d84ea6fd571cfdd247 Keisuke Kuroyanagi2014-02-201-0/+62
* Fix UserHistoryDictionaryTests•••Change-Id: I5f2f555f9c3f471545921ef80e4cf528976be837 Tadashi G. Takaoka2014-02-131-54/+47
* Stop considering personalization dicts outputs as words•••Bug: 12800726 Bug: 12798403 Change-Id: I6d60f9ad39761757f8a64533f40d6441f3a36410 Jean Chalard2014-02-051-1/+1
* Fix flaky unit test.•••Change-Id: I8df0f9a0398b29f679844f256ad84f09ebcea8ee Keisuke Kuroyanagi2014-01-141-0/+2
* 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-40/+16
* Fix UserHistoryDictionaryTests.•••Bug: 6669677 Bug: 10667710 Change-Id: I6cdc6a6c9cacc7f276fda3a26ec31e3eb928471c Keisuke Kuroyanagi2013-10-031-47/+45
* Merge "Set header attributes for ExpandableBinaryDictionary."Keisuke Kuroyanagi2013-09-291-13/+13
|\
| * Set header attributes for ExpandableBinaryDictionary.•••Bug: 6669677 Change-Id: I2462777eaa07600f1c774226adfc4f351882f523 Keisuke Kuroyanagi2013-09-281-13/+13
* | Fix PrioritizedSerialExecutor.•••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 Yuichiro Hanada2013-09-271-9/+4
|/
* Quit using ExpandableDictionary.•••Bug: 6669677 Change-Id: Ie90417fa9b726454fe729a665fcd549efabb9e94 Keisuke Kuroyanagi2013-09-241-1/+42
* Add shutdown and isTerminated to PrioritizedSerialExecutor.•••Change-Id: Id185224d135c8571a39efe8a41a66ce769142903 Yuichiro Hanada2013-09-131-3/+18
* Use PrioritizedSerialExecutor instead of ReentrantReadWriteLock.•••Change-Id: I003b769e408ebd692085a7e17fed6d9396876202 Yuichiro Hanada2013-09-101-1/+1
* Check contents in user history dictionary tests•••Bug: 10667710 Change-Id: I45ebb08cb4ef9a9f6d2da31e2c50e740f88209c2 Satoshi Kataoka2013-09-091-3/+20
* Make DynamicPred...Base extend ExpandableBinaryDictionary.•••Bug: 6669677 Change-Id: I06afad35d3eb73510c34d10cd4116f5bcf934f7c Keisuke Kuroyanagi2013-08-261-1/+1
* Remove an unnecessary debug output.•••Change-Id: If92bf1e3908257c4c0cd68d041b122404e301e08 Yuichiro Hanada2013-08-191-1/+0