aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/personalization (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-112-376/+0
|
* Update language to comply with Android’s inclusive language guidanceSeigo Nonaka2020-07-312-13/+13
| | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: tapas LatinIME && m Change-Id: Ic06f948c023a091e1532db826a78dd01031d7205
* Update language to comply with Android's inclusive language guidanceJeff Sharkey2020-07-311-1/+1
| | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Change-Id: I171bc299e660f96f20041a67a3052bd8a2ed781c
* 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
* Use BinaryDicitonary.MAX_PREV_WORD_COUNT_FOR_NGRAM for D2 dictioanries.Mohammadinamul Sheik2015-03-171-1/+3
| | | | | | Fixes the UserHistoryDictionaryTests Change-Id: I49776f53298ced3cd7e771cfe77a940b80b01f20
* 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-092-6/+2
| | | | | | Bug 19296201. Change-Id: Ic834e5956347cd86a96bd14024c42ad8ee258659
* Nuke AmanattoJatin Matani2015-02-022-213/+0
| | | | Change-Id: Ieff2cd37f869dca69abf53ac32a576c2e45cc1e3
* Change DictionaryFacilitator.java to an interface, create itsMario Tanev2015-01-272-2/+6
| | | | | | | | implementation DictionaryFacilitatorImpl.java and add a java-overridable factory DictionaryFacilitatorProvider.java used to create a DictionaryFacilitator. Change-Id: Id4a58ae31feaa4d12a048a772c8d76ff82fdee45
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-163-41/+48
| | | | | | | | | | | | | | | | | | | | 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-262-105/+175
| | | | | | | | | | | | | 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
* Use trigrams for personalization dict.Keisuke Kuroyanagi2014-10-231-3/+3
| | | | | 5Bug: 14425059 Change-Id: I73cf6904e569d60996a3b079f16ea6df0cb90f02
* Add latinime-common local libKen Wakasa2014-10-221-1/+1
| | | | | | | This is just a placeholder in this CL. It will be shared by LatinIME, dicttool, and tests. Change-Id: I6fb3516a5061555f6f24b29141c2871d2319b023
* Fix some compiler warningsTadashi G. Takaoka2014-10-212-5/+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
* [ML14] Forward the locale list to relevant places, againJean Chalard2014-10-062-4/+6
| | | | | | | | | | | | | | | | Diff: +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardBuilder.java @@ -735,7 +735,7 @@ public class KeyboardBuilder<KP extends KeyboardParams> { private boolean matchLocaleCodes(TypedArray caseAttr, final Locale[] locales) { // TODO: adujst this for multilingual input - return matchString(caseAttr, R.styleable.Keyboard_Case_languageCode, locales[0].toString()); + return matchString(caseAttr, R.styleable.Keyboard_Case_localeCode, locales[0].toString()); } private boolean matchLanguageCodes(TypedArray caseAttr, Locale[] locales) { Change-Id: Icefac18dd6d5fea97f591177cf8df1ba6de7f4f0
* Revert "[ML14] Forward the locale list to relevant places"Ken Wakasa2014-10-032-6/+4
| | | | | | | | | | This reverts commit 15dbd38283fc9c8fdfd2540f1d94d4dbf2eabcb5. Bug: 11230254 Reverting due to unit test breakage. Change-Id: Icf29ba5c808c754515aef2d1b4162d72f606acfe
* [ML14] Forward the locale list to relevant placesJean Chalard2014-10-032-4/+6
| | | | | Bug: 11230254 Change-Id: Idf3ed27b396d63ade9800c72c5ce0ed613f5f669
* 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
* Get locale using detected language for personalization.Keisuke Kuroyanagi2014-09-101-3/+17
| | | | | Bug: 16547557 Change-Id: If3d88a548e5a2255ff81c819b056f77bfbe237ae
* Fix: PersonalizationDictionaryTests.Keisuke Kuroyanagi2014-08-291-1/+1
| | | | Change-Id: I2196c53d8e3ac3ab4c6c2f8e9320489b3a8bacd2
* Merge "Add language to PersonalizationDataChunk."Keisuke Kuroyanagi2014-08-161-1/+2
|\
| * Add language to PersonalizationDataChunk.Keisuke Kuroyanagi2014-08-191-1/+2
| | | | | | | | | | Bug: 16547557 Change-Id: I11b82667631cbd5263cc08ccb304fc97bf692050
* | 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 a method to update contextual dictionary.Keisuke Kuroyanagi2014-06-161-0/+75
| | | | | Bug: 14161647 Change-Id: I2111f841c94e31d62b670da4236fc738df03a708
* Add Dictionary.isInDictionary().Keisuke Kuroyanagi2014-06-091-4/+4
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
* Add PersonalizationDictionaryTests.Keisuke Kuroyanagi2014-05-291-0/+117
| | | | | Bug: 11778342 Change-Id: Ice88f439ae11714e5ec9dd3b7616d0c2d59ea812
* 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