aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-291/+0
|
* Update language to comply with Android’s inclusive language guidanceSeigo Nonaka2020-07-221-3/+3
| | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: tapas LatinIME && m Change-Id: I2ffb39ff70f61e579b62761d3da526a545dead1f
* Make the DictionaryService stage the downloaded filesMohammadinamul Sheik2015-05-041-38/+11
| | | | | Bug: 20641948 Change-Id: I6639c995b12c033bc30241cd219201dd483ee516
* Merge "Don't log stack trace for missing LM."Dan Zivkovic2015-03-271-1/+1
|\
| * Don't log stack trace for missing LM.Dan Zivkovic2015-03-271-1/+1
| | | | | | | | | | | | | | | | We only have "en" included in the APK. Everything else shows a stack trace. Bug 19946159 Change-Id: Ie213529d52175eb929b2c875a5558aea347af01f
* | Don't notify dictpack for updates for service dumpJatin Matani2015-03-271-3/+5
|/ | | | | Bug:19961803 Change-Id: I464e840bc5f75d164a519d84b0f09d8e64ed5061
* Handle missing resources.Dan Zivkovic2015-03-261-5/+9
| | | | | | | | Needed for unit tests related to various bug fixes. Bug 19930761. Change-Id: I776ccccb032e3d1b181b02c6bb768500790870f7
* Make checksum and header checks decoder dependent.Mohammadinamul Sheik2015-02-201-0/+8
| | | | Change-Id: I0ec4aa69d9b5f013ae926cc368e25225d9d3073b
* Remove unused code from DictionaryFactoryTadashi G. Takaoka2014-11-211-1/+2
| | | | Change-Id: I666308ada968ee7993235ad98b92f2ad522af122
* More verbosity when reporting broken dictionariesAdrian Velicu2014-11-141-1/+2
| | | | | | Also added toString for AssetFileAddress for easier debugging. Change-Id: Ie5d15d12bae46c31b28d8c67002e627f4c6690e3
* Move util classes under commonJean Chalard2014-11-071-1/+1
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-231-2/+2
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-5/+4
| | | | | | | | | | | | | | | | | | | | | 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
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-3/+2
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Use BinaryDictionaryUtils to read dictionary header.Keisuke Kuroyanagi2014-03-051-6/+3
| | | | | | Bug: 8187060 Bug:13035567 Change-Id: I90a5e0665c367f5a1bd786f4babf0d03e79e68fa
* Correctly read the header of APK-embedded dictsJean Chalard2014-02-241-1/+1
| | | | | Bug: 13164518 Change-Id: I8768ad887af8b89ad9f29637f606c3c68629c7ca
* Separate header class from FormatSpec.Keisuke Kuroyanagi2014-02-041-2/+2
| | | | | Bug: 12810574 Change-Id: Iacf1cd05a268bf690ab864b5e32a18a4b0ccc693
* Remove some warningsJean Chalard2014-01-091-1/+1
| | | | Change-Id: I5cfa0d2fccc139bd6c45c5590a68c3e0c90534b8
* Fix an NPE.Jean Chalard2013-09-181-1/+2
| | | | | | | | | 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
* Add getDictDecoder.Yuichiro Hanada2013-09-121-2/+3
| | | | | Bug: 9618601 Change-Id: I173100ac704c03f7d5d0d53477e83cab5d1110d4
* Add DictDecoder.readDictionaryBinary.Yuichiro Hanada2013-08-231-2/+0
| | | | | Bug: 10434720 Change-Id: I14690a6e0f922ed1bab3a4b6c9a457ae84d4c1a4
* Rename BinaryDictDecoder to Ver3DictDecoder.Yuichiro Hanada2013-08-201-8/+3
| | | | Change-Id: Ibf9b95b658df6e2c2218bdb62e2380f326a03832
* Remove populateOptions.Yuichiro Hanada2013-08-201-22/+11
| | | | Change-Id: I1a1830aaa8ea586b68fc34ff3a27ae52b810e8af
* [Refactor] Rename BinaryDictReader and BinaryDictDecoder.Yuichiro Hanada2013-08-191-7/+7
| | | | | | | BinaryDictReader -> BinaryDictDecoder. BinaryDictDecoder -> BianryDictDecoderUtils. Change-Id: Iadf2153b379b760538ecda488dda4f17225e5f37
* [Refactor] Divide BinaryDictInputOutput into BinaryDictEncoder and ↵Yuichiro Hanada2013-08-151-4/+4
| | | | | | BinaryDictDecoder. Change-Id: I7c3269d77e3e3b567e459dcaa1bc029903941744
* Revert "[Refactor] Divide BinaryDictInputOutput into BinaryDictInputUtils ↵Ken Wakasa2013-08-151-4/+4
| | | | | | | | and BinaryDictOutputUtils." This reverts commit 4c63d0614e7ed7aea4bcbab3a17090d841661d92. Change-Id: I1fa277d720bab4d895259df7d6d82eebfa5eb6c5
* [Refactor] Divide BinaryDictInputOutput into BinaryDictInputUtils and ↵Yuichiro Hanada2013-08-151-4/+4
| | | | | | BinaryDictOutputUtils. Change-Id: I0d476abe763c11ba9005152f928e8dccf15ac9de
* Remove the code and comments about version 1 format.Yuichiro Hanada2013-08-091-1/+1
| | | | Change-Id: I827052f234eeaa4dbcfd37da69a99866896a158b
* Fix some warningsJean Chalard2013-07-311-1/+0
| | | | Change-Id: I7290cd1fb675a1b85b9b6ac2d464c932b5bca1dd
* Merge "Regenerate old version dictionaries using new format."Keisuke Kuroynagi2013-07-011-7/+3
|\
| * Regenerate old version dictionaries using new format.Keisuke Kuroynagi2013-07-011-7/+3
| | | | | | | | | | Bug: 9617181 Change-Id: I228a3eac959f81b38e4092015e8e3c429d46fa60
* | Merge "Fix a bug where AOSP Latin IME would not fill dictionaries"Jean Chalard2013-06-281-7/+2
|\ \ | |/ |/|
| * Fix a bug where AOSP Latin IME would not fill dictionariesJean Chalard2013-06-281-7/+2
| | | | | | | | | | | | | | | | | | 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
* | Fix some warningsJean Chalard2013-06-271-2/+0
|/ | | | | | Mostly remove unused imports Change-Id: If8ceffdfad79b78194094527759f5c334746973e
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-5/+8
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Allow downloadable dictionaries in development buildsKurt Partridge2013-06-051-10/+6
| | | | | | Bug: 9305379 Change-Id: Iab32753070a056d3861a45aa898911b7ab67dfb6
* Cleanup an unused return valueKen Wakasa2013-04-301-3/+0
| | | | Change-Id: I974964aa3cc24b5480e57bd38c197fe7a49acaa4
* Avoid leaking AssetFileDescriptor.Jeff Sharkey2013-04-291-2/+10
| | | | Change-Id: Iac388c8aefc684980cb4c7131fb47319f6073eb3
* Put temp files within app filesJean Chalard2013-04-251-1/+7
| | | | | Bug: 8715614 Change-Id: I307d83923070994525cf0d27aad403e881a89314
* Merge the dictionary pack in Latin IME.Jean Chalard2013-03-191-12/+2
| | | | | Bug: 8161354 Change-Id: I17c23f56dd3bc2f27726556bf2c5a9d5520bd172
* Rename ProductionFlag.IS_EXPERIMENTAL to USES_DEVELOPMENT_ONLY_DIAGNOSTICSKen Wakasa2013-03-181-2/+3
| | | | | bug: 8393568 Change-Id: Ie5edf44a3627aca9416145aff56bf05bbf2a05f3
* Access the dictionary pack only if have INTERNET permissionJean Chalard2013-03-181-2/+8
| | | | | Bug: 8161354 Change-Id: I68ee3acb2955a017d25666cc2dad791798f9064a
* Fix a possible crashJean Chalard2013-02-231-3/+7
| | | | | | | | | | 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
* CleanupsJean Chalard2013-02-111-1/+1
| | | | | | Follow-up to Idc6f419a Change-Id: I4aae8f4e19f27a0a309879dc19af6e40906d58c5
* Create methods in LatinIME to make the current dict listsJean Chalard2013-01-311-2/+2
| | | | | Bug: 7005813 Change-Id: I82232af8e3071333b6fd01e4453b6b3c0a3ddb1f
* RefactoringJean Chalard2013-01-291-154/+15
| | | | | | | 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
* [AD4] Actually copy the file in place.Jean Chalard2013-01-211-1/+1
| | | | | | | | This finally makes it work. Bug: 7702011 Change-Id: I3508c88567f79598e4d1dff561b6ba7dc5c3808f
* Suppress dictionary pack support when IS_EXPERIMENTAL is trueKen Wakasa2012-11-091-2/+6
| | | | Change-Id: If8813cb989c1fa8744a3bf36e8514ced3c8f46a3
* Make a better choice for the temporary fileJean Chalard2012-10-121-7/+2
| | | | Change-Id: I745bb285b6b52875c8d2b3a94deb962352f9754e