aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Put temporary files under a separate directory.Jean Chalard2012-10-111-0/+12
| | | | | Bug: 7328003 Change-Id: Ibe5278ea209d149f87fd08785c77b17e3859948e
* Use a freq of 1 instead of 0 for non-word shortcuts.Jean Chalard2012-10-091-1/+1
| | | | | | | Also fix a spelling mistake in a comment Bug: 7301525 Change-Id: I4437403dce620fed03871485ee04f13c51ce34fc
* Cleanup: Make some classes as finalTadashi G. Takaoka2012-09-271-3/+3
| | | | Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
* Remove populateOptions(final ByteBuffer buffer).Yuichiro Hanada2012-09-181-6/+6
| | | | Change-Id: Ifc4c64c9cffe4f343c5a604c192db010a1792acc
* Fix hackCanUseDictionaryFile.Yuichiro Hanada2012-09-181-0/+3
| | | | | | Bug: 7169473 Change-Id: I575aaa350042af076a8da5756993cdae9e73422c
* Move constants and comments.Yuichiro Hanada2012-09-131-1/+2
| | | | Change-Id: Ifd66bda7d528827ba61c60531121ea206a2325be
* Use ByteBuffer when reading FusionDictionary from file.Yuichiro Hanada2012-08-241-6/+21
| | | | Change-Id: Ia71561648e17f846d277c22309ac37c21c67a537
* Add CollectionUtils class to create generic collection easilyTadashi G. Takaoka2012-08-221-4/+3
| | | | Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
* Hack to skip reading an outdated binary file.Jean Chalard2012-08-201-3/+46
| | | | | Bug: 7005813 Change-Id: Ie0d8d4b2d5eb147838ca23bdd5ec1cecd4f01151
* Remove an updated dictionary that changed localesJean Chalard2012-05-231-0/+33
| | | | | | | | | 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
* Use the best matching cached dictionary for each categoryJean Chalard2012-04-231-9/+62
| | | | | Bug: 6327270 Change-Id: I5a0e732c8a3fd55fd8ac3c8fe1c58e7f91555d97
* Pass a parameter to the dict pack if we don't have a default dictJean Chalard2012-04-121-1/+3
| | | | | | | | Also, optimize quite a bit the code that decides whether we have a default dict or not. Bug: 5705834 Change-Id: Ied20fbcbbc42cbe8c01759d11b1804d1156c6960
* Read the dictionary resource in a more sensical place.Jean Chalard2012-04-111-2/+4
| | | | | | | 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
* Add language suffix to main dictionaryTadashi G. Takaoka2012-04-111-13/+3
| | | | | Bug: 6319377 Change-Id: Ie6a887fefa12e33c17bfeb5d22984e7c1a7bdb46
* Add RunInLocale class to guard locale switchingTadashi G. Takaoka2012-04-031-5/+9
| | | | | Bug: 6128216 Change-Id: I8d9c75c773c3de886183b291ada7a3836295839b
* Small performance improvement by removing interface accesses.Ken Wakasa2012-03-171-3/+2
| | | | Change-Id: I6d91f3b086470b79306dbe2874db9748b9e0eb5f
* Fix string iterations in a couple places.Jean Chalard2012-02-031-2/+4
| | | | | | | | 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
* Cleanup unused importTadashi G. Takaoka2011-10-041-3/+0
| | | | | | This change also gets rid of several compiler warnings. Change-Id: I23962edaadad18a6e0395d528af17b909dcf5dad
* Move locale-related utility methods to LocaleUtils.Jean Chalard2011-08-291-2/+2
| | | | Change-Id: I7e9e6e5bc4486d8618d0213b112308c3d305c15e
* Allow sharing dictionaries between similar locales.Jean Chalard2011-08-251-14/+49
| | | | | Bug: 5058488 Change-Id: Ib12013f58afad957a8205b439f87480cc12ea06f
* Refactoring: cut out a method for caching a word listJean Chalard2011-08-241-6/+6
| | | | | | | | This is preparation to have the decrypting/unzipping code moved over to LatinIME. Bug: 5095140 Change-Id: Ic3fdcc3de673b46cef2eb9ebe6a52cbdd614e50a
* Check the main dict id to be able to fallback.Jean Chalard2011-08-181-7/+20
| | | | | Bug: 5095140 Change-Id: I02032923ca2a65bd8fbabc0abbe6a476f7542187
* Move the settings test to a more appropriate place.Jean Chalard2011-08-181-22/+28
| | | | | | | | | | | | 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
* Merge "Exception refactoring"Jean Chalard2011-08-181-16/+9
|\
| * Exception refactoringJean Chalard2011-08-181-16/+9
| | | | | | | | | | | | | | | | | | 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
* | Factor dict pack settings reading into a static inner classJean Chalard2011-08-171-14/+37
|/ | | | | | | This is essentially refactoring to help next steps Bug: 5095140 Change-Id: Ic97044d2ed354027bac4f84e6ce69d20ef6da092
* Read shared prefs from the dictionary pack.Jean Chalard2011-08-121-4/+59
| | | | | Bug: 5095140 Change-Id: I227fbd95d8a0330b6dede6de99fde3a5a715fe2d
* Use the dictionaries cached LatinIME-sideJean Chalard2011-08-111-5/+32
| | | | | | | | | 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
* Rename a function and update a commentJean Chalard2011-08-111-4/+66
| | | | | Bug: 5095140 Change-Id: Idf66a04c6a1a05015f94187a8dbce3d443bbf38b
* Change the dictionary file passing schema to a list of idsJean Chalard2011-08-021-27/+16
| | | | | | | | | | 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
* Set the locale for opening an assetJean Chalard2011-07-211-3/+10
| | | | | | | | | 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
* Add a number of NULL pointer guards.Jean Chalard2011-07-191-1/+3
| | | | | | | | | 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
* Fix a bug in one of the methods to get a dictionary.Jean Chalard2011-05-171-3/+7
| | | | | | | | 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
* Improve the architecture to support multiple dictionaries.Jean Chalard2011-04-281-15/+15
| | | | | | | | | | | | | | 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
* Fix Eclipse warnings.Jean Chalard2011-04-261-3/+0
| | | | | | | This change is only there to fix warning issued by Eclipse. It should have absolutely no impact on the program logic. Change-Id: Ie0e242ac6c167297d33de19902340b0f6ecae9e1
* Add different ways of reading the dictionary file.Jean Chalard2011-03-181-0/+96
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