aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Remove unused partial commit.Keisuke Kuroyanagi2014-03-201-4/+4
| | | | Change-Id: Ia9341a5cb24947d93056810890d94c1f66481d8c
* Merge "Move DictionaryOptions from FusionDictionary to FormatSpec."Keisuke Kuroyanagi2014-03-071-1/+1
|\
| * Move DictionaryOptions from FusionDictionary to FormatSpec.Keisuke Kuroyanagi2014-03-061-1/+1
| | | | | | | | | | | | | | Bug: 8187060 Bug:13035567 Change-Id: Id4f45e589521ae98c926a4c0607be10ce1a983f2
* | Introduce SuggestionResults and use it for predictions.Keisuke Kuroyanagi2014-03-071-5/+7
|/ | | | | | Bug: 8187060 Bug: 13333066 Change-Id: I1ead897024508b7e40fbd93af7d14bfe74b93826
* Use BinaryDictionaryUtils to read dictionary header.Keisuke Kuroyanagi2014-03-051-1/+0
| | | | | | Bug: 8187060 Bug:13035567 Change-Id: I90a5e0665c367f5a1bd786f4babf0d03e79e68fa
* Separate utility methods from BinaryDictionary.Keisuke Kuroyanagi2014-03-051-50/+0
| | | | | Bug: 8187060 Change-Id: Ice2984e332b7bd3bb17174aefc80b5635b72fc50
* Merge "Use dynamic operations to construct all ver4 dicts."Keisuke Kuroyanagi2014-02-281-1/+0
|\
| * Use dynamic operations to construct all ver4 dicts.Keisuke Kuroyanagi2014-02-271-1/+0
| | | | | | | | | | | | Bug: 8187060 Bug: 13127350 Change-Id: I081ee904c41898128efa8ba7a1bf3fa0a46c6231
* | Added a method and run GC for testing.Keisuke Kuroyanagi2014-02-281-1/+4
|/ | | | | Bug: 13231889 Change-Id: If64b7422967c3e4107c845072b64a7bb26a35f7e
* Remove corrupted ver4 dictionaries.Keisuke Kuroyanagi2014-02-211-1/+22
| | | | | Bug: 12916055 Change-Id: I2c390ab1dc483915691b47a605772cbc2dfeaf09
* Implement getHeaderInfoNative.Keisuke Kuroyanagi2014-02-061-3/+2
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: Ia3d85ae2cfdb486e74b8636a62431eae883c85da
* Merge "Consolidate WordProperty and Word."Keisuke Kuroyanagi2014-02-061-1/+1
|\
| * Consolidate WordProperty and Word.Keisuke Kuroyanagi2014-02-061-1/+1
| | | | | | | | | | | | Bug: 11281877 Bug: 12810574 Change-Id: I9dc99188f80f25a8780c1860dab46e4aa80a23e5
* | [HD04] Make the locale mandatory.Jean Chalard2014-02-051-3/+4
|/ | | | | Bug: 11281748 Change-Id: I69281b0053bec404c3e3c713ade3f65a140f51b1
* Add jni interface to get header information from native.Keisuke Kuroyanagi2014-02-041-3/+35
| | | | | Bug: 12810574 Change-Id: I2508483bcb3157f04cc1fe13f24f864d301f1f28
* Add a utility method to StringUtils.Keisuke Kuroyanagi2014-02-041-7/+1
| | | | | Bug: 12810574 Change-Id: I607803e924b9e99855df7690e67488b2861c120e
* Implement Ver4PatriciaTriePolicy::getNextWordAndNextToken.Keisuke Kuroyanagi2014-02-041-1/+1
| | | | | Bug: 12810574 Change-Id: Idea44f03c477964f58e65fbf2b55e3fcd77a2934
* Add a jni method to iterate words in a dictionary.Keisuke Kuroyanagi2014-02-031-1/+29
| | | | | Bug: 12810574 Change-Id: I87b13559765f0262dfd06c2ba40d43af6437ea7f
* Extend jni interface to get bigrams in WordProperty.Keisuke Kuroyanagi2014-01-311-18/+19
| | | | | Bug: 12810574 Change-Id: Ia4b88d02ea8790a5c47d32376cc0b84c3e071ddd