aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryFactory.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Don't notify dictpack for updates for service dump•••Bug:19961803 Change-Id: I464e840bc5f75d164a519d84b0f09d8e64ed5061 Jatin Matani2015-03-271-1/+1
* Make DictionaryFactory.killDictionary public•••Change-Id: I9a0733392651714b3ba232cdb805565a5238eb93 Mohammadinamul Sheik2015-02-251-1/+1
* Merge "Make LocaleUtils.constructLocaleFromString as @Nonnull"Tadashi G. Takaoka2014-11-281-19/+17
|\
| * Make LocaleUtils.constructLocaleFromString as @Nonnull•••Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb Tadashi G. Takaoka2014-11-211-19/+17
* | Remove unused code from DictionaryFactory•••Change-Id: I666308ada968ee7993235ad98b92f2ad522af122 Tadashi G. Takaoka2014-11-211-52/+3
|/
* [ML3] Put the locale in SuggestedWordInfo•••...and remove it from SuggestionResults. Change-Id: Iae85ec7e82e2caf18cc6d7656aa46dc150707cdd Jean Chalard2014-09-011-3/+3
* Use Java 7 diamond operator•••Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef Tadashi G. Takaoka2014-05-241-2/+1
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20c•••The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854 Ken Wakasa2013-12-131-0/+50
* Use reentrant lock for main dictionaries.•••Bug: 10964805 Change-Id: Iaa9b79fc770d8ae2ec9d7c362c90c28bc9f65ea8 Keisuke Kuroyanagi2013-09-301-16/+15
* Add a parameter isUpdatable to the constructor of BinaryDictionary.•••Bug: 6669677 Change-Id: I6bc25131afd97112e3bbde036a81ab559a9a6460 Keisuke Kuroynagi2013-06-251-3/+5
* Move util classes to the latin/utils directory•••Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa Ken Wakasa2013-06-241-0/+2
* Make it easy to open several dictionaries from tests•••Bug: 9127175 Change-Id: I3f1840ee73b364df26dfddb5acb10001e0f2cb61 Jean Chalard2013-05-311-10/+13
* Refactoring•••This creates a new DictionaryInfoUtils class and moves a bunch of static methods there for later usage. Change-Id: Iecb0643e6029a7be36bd6cb36aa918c40e6d8c6a Jean Chalard2013-01-291-47/+4
* Fix Apache license comment•••Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086 Tadashi G. Takaoka2013-01-211-8/+8
* Remove BinaryDictionary.MAX_PREDICTION and MAX_SPACES, and rename MAX_WORDS t...•••Change-Id: Iab2a422b367e7521f346481c7fe5e2575f2e9de3 Ken Wakasa2013-01-111-8/+6
* Cleanup: Make some classes as final•••Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e Tadashi G. Takaoka2012-09-271-1/+1
* Add CollectionUtils class to create generic collection easily•••Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89 Tadashi G. Takaoka2012-08-221-1/+1
* Move constants to a better place.•••Change-Id: I5c27a3ed99b17f850e26a8503de16f001c7111c1 Jean Chalard2012-06-271-5/+5
* Cleanup the dictionary type.•••Stop storing an int in each of the different class types, and just store a string in the top class. Change-Id: I2af1832743e6fe78e5c1364f6d9cc21252bf5831 Jean Chalard2012-06-271-5/+6
* Change JNI for Gesture•••Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088 Satoshi Kataoka2012-06-251-3/+3
* Clean up some compiler warnings•••Change-Id: I604da15e65fc3cf807ec4033df4e4cd5ef0196fc Tadashi G. Takaoka2012-05-251-1/+0
* Don't auto-correct when there is no main dictionary.•••Bug: 6502485 Change-Id: I5803b0db8552867110587a1140fc03fc2e0eccef Jean Chalard2012-05-161-5/+5
* Remove LatinIME reference from DictionaryFactor class•••Change-Id: Iad10e71baa81a1b4eb3c84ead47d658d567b8201 Tadashi G. Takaoka2012-04-191-7/+8
* Pass a parameter to the dict pack if we don't have a default dict•••Also, optimize quite a bit the code that decides whether we have a default dict or not. Bug: 5705834 Change-Id: Ied20fbcbbc42cbe8c01759d11b1804d1156c6960 Jean Chalard2012-04-121-42/+20
* Read the dictionary resource in a more sensical place.•••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 Jean Chalard2012-04-111-14/+10
* Add language suffix to main dictionary•••Bug: 6319377 Change-Id: Ie6a887fefa12e33c17bfeb5d22984e7c1a7bdb46 Tadashi G. Takaoka2012-04-111-44/+45
* Change the flags to a boolean in constructors.•••Change-Id: I9939204f3b16346aaebd4d726315ba9c4faf910a Jean Chalard2012-04-061-10/+11
* Fix the locale of the flags in BinaryDicitonary for tests•••Bug: 6129372 Change-Id: I5611f88b10c44261b6145c9dc8615b80e4341e77 satok2012-04-051-2/+2
* Fix the locale of flags in BinaryDictionary•••Bug: 6129372 Change-Id: I4958c2aabf651d7e26648a29b75fcc6c77813451 satok2012-04-041-3/+4
* Add RunInLocale class to guard locale switching•••Bug: 6128216 Change-Id: I8d9c75c773c3de886183b291ada7a3836295839b Tadashi G. Takaoka2012-04-031-38/+40
* Small performance improvement by removing interface accesses.•••Change-Id: I6d91f3b086470b79306dbe2874db9748b9e0eb5f Ken Wakasa2012-03-171-3/+3
* Split Utils class to StringUtils, SubtypeUtils, and JniUtils•••Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144 Tadashi G. Takaoka2012-03-081-2/+12
* Make use of the FULL_EDIT_DISTANCE flag.•••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 Jean Chalard2011-09-301-4/+21
* Move locale-related utility methods to LocaleUtils.•••Change-Id: I7e9e6e5bc4486d8618d0213b112308c3d305c15e Jean Chalard2011-08-291-7/+7
* Fix an excessive fallback problem.•••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 Jean Chalard2011-08-231-18/+4
* Have the spell checker use the User dictionary.•••Bug: 5175868 Change-Id: I165eee4c865caa5ee1daf3e0b1acde8788b996ef Jean Chalard2011-08-191-2/+2
* Set the locale for opening an asset•••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 Jean Chalard2011-07-211-4/+14
* Fallback to the included dict if the passed one is invalid•••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 Jean Chalard2011-07-201-3/+15
* Add a number of NULL pointer guards.•••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 Jean Chalard2011-07-191-5/+15
* Fix the available input locales and moved Recorrection•••Bug: 4409091 Change-Id: I6efd23ebb9528bf1bd35320057a0ea264c187451 satok2011-05-121-0/+19
* Improve the architecture to support multiple dictionaries.•••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 Jean Chalard2011-04-281-7/+10
* Use the new Utils.setSystemLocale method in the new code.•••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 Jean Chalard2011-04-271-7/+3
* Create a dictionary collection and a dictionary factory.•••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 Jean Chalard2011-04-271-0/+159