Commit graph

15089 commits

Author SHA1 Message Date
Keisuke Kuroynagi
2e22356da4 am 0933353c: Merge "Read version 3 dictionary header."
* commit '0933353c0c8823ec5ca1dcc5cd68014b87a6e045':
  Read version 3 dictionary header.
2013-07-04 07:23:32 -07:00
Keisuke Kuroynagi
0933353c0c Merge "Read version 3 dictionary header." 2013-07-04 14:19:35 +00:00
Keisuke Kuroynagi
06e8860e3d am db296305: Merge "DictionaryWriter to abstract binary dictionary writing."
* commit 'db296305d61f9d7c8f9121eb0e663d3d0a2f6ecc':
  DictionaryWriter to abstract binary dictionary writing.
2013-07-04 07:17:13 -07:00
Keisuke Kuroynagi
db296305d6 Merge "DictionaryWriter to abstract binary dictionary writing." 2013-07-04 14:15:24 +00:00
Keisuke Kuroynagi
65db026265 Fix: release lock in UserHistoryDictionary.
Change-Id: I050c252910c6b5b0a79cd2d52c525679f2d6091d
2013-07-04 23:12:49 +09:00
Jean Chalard
4a1c26aba7 Change how the length of the random words are chosen.
This is much more robust and much better for testing.

Change-Id: I43f900f9debc1d1ae4c3f3dd07dbe0ac85d31f52
2013-07-04 22:22:34 +09:00
Jean Chalard
cea80fd955 Have random words stick to a restricted (random) charset
Change-Id: Ib4045ebc9659f1b60183f2356e60e449d62c5be9
2013-07-04 22:21:27 +09:00
Keisuke Kuroynagi
f8d2796724 Add methods for dynamic updating binary dictionary.
Bug: 6669677
Change-Id: I7e681ceec2af712214a647630350cb20be6b0354
2013-07-04 21:17:49 +09:00
Keisuke Kuroynagi
edd1992ed3 DictionaryWriter to abstract binary dictionary writing.
UserHistoryDictionary should become to use ExpandableBinaryDictionary.

Bug: 6669677

Change-Id: I6831c7dd2d84207d1a8f51ba15d52e0a72205d0c
2013-07-04 21:06:04 +09:00
Keisuke Kuroynagi
7f601359b4 am cac66f29: Merge "Return NOT_A_PROBABILITY in getProbability for inalid dictionary."
* commit 'cac66f29ebd8df26b25c21b0c228dfe63ea109ad':
  Return NOT_A_PROBABILITY in getProbability for inalid dictionary.
2013-07-04 03:01:04 -07:00
Keisuke Kuroynagi
cac66f29eb Merge "Return NOT_A_PROBABILITY in getProbability for inalid dictionary." 2013-07-04 09:59:40 +00:00
Jean Chalard
8c80b1f14b am b242ce4e: Merge "Add a two-args constructor to BinaryDictIOTests"
* commit 'b242ce4e6b599f568bb3bae5749a9e5f65e6a773':
  Add a two-args constructor to BinaryDictIOTests
2013-07-04 02:16:23 -07:00
Jean Chalard
b242ce4e6b Merge "Add a two-args constructor to BinaryDictIOTests" 2013-07-04 09:14:03 +00:00
Jean Chalard
fe77485ff3 am eec3067f: Merge "Generalize constuctors & add tests"
* commit 'eec3067fd071f1682151c2995ac592c75ae7574f':
  Generalize constuctors & add tests
2013-07-04 01:54:34 -07:00
Jean Chalard
eec3067fd0 Merge "Generalize constuctors & add tests" 2013-07-04 08:53:19 +00:00
Keisuke Kuroynagi
4ee4486803 am 24025135: Merge "Allow force auto commit when the top is long multiword."
* commit '24025135562791d3f569e39509425b4c9624e310':
  Allow force auto commit when the top is long multiword.
