History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a91561aa58db1c43092c1caecc051a11fa5391c7 23-May-2014 Tadashi G. Takaoka <takaoka@google.com> Use Java 7 diamond operator

Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
2fa3693c264a4c150ac307d9bb7f6f8f18cc4ffc 13-Dec-2013 Ken Wakasa <kwakasa@google.com> Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20c

The bulk merge from -bayo to klp-dev should not have been merged to master.

Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
3e6275634b2368bd5b891fabe750d01f71983f62 30-Sep-2013 Keisuke Kuroyanagi <ksk@google.com> Use reentrant lock for main dictionaries.

Bug: 10964805
Change-Id: Iaa9b79fc770d8ae2ec9d7c362c90c28bc9f65ea8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
981717da4c414caee57ba98596f9bc634a97f74f 25-Jun-2013 Keisuke Kuroynagi <ksk@google.com> Add a parameter isUpdatable to the constructor of BinaryDictionary.

Bug: 6669677
Change-Id: I6bc25131afd97112e3bbde036a81ab559a9a6460
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
e28eba5074664d5716b8e58b8d0a235746b261eb 23-Jun-2013 Ken Wakasa <kwakasa@google.com> Move util classes to the latin/utils directory

Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
1562fc91f015616f900b82bb44e6f1493be92c5a 31-May-2013 Jean Chalard <jchalard@google.com> Make it easy to open several dictionaries from tests

Bug: 9127175
Change-Id: I3f1840ee73b364df26dfddb5acb10001e0f2cb61
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
d515f134f726c432c0bab5600e7b31ed989fb1b5 29-Jan-2013 Jean Chalard <jchalard@google.com> Refactoring

This creates a new DictionaryInfoUtils class and moves a bunch
of static methods there for later usage.

Change-Id: Iecb0643e6029a7be36bd6cb36aa918c40e6d8c6a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
8aa9963a895f9dd5bb1bc92ab2e4f461e058f87a 21-Jan-2013 Tadashi G. Takaoka <takaoka@google.com> Fix Apache license comment

Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
f6870cc82ddf394e94155322fcc7e4e2256bea66 11-Jan-2013 Ken Wakasa <kwakasa@google.com> Remove BinaryDictionary.MAX_PREDICTION and MAX_SPACES, and rename MAX_WORDS to MAX_RESULTS

Change-Id: Iab2a422b367e7521f346481c7fe5e2575f2e9de3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
a28a05e971cc242b338331a3b78276fa95188d19 27-Sep-2012 Tadashi G. Takaoka <takaoka@google.com> Cleanup: Make some classes as final

Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
5f282ea9e4a4590fcbab6e27d5fca7dacbb40a6a 21-Aug-2012 Tadashi G. Takaoka <takaoka@google.com> Add CollectionUtils class to create generic collection easily

Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
d8f0caa406a0ca1df488baeb3af05528085755b7 27-Jun-2012 Jean Chalard <jchalard@google.com> Move constants to a better place.

Change-Id: I5c27a3ed99b17f850e26a8503de16f001c7111c1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
05efe576f976f5fa280f8d523f2935c15cbb9bd1 27-Jun-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
73680097996ea2ddbca3f84144a00ce3ba66b763 25-Jun-2012 Satoshi Kataoka <satok@google.com> Change JNI for Gesture

Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
93ebf74bae44728e0d5f7e738ea28376187a876e 25-May-2012 Tadashi G. Takaoka <takaoka@google.com> Clean up some compiler warnings

Change-Id: I604da15e65fc3cf807ec4033df4e4cd5ef0196fc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
f0e12a969974987f1b97929886c6ebe6a685c538 16-May-2012 Jean Chalard <jchalard@google.com> Don't auto-correct when there is no main dictionary.

Bug: 6502485
Change-Id: I5803b0db8552867110587a1140fc03fc2e0eccef
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
ab39afca23f69f27b67b7c02353e21f769e8129d 19-Apr-2012 Tadashi G. Takaoka <takaoka@google.com> Remove LatinIME reference from DictionaryFactor class

