aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ContactsBinaryDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-176/+0
|
* [LatinIME] Support MNC permissions.Mohammadinamul Sheik2015-07-151-0/+7
| | | | | | | | | | | | | | | | | | | This build has been compiled against API 23 This build is approved to go out with the M OTA, but may NOT be released to the public until the Play Store has enabled API level 23 apps Version: 4.1.2300x.build_id 1. Replaces the personalization is on information with the suggest contacts. 2. Enables "Use Contacts" only if the app has permission to read contacts. 3. Disables the contacts dictionary in the Facilitator. 4. Do not register/read the contacts in the contact observer. Bug: 22236416 Change-Id: I9674e13d0d0f4a2014c5024fde0178de684c07e7
* Use BinaryDicitonary.MAX_PREV_WORD_COUNT_FOR_NGRAM for D2 dictioanries.Mohammadinamul Sheik2015-03-171-1/+2
| | | | | | Fixes the UserHistoryDictionaryTests Change-Id: I49776f53298ced3cd7e771cfe77a940b80b01f20
* Refactor content provider code from ContactsDictJatin Matani2015-02-111-197/+37
| | | | | | | | | Break contacts binary dictionary into two parts - one that talks to contacts content provider and maintains local state. Includes a manager class and a content observer - other one that just manages the dict code. Change-Id: Ie8f89ac9ce174c803ff3168ee0bee5cbe7721d5b
* Remove shortcut support from LatinIME.Dan Zivkovic2015-02-111-4/+3
| | | | | | Note this change does not affect the native decoder interface. Change-Id: I73b7dc008a5acaf75a31a36a2d332b5afabd82d0
* 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
* Move StringUtils under common.Jean Chalard2014-10-281-1/+1
| | | | | Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
* Move Constants.java to the latin.common packageKen Wakasa2014-10-231-0/+1
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* 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-3/+2
| | | | | | | | | | | | | | | | | | | | | 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/+3
| | | | | | | | | No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-6/+6
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Allow adding DICTIONARY_MAX_WORD_LENGTH-length words.Keisuke Kuroyanagi2014-07-281-1/+1
| | | | | Bug: 12725817 Change-Id: Ib9b30473ba94242a7b97ccd3b850068f596a5d17
* Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-251-4/+4
| | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* Add prefix to the arguments of getDictionary().Keisuke Kuroyanagi2014-06-101-7/+2
| | | | | Bug: 13630847 Change-Id: Ib4513b8cb6981e01dd33fd9703cc01646a2c7ccc
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-3/+2
| | | | 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-8/+8
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-8/+8
| | | | | | | | | | 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-8/+8
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Check whether contacts have changed using hashCode().Keisuke Kuroyanagi2014-05-081-42/+28
| | | | | Bug: 13755213 Change-Id: Ie2f7b7f9dc8bd3fce395618877d9f234287dcb21
* Use dictType to class map to create sub dicts.Keisuke Kuroyanagi2014-05-011-0/+2
| | | | | Bug: 13755213 Change-Id: I4dcd5684bc65f13361bf9c4f9d50b07b1e33c62d
* Create factory methods for sub dicts.Keisuke Kuroyanagi2014-05-011-9/+6
| | | | | Bug: 13755213 Change-Id: I046af54b4860d2839328f2089ea785d81d04cf43
* Use ReentrantReadWriteLock in ExpandableBinaryDictionary.Keisuke Kuroyanagi2014-04-281-3/+0
| | | | | Bug: 8187060 Change-Id: Ic665f0a5e940708aa9addedac068a64900b307e7
* Remove DictionaryUpdateController.Keisuke Kuroyanagi2014-04-281-3/+3
| | | | | Bug: 8187060 Change-Id: I3e1fa4060d8a5c12d8d609be3357d56051fb5815
* Use different contacts dict name for spell checker.Keisuke Kuroyanagi2014-04-281-1/+6
| | | | | Bug: 13630847 Change-Id: I016a464890d5e63794fb1288b4ce7b09adffc453
* Always close binary dicts for personalized dicts.Keisuke Kuroyanagi2014-04-031-4/+0
| | | | | | Bug: 10923130 Bug: 13664080 Change-Id: Ib247c775194a03462387994cd832b1650bfd1915
* Remove unused method.Keisuke Kuroyanagi2014-03-271-5/+0
| | | | Change-Id: Iefb75136080e73c357511df045816f18cec767a6
* Use dynamic operations to construct all ver4 dicts.Keisuke Kuroyanagi2014-02-271-26/+30
| | | | | | 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
* Straighten out database cursors behavior.Jean Chalard2014-02-181-35/+39
| | | | | | | | | | | | | | | | | | | Some were never closed, other closed twice. This change makes all Cursor instances behave, having the #close() call in a finally{} clause, and puts the burden of closing the cursor squarely on the creator rather than in the called methods. There is however one exception that is beyond the scope of this change: UserDictionarySettings have a Cursor member, it's never closed, and fixing the problem is not obvious. This change adds a TODO for now. It's not very clear if this change actually helps with bug#12670151, but it may be related and it's a good think to do anyway. Bug: 12670151 Change-Id: I87cc44387e7dee3da1488671b93a28d9d73f7dc0
* Refactor dictionary constructorTadashi G. Takaoka2014-02-131-9/+7
| | | | | | | This change must be checked in together with I3923d5af2a. Bug: 12994268 Change-Id: I19de6efbdfa3b6c6c69a20a836e53962fd5737de
* Add DictionaryFacilitatorForSuggest constructor for testingTadashi G. Takaoka2014-01-061-2/+3
| | | | | | This change must be checked in together with I00b6e79d6b. Change-Id: Id5f87a8d0286eb44958381fefd428f16896dc0d4
* 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-1/+1
| | | | | | Bug: 12025402 Change-Id: Ia0bb13b2e26aa60a67dff73f3f6a1e276f1bb1dd
* Add required header attributes for user/contacts dictionary.Keisuke Kuroyanagi2013-12-031-2/+2
| | | | | | Bug: 11973488 Change-Id: I91ef720a24633aec0f4e81cd4f7c49c749805c49
* Add DEBUG_DUMP to ContactsBinaryDictionary.Keisuke Kuroyanagi2013-11-201-1/+9
| | | | Change-Id: Iebfae5f37727deeb6636ad6301b7b1bbe5f454e0
* Set the shortcut frequency correctly.Jean Chalard2013-10-071-2/+2
| | | | | | | 14 is the right value. Bug: 11076722 Change-Id: I95d404b540f7fbe4932d1f8498cde23f1df0314f
* Catch SQLiteException from remote processesJean Chalard2013-09-201-9/+16
| | | | | | | | ...to avoid catching fire when the Contacts or User dictionary providers crash and burn. Bug: 10200036 Change-Id: I73e9d126ce6d34ebc7e6ac03d94af1c12dde7eda
* Prepare ExpandableBinaryDictionary to make it updatableKeisuke Kuroyanagi2013-08-161-2/+4
| | | | | | Bug: 6669677 Change-Id: Iaa6100f58de78d104e19c7a3c41d67e7826264f9
* 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/+2
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Add account e-mail addresses to the user dictionarySatoshi Kataoka2013-05-081-0/+19
| | | | | Bug: 8683365 Change-Id: Id72540c515e61c3dd854892599645dd6d22b496d
* Add owner's info to the dictionarySatoshi Kataoka2013-05-081-3/+14
| | | | | Bug: 8683365 Change-Id: I1c30eac128b4172526423ebeeb45bc6cee7fb67b
* Don't insert automatic spaces when text looks like a URLJean Chalard2013-04-161-1/+1
| | | | | | | | | | | | | | | This is about as ad-hoc as it gets, but then again, what we want is probably as ad-hoc as it gets. All URL boxes I know of double as search bars, and not adding automatic spaces there sucks (e.g. in Chrome URL bar). And in other boxes actually you don't want to add a space if it looks like a URL. QSB isn't even a search box, and it behaves like this. So I think this is actually the right answer to the problem. Bug: 7062925 Change-Id: Ib09472b34644fd5bf2dc84bb97cedeeba28bcd02
* Make shortcut-only user dict entry non-words.Jean Chalard2013-04-121-1/+2
| | | | | Bug: 7369456 Change-Id: Iecd6f6d617f31bd2aa6749516711aeb1f0549622
* Fix Apache license commentTadashi G. Takaoka2013-01-211-7/+9
| | | | Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
* Move code point constants from Keyboard to Constants classTadashi G. Takaoka2012-10-291-3/+1
| | | | Change-Id: Iee01d4d2b916d0b584531104ac865ae6e6370a3d
* Replace useless CharSequence to StringTadashi G. Takaoka2012-10-221-7/+8
| | | | Change-Id: Idc478f901185ee1b4912acc82d0cbc54fee4e991
* Move constants to a better place.Jean Chalard2012-06-271-1/+1
| | | | Change-Id: I5c27a3ed99b17f850e26a8503de16f001c7111c1