aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/UserBinaryDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-216/+0
|
* Remove shortcut support from LatinIME.Dan Zivkovic2015-02-111-40/+4
| | | | | | Note this change does not affect the native decoder interface. Change-Id: I73b7dc008a5acaf75a31a36a2d332b5afabd82d0
* LatinIME portion of "green plus" feature.Dan Zivkovic2015-02-031-37/+14
| | | | | | | | | Removes the feature that adds strings to the user dictionary, aka the "green highlight with a plus sign". Bug 19237189. Change-Id: I2387129a3add2d69d625f2ff16ed8cab3f10a735
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-161-1/+3
| | | | | | | | | | | | | | | | | | | | 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
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-231-2/+3
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-10/+8
| | | | | | | | | | | | | | | | | | | | | 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
* Renaming "blacklist" flag to "possibly offensive"Adrian Velicu2014-10-211-2/+4
| | | | | | | | | No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78
* Allow adding DICTIONARY_MAX_WORD_LENGTH-length words.Keisuke Kuroyanagi2014-07-281-2/+2
| | | | | Bug: 12725817 Change-Id: Ib9b30473ba94242a7b97ccd3b850068f596a5d17
* Add prefix to the arguments of getDictionary().Keisuke Kuroyanagi2014-06-101-6/+3
| | | | | Bug: 13630847 Change-Id: Ib4513b8cb6981e01dd33fd9703cc01646a2c7ccc
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-2/+2
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-2/+2
| | | | | | | | | | 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-2/+2
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Check whether contacts have changed using hashCode().Keisuke Kuroyanagi2014-05-081-6/+1
| | | | | Bug: 13755213 Change-Id: Ie2f7b7f9dc8bd3fce395618877d9f234287dcb21
* Merge "Use dictType to class map to create sub dicts."Keisuke Kuroyanagi2014-05-011-0/+2
|\
| * Use dictType to class map to create sub dicts.Keisuke Kuroyanagi2014-05-011-0/+2
| | | | | | | | | | Bug: 13755213 Change-Id: I4dcd5684bc65f13361bf9c4f9d50b07b1e33c62d
* | Merge "Create factory methods for sub dicts."Keisuke Kuroyanagi2014-05-011-11/+7
|\|
| * Create factory methods for sub dicts.Keisuke Kuroyanagi2014-05-011-11/+7
| | | | | | | | | | Bug: 13755213 Change-Id: I046af54b4860d2839328f2089ea785d81d04cf43
* | Merge "Some cleanup and reinforcement"Jean Chalard2014-05-011-19/+30
|\ \ | |/ |/|
| * Some cleanup and reinforcementJean Chalard2014-05-011-19/+30
| | | | | | | | | | Bug: 9520584 Change-Id: I1c0f9e1b530d4d5bf5f52c2905c20f5ab7c26442
* | Handle user dict as an ExpandableBinaryDictionary.Keisuke Kuroyanagi2014-04-301-13/+7
|/ | | | | Bug: 13755213 Change-Id: I2d242a3332e9633d4e41e08c0bbfafcefd814ecd
* Remove DictionaryUpdateController.Keisuke Kuroyanagi2014-04-281-2/+2
| | | | | Bug: 8187060 Change-Id: I3e1fa4060d8a5c12d8d609be3357d56051fb5815
* Use different user dict name for spell checker.Keisuke Kuroyanagi2014-04-281-1/+6
| | | | | Bug: 13630847 Change-Id: Icabd08c674dcf086250b9e594328a43286d1d203
* Remove unused method.Keisuke Kuroyanagi2014-03-271-5/+0
| | | | Change-Id: Iefb75136080e73c357511df045816f18cec767a6
* Use dynamic operations to construct all ver4 dicts.Keisuke Kuroyanagi2014-02-271-13/+16
| | | | | | Bug: 8187060 Bug: 13127350 Change-Id: I081ee904c41898128efa8ba7a1bf3fa0a46c6231
* Remove a call to a deprecated methodJean Chalard2014-02-201-2/+0
| | | | | | | ...that would cause a crash Bug: 13082186 Change-Id: Ie12575c27dfdd2029bc9d5f0647e444f69770afc
* Refactor dictionary constructorTadashi G. Takaoka2014-02-131-9/+6
| | | | | | | This change must be checked in together with I3923d5af2a. Bug: 12994268 Change-Id: I19de6efbdfa3b6c6c69a20a836e53962fd5737de
* Add DictionaryFacilitatorForSuggest constructor for testingTadashi G. Takaoka2014-01-061-0/+2
| | | | | | This change must be checked in together with I00b6e79d6b. Change-Id: Id5f87a8d0286eb44958381fefd428f16896dc0d4
* [IL27] Some refactoringJean Chalard2013-12-201-2/+3
| | | | | Bug: 8636060 Change-Id: Iedfdf71350f5fe3ab451fc5ec6e3c9901f71e50f
* Make ExpandableBinaryDictionary usable for offdevice tests.Keisuke Kuroyanagi2013-12-131-0/+6
| | | | | Bug: 11956652 Change-Id: If5a503ef161781818f2efceba542be5a61be6bd1
* Create ver4 dictionary files with the dictionary name.Keisuke Kuroyanagi2013-12-111-2/+1
| | | | | | Bug: 12025402 Change-Id: Ia0bb13b2e26aa60a67dff73f3f6a1e276f1bb1dd
* Add required header attributes for user/contacts dictionary.Keisuke Kuroyanagi2013-12-031-5/+6
| | | | | | Bug: 11973488 Change-Id: I91ef720a24633aec0f4e81cd4f7c49c749805c49
* Set the shortcut frequency correctly.Jean Chalard2013-10-071-2/+7
| | | | | | | 14 is the right value. Bug: 11076722 Change-Id: I95d404b540f7fbe4932d1f8498cde23f1df0314f
* Catch SQLiteException from remote processesJean Chalard2013-09-201-3/+13
| | | | | | | | ...to avoid catching fire when the Contacts or User dictionary providers crash and burn. Bug: 10200036 Change-Id: I73e9d126ce6d34ebc7e6ac03d94af1c12dde7eda
* Remove changing a word when added to the dictionaryJean Chalard2013-09-121-21/+0
| | | | | | | | | This code is now useless. I thought it affected 9902905, but it seems it actually does not. Still, it's dead code. Bug: 9902905 Change-Id: Id9c90fbf88f015af47b2368b90d173c481647093
* Prepare ExpandableBinaryDictionary to make it updatableKeisuke Kuroyanagi2013-08-161-1/+2
| | | | | | Bug: 6669677 Change-Id: Iaa6100f58de78d104e19c7a3c41d67e7826264f9
* Move subtype related utility class to utils packageTadashi G. Takaoka2013-07-241-1/+2
| | | | Change-Id: I3564796531ea85f2ebafde40cd822b806b8741df
* DictionaryWriter to abstract binary dictionary writing.Keisuke Kuroynagi2013-07-041-1/+5
| | | | | | | | UserHistoryDictionary should become to use ExpandableBinaryDictionary. Bug: 6669677 Change-Id: I6831c7dd2d84207d1a8f51ba15d52e0a72205d0c
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-0/+1
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Merge "Remove the dialog to insert words to the dictionary."Jean Chalard2013-04-121-18/+12
|\
| * Remove the dialog to insert words to the dictionary.Jean Chalard2013-04-121-18/+12
| | | | | | | | | | Bug: 8562529 Change-Id: Ibd853f0cb995e7fb35f8730eafcef73ead58c869
* | Make shortcut-only user dict entry non-words.Jean Chalard2013-04-121-2/+2
|/ | | | | Bug: 7369456 Change-Id: Iecd6f6d617f31bd2aa6749516711aeb1f0549622
* Insert into user dict in lower case if auto-caps (D2)Jean Chalard2013-01-171-5/+1
| | | | | | | Also recapitalize afterwards if the word has been changed. Bug: 7972124 Change-Id: I9306580bb4ed0ffa80cc4559ce1abcd2034d1905
* Adjust the used frequency of the user dictionary words.Jean Chalard2013-01-081-5/+20
| | | | | Bug: 7656666 Change-Id: I4b271af636f6103cb5287336229581365841d778
* Small code cleanupsKen Wakasa2013-01-071-9/+9
| | | | | | Multi-project commit with I249d5fbe Change-Id: Ia28c4e970992aa1299a30e604eaa5d096655c3a5
* resolved conflicts for merge of d48d6fee to masterKen Wakasa2012-12-151-1/+33
|\ | | | | | | Change-Id: I21141956135debe737453dba87617671b1716d0a
| * Use the amended user dictionary word for insertionJean Chalard2012-12-141-1/+33
| | | | | | | | | | | | | | | | | | When the user edits a word before adding it to the user dictionary, the keyboard should replace whatever was committed before with the amended version. Bug: 7725834 Change-Id: I1a417be6c5a86d6a96bc2c76aca314ad8f1202a9
* | Replace useless CharSequence to StringTadashi G. Takaoka2012-10-221-1/+1
|/ | | | Change-Id: Idc478f901185ee1b4912acc82d0cbc54fee4e991
* Fix a bug with the user dictionary locale.Jean Chalard2012-07-021-2/+10
| | | | | | | | | | | | | We internally use the string "zz" to mean no locale, but the user dictionary service does not understand that and words added with this locale pitifully end being added to a "zz" user dictionary, which makes no sense to the user. This change fixes things so that words added when the keyboard is in a "no locale" layout, the words are added to the global, all-locales user dictionary. Bug: 6645306 Change-Id: Iec3cdd1fe3d5bc43427a43ef9ae9bf89e12be1f2
* Move constants to a better place.Jean Chalard2012-06-271-1/+1
| | | | Change-Id: I5c27a3ed99b17f850e26a8503de16f001c7111c1
* Cleanup the dictionary type.Jean Chalard2012-06-271-1/+1
| | | | | | | Stop storing an int in each of the different class types, and just store a string in the top class. Change-Id: I2af1832743e6fe78e5c1364f6d9cc21252bf5831