2013-07-04 01:47:05 -07:00
Keisuke Kuroynagi
2402513556 Merge "Allow force auto commit when the top is long multiword." 2013-07-04 08:46:11 +00:00
Keisuke Kuroynagi
a829188f54 Allow force auto commit when the top is long multiword.
Bug: 9688196
Change-Id: I73ff2cd77b932bf7307b3541ea9da3fa4afa11b4
2013-07-04 17:39:01 +09:00
Jean Chalard
fe156213d7 Add a two-args constructor to BinaryDictIOTests
Change-Id: Ie26e22754bfa5d58135349164c57007c86bd97e8
2013-07-04 17:14:02 +09:00
Jean Chalard
b6cc4333a8 Generalize constuctors & add tests
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-04 17:13:58 +09:00
Tadashi G. Takaoka
2babbfb8b0 am fe202d67: Add Azerbaijani keyboard
* commit 'fe202d6738e57187925560bdac9051468aadd63e':
  Add Azerbaijani keyboard
2013-07-03 22:59:31 -07:00
Tadashi G. Takaoka
fe202d6738 Add Azerbaijani keyboard
Bug: 7963448
Change-Id: I39c192b342278e82e30ac6ef12c6d150c817ae70
2013-07-04 14:47:33 +09:00
Tadashi G. Takaoka
ed69cc3163 am 0e007eaf: Add Kazakh keyboard
* commit '0e007eaff6c2b0c583de17970f1c8ecddadd6fd5':
  Add Kazakh keyboard
2013-07-03 22:47:00 -07:00
Tadashi G. Takaoka
0e007eaff6 Add Kazakh keyboard
Bug: 9697273
Change-Id: Ic9943569ed60d601f093181bf135e45a25399121
2013-07-04 13:10:38 +09:00
Kurt Partridge
6d7c647470 Do not output string-encoded MotionEvent.
JsonUtils knows how to output MotionEvents into json; that mechanism
should be reused for SuddenJumpingTouchEventHandler.

Change-Id: Id4c36c05533a3a329bf43ba33d57c0830dc4d196
2013-07-03 10:13:59 -07:00
Keisuke Kuroynagi
9ed68c84c0 am 55de0bd9: Merge "Use ReentrantReadWriteLock in ExpandableBinaryDictionary."
* commit '55de0bd981d6dc3ad4465c654d60072604ed1f9d':
  Use ReentrantReadWriteLock in ExpandableBinaryDictionary.
2013-07-03 04:40:27 -07:00
Keisuke Kuroynagi
55de0bd981 Merge "Use ReentrantReadWriteLock in ExpandableBinaryDictionary." 2013-07-03 11:39:17 +00:00
Keisuke Kuroynagi
f939f60bd4 am 0f276de0: Merge "Disable shortcut output for multi-word suggestions."
* commit '0f276de04d3493a4777a29eebbc88253db427edb':
  Disable shortcut output for multi-word suggestions.
2013-07-03 04:35:11 -07:00
Keisuke Kuroynagi
0f276de04d Merge "Disable shortcut output for multi-word suggestions." 2013-07-03 11:34:15 +00:00
Keisuke Kuroynagi
72f69fd621 Return NOT_A_PROBABILITY in getProbability for inalid dictionary.
Bug: 9682742
Change-Id: Ifad4b9811bb5e1a94aed59eba7aedcdb6da5cf9c
2013-07-03 20:12:38 +09:00
Tadashi G. Takaoka
41f1399b2b am 88d0138d: Merge "Add missing letter THEH to Perisan keyboard layout"
* commit '88d0138d9818b49d37cf44a25b96440ea0fba507':
  Add missing letter THEH to Perisan keyboard layout
2013-07-03 04:08:45 -07:00
Tadashi G. Takaoka
b7c3c75e73 am d3ef3f0a: Merge "Add missing letter THEH to Arabic keyboard layout"
* commit 'd3ef3f0ac713c80d366061adac116c3cdb10ce98':
  Add missing letter THEH to Arabic keyboard layout
