aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-07-05Add a trace.Jean Chalard1-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
2013-07-04Fix: release lock in UserHistoryDictionary.Keisuke Kuroynagi1-1/+5
Change-Id: I050c252910c6b5b0a79cd2d52c525679f2d6091d
2013-07-04Change how the length of the random words are chosen.Jean Chalard1-4/+13
This is much more robust and much better for testing. Change-Id: I43f900f9debc1d1ae4c3f3dd07dbe0ac85d31f52
2013-07-04Have random words stick to a restricted (random) charsetJean Chalard1-14/+26
Change-Id: Ib4045ebc9659f1b60183f2356e60e449d62c5be9
2013-07-04DictionaryWriter to abstract binary dictionary writing.Keisuke Kuroynagi5-88/+254
UserHistoryDictionary should become to use ExpandableBinaryDictionary. Bug: 6669677 Change-Id: I6831c7dd2d84207d1a8f51ba15d52e0a72205d0c
2013-07-04Allow force auto commit when the top is long multiword.Keisuke Kuroynagi3-17/+22
Bug: 9688196 Change-Id: I73ff2cd77b932bf7307b3541ea9da3fa4afa11b4
2013-07-04Add a two-args constructor to BinaryDictIOTestsJean Chalard1-6/+8
Change-Id: Ie26e22754bfa5d58135349164c57007c86bd97e8
2013-07-04Generalize constuctors & add testsJean Chalard2-9/+26
If there is any two-args constructor with the right arg types in a test class, use it. Also, add a test suite to dicttool test. Also, have the return value of dicttool reflect success or failure. Change-Id: I51ab2a4abb93a0a483e8d6ef3c39d1ff1bce1dbd
2013-07-04Add Azerbaijani keyboardTadashi G. Takaoka3-1/+114
Bug: 7963448 Change-Id: I39c192b342278e82e30ac6ef12c6d150c817ae70
2013-07-04Add Kazakh keyboardTadashi G. Takaoka6-575/+707
Bug: 9697273 Change-Id: Ic9943569ed60d601f093181bf135e45a25399121
2013-07-03Return NOT_A_PROBABILITY in getProbability for inalid dictionary.Keisuke Kuroynagi1-1/+1
Bug: 9682742 Change-Id: Ifad4b9811bb5e1a94aed59eba7aedcdb6da5cf9c
2013-07-03Add missing letter THEH to Perisan keyboard layoutTadashi G. Takaoka11-316/+122
With this change, the phone keyboard layout use quite similar one of the oridinal PC. The differences from the ordinal PC keyboard layout are: - Add letter JEH between letter TAH and ZAIN at 3rd row. - Move letter TCHEN from the most left of 1st row to the most left of 3rd row. The tablet keyboard layout is the same of of the phone except: - Add letter ALEF with MADDA above between letter WAW and letter TCHEN at 3rd row. This change also moves the delete key and the enter key on tablet to 1st and 2nd row respectively. Bug: 9371393 Change-Id: I964589055eb15549fe20e5ec45e02f7dc6b5686e
2013-07-03Add missing letter THEH to Arabic keyboard layoutTadashi G. Takaoka11-332/+125
With this change, the tablet keyboard layout both 7inch and 10inch use quite similar one of the ordinal PC. The differences from the ordinal PC keyboard layout are: - Move letter THAL from the most left of digits' row to the most left of 3rd row. - Move letter DAL from the most right of 1st row to the most right of 3rd row. - Omit ligature LAM with ALEF from 3rd row and move to more keys of letter LAM on 2nd row. The phone keyboard layout is the same one of the tablet except: - Omit letter YEH with HAMZA avobe from 3rd row and move to more keys of letter ALEF MAKSURA on 3rd row. Bug: 9371393 Change-Id: I1cd164ce7c1c3a5cae67b9985f1b167aef028ca0
2013-07-03Use ReentrantReadWriteLock in ExpandableBinaryDictionary.Keisuke Kuroynagi1-15/+18
Bug: 6669677 Change-Id: I2acde0517d5ed5cbd7b7149709e35fc36651335d
2013-07-03Followup com.android.inputmethod.latin.utils changeTadashi G. Takaoka1-1/+1
This is a folowup of I1c5b27c8ed. Change-Id: I12c422a26e599923cadf21c3ab24e4b901cf94cc
2013-07-03Disable shortcut output for multi-word suggestions.Keisuke Kuroynagi1-3/+8
Bug: 9682742 Change-Id: I9e0a5acd9053d141e018c4653e4baf0f77aacb45
2013-07-03Read version 3 dictionary header.Keisuke Kuroynagi5-58/+73
The header structure of version 3 dictionary is same as version 2. Bug: 6669677 Change-Id: I26c8723333938fbf102de1a40f11d97444da9075
2013-07-02Handling key repeat by emulating key press and code inputTadashi G. Takaoka11-117/+208
This change also eliminates a reference of AudioAndHapticFeedbackManager from KeyboardSwitcher and MainKeyboard. Bug: 6522943 Change-Id: Iac42ec8ff00c66deb76a660ffc07477923a58959
2013-07-02Fix: Reading invalid dictionary position.Keisuke Kuroynagi1-4/+5
Bug: 6669677 Change-Id: I3f4078aaa8cf72f3b366e7851457e9c753c0102f
2013-07-02Fix offdevice compilationJean Chalard4-29/+77
Change-Id: I8bccccbc51b308fddfbbc990f7bfe1c490259372
2013-07-01Dump binary dictionary information when openingJean Chalard9-37/+177
Bug: 9459517 Change-Id: I122583e734936ae0284e1c7500c6c9242bc7973b
2013-07-01Remove format version 1 related logic.Keisuke Kuroynagi1-2/+0
Removed from DictionaryStructurePolicyFactory Bug: 9617181 Change-Id: Ice4b4a24e019c88b0ec129dc69176c7541f8530c
2013-07-01Move Range out of RichInputConnection and rename it.Jean Chalard5-108/+129
Range has grown a bit too big to stay an internal class. Change-Id: Ic3fbc48a5d10776eedd7559c4d696e5926b88288
2013-07-01Add args to dicttool test.Jean Chalard2-16/+66
Change-Id: I0667e0a5a6f6db3964cfcca5c8f083b9ceb41a2e
2013-07-01Regenerate old version dictionaries using new format.Keisuke Kuroynagi6-30/+13
Bug: 9617181 Change-Id: I228a3eac959f81b38e4092015e8e3c429d46fa60
2013-07-01Move children filtering methods to DicNodeChildrenFilter.Keisuke Kuroynagi5-94/+82
Bug: 6669677 Change-Id: If18055e2da8dd5d783942ba384d3ea1d97030e3a
2013-07-01Fix a bug where no URL means refresh never endsJean Chalard3-10/+29
This patch does two things: - If there is no URL to download new data from, then the Refresh button is not shown. - Even if for some reason refresh starts for a client for which there is no URL, loading correctly finishes. Bug: 9388602 Change-Id: I3fd9214da50faa4b59d0bd3e775293dd34f07547
2013-07-01Do not re-resume suggestion if it's not needed.Jean Chalard3-1/+133
This is much better interface-wise. It eliminates all blinking of the line in the practice. Bug: 8874148 Bug: 8864306 Change-Id: I87754e44784327c2e9c8b162d598d145e20668e8
2013-06-28Introduce patriciaTrie to abstract traversing version 2 dictionary.Keisuke Kuroynagi8-32/+198
Bug: 6669677 Change-Id: Ifef72f3d7a7ba67c5232b98c7835485d72d7322d
2013-06-28Update dictionariesJean Chalard24-0/+0
>>> dictionaries/cs_wordlist.combined.gz Header : date : 1355802831 <=> 1372393817 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/de_wordlist.combined.gz Header : date : 1355802835 <=> 1372393817 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/en_GB_wordlist.combined.gz Header : date : 1366272052 <=> 1372393817 version : 31 <=> 35 Body : Deleted: Sea 126 Added: LTE 25 >>> dictionaries/en_US_wordlist.combined.gz Header : date : 1366272093 <=> 1372393817 version : 31 <=> 35 Body : Added: LTE 25 >>> dictionaries/en_wordlist.combined.gz Header : date : 1366272977 <=> 1372393837 version : 31 <=> 35 Body : Deleted: Sea 126 Added: LTE 25 >>> dictionaries/es_wordlist.combined.gz Header : date : 1355802832 <=> 1372393817 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/fr_wordlist.combined.gz Header : date : 1366272255 <=> 1372393818 version : 31 <=> 35 Body : Deleted: R'n'B 95 Deleted: count 60 Deleted: d'Inti 34 Added: beurk 25 >>> dictionaries/hr_wordlist.combined.gz Header : date : 1355802836 <=> 1372393818 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/it_wordlist.combined.gz Header : date : 1355802836 <=> 1372393818 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/lt_wordlist.combined.gz Header : date : 1355802843 <=> 1372393818 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/lv_wordlist.combined.gz Header : date : 1355802843 <=> 1372393818 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/nb_wordlist.combined.gz Header : date : 1366003450 <=> 1372393818 version : 31 <=> 35 Body : Added: LTE 25 >>> dictionaries/nl_wordlist.combined.gz Header : date : 1355802844 <=> 1372393818 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/ru_wordlist.combined.gz Header : date : 1370244430 <=> 1372393835 version : 34 <=> 35 Body : Freq changed: связывание 93 -> 0 >>> dictionaries/sl_wordlist.combined.gz Header : date : 1355802835 <=> 1372393835 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/sr_wordlist.combined.gz Header : date : 1355802853 <=> 1372393835 version : 29 <=> 35 Body : Added: LTE 25 >>> dictionaries/sv_wordlist.combined.gz Header : date : 1366003804 <=> 1372393836 version : 31 <=> 35 Body : Added: LTE 25 >>> dictionaries/tr_wordlist.combined.gz Header : date : 1355802858 <=> 1372393837 version : 29 <=> 35 Body : Added: LTE 25 >>> java/res/raw/main_de.dict Header : date : 1355802835 <=> 1372393817 version : 29 <=> 35 Body : Added: LTE 25 >>> java/res/raw/main_en.dict Header : date : 1366272977 <=> 1372393837 version : 31 <=> 35 Body : Deleted: Sea 126 Added: LTE 25 >>> java/res/raw/main_es.dict Header : date : 1355802832 <=> 1372393817 version : 29 <=> 35 Body : Added: LTE 25 >>> java/res/raw/main_fr.dict Header : date : 1366272255 <=> 1372393818 version : 31 <=> 35 Body : Deleted: R'n'B 95 Deleted: count 60 Deleted: d'Inti 34 Added: beurk 25 >>> java/res/raw/main_it.dict Header : date : 1355802836 <=> 1372393818 version : 29 <=> 35 Body : Added: LTE 25 >>> java/res/raw/main_ru.dict Header : date : 1370244430 <=> 1372393835 version : 34 <=> 35 Body : Freq changed: связывание 93 -> 0 Bug: 9301610 Bug: 9607966 Change-Id: I1117ed85d97fbb0ee50f11bc31776f1970b56f12
2013-06-28Fix a bug where AOSP Latin IME would not fill dictionariesJean Chalard2-8/+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
2013-06-27Record number of words enteredKurt Partridge1-16/+10
This change records the number of words entered in every LogUnit. This metric is helpful for determining how much multi-word gestures and spaceless tapping is used. Change-Id: I4c6d0f9d78e4ac2dd63fd53ed2ec70b368366f15
2013-06-27Fix some warningsJean Chalard7-15/+1
Mostly remove unused imports Change-Id: If8ceffdfad79b78194094527759f5c334746973e
2013-06-27Improve the language list in the personal dictionarySatoshi Kataoka1-7/+2
Bug: 9117704 Change-Id: I26e6f8369a3c7ffa4bb651b4b5a3e6f004121983
2013-06-27Use internal personal dictionary settings on JBMR2 or beforeSatoshi Kataoka2-11/+44
Bug: 9117704 Change-Id: I7e20b03daa23b59211235183cf48d933e32845e4
2013-06-27Open an API in ExternalDictionaryGetterForDebugSatoshi Kataoka1-4/+24
and extend it Change-Id: Id2ba8dd8928a6327d3b31eb35f7cc314e2d31050
2013-06-27Use NOT_A_DICT_POS instead of 0 to express not valid ditctionary position.Keisuke Kuroynagi3-16/+13
Bug: 6669677 Change-Id: I4bf2284f8221a0a2ae4534b4a06b0e59c420a5f9