aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Exception refactoringJean Chalard2011-08-181-10/+19
| | | | | | | | | 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
* Rename a function and update a commentJean Chalard2011-08-111-72/+9
| | | | | Bug: 5095140 Change-Id: Idf66a04c6a1a05015f94187a8dbce3d443bbf38b
* Give the orders to delete the source files to the dict packJean Chalard2011-08-101-2/+6
| | | | | Bug: 5095140 Change-Id: I64552861768ca30073ffe0d631b2e0c44dad4aa9
* Make sure the directory where to put files actually existsJean Chalard2011-08-101-2/+13
| | | | | Bug: 5095140 Change-Id: I764471e54ce0bf6aefe5d604cee97639d5ad0af9
* Have Latin IME copy files from the dictionary pack.Jean Chalard2011-08-091-48/+48
| | | | | | | Also some minor cleanup: remove unused methods, minor refactoring into methods. Bug: 5095140 Change-Id: I035537b37a31adfc8db3b933fb0cefcf703d6c7c
* Change the dictionary file passing schema to a list of idsJean Chalard2011-08-021-10/+56
| | | | | | | | | | 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
* Close a multiprocess file handle.Jean Chalard2011-07-261-0/+1
| | | | | Bug: 5034192 Change-Id: I9c3d757cfae313e9b7510e167de797a74c74a351
* Set the locale for opening an assetJean Chalard2011-07-211-2/+6
| | | | | | | | | 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
* Improve the architecture to support multiple dictionaries.Jean Chalard2011-04-281-7/+14
| | | | | | | | | | | | | | 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
* Allow use of assets for data in the dictionary content provider.Jean Chalard2011-04-151-3/+6
| | | | | | | | | This update is necessary to allow dictionary content providers to use assets, which are part of their apk, as data to pass to the keyboard. Using plain file descriptors doesn't allow for sections of files to be correctly used. Change-Id: Ia94c26d6387bce61c73d38f5c2821f20e50e54d4
* Add different ways of reading the dictionary file.Jean Chalard2011-03-181-0/+141
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