History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d711426a87ed131c527beb8f7a9160daa14d1f94 09-Jul-2015 Jatin Matani <jatinm@google.com> Remove android.util.Log from FileUtils

FileUtils is being used for other non android projects
and hence breaks when built. Instead use the log statements
at caller to record Log.e messages. Hence there is no side
effect here.

Bug:22042371
Change-Id: Ieb100006ff38e013bc30542637465f58bfc0f2f2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
3aad142435510feb575a6a9af0581fc84df6cabd 25-Jun-2015 Dan Zivkovic <zivkovic@google.com> Load metadata.json from resources on DB reset.

This will ensure that a new (or upgraded) keyboard instance will know which
dictionaries are available for download so it requests missing dictionaries.
In addition, we increment the database version number to ensure upgrades of
existing Fava instances start with a clean slate.

Bug 22069694.

Change-Id: Id71310412682543a3931f9c5c03cb0369fa7b9ac
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
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/utils/DictionaryInfoUtils.java
3a5de64110eab7ae0b6b1da86b5ce30d5b16bd7a 15-Apr-2015 Mohammadinamul Sheik <inamul@google.com> Do not re-download the unused dictionaries.

Does the following
1. Uses dictionaries from the files/ directory while populating the
entries into the pendingUpdates table. So that a download happens only
if the metadata.json says so.
2. Delete an unusable dictionaries from the files/ directory.

Bug: 20142708
Change-Id: Ibd738793585c39735868e324b8ad682dff0eba34
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
8f526c9a55e0b30f81dcca07dc4f5f4fd341bdb1 26-Mar-2015 Mohammadinamul Sheik <inamul@google.com> Use the complete Locale in generating the dictionary id.

- Also deleted a couple of dead methods.

Bug:19929051
Change-Id: I4f88dbc2a8204d5e2a20d1ad8c205a23c6319f8d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
3bc3bc7971f15438732933cfac0db6e766e6a3e9 24-Mar-2015 Mohammadinamul Sheik <inamul@google.com> Force download the dictionaries after the apk package is updated.

- Also display the notification when the dictionaries are auto updated


Bug: 19808828
Change-Id: If5c4efb73d8bb554d812afcf7deafec3ac40a462
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
6e29d261cb480ef0f0d90867d4582fabce0b9113 04-Mar-2015 Mohammadinamul Sheik <inamul@google.com> Introduce DictionaryHeaderUtils to get dictionary header values

Change-Id: I86cef6c7f2f68a75428bb2b9c4d5a1dc1876b541
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
377ba98b753c63a5d25d2e139533191aa18e4c0d 27-Feb-2015 Mohammadinamul Sheik <inamul@google.com> Update the MAX supported file version for downloaded static Dictionaries.

Change-Id: I72d37cc21585b18f4a41ff32627024502f10e993
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
24c282437dd7dd4b135e3410b5459ca83d304524 25-Feb-2015 Mohammadinamul Sheik <inamul@google.com> Do not crash when dictioanryInfo is NULL

Bug: 19417599
Change-Id: I82174401c595b57b42fc74bc478b551869729ba6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
1d5ec6136cf2d2c84453120407957ddb64c7b2b7 24-Feb-2015 Mohammadinamul Sheik <inamul@google.com> Use DECODER_DICT_SUFFIX on fallback to the default main dict resource.

Change-Id: Icec45c364732c0aa9ac713846cad23439b9e42b5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
95711bfcee07d848883316cf07439408f5b332a1 13-Feb-2015 Mohammadinamul Sheik <inamul@google.com> Add Decoder specific dictionary suffix to resource lookup

Change-Id: Ia2c74acdc8ac6f7b605bb06a1078d23b32f388a1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
0f7d881dc72132dfd75c8b4fe61a69fc5cdcd460 05-Feb-2015 Mohammadinamul Sheik <inamul@google.com> Move decoder specific constants to DecoderSpecificConstants.java