2013-07-03 04:08:44 -07:00
Tadashi G. Takaoka
88d0138d98 Merge "Add missing letter THEH to Perisan keyboard layout" 2013-07-03 11:07:18 +00:00
Tadashi G. Takaoka
d3ef3f0ac7 Merge "Add missing letter THEH to Arabic keyboard layout" 2013-07-03 11:07:08 +00:00
Tadashi G. Takaoka
5b3a54fada Add missing letter THEH to Perisan keyboard layout
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-03 19:50:14 +09:00
Tadashi G. Takaoka
614347bfd9 Add missing letter THEH to Arabic keyboard layout
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-03 19:49:16 +09:00
Keisuke Kuroynagi
0b1c08bf5a Use ReentrantReadWriteLock in ExpandableBinaryDictionary.
Bug: 6669677

Change-Id: I2acde0517d5ed5cbd7b7149709e35fc36651335d
2013-07-03 19:46:08 +09:00
Tadashi G. Takaoka
a444698ce9 am 28852fd6: Followup com.android.inputmethod.latin.utils change
* commit '28852fd6588e627c5f8df4ab79272524c314695b':
  Followup com.android.inputmethod.latin.utils change
2013-07-03 03:32:08 -07:00
Tadashi G. Takaoka
28852fd658 Followup com.android.inputmethod.latin.utils change
This is a folowup of I1c5b27c8ed.

Change-Id: I12c422a26e599923cadf21c3ab24e4b901cf94cc
2013-07-03 19:05:32 +09:00
Keisuke Kuroynagi
9a4f7a3761 Disable shortcut output for multi-word suggestions.
Bug: 9682742
Change-Id: I9e0a5acd9053d141e018c4653e4baf0f77aacb45
2013-07-03 17:22:36 +09:00
Keisuke Kuroynagi
5ae8722bd5 Read version 3 dictionary header.
The header structure of version 3 dictionary is same as version 2.

Bug: 6669677
Change-Id: I26c8723333938fbf102de1a40f11d97444da9075
2013-07-03 17:10:48 +09:00
Tadashi G. Takaoka
9caf1791f2 am d365d82d: Merge "Handling key repeat by emulating key press and code input"
* commit 'd365d82d518e75eff3e9fb67a5ce24c73f83eaed':
  Handling key repeat by emulating key press and code input
2013-07-02 12:33:13 -07:00
Tadashi G. Takaoka
d365d82d51 Merge "Handling key repeat by emulating key press and code input" 2013-07-02 10:58:06 +00:00
Tadashi G. Takaoka
f87e8f7ec1 Handling key repeat by emulating key press and code input
This change also eliminates a reference of
AudioAndHapticFeedbackManager from KeyboardSwitcher and MainKeyboard.

Bug: 6522943
Change-Id: Iac42ec8ff00c66deb76a660ffc07477923a58959
2013-07-02 19:50:34 +09:00
Keisuke Kuroynagi
7d4b812275 am 07718a5e: Merge "Fix: Reading invalid dictionary position."
* commit '07718a5e7d31fee7aa9bcddda38ce04fabf6c5ac':
  Fix: Reading invalid dictionary position.
2013-07-02 02:44:15 -07:00
Keisuke Kuroynagi
07718a5e7d Merge "Fix: Reading invalid dictionary position." 2013-07-02 09:42:53 +00:00
Keisuke Kuroynagi
f6aa9e9a1d Fix: Reading invalid dictionary position.
Bug: 6669677

Change-Id: I3f4078aaa8cf72f3b366e7851457e9c753c0102f
2013-07-02 18:39:56 +09:00
Keisuke Kuroynagi
1b1f6ddc3e am 21648562: Merge "Move children filtering methods to DicNodeChildrenFilter."
* commit '21648562050af77147c5ffd1b111de8906c66697':
  Move children filtering methods to DicNodeChildrenFilter.
2013-07-02 02:36:50 -07:00
Keisuke Kuroynagi
2164856205 Merge "Move children filtering methods to DicNodeChildrenFilter." 2013-07-02 09:35:06 +00:00
Jean Chalard
1c06791ed7 am b6f5d3e3: Fix offdevice compilation
* commit 'b6f5d3e39d1f3073c4e7d75e9d4309112879dc6e':
  Fix offdevice compilation
2013-07-01 23:58:31 -07:00