aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Track crashing during migration to avoid crash loop. DO NOT MERGE.Keisuke Kuroyanagi2014-07-141-11/+29
| | | | | | | Bug: 16213554 Bug: 16235703 Change-Id: Ib29b1a84b4c6ebae06d3dc6448f3c274ec6a7aab (cherry picked from commit 1d6024d2f8051271e3c9abc1285d989114f5f1d7)
* Move phrase gesture from additional features to public.Keisuke Kuroyanagi2014-07-081-3/+8
| | | | | Bug: 15758242 Change-Id: I703dc2703afdf9402c5d2ac27411b74ece993dba
* Extend jni method to use multiple previous words.Keisuke Kuroyanagi2014-06-261-15/+16
| | | | | Bug: 14425059 Change-Id: I8150e8812ee32f8c713315a234b52e5b3a79d7a0
* Merge "Rename jni method for n-gram supporting."Keisuke Kuroyanagi2014-06-241-10/+10
|\
| * Rename jni method for n-gram supporting.Keisuke Kuroyanagi2014-06-251-10/+10
| | | | | | | | | | Bug: 14425059 Change-Id: I242d1de5d9db37344f02d8fba9035829794a56c8
* | Merge "Make PrevWordsInfo have multiple words' information."Keisuke Kuroyanagi2014-06-241-18/+26
|\|
| * Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-251-18/+26
| | | | | | | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* | Support migration/dump of Beginning-of-Sentence entries.Keisuke Kuroyanagi2014-06-241-13/+20
|/ | | | | Bug: 14119293 Change-Id: Ie975138f819794d5c34a7a547be5a6117050e084
* Move variables for I/O of a jni method to traverse session.Keisuke Kuroyanagi2014-06-171-44/+30
| | | | | Bug: 15008504 Change-Id: I3e59bc856c1df0e1afe3b42d024620ca1745837b
* Merge "Add jni method for removeUnigramEntry()."Keisuke Kuroyanagi2014-06-101-0/+14
|\
| * Add jni method for removeUnigramEntry().Keisuke Kuroyanagi2014-06-121-0/+14
| | | | | | | | | | Bug: 15552347 Change-Id: Iadcdc73d3335d561a27b9314d3fcdab0b0c96e49
* | Block offensive words in native code.Keisuke Kuroyanagi2014-06-121-12/+5
|/ | | | | | Bug: 15300452 Change-Id: Ic6c91c47453e19fb5db2c62b66659619e72b1ecf
* Add Dictionary.isInDictionary().Keisuke Kuroyanagi2014-06-091-1/+1
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: If2d1c1fea7a69e41809a828da8dd032211ad144e
* Implement getMaxProbabilityOfExactMatches().Keisuke Kuroyanagi2014-06-061-0/+1
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
* Add jni method for getMaxFrequencyOfExactMatches().Keisuke Kuroyanagi2014-06-051-1/+8
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I2ae25090b67ad0c6df97dec7712e2f7e0bb08c40
* Clean up for Iba6eeb7981634e7ddb.Keisuke Kuroyanagi2014-05-291-8/+8
| | | | | Bug: 15298959 Change-Id: I6921db77b7d231ad3aad99d4c380ae2ed6bbf540
* Stop directly checking SuggestedWordInfo.mKindKeisuke Kuroyanagi2014-05-281-4/+4
| | | | | | Bug: 15298959 Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
* Return whether the dynamic dict operation was success.Keisuke Kuroyanagi2014-05-271-27/+42
| | | | | Bug: 12184250 Change-Id: Iee7e00c1e84c95551a077f4dd023c0a9b9ac9466
* Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-261-6/+1
| | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-11/+9
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Extend jni methods and enable Beginning-of-Sentence.Keisuke Kuroyanagi2014-05-231-19/+27
| | | | | Bug: 14119293 Change-Id: I78fc877367dd0d6240eeacb750b6d2d0b93cba83
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-17/+20
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-20/+17
| | | | | | | | | | 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-17/+20
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Use PrevWordsInfo instead of String in Java side.Keisuke Kuroyanagi2014-05-191-3/+3
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I3d5da84881a49a04550180dd9aac2c37da2ed762
* Make session id mandatory for getSuggestions.Keisuke Kuroyanagi2014-05-161-15/+2
| | | | | Bug: 15008504 Change-Id: Ic4a17a4b7242118ae74fd89c695da2bb52204fb2
* Quit use bigram probability diff for ver4 dict.Keisuke Kuroyanagi2014-05-151-8/+0
| | | | Change-Id: I2cfcfbcf351877d1dff466a24974dbb05908f14e
* Fix typo wordPreperty -> wordProperty.Keisuke Kuroyanagi2014-05-131-2/+2
| | | | Change-Id: I793f9a42f8dbf48fa15292e74df9edf1cf5d8901
* Merge "Add VERSION4_TEST for testing."Keisuke Kuroyanagi2014-05-091-1/+3
|\
| * Add VERSION4_TEST for testing.Keisuke Kuroyanagi2014-05-091-1/+3
| | | | | | | | | | Bug: 13406708 Change-Id: I0b434717ea3edbb131650af634c53cfbfe113c3e
* | Fix unit tests by adding @UsedForTestingKeisuke Kuroyanagi2014-05-091-2/+1
|/ | | | Change-Id: I9448b1bfa7bf94039de737725851e63a2921a443
* Extend jni interface for dictionary migration.Keisuke Kuroyanagi2014-05-081-1/+5
| | | | | | Bug: 13406708 Change-Id: Iadad6df296467d0e5b631fba4a409d53c8a5a6f2
* Support creating BinaryDictionary without creating dict file.Keisuke Kuroyanagi2014-04-221-2/+34
| | | | | Bug: 14166482 Change-Id: Ic8c78ec2c8f39358a1f085a041b608972a380eef
* Revert "Support creating BinaryDictionary without creating dict file."Keisuke Kuroyanagi2014-04-221-34/+2
| | | | | | This reverts commit 89939b870876b36791a47470ce852e4fcdfe86f2. Change-Id: I8ca1b55609ad305a93178063bd88bd1cede872af
* Support creating BinaryDictionary without creating dict file.Keisuke Kuroyanagi2014-04-221-2/+34
| | | | | Bug: 14166482 Change-Id: Ib065279f96e227ab0fee7c8141560c4ada744d3b
* Merge "Add jni interface to use on memory dictionary."Keisuke Kuroyanagi2014-04-221-0/+2
|\
| * Add jni interface to use on memory dictionary.Keisuke Kuroyanagi2014-04-211-0/+2
| | | | | | | | | | | | Bug; 14166482 Change-Id: I33ab08dad1e39aa7617d391f7eb2561d6f2504bb
* | Merge "Add BinaryDictionary.flushWithGCIfHasUpdated()."Keisuke Kuroyanagi2014-04-221-0/+9
|\|
| * Add BinaryDictionary.flushWithGCIfHasUpdated().Keisuke Kuroyanagi2014-04-211-0/+9
| | | | | | | | | | | | Bug: 14166482 Bug: 14161647 Change-Id: I98b0a8b86897b1486491a3aea91729bc9e4cc03c
* | Fix a bug for counting code points in WordComposer.javaXiaojun Bi2014-04-181-1/+1
|/ | | | | | | | | | | | This bug threw an ArrayIndexOutOfBoundsException when the word length is 49 (maxSize + 1) when calling StringUtils.copyCodePointsAndReturnCodePointCount(...) in the same function. This bug is discovered by running SKETCH. The intent is to count the code points from index 0 to index i (included). The original code only counted the code points from index 0 to index (i-1). Bug: 13969542 Change-Id: Idbf596aba2379ba552dbe580c83c42044d505aaf
* [CB25] Refactor some array copyingJean Chalard2014-04-091-6/+7
| | | | | Bug: 13406701 Change-Id: I09edd822f5cc2446b324d41c76d835bcff1191e6
* [CB24] Remove a useless testJean Chalard2014-04-081-11/+13
| | | | | | | If 1 character, then for sure !isGesture Bug: 13406701 Change-Id: If8e9b080372eb8ddb15b8f97cce1399dc0c7f099
* Always close binary dicts for personalized dicts.Keisuke Kuroyanagi2014-04-031-2/+12
| | | | | | Bug: 10923130 Bug: 13664080 Change-Id: Ib247c775194a03462387994cd832b1650bfd1915
* Extend jni interface to input/output languageWeight.Keisuke Kuroyanagi2014-04-031-2/+12
| | | | | Bug: 8187060 Change-Id: Ic55d328b87f258f4d65fff207233789a53b2b0ff
* Add languageWeight as an argument of getSuggestions.Keisuke Kuroyanagi2014-04-031-3/+4
| | | | | Bug: 8187060 Change-Id: I8ae20c957a8e127b76c83cc3a65ff052d43bf2b5
* Merge "Dictionary migration in Java side."Keisuke Kuroyanagi2014-03-281-1/+22
|\
| * Dictionary migration in Java side.Keisuke Kuroyanagi2014-03-271-1/+22
| | | | | | | | | | | | Bug: 13406708 Change-Id: If83938e4b4810d2e8353c70cdd8ef3ea97a29571
* | [CB14.5] Stop copying WordComposers.Jean Chalard2014-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an overdue refactoring that I have been wanted to do forever, and that we can at last do now that suggestions come only from instances of BinaryDictionary instances. With this, all unit tests and regression tests are passing again. Bug: 13667648 Bug: 13665487 Bug: 8636060 Change-Id: Ie23a19f9b7e692edf2ee0b107ddaff2d7db564b6
* | Revert "[CB15] Remove a redundant variable."Jean Chalard2014-03-271-12/+2
| | | | | | | | | | | | This reverts commit 0de7a6d1a272d52a9544df1c693ae199ab5abc52. Change-Id: I327679b76a14cf9c3aec4b00b013b921408c32f9
* | [CB15] Remove a redundant variable.Jean Chalard2014-03-271-2/+12
|/ | | | | | | | | This is a tiny bit slower, but probably unnoticeable. Still, it gains some performance in other places, saves memory, and more importantly makes for simpler code, so it's certainly better. Change-Id: Id1ab4f73f71acd73f5920bc729817abd22cf0d07