Change-Id: Ie4d325b3152e1e7e424b8b436e222e194e4d9da0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
063b2e8d7141641dff06093c807e75737a082818 28-Nov-2014 Tadashi G. Takaoka <takaoka@google.com> Merge "Make LocaleUtils.constructLocaleFromString as @Nonnull"
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/utils/DictionaryInfoUtils.java
ebe5b42f71bd63973edffbda691b498611326c6f 17-Nov-2014 Tadashi G. Takaoka <takaoka@google.com> Make LocaleUtils.constructLocaleFromString as @Nonnull

Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.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/utils/DictionaryInfoUtils.java
9342484e8d573a40f470b6a593df31c602fa4076 23-Oct-2014 Ken Wakasa <kwakasa@google.com> Move Constants.java to the latin.common package

Our intention is to have classes of latinime-common under the common
package as much as we can.

Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
f13487dfbf2b7547b48a5e9123235ee8a1d660c8 15-Oct-2014 Jean Chalard <jchalard@google.com> [ML25] Add an hasDict method.

We used to have separate methods for existence of dicts
according to whether it's a file or a resource. This unifies both.

Bug: 11230254
Bug: 17979623
Change-Id: I728773461f3465f756d06297c3f3bee34390c3e6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
8c889784e2d20bb3ebc1ad869176a791a755ccc6 19-Sep-2014 Adrian Velicu <adrianv@google.com> Added @UsedForTesting to 'missing' methods to avoid ProGuard removing them

Bug: 16864527
Change-Id: I698a1b3e09e7e9a12722169b37f87bd51c8cbd34
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
d9a8f2a82f6a0157c48ff1d0f8b2e05d40618426 28-Jul-2014 Keisuke Kuroyanagi <ksk@google.com> Allow adding DICTIONARY_MAX_WORD_LENGTH-length words.

Bug: 12725817
Change-Id: Ib9b30473ba94242a7b97ccd3b850068f596a5d17
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.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/utils/DictionaryInfoUtils.java
93cda5bb396c22f1781e390debaf75d54cf7c0dc 27-Mar-2014 Keisuke Kuroyanagi <ksk@google.com> Move code only used for dicttool and tests under tests.

Bug: 13035567
Change-Id: I13c6df013ef2b67c9bf67455d9c32d283bf9ea2e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.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/utils/DictionaryInfoUtils.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/utils/DictionaryInfoUtils.java
b7197b705bffb82393e38e225f9082205fb26a23 25-Jan-2014 Keisuke Kuroyanagi <ksk@google.com> Check length of words for personalization dict.

Bug: 12602903

Change-Id: I1ea4e558b6d2fde425ce28226647ad60095e3488
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
84a3047e801923bd486b0cff2f9ea0de25d7e3ba 09-Jan-2014 Jean Chalard <jchalard@google.com> Fix build.

Change-Id: I6d0b572190080e58e95f72856ad39e72a49537b7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
8214a8c2cf29ef28ccf515b9df1390299fd4cbdd 06-Jan-2014 Keisuke Kuroyanagi <ksk@google.com> Fix possible NPE.

Bug: 11933670
Change-Id: Ib0ce853e691bdadffb73874ea9f188cfbec8bc93
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
2232a7080644f91932d92d37282a3a6be129217f 23-Aug-2013 Yuichiro Hanada <yhanada@google.com> Clean up unused imports.

Change-Id: I7147ca237b99399e79210852aa5bf5a01101d779
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
8f4d5d5f23fd45a88da1fc394475abe8b3e6f415 23-Aug-2013 Yuichiro Hanada <yhanada@google.com> Fix getDictionaryFileHeader.

Change-Id: I5186f41b0f38eb08f4154f7b3de7ffc2119fc44b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.java
72c2feb57369527b5f0d2b89505f94503978b928 05-Jul-2013 Tadashi G. Takaoka <takaoka@google.com> Use TimeUnit instead of DateUtils for readability

Bug: 9550800
Change-Id: I087205530a5dbcff4bf08f48f4aa7068aae93215
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/DictionaryInfoUtils.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/utils/DictionaryInfoUtils.java