History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a0d9c82921022347e44d416bb57810331e35e446 04-May-2015 Mohammadinamul Sheik <inamul@google.com> Make the DictionaryService stage the downloaded files

Bug: 20641948
Change-Id: I6639c995b12c033bc30241cd219201dd483ee516
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
f267e84548621319c34dcfb3a1c87e5943feb3af 27-Mar-2015 Dan Zivkovic <zivkovic@google.com> Merge "Don't log stack trace for missing LM."
43ea67c23d45bea67183402e3a3e923319737b30 27-Mar-2015 Dan Zivkovic <zivkovic@google.com> Don't log stack trace for missing LM.

We only have "en" included in the APK. Everything else shows a stack trace.

Bug 19946159

Change-Id: Ie213529d52175eb929b2c875a5558aea347af01f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
2cc2d31418b482e26df657746e2b2711f73aabac 27-Mar-2015 Jatin Matani <jatinm@google.com> Don't notify dictpack for updates for service dump

Bug:19961803
Change-Id: I464e840bc5f75d164a519d84b0f09d8e64ed5061
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
68c88982178d9c40a0dc9e2edd2340632b0429b2 26-Mar-2015 Dan Zivkovic <zivkovic@google.com> Handle missing resources.

Needed for unit tests related to various bug fixes.

Bug 19930761.

Change-Id: I776ccccb032e3d1b181b02c6bb768500790870f7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
eeeec21baceea10bd1f96cfc5395fae7ec837f0c 21-Feb-2015 Mohammadinamul Sheik <inamul@google.com> Make checksum and header checks decoder dependent.

Change-Id: I0ec4aa69d9b5f013ae926cc368e25225d9d3073b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
a414b81a6c69e89ce36c3756560062af84af4027 21-Nov-2014 Tadashi G. Takaoka <takaoka@google.com> Remove unused code from DictionaryFactory

Change-Id: I666308ada968ee7993235ad98b92f2ad522af122
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
91a81a2790ae968ca4bca0451cf5a4ed8fc71d71 14-Nov-2014 Adrian Velicu <adrianv@google.com> More verbosity when reporting broken dictionaries

Also added toString for AssetFileAddress for easier debugging.

Change-Id: Ie5d15d12bae46c31b28d8c67002e627f4c6690e3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
5b91b551e5ffaf2c2e691dfbd434f21c82293986 06-Nov-2014 Jean Chalard <jchalard@google.com> Move util classes under common

Also why did we have two copies of LocaleUtils >.>

Bug: 18108776
Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
d3a4c5132422b189c8dbb94dbbe84a9b9761b0a8 22-Oct-2014 Tadashi G. Takaoka <takaoka@google.com> Fix Javadoc and null analysis related warnings

