aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryFactory.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-161/+0
|
* Don't notify dictpack for updates for service dumpJatin Matani2015-03-271-1/+1
| | | | | Bug:19961803 Change-Id: I464e840bc5f75d164a519d84b0f09d8e64ed5061
* Make DictionaryFactory.killDictionary publicMohammadinamul Sheik2015-02-251-1/+1
| | | | Change-Id: I9a0733392651714b3ba232cdb805565a5238eb93
* Merge "Make LocaleUtils.constructLocaleFromString as @Nonnull"Tadashi G. Takaoka2014-11-281-19/+17
|\
| * Make LocaleUtils.constructLocaleFromString as @NonnullTadashi G. Takaoka2014-11-211-19/+17
| | | | | | | | Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
* | Remove unused code from DictionaryFactoryTadashi G. Takaoka2014-11-211-52/+3
|/ | | | Change-Id: I666308ada968ee7993235ad98b92f2ad522af122
* [ML3] Put the locale in SuggestedWordInfoJean Chalard2014-09-011-3/+3
| | | | | | ...and remove it from SuggestionResults. Change-Id: Iae85ec7e82e2caf18cc6d7656aa46dc150707cdd
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-2/+1
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-0/+50
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Use reentrant lock for main dictionaries.Keisuke Kuroyanagi2013-09-301-16/+15
| | | | | Bug: 10964805 Change-Id: Iaa9b79fc770d8ae2ec9d7c362c90c28bc9f65ea8
* Add a parameter isUpdatable to the constructor of BinaryDictionary.Keisuke Kuroynagi2013-06-251-3/+5
| | | | | Bug: 6669677 Change-Id: I6bc25131afd97112e3bbde036a81ab559a9a6460
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-0/+2
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Make it easy to open several dictionaries from testsJean Chalard2013-05-311-10/+13
| | | | | Bug: 9127175 Change-Id: I3f1840ee73b364df26dfddb5acb10001e0f2cb61
* RefactoringJean Chalard2013-01-291-47/+4
| | | | | | | This creates a new DictionaryInfoUtils class and moves a bunch of static methods there for later usage. Change-Id: Iecb0643e6029a7be36bd6cb36aa918c40e6d8c6a
* Fix Apache license commentTadashi G. Takaoka2013-01-211-8/+8
| | | | Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
* Remove BinaryDictionary.MAX_PREDICTION and MAX_SPACES, and rename MAX_WORDS ↵Ken Wakasa2013-01-111-8/+6
| | | | | | to MAX_RESULTS Change-Id: Iab2a422b367e7521f346481c7fe5e2575f2e9de3
* Cleanup: Make some classes as finalTadashi G. Takaoka2012-09-271-1/+1
| | | | Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
* Add CollectionUtils class to create generic collection easilyTadashi G. Takaoka2012-08-221-1/+1
| | | | Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
* Move constants to a better place.Jean Chalard2012-06-271-5/+5
| | | | Change-Id: I5c27a3ed99b17f850e26a8503de16f001c7111c1
* Cleanup the dictionary type.Jean Chalard2012-06-271-5/+6
| | | | | | | Stop storing an int in each of the different class types, and just store a string in the top class. Change-Id: I2af1832743e6fe78e5c1364f6d9cc21252bf5831
* Change JNI for GestureSatoshi Kataoka2012-06-251-3/+3
| | | | Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088
* Clean up some compiler warningsTadashi G. Takaoka2012-05-251-1/+0
| | | | Change-Id: I604da15e65fc3cf807ec4033df4e4cd5ef0196fc
* Don't auto-correct when there is no main dictionary.Jean Chalard2012-05-161-5/+5
| | | | | Bug: 6502485 Change-Id: I5803b0db8552867110587a1140fc03fc2e0eccef
* Remove LatinIME reference from DictionaryFactor classTadashi G. Takaoka2012-04-191-7/+8
| | | | Change-Id: Iad10e71baa81a1b4eb3c84ead47d658d567b8201
* Pass a parameter to the dict pack if we don't have a default dictJean Chalard2012-04-121-42/+20
| | | | | | | | Also, optimize quite a bit the code that decides whether we have a default dict or not. Bug: 5705834 Change-Id: Ied20fbcbbc42cbe8c01759d11b1804d1156c6960
* Read the dictionary resource in a more sensical place.Jean Chalard2012-04-111-14/+10
| | | | | | | We don't need to pass this down all the way from LatinIME any more. It fetched be done exactly where it needs to be. Change-Id: I9f277f9c4f9de70ae755a1334d86c67bbb24c988
* Add language suffix to main dictionaryTadashi G. Takaoka2012-04-111-44/+45
| | | | | Bug: 6319377 Change-Id: Ie6a887fefa12e33c17bfeb5d22984e7c1a7bdb46
* Change the flags to a boolean in constructors.Jean Chalard2012-04-061-10/+11
| | | | Change-Id: I9939204f3b16346aaebd4d726315ba9c4faf910a
* Fix the locale of the flags in BinaryDicitonary for testssatok2012-04-051-2/+2
| | | | | Bug: 6129372 Change-Id: I5611f88b10c44261b6145c9dc8615b80e4341e77
* Fix the locale of flags in BinaryDictionarysatok2012-04-041-3/+4
| | | | | Bug: 6129372 Change-Id: I4958c2aabf651d7e26648a29b75fcc6c77813451
* Add RunInLocale class to guard locale switchingTadashi G. Takaoka2012-04-031-38/+40
| | | | | Bug: 6128216 Change-Id: I8d9c75c773c3de886183b291ada7a3836295839b
* Small performance improvement by removing interface accesses.Ken Wakasa2012-03-171-3/+3
| | | | Change-Id: I6d91f3b086470b79306dbe2874db9748b9e0eb5f
* Split Utils class to StringUtils, SubtypeUtils, and JniUtilsTadashi G. Takaoka2012-03-081-2/+12
| | | | Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144
* Make use of the FULL_EDIT_DISTANCE flag.Jean Chalard2011-09-301-4/+21
| | | | | | | | | | | | In effect, this stops the spell checker from suggesting overly long words. More precisely, it takes advantage of the new facility that takes into account the whole length of the dictionary word when computing scores, so words much longer than the input word will see their score demoted accordingly. Bug: 5384578 Change-Id: I326cd7c87c3080e7fa8729f78517f8ba13672a9b
* Move locale-related utility methods to LocaleUtils.Jean Chalard2011-08-291-7/+7
| | | | Change-Id: I7e9e6e5bc4486d8618d0213b112308c3d305c15e
* Fix an excessive fallback problem.Jean Chalard2011-08-231-18/+4
| | | | | | | | | LatinIME has several fallbacks to ensure a dictionary is used. However, it should now be possible to deactivate the main dictionary through the dictionary pack settings. In this case, Latin IME should not fallback to the built-in dictionary. Change-Id: Ibd992ad89793169f04a968b40781fce819b87b6f
* Have the spell checker use the User dictionary.Jean Chalard2011-08-191-2/+2
| | | | | Bug: 5175868 Change-Id: I165eee4c865caa5ee1daf3e0b1acde8788b996ef
* Set the locale for opening an assetJean Chalard2011-07-211-4/+14
| | | | | | | | | This is necessary because we don't know any more whether the locale of the process is the expected one when the dictionary is loaded asynchronously. Bug: 5023141 Change-Id: Ia9e4741f3b4a04a9f085f5b65ec122471b0c2dff
* Fallback to the included dict if the passed one is invalidJean Chalard2011-07-201-3/+15
| | | | | | | | | If all dictionaries returned by the dictionary pack are invalid, then fallback to the dictionary included in the resources for this locale. Bug: 5052486 Change-Id: Id875194ca56a74b2ed6f5b0b4fdd55475f6842c8
* Add a number of NULL pointer guards.Jean Chalard2011-07-191-5/+15
| | | | | | | | | None of these are expected to actually be null, but those are included for peace of mind and foolproofing against future code changes. Bug: 4580040 Change-Id: Ib112b3e5db5f177aaf61767164b7e78d711f90a0
* Fix the available input locales and moved Recorrectionsatok2011-05-121-0/+19
| | | | | | Bug: 4409091 Change-Id: I6efd23ebb9528bf1bd35320057a0ea264c187451
* Improve the architecture to support multiple dictionaries.Jean Chalard2011-04-281-7/+10
| | | | | | | | | | | | | | This change enables the interface to get multiple dictionaries from a dictionary pack. It only implements it to the end in the case of the proprietary method, as the open method needs still some working out, and the "inside the package" method does not need it. This change goes together with Iaa95bf36, and breaks the build without it. Bug: 1752028 Change-Id: I3ccfd696e8ef083ef9c074e1c3e4bb0bf2fcfd23
* Use the new Utils.setSystemLocale method in the new code.Jean Chalard2011-04-271-7/+3
| | | | | | | | The change list that introduced this code was created at the same time as the one that introduced the Utils.setSystemLocale method and didn't use it yet. Fix this. Change-Id: Ifdd2ad9f7dbb7f300bc255bc2e035ae893a9d410
* Create a dictionary collection and a dictionary factory.Jean Chalard2011-04-271-0/+159
The dictionary collection is a class complying to the Dictionary interface that acts as a front end to a collection of arbitrarily many dictionaries of any type. The dictionary factory is a helper class for creating various dictionaries and get some meta information about them. At the same time, this change makes the BinaryDictionary class not a singleton any more. This also needs I9afe61a9 to not break the build. Change-Id: I61fdcc4867fcda18342807bf1865e6e46979e5d5