aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Rename UnigramProperty to WordProperty.Keisuke Kuroyanagi2014-01-311-25/+25
| | | | | Bug: 12810574 Change-Id: If5ddd803948aaf6e491ddcbaa5436fb3af3f7257
* Add a dedicated method to control time in native code.Keisuke Kuroyanagi2014-01-151-1/+16
| | | | | Bug: 12443085 Change-Id: I41a5cf6c895cb59e54af98b40efded36afcd3247
* Move LanguageModelParams class to utility packageTadashi G. Takaoka2014-01-151-45/+1
| | | | | | This change must be checked in together with Ic82d951237. Change-Id: I2ab451330f85a0147563b805682f26edecb71a29
* Check whether the word is OOV or not for amanatto update.Keisuke Kuroyanagi2014-01-081-0/+3
| | | | | Bug: 11736529 Change-Id: I27973212da7e922b2185dbb4febfb5bb4dfbdcbb
* Have dicttool use the native library to generate v4 dicts.Jean Chalard2013-12-131-1/+2
| | | | | | Yay ! Change-Id: Iea8ced9e81031b9ab7eff05ad9ef7215be248de9
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-9/+130
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Fix bug and Add large test for decaying dictionary.Keisuke Kuroyanagi2013-10-071-0/+4
| | | | | | | | - GC gets failure when the dictionary become empty. - Useless unigrams are sometimes not removed. Bug: 10197478 Change-Id: I8d1479c01efba61a81f03bc077da6bcb4797a940
* Implement the heuristic for auto-commit.Jean Chalard2013-10-011-15/+4
| | | | | Bug: 9059617 Change-Id: I066abf018df5aaeabf415425dd822ebe233e6008
* Merge "Quit blocking getSuggestion during GC."Keisuke Kuroyanagi2013-10-011-9/+0
|\
| * Quit blocking getSuggestion during GC.Keisuke Kuroyanagi2013-10-011-9/+0
| | | | | | | | | | | | Bug: 10831272 Change-Id: I995c619dc18a9120a47f547d31045cb73a9353ec
* | Create the wiring for auto-commit confidence computation.Jean Chalard2013-10-011-1/+2
|/ | | | | Bug: 9059617 Change-Id: I7e4e05ffa8c68cfebbe362a977fd176555cad12a
* Prepare dictionary decay.Keisuke Kuroyanagi2013-09-301-4/+10
| | | | | Bug: 6669677 Change-Id: I8fbae190dd44a6bdbee7e9b6d3a16208322727f7
* Add unigram/bigram counting.Keisuke Kuroyanagi2013-09-271-0/+12
| | | | | Bug: 6669677 Change-Id: I05ea2201d822dddf062b08c8467daa336760e16c
* Create empty dictionary file in native code.Keisuke Kuroyanagi2013-09-261-0/+17
| | | | | Bug: 6669677 Change-Id: I46d23deee1fd091678f4593561cb8687eb815212
* Clear traverse sessions when closing.Keisuke Kuroyanagi2013-09-251-11/+15
| | | | | Bug: 6669677 Change-Id: I859be934f0c60485e04cdc4cab288a18242fa04e
* Quit using ExpandableDictionary.Keisuke Kuroyanagi2013-09-241-3/+18
| | | | | Bug: 6669677 Change-Id: Ie90417fa9b726454fe729a665fcd549efabb9e94
* Merge "Add BinaryDictionary.getBigramProbabilityNative()."Keisuke Kuroyanagi2013-09-181-5/+17
|\
| * Add BinaryDictionary.getBigramProbabilityNative().Keisuke Kuroyanagi2013-09-181-5/+17
| | | | | | | | | | Bug: 10197478 Change-Id: Id16e3ee22a17679c46cc7a0199a9e28065177aa3
* | [AC9] Resize an arrayJean Chalard2013-09-171-1/+1
|/ | | | | | | | It's not easy for native code to only output the first result, so let's supply enough room for it to output all. Bug: 9059617 Change-Id: Ie93b7e54284c8c5d01fdc15846cf52d3442287b6
* Prepare dictionary saving in native code.Keisuke Kuroyanagi2013-09-171-0/+24
| | | | | | Bug: 6669677 Change-Id: I0787f66409e2b183c6328fa05805945520e1e93a
* [AC7] Actually auto-commit.Keisuke Kuroyanagi2013-09-171-1/+1
| | | | | Bug: 9059617 Change-Id: I7e5d89a9037b9181a0a6456c12043b4bfda8fe4b
* Merge "[AC4] Add native methods necessary for auto-commit"Jean Chalard2013-09-131-3/+25
|\
| * [AC4] Add native methods necessary for auto-commitJean Chalard2013-09-131-3/+25
| | | | | | | | | | Bug: 9059617 Change-Id: I7a47b0675446fc4f39628c60d16de9aea90d1b4d