This CL also adds @SuppressWarning("unused" to java-overridable package.

Bug: 18003991
Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
5f00fe09e9a611b647592188316e5999465df4d3 20-Oct-2014 Tadashi G. Takaoka <takaoka@google.com> Fix some compiler warnings

This CL fixes the following compiler warnings.

- Indirect access to static member
- Access to a non-accessible member of an enclosing type
- Parameter assignment
- Method can be static
- Local variable declaration hides another field or variable
- Value of local variable is not used
- Unused import
- Unused private member
- Unnecessary 'else' statement
- Unnecessary declaration of throw exception
- Redundant type arguments
- Missing '@Override' annotation
- Unused '@SuppressWarning' annotations

Bug: 18003991
Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
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/BinaryDictionaryGetter.java
de36b47d29b7d6bdfb448a97bef2dcc3f5649205 05-Mar-2014 Keisuke Kuroyanagi <ksk@google.com> Use BinaryDictionaryUtils to read dictionary header.

Bug: 8187060
Bug:13035567
Change-Id: I90a5e0665c367f5a1bd786f4babf0d03e79e68fa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
890b44e5376413adc73025e046072bcce3e119c5 24-Feb-2014 Jean Chalard <jchalard@google.com> Correctly read the header of APK-embedded dicts

Bug: 13164518
Change-Id: I8768ad887af8b89ad9f29637f606c3c68629c7ca
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
b986f78ba826fa360304a69565f1880bdd7ce0c5 04-Feb-2014 Keisuke Kuroyanagi <ksk@google.com> Separate header class from FormatSpec.

Bug: 12810574
Change-Id: Iacf1cd05a268bf690ab864b5e32a18a4b0ccc693
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
b11339b3abd9c82252780d0c33da2d8051b23bcf 08-Jan-2014 Jean Chalard <jchalard@google.com> Remove some warnings

Change-Id: I5cfa0d2fccc139bd6c45c5590a68c3e0c90534b8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
673275cbc6c6fbef3b33a7493f93470c8d953bef 18-Sep-2013 Jean Chalard <jchalard@google.com> Fix an NPE.

Apparently, it is possible that File#getPath() returns null.
In this case, we'll have a null AssetFileAddress and an NPE
later down the road.

Bug: 9944824
Change-Id: Id6ceac1cb55439660f9811cf0fe3b574200d5a20
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
0e40cd0c40f2c731f91ccd0561e251262e5a2614 12-Sep-2013 Yuichiro Hanada <yhanada@google.com> Add getDictDecoder.

Bug: 9618601
Change-Id: I173100ac704c03f7d5d0d53477e83cab5d1110d4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
e9a10ff0f026b5ec458f116afc7a75806574cbcd 22-Aug-2013 Yuichiro Hanada <yhanada@google.com> Add DictDecoder.readDictionaryBinary.

Bug: 10434720
Change-Id: I14690a6e0f922ed1bab3a4b6c9a457ae84d4c1a4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
112257e40f6f6d914fac1c3a45f39a770693b386 20-Aug-2013 Yuichiro Hanada <yhanada@google.com> Rename BinaryDictDecoder to Ver3DictDecoder.

Change-Id: Ibf9b95b658df6e2c2218bdb62e2380f326a03832
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
66004ce2de1579d8ae1fb3411ce98f1e9e37cf8b 20-Aug-2013 Yuichiro Hanada <yhanada@google.com> Remove populateOptions.

Change-Id: I1a1830aaa8ea586b68fc34ff3a27ae52b810e8af
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
77bce05e6f6e3a988253f9305ae22e51f56f5b1a 19-Aug-2013 Yuichiro Hanada <yhanada@google.com> [Refactor] Rename BinaryDictReader and BinaryDictDecoder.

BinaryDictReader -> BinaryDictDecoder.
BinaryDictDecoder -> BianryDictDecoderUtils.

Change-Id: Iadf2153b379b760538ecda488dda4f17225e5f37
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
94460eba11019ec4658c42b4bcc0379d70f41770 15-Aug-2013 Yuichiro Hanada <yhanada@google.com> [Refactor] Divide BinaryDictInputOutput into BinaryDictEncoder and BinaryDictDecoder.

Change-Id: I7c3269d77e3e3b567e459dcaa1bc029903941744
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
117f18e844f83036f3523aa2e721894bac16739d 15-Aug-2013 Ken Wakasa <kwakasa@google.com> Revert "[Refactor] Divide BinaryDictInputOutput into BinaryDictInputUtils and BinaryDictOutputUtils."

This reverts commit 4c63d0614e7ed7aea4bcbab3a17090d841661d92.

Change-Id: I1fa277d720bab4d895259df7d6d82eebfa5eb6c5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
4c63d0614e7ed7aea4bcbab3a17090d841661d92 14-Aug-2013 Yuichiro Hanada <yhanada@google.com> [Refactor] Divide BinaryDictInputOutput into BinaryDictInputUtils and BinaryDictOutputUtils.

Change-Id: I0d476abe763c11ba9005152f928e8dccf15ac9de
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
7ec9db2c34ee6bec2cbff6cf05cee9bf3c2f7122 08-Aug-2013 Yuichiro Hanada <yhanada@google.com> Remove the code and comments about version 1 format.

Change-Id: I827052f234eeaa4dbcfd37da69a99866896a158b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
93445b4821e9e8ecc7dd52f1a5d5316c7eec2654 30-Jul-2013 Jean Chalard <jchalard@google.com> Fix some warnings

Change-Id: I7290cd1fb675a1b85b9b6ac2d464c932b5bca1dd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
109ba3ace3815a7650a9fb0485b187968ddf8c29 01-Jul-2013 Keisuke Kuroynagi <ksk@google.com> Merge "Regenerate old version dictionaries using new format."
a62b5b22eff2c1842fe1e0a4ea949e1e004de40b 01-Jul-2013 Keisuke Kuroynagi <ksk@google.com> Regenerate old version dictionaries using new format.

Bug: 9617181
Change-Id: I228a3eac959f81b38e4092015e8e3c429d46fa60
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
a5e28acf634988f7589e4b1f07962863f15a991a 28-Jun-2013 Jean Chalard <jchalard@google.com> Merge "Fix a bug where AOSP Latin IME would not fill dictionaries"
555c4236db885532e51d8a26d715608b2b738c1b 27-Jun-2013 Jean Chalard <jchalard@google.com> Fix a bug where AOSP Latin IME would not fill dictionaries

There is no reason not to contact the dictionary provider
when we don't have internet permission or when the URL
is empty. It knows how to handle both these cases.

Bug: 9388602
Change-Id: I30c4540551ad2f5e527d3acd1842bbd749feca89
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
e04794cbbeafec7463a91554d7c069deacddc744 27-Jun-2013 Jean Chalard <jchalard@google.com> Fix some warnings

Mostly remove unused imports

Change-Id: If8ceffdfad79b78194094527759f5c334746973e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.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/BinaryDictionaryGetter.java
efd26bb3192722c2980098a6f36dff6006e8896a 06-Jun-2013 Kurt Partridge <kep@google.com> Allow downloadable dictionaries in development builds

Bug: 9305379

Change-Id: Iab32753070a056d3861a45aa898911b7ab67dfb6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
0d6c87d113e56f8d701ec9ab6197a48b908d1f6d 30-Apr-2013 Ken Wakasa <kwakasa@google.com> Cleanup an unused return value

Change-Id: I974964aa3cc24b5480e57bd38c197fe7a49acaa4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
c5ebc792d6f786a6dd46eafdc7895faa5cb9259a 29-Apr-2013 Jeff Sharkey <jsharkey@android.com> Avoid leaking AssetFileDescriptor.

Change-Id: Iac388c8aefc684980cb4c7131fb47319f6073eb3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
a995bf4031dd19ff9c17dd4bf7969c713dc16dcf 25-Apr-2013 Jean Chalard <jchalard@google.com> Put temp files within app files

Bug: 8715614
Change-Id: I307d83923070994525cf0d27aad403e881a89314
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
0cc0544a2995c7eb54a830ae54db60af89d4073d 15-Mar-2013 Jean Chalard <jchalard@google.com> Merge the dictionary pack in Latin IME.

Bug: 8161354
Change-Id: I17c23f56dd3bc2f27726556bf2c5a9d5520bd172
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
9c3860ce461c3791891bf667edc77fe798c8d332 18-Mar-2013 Ken Wakasa <kwakasa@google.com> Rename ProductionFlag.IS_EXPERIMENTAL to USES_DEVELOPMENT_ONLY_DIAGNOSTICS

bug: 8393568
Change-Id: Ie5edf44a3627aca9416145aff56bf05bbf2a05f3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
ce487bcf33be39eed4ed56e6b98603cc87fda2eb 18-Mar-2013 Jean Chalard <jchalard@google.com> Access the dictionary pack only if have INTERNET permission

Bug: 8161354
Change-Id: I68ee3acb2955a017d25666cc2dad791798f9064a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
76ead0ead06ab1c09c698247c19d1d2f4bd35d23 23-Feb-2013 Jean Chalard <jchalard@google.com> Fix a possible crash

If the dictionary ID, as indicated in the metadata, is
less than three chars long, it crashes LatinIME.
Of course we don't have such dictionary IDs in the current
metadata, but it's still better to be able to handle
the case gracefully ^^;

Change-Id: I60cdf6f8ecce9f4d44b42ddd5d157aebff9a4163
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
1c5b2a41ecf118a2d0103bba7747c35329b2e0ee 12-Feb-2013 Jean Chalard <jchalard@google.com> Cleanups

Follow-up to Idc6f419a

Change-Id: I4aae8f4e19f27a0a309879dc19af6e40906d58c5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
af4a7e8c4b2a41e9be48965133ab489cc9484764 29-Jan-2013 Jean Chalard <jchalard@google.com> Create methods in LatinIME to make the current dict lists

Bug: 7005813
Change-Id: I82232af8e3071333b6fd01e4453b6b3c0a3ddb1f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.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/BinaryDictionaryGetter.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/BinaryDictionaryGetter.java
b56260b8917233a902c8cce45364850afc0b99b2 18-Jan-2013 Jean Chalard <jchalard@google.com> [AD4] Actually copy the file in place.

This finally makes it work.

Bug: 7702011

Change-Id: I3508c88567f79598e4d1dff561b6ba7dc5c3808f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
710d06cea91a8e6bf04a27f0bcd88d76a5cc5acd 08-Nov-2012 Ken Wakasa <kwakasa@google.com> Suppress dictionary pack support when IS_EXPERIMENTAL is true

Change-Id: If8813cb989c1fa8744a3bf36e8514ced3c8f46a3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
01e0913ad20b24cc2b7b4dc2f4cbac03ccd4bc0e 12-Oct-2012 Jean Chalard <jchalard@google.com> Make a better choice for the temporary file

Change-Id: I745bb285b6b52875c8d2b3a94deb962352f9754e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
66c90cd2ae49c49da8aeda5ab1d86bd9b76434c7 11-Oct-2012 Jean Chalard <jchalard@google.com> Put temporary files under a separate directory.

Bug: 7328003
Change-Id: Ibe5278ea209d149f87fd08785c77b17e3859948e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
99b84b42f9517cbf7856aec93a6d5de30daaa325 09-Oct-2012 Jean Chalard <jchalard@google.com> Use a freq of 1 instead of 0 for non-word shortcuts.

Also fix a spelling mistake in a comment

Bug: 7301525
Change-Id: I4437403dce620fed03871485ee04f13c51ce34fc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.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/BinaryDictionaryGetter.java
8adc0154e6a1412e8b2a7ba5b2a67650062e0dbf 13-Sep-2012 Yuichiro Hanada <yhanada@google.com> Remove populateOptions(final ByteBuffer buffer).

Change-Id: Ifc4c64c9cffe4f343c5a604c192db010a1792acc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
65e4970026fd0e7964796c0e252b6d71632b634c 18-Sep-2012 Yuichiro Hanada <yhanada@google.com> Fix hackCanUseDictionaryFile.

Bug: 7169473

Change-Id: I575aaa350042af076a8da5756993cdae9e73422c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
81d97eec0e77e72cce606f9c9f96091c0b348190 11-Sep-2012 Yuichiro Hanada <yhanada@google.com> Move constants and comments.

Change-Id: Ifd66bda7d528827ba61c60531121ea206a2325be
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
d4fe7fda303ff937d2e44c15dde9d90cbf59376b 21-Aug-2012 Yuichiro Hanada <yhanada@google.com> Use ByteBuffer when reading FusionDictionary from file.

Change-Id: Ia71561648e17f846d277c22309ac37c21c67a537
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.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/BinaryDictionaryGetter.java
13822d2b056543de5a54b5ed338ca2cc250d8287 17-Aug-2012 Jean Chalard <jchalard@google.com> Hack to skip reading an outdated binary file.

Bug: 7005813
Change-Id: Ie0d8d4b2d5eb147838ca23bdd5ec1cecd4f01151
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
b9e2bce95e955b6393c25226ab62fa44d24b904a 23-May-2012 Jean Chalard <jchalard@google.com> Remove an updated dictionary that changed locales

When a dictionary changes locale, we need to remove the file
that corresponds to the old version. It has a different path
than the new one, so we have to search for it explicitly.

Bug: 6540631
Change-Id: Ie9d63ba636651fe90f8fbb9627b7265ac7b34ccd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
0df78d46da1ef0d42196f3baa9d5f6df5932afb6 20-Apr-2012 Jean Chalard <jchalard@google.com> Use the best matching cached dictionary for each category

Bug: 6327270
Change-Id: I5a0e732c8a3fd55fd8ac3c8fe1c58e7f91555d97
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.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/BinaryDictionaryGetter.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/BinaryDictionaryGetter.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/BinaryDictionaryGetter.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/BinaryDictionaryGetter.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/BinaryDictionaryGetter.java
9242a2bcf8a6b07bb045a8356711bed1493c251e 03-Feb-2012 Jean Chalard <jchalard@google.com> Fix string iterations in a couple places.

Seems I didn't get how to iterate on a String correctly >.>
Talk about a big bug. Anyway, I think it's working now.

Bug: 5955228
Change-Id: I988c900cf2a16c44b9505cfd4f77c7cda7e592f0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
ab72a97d7ce44230a0c824797d1675a5ca354a56 04-Oct-2011 Tadashi G. Takaoka <takaoka@google.com> Cleanup unused import

This change also gets rid of several compiler warnings.

Change-Id: I23962edaadad18a6e0395d528af17b909dcf5dad
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.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/BinaryDictionaryGetter.java
de4e8dedccc7b6db6df4c3f75d9f2458432c558a 25-Aug-2011 Jean Chalard <jchalard@google.com> Allow sharing dictionaries between similar locales.

Bug: 5058488
Change-Id: Ib12013f58afad957a8205b439f87480cc12ea06f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
7b1f74bb9ddae952f4da6c8d9bbb0057984b0988 23-Aug-2011 Jean Chalard <jchalard@google.com> Refactoring: cut out a method for caching a word list

This is preparation to have the decrypting/unzipping code
moved over to LatinIME.

Bug: 5095140
Change-Id: Ic3fdcc3de673b46cef2eb9ebe6a52cbdd614e50a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
ee7daefd972979898d91974ea0d92fcc9f3ca169 18-Aug-2011 Jean Chalard <jchalard@google.com> Check the main dict id to be able to fallback.

Bug: 5095140
Change-Id: I02032923ca2a65bd8fbabc0abbe6a476f7542187
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
83207fb482b13bd2300008aa153080f0706fbd8d 18-Aug-2011 Jean Chalard <jchalard@google.com> Move the settings test to a more appropriate place.

This change refactors the dictionary selection code so that the
cached dictionary files list and the settings tests are more
cleanly separated.
This will also help with future refactorings that will test for
the presence of the main dictionary and insert the fall back if
it's not supplied by the dictionary pack.

Bug: 5095140
Change-Id: I8d7caad7c054031df71fe78b043801a774d50f65
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
5ba5ff9b803f2275bbf91f2eebd7216a190d381a 18-Aug-2011 Jean Chalard <jchalard@google.com> Merge "Exception refactoring"
80e0bf04292867ddc769aca75ebaee817b95a941 16-Aug-2011 Jean Chalard <jchalard@google.com> Exception refactoring

Now that the dictionary pack can return several files, it's better
to handle IO exceptions for each file rather than globally. This
also will help with next implementation steps.

Bug: 5095140
Change-Id: I5ed135ad2ad4f55f61f9b3f92c48a35d5c24bdb2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
c11c4fd61b3574f3647299ec0f19ee01ecaabf52 16-Aug-2011 Jean Chalard <jchalard@google.com> Factor dict pack settings reading into a static inner class

This is essentially refactoring to help next steps

Bug: 5095140
Change-Id: Ic97044d2ed354027bac4f84e6ce69d20ef6da092
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
86e517fe4a5981f6ab936a0f9f40a0e0aa196477 11-Aug-2011 Jean Chalard <jchalard@google.com> Read shared prefs from the dictionary pack.

Bug: 5095140
Change-Id: I227fbd95d8a0330b6dede6de99fde3a5a715fe2d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
08868624ede5eb4950972833f015d465408d3408 11-Aug-2011 Jean Chalard <jchalard@google.com> Use the dictionaries cached LatinIME-side

Dictionaries are now copied over from the dictionary pack to Latin IME.
This change enables Latin IME to use all dictionaries that have been
cached until now.

Bug: 5095140
Change-Id: Id9a2bacf9dc1c693189b0ac8aa3f75756dc1e3e6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
28966734619251f78812f6a53f5efacbf5f77c49 11-Aug-2011 Jean Chalard <jchalard@google.com> Rename a function and update a comment

Bug: 5095140
Change-Id: Idf66a04c6a1a05015f94187a8dbce3d443bbf38b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
fae8d60ee926e9f340392789119cf81655ad46e9 02-Aug-2011 Jean Chalard <jchalard@google.com> Change the dictionary file passing schema to a list of ids

The dictionary filename used to be passed directly to Latin IME.
This change implements, on the part of Latin IME, the passing of
them as an id that should then be passed through
openAssetFileDescriptor.

Bug: 5095140
Change-Id: I7d1e9d57c19f0645045368f68681680f238189fc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.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/BinaryDictionaryGetter.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/BinaryDictionaryGetter.java
bf65f31c5fcd61d8c3aed0e7c6efc38dd7342c1f 17-May-2011 Jean Chalard <jchalard@google.com> Fix a bug in one of the methods to get a dictionary.

One of the two methods for getting a dictionary from the dictionary
pack had a bug and would not tolerate not getting an actual dictionary.
This change fixes that.

Change-Id: Id58bb27258494fb3aa60ec07a4eb27cfb5cc7279
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.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/BinaryDictionaryGetter.java
0c8d5ca023d54b7c9ef6c20eb7988288132bacb5 26-Apr-2011 Jean Chalard <jchalard@google.com> Fix Eclipse warnings.

This change is only there to fix warning issued by Eclipse.
It should have absolutely no impact on the program logic.

Change-Id: Ie0e242ac6c167297d33de19902340b0f6ecae9e1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
cba93f50c3d46ada773ec49435689dc3e2094385 14-Mar-2011 Jean Chalard <jchalard@google.com> Add different ways of reading the dictionary file.

This change adds basic support for an external dictionary provider.
It adds methods for reading the dictionary itself from an asset in
the dictionary provider package directly, obtaining the file name
through the ContentProvider interface; it also adds a way of getting
the data through an InputStream and copying the file locally.

Incidentally this change also adds the code needed to listen for
updating the dictionary provider package and reloading it in time.

This change also goes hand-in-hand with Iab31db6e, which implements
the small closed part of this.

Issue: 3414944

Change-Id: I5e4fff99a59bb99dbdb002102db6c90e6cb41c8a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java