Change-Id: Iad10e71baa81a1b4eb3c84ead47d658d567b8201
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
cec8552b18fd74517512a43a8d75f64e64bd12c3 11-Apr-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
e6269759d642eac0a03ae6942acb5cd556e7ff46 11-Apr-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
78ab80844b4f8e0369f4e86b2a02208197f9bd34 11-Apr-2012 Tadashi G. Takaoka <takaoka@google.com> Add language suffix to main dictionary

Bug: 6319377
Change-Id: Ie6a887fefa12e33c17bfeb5d22984e7c1a7bdb46
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
24aee9100e92dc4c06cdb54487a4922420fa8660 06-Apr-2012 Jean Chalard <jchalard@google.com> Change the flags to a boolean in constructors.

Change-Id: I9939204f3b16346aaebd4d726315ba9c4faf910a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
ae234abd215fe22d53c0b5fa6c973a982adba50c 04-Apr-2012 satok <satok@google.com> Fix the locale of the flags in BinaryDicitonary for tests

Bug: 6129372
Change-Id: I5611f88b10c44261b6145c9dc8615b80e4341e77
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
43ebd8a035af31244a2d54fce5d8000a1fbada4c 04-Apr-2012 satok <satok@google.com> Fix the locale of flags in BinaryDictionary

Bug: 6129372
Change-Id: I4958c2aabf651d7e26648a29b75fcc6c77813451
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
16c6f355700ee5cdaa029f4a25b8b3d40718e6ab 03-Apr-2012 Tadashi G. Takaoka <takaoka@google.com> Add RunInLocale class to guard locale switching

Bug: 6128216
Change-Id: I8d9c75c773c3de886183b291ada7a3836295839b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
660776e09b9a3b321074a94721d901a035ca1b9f 16-Mar-2012 Ken Wakasa <kwakasa@google.com> Small performance improvement by removing interface accesses.

Change-Id: I6d91f3b086470b79306dbe2874db9748b9e0eb5f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
cc8c8b99bd0463f5977dea82f5e2379ea1dd4e73 08-Mar-2012 Tadashi G. Takaoka <takaoka@google.com> Split Utils class to StringUtils, SubtypeUtils, and JniUtils

Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
673cebf9e97289b3b0cd343ff7193dff69684a48 29-Sep-2011 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
ef35cb631c45c8b106fe7ed9e0d1178c3e5fb963 26-Aug-2011 Jean Chalard <jchalard@google.com> Move locale-related utility methods to LocaleUtils.

Change-Id: I7e9e6e5bc4486d8618d0213b112308c3d305c15e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
0ee3b694833df5488900f521adbd818a6a2e90a5 23-Aug-2011 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
150bad6fd4b401177c480acf5640b4db0f821886 18-Aug-2011 Jean Chalard <jchalard@google.com> Have the spell checker use the User dictionary.

Bug: 5175868
Change-Id: I165eee4c865caa5ee1daf3e0b1acde8788b996ef
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
e150ef98569d61078e0f8c67ded8364a9c3d4a20 21-Jul-2011 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
7e19a64c86147967b39442ba78b175d4c8a0c860 20-Jul-2011 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
44861474fbea784f12fe86bc56d30d5d9be4ad81 19-Jul-2011 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
f733074aaecdfd6e89cfee2daff8a9c1233b60f1 11-May-2011 satok <satok@google.com> Fix the available input locales and moved Recorrection

Bug: 4409091

Change-Id: I6efd23ebb9528bf1bd35320057a0ea264c187451
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
d8f52a4f18d22aa150846b01017410ce70bbad6f 27-Apr-2011 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
19bfef6cb0714a46a276abe45329e4abb661f76e 27-Apr-2011 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java
4250eb27f54f8fedc388fe4825b0646a88778744 26-Apr-2011 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/DictionaryFactory.java