aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionaryFileDumper.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-569/+0
|
* Update language to comply with Android's inclusive language guidanceJeff Sharkey2020-07-311-1/+1
| | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Change-Id: I171bc299e660f96f20041a67a3052bd8a2ed781c
* Remove android.util.Log from FileUtilsJatin Matani2015-07-091-1/+4
| | | | | | | | | | 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
* Load metadata.json from resources on DB reset.Dan Zivkovic2015-06-241-0/+28
| | | | | | | | | | | 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
* clean up debug tags.Mohammadinamul Sheik2015-05-121-1/+0
| | | | Change-Id: I2ca37bd691abcc036ead8071045d37d72b2d088d
* Make the DictionaryService stage the downloaded filesMohammadinamul Sheik2015-05-041-13/+26
| | | | | Bug: 20641948 Change-Id: I6639c995b12c033bc30241cd219201dd483ee516
* Make checksum and header checks decoder dependent.Mohammadinamul Sheik2015-02-201-9/+22
| | | | Change-Id: I0ec4aa69d9b5f013ae926cc368e25225d9d3073b
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-3/+2
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Check the md5 checksum of the copied file.Jean Chalard2014-05-221-2/+12
| | | | | | | | | If it doesn't match, mark it broken. It means the dictionary pack will try to install it again next time it updates. We may want to rethink this. Bug: 13125743 Change-Id: I0eb547aa7066bed8cb00c009debbafe9181c37ad
* Arrange to send the rawChecksum to LatinIME.Jean Chalard2014-05-221-1/+2
| | | | | Bug: 13125743 Change-Id: I5d111336e6a0f5ab4e93ff333654a7a1f8f46480
* Straighten out database cursors behavior.Jean Chalard2014-02-181-11/+12
| | | | | | | | | | | | | | | | | | | Some were never closed, other closed twice. This change makes all Cursor instances behave, having the #close() call in a finally{} clause, and puts the burden of closing the cursor squarely on the creator rather than in the called methods. There is however one exception that is beyond the scope of this change: UserDictionarySettings have a Cursor member, it's never closed, and fixing the problem is not obvious. This change adds a TODO for now. It's not very clear if this change actually helps with bug#12670151, but it may be related and it's a good think to do anyway. Bug: 12670151 Change-Id: I87cc44387e7dee3da1488671b93a28d9d73f7dc0
* Reset to 9bd6dac4708ad94fd0257c53e977df62b152e20cKen Wakasa2013-12-131-8/+18
| | | | | | The bulk merge from -bayo to klp-dev should not have been merged to master. Change-Id: I527a03a76f5247e4939a672f27c314dc11cbb854
* Move settings related classes to "settings"Ken Wakasa2013-07-221-0/+1
| | | | Change-Id: Id170dbfe2dcfc93130b7be4a84615940403ec37f
* Add a trace.Jean Chalard2013-07-051-0/+1
| | | | | | | | | | | | Emit a trace when a new dictionary is copied to LatinIME successfully, not just when it fails. That will help diagnosing some problems by being able to ensure this step succeeded looking at the log. This does not happen often (like, maybe 3 times at device activation, and once every few weeks afterwards), so I think the extra line in the log is more than acceptable. Change-Id: I1674bc22d950a7be801076c5aa7e8bbebccab14b
* Fix a bug where AOSP Latin IME would not fill dictionariesJean Chalard2013-06-281-1/+0
| | | | | | | | | 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
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-1/+4
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Merge "Catch a permission exception"Kurt Partridge2013-05-311-1/+7
|\
| * Catch a permission exceptionKurt Partridge2013-05-301-1/+7
| | | | | | | | | | | | | | This change catches a SecurityException if the DictionaryProvider is unavailable. Change-Id: I4f2d87327c40765383d8847fd4e934b3cf799488
* | Fix two strict mode warnings.Jean Chalard2013-05-301-14/+27
|/ | | | | Bug: 9052555 Change-Id: I86e90488679a78a9f6e901b640025619293765a0
* Cleanup an unused return valueKen Wakasa2013-04-301-18/+10
| | | | Change-Id: I974964aa3cc24b5480e57bd38c197fe7a49acaa4
* Add an additional ID to the client info.Jean Chalard2013-04-231-0/+3
| | | | | Bug: 8651863 Change-Id: I748f35726d72ede926d5b06ed87ff029317f1ac3
* Add a class to encapsulate getting the metadata URIJean Chalard2013-04-111-1/+1
| | | | | Bug: 8376173 Change-Id: Icaac8ad412e0180c44e6a955943e3b208981b2ea
* Ask the client to make itself known when it's notJean Chalard2013-04-011-0/+21
| | | | | | | | | | Upon invoking the settings of the dictionary pack with an unknown client, we now launch an intent to ask the client to make itself known. This change also includes the code that receives this intent and acts upon it. Bug: 8492879 Change-Id: I2c6496dea845646961ecafcf64e282cb93ee91dc
* Break dependencies to allow offdevice tests to buildJean Chalard2013-03-191-2/+2
| | | | Change-Id: Ia9a2e8f0672b3f72943f26fb15de1d3c7c5ce7f1
* Implement getting data files with protocol v2Jean Chalard2013-02-151-26/+55
| | | | | | | This also does it for deleting them Bug: 8167342 Bug: 6789534 Change-Id: I1823f98508881f109a667146d3608003f87aa4cb
* Determine the protocol version of the dictionary packJean Chalard2013-02-131-14/+44
| | | | | | | ...for query. Bug: 8167342 Change-Id: Ieb8e5b31c4b62bf507593c4631e31799aad5f267
* Clean up dictionary pack presence test.Jean Chalard2013-02-121-39/+21
| | | | | | This method is much cleaner and much more readable. Change-Id: I8055c169ef7c4453ab45c463704bd56a6080da4f
* Some cleanupsJean Chalard2013-02-111-18/+21
| | | | | | | | | Improve a slew of logging statements, and put commands that we don't expect to need protecting against exceptions out of a try {} block. This is a followup to Id3dc510a Change-Id: Idc6f419ac095b5b0f2d6862d58926ef888cb34e6
* Remove unnecessary whitespaceJean Chalard2013-02-111-1/+1
| | | | | | This is a cleanup followup to Id3dc510a Change-Id: Ie64395eb4b6218fd8c73cacddeed2fba1df65d26
* Don't try to issue delete() commands on missing providerJean Chalard2013-02-111-21/+50
| | | | | Bug: 8173622 Change-Id: Id3dc510ae3535169b5290e87075cb2f433a1f603
* [B14] Implement sending the dictionary list.Jean Chalard2013-02-061-1/+17
| | | | | Bug: 7005813 Change-Id: Ic3ef69510d2b385d0d403191b2f701b6527d0166
* [B11] Implement reset and passing of the URL to the dict packJean Chalard2013-02-061-1/+27
| | | | | | Bug: 7601410 Bug: 7595195 Change-Id: I78cf04dce7c1e64de6725d32317de288a83bd39d
* [B9] Pass the client id parameter for dict info requestsJean Chalard2013-02-021-1/+12
| | | | | Bug: 6789534 Change-Id: Ie3ea75b19ae4da2dea531e0077c58742a9502bc6
* Make some strings privateJean Chalard2013-02-021-5/+5
| | | | Change-Id: I0ffdbcf6bede86a3cdcb3a0e4ec263398502617c
* RefactoringJean Chalard2013-01-291-1/+1
| | | | | | | 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-12/+12
| | | | | | | | This finally makes it work. Bug: 7702011 Change-Id: I3508c88567f79598e4d1dff561b6ba7dc5c3808f
* am 18ff5612: am f592270a: am 7648b37d: Merge "Make sure all FDs are ↵Jean Chalard2012-11-131-11/+19
|\ | | | | | | | | | | | | correctly closed." into jb-mr1.1-dev * commit '18ff56125345746e288118d177fcabf3c079ead3': Make sure all FDs are correctly closed.
| * Make sure all FDs are correctly closed.Jean Chalard2012-11-131-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this kind of series of calls, it's possible that an outer call to a constructor fails, but the inner succeeded. Example: try { is = new A(new B()); } finally { if (null != is) is.close(); } In this case, if new B() succeeds but new A() throws an exception, is stays null and the intermediate object is never closed. This is what was happening in this instance. Bug: 7377336 Change-Id: I3fae9fec1135244982fcf5098c76d93f3e0f2add
* | Fix the build.Jean Chalard2012-10-231-1/+7
| | | | | | | | | | | | It seems this change snuck out from a previous version. Change-Id: I9c33d51273732b1d55bfd60f0957184c86fa88ab
* | Add reader and writer for the combined dict format.Jean Chalard2012-10-231-7/+1
| | | | | | | | | | | | | | | | | | This introduces a new textual format for the dictionary that combines words, bigrams and shortcuts to avoid complexity. It is also extensible to n-grams to fool-prof for the future, and easier to read than XML. Bug: 7388540 Change-Id: I942bbad51bd0c905a5a54c278667563fd6dd66ec
* | Make a better choice for the temporary fileJean Chalard2012-10-121-1/+7
|/ | | | Change-Id: I745bb285b6b52875c8d2b3a94deb962352f9754e
* Put temporary files under a separate directory.Jean Chalard2012-10-111-2/+3
| | | | | Bug: 7328003 Change-Id: Ibe5278ea209d149f87fd08785c77b17e3859948e
* Unlink an old file before moving the new file over itJean Chalard2012-10-041-0/+1
| | | | | | | This is unlikely to be relevant to this bug, but just in case. Bug: 7274972 Change-Id: I56b31b377af16cc2c15ceb90a19792bed3aab367
* Cleanup: Make some classes as finalTadashi G. Takaoka2012-09-271-2/+1
| | | | Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
* Add CollectionUtils class to create generic collection easilyTadashi G. Takaoka2012-08-221-2/+2
| | | | Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
* Fix a bad interaction with mmapJean Chalard2012-07-041-4/+14
| | | | | Bug: 6761221 Change-Id: I7e6d98dc9d7cb34a6163c3957e401ff97abb975c
* Notify the dictionary pack about copy failuresJean Chalard2012-05-231-5/+13
| | | | | Bug: 6532896 Change-Id: I57f7b1a400222c89776f9bff652a7da4470232c5
* Remove an updated dictionary that changed localesJean Chalard2012-05-231-0/+1
| | | | | | | | | 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
* Allow using a format version 2 word list in LatinIMEJean Chalard2012-04-201-7/+13
| | | | Change-Id: I73a4df3a83e49be6e8d3a7d14eb027cfe10f1a23