Commit Graph

4539 Commits (ebfae7f5e0a9003870a3e7dd55ba16fd6ce37df9)

Author SHA1 Message Date
Jean Chalard c599f2e9d6 Actually add shortcut-only entries.
Change-Id: I84bec8fb560cec2ad9cc857397a3f77a96b1d12d
2012-01-16 19:04:37 +09:00
Jean Chalard 82ddd16889 Stop avoiding adding what the user typed to candidates
There does not seem to be any reason other than a historical
one to avoid doing this, but it takes processing power and
makes things more complicated.

This has a very limited impact on regression tests:
5 -> 3 [He,           the]
5 -> 3 [An,           an]
5 -> 3 [Where,        where]
5 -> 3 [This,         this]
7 -> 1 [wAtch,        watch]
6 -> 4 [oveNs,        oceans]
5 -> 1 [Ahere,        Where]
7 -> 1 [Hast,         Hast]
7 -> 5 [bjp,          bill]
5 -> 1 [What,         What]
5 -> 3 [Sound,        So und]
7 -> 3 [causalities,  casualties]
7 -> 3 [discontentment, discontent]
7 -> 3 [irregardless, regardless]

5 -> 1 : 2
5 -> 3 : 5
6 -> 4 : 1
7 -> 1 : 2
7 -> 3 : 3
7 -> 5 : 1

+1       4
-1       0
+2       0
-2       0
+3       8
-3       0
+4       1
-4       0
+5       1
-5       7
+6       0
-6       1
+7       0
-7       6

Change-Id: I6407cf922f27bbd3992df11d63690e71fc61111b
2012-01-16 18:58:10 +09:00
Tadashi G. Takaoka 7bc61ca183 Fix double tap shift key to turn off capslock mode
Bug: 5873562
Change-Id: If1f5ae1684905c1418ae43e55df38509444d29e2
2012-01-16 18:54:25 +09:00
Jean Chalard d64b8c97fe Merge "Read the group count correctly from the binary format" 2012-01-16 01:12:00 -08:00
Jean Chalard 9b8b2c757d Read the group count correctly from the binary format
...in makedict, for reverse makedict.

Change-Id: I74774b50998eb605e8091d95cebdda6ad7f5fce3
2012-01-16 18:08:46 +09:00
Tadashi G. Takaoka 1f79c87675 Merge "Add more KeyboardState unit test cases" 2012-01-16 00:59:48 -08:00
Tadashi G. Takaoka 6d5c9c9edc Add more KeyboardState unit test cases
Bug: 5708602
Change-Id: Ib9d2b7a2878f78adecc857fd569fba8965cf4a03
2012-01-16 17:19:54 +09:00
satok 67e13976b7 Merge "Store suggestions for each input length for missing space algorithm etc." 2012-01-16 00:18:37 -08:00
Jean Chalard 9c283804ef Merge "Write multi-byte chargroup count to the binary dict" 2012-01-16 00:18:23 -08:00
Tadashi G. Takaoka d3f1caec0e Merge "Add auto caps function simulation to MockKeyboardSwitcher" 2012-01-16 00:13:35 -08:00
satok 6ad15fcd15 Store suggestions for each input length for missing space algorithm etc.
Change-Id: Ief8f6ddd29e043744863e5b9be3a51a70987291c
2012-01-16 17:11:17 +09:00
Tadashi G. Takaoka 8ece45bb32 Add auto caps function simulation to MockKeyboardSwitcher
Change-Id: I049c224994a37121de031b9fd61edb52eb912e20
2012-01-16 16:30:50 +09:00
Jean Chalard 2c0903b1d1 Write multi-byte chargroup count to the binary dict
Change-Id: I093739933652c1e8c70c06f92077d1e3dbd7d7da
2012-01-16 16:29:37 +09:00
Jean Chalard fe9dca7ec3 Merge "Read multi-byte char group counts" 2012-01-15 23:26:06 -08:00
Jean Chalard 4c0eca6e41 Read multi-byte char group counts
Change-Id: Idc62382f1c814e9bd1466c9f7dda1fcc8ba4137d
2012-01-16 15:59:33 +09:00
Tadashi G. Takaoka 610a7d904e Merge "Make MockKeyboardSwitcher top level class" 2012-01-15 22:58:39 -08:00
Tadashi G. Takaoka 549571cf5c Make MockKeyboardSwitcher top level class
Change-Id: I52c1bc237c20b8bd49fca2431b83843a6e2af10b
2012-01-16 15:49:24 +09:00
Jean Chalard 6d4198107b Remove a bunch of obsolete methods.
Change-Id: I218007bf411489d1d648fd9b8b408c5d27c41811
2012-01-16 15:19:47 +09:00
Tadashi G. Takaoka d82fd6c3cc Merge "Don't cache resource value that depends on orientation" 2012-01-15 19:27:58 -08:00
Tadashi G. Takaoka 9751a626ec Don't cache resource value that depends on orientation
Bug: 5794655
Change-Id: Ib324366c772e20bb54aba63c2f4540dc0f9de515
2012-01-16 12:26:34 +09:00
Jean Chalard eddfbb68dc Add a helper method
Change-Id: I7a898940d5f672bbee0da0c02af7a08297051ec3
2012-01-16 12:07:03 +09:00
Tadashi G. Takaoka c88026e1df Update shift state when alphabet keyboard has been set
Bug: 5857492
Change-Id: I5ef78af21a76e8cf645e223d1ffa6212690bb1eb
2012-01-16 11:08:29 +09:00
Tadashi G. Takaoka 327c6828a5 Merge "Cleanup KeyboardStateTests a bit" 2012-01-15 17:15:34 -08:00
Tadashi G. Takaoka d3bf4b172d Cleanup KeyboardStateTests a bit
Move test target KeyboardState into MockKeyboardSwitcher.

Change-Id: I0998a5306a59e777360df9d1321b545313b939f9
2012-01-16 10:04:10 +09:00
Jean Chalard a3e52e94fb Merge "Fix a native crash with shortcuts" 2012-01-13 04:02:47 -08:00
Jean Chalard 512c669fee Fix a native crash with shortcuts
Creation of the TerminalAttributes object failed to take into
account that there may be children on this node.

Change-Id: I8224a1a51532d1a40a8555f46425e3744388326b
2012-01-13 20:50:43 +09:00
Tadashi G. Takaoka 4cabb04971 Use KeyboardSet for unit test
Change-Id: I6a08e04628bac0222140e5b1b108f6bcb39859a2
2012-01-13 19:14:42 +09:00
Tadashi G. Takaoka ca132ce8e2 Merge "Remove reference of SubtypeSwitcher and SettingsValues from KeyboardSet" 2012-01-13 01:39:50 -08:00
Tadashi G. Takaoka 211680e375 Merge "Fix SuggestTests" 2012-01-13 01:39:43 -08:00
Tadashi G. Takaoka 4087ba69fa Remove reference of SubtypeSwitcher and SettingsValues from KeyboardSet
Change-Id: I6c1150eea5f0a931d01578b0157f06e0aff0cc65
2012-01-13 18:05:28 +09:00
satok 9fb6f47a6a New LOG lib
Change-Id: I977e7e10fa58c0a64ca0c3c7b5cb2272446e3efe
2012-01-13 18:04:15 +09:00
satok b960477952 Use placement new to construct the queue
Change-Id: I455f9954165bd4524f2883db7ea24a6fed3015f9
2012-01-13 17:32:55 +09:00
Tadashi G. Takaoka 9c735b8038 Fix SuggestTests
We need revised scoring test because dictionary look up algorithm has
been changed significantly since this SuggestTests was made.

Change-Id: I69d527a6bfa24ed0dc189fddad1afab0566c6eb8
2012-01-13 15:25:28 +09:00
Tadashi G. Takaoka f67f001e40 Merge "Cleanup UtilsTests" 2012-01-12 22:17:33 -08:00
Tadashi G. Takaoka 06eb042616 Merge "Fix UserBigramSuggestTests" 2012-01-12 22:17:28 -08:00
Tadashi G. Takaoka 76dede6b3b Merge "Fix SubtypeLocaleTests" 2012-01-12 22:17:20 -08:00
Tadashi G. Takaoka 1d161a9038 Cleanup UtilsTests
Change-Id: I5631d010194423fd3d9c216db760ffa726131977
2012-01-13 14:49:14 +09:00
Tadashi G. Takaoka fb9b0f493c Fix UserBigramSuggestTests
Change-Id: I3363fba44ee70876fd7ba8e27c6ca3c83753b53a
2012-01-13 14:46:45 +09:00
Tadashi G. Takaoka 4015a64a26 Fix SubtypeLocaleTests
Change-Id: Id85814aa3bcd9cacbe446b2dfda3ca2ab9146c13
2012-01-13 14:35:43 +09:00
satok 4da8e8e4d3 Merge "Fix a bug in the logic to show 3 dots of the ime switcher" 2012-01-12 19:41:12 -08:00
satok 83a018419a Fix a bug in the logic to show 3 dots of the ime switcher
Bug: 5806103
Change-Id: I67b3f0bb25d5fb9cfb902c03f41ae3e582107187
2012-01-13 11:50:31 +09:00
The Android Open Source Project 16d5e196dc am 201a8ba8: Reconcile with ics-mr1-release
* commit '201a8ba8531191b133ef4549b9cf0a61818a02d2':
2012-01-12 09:00:24 -08:00
The Android Open Source Project 201a8ba853 Reconcile with ics-mr1-release
Change-Id: I028e92611bbe6a091de34d99aa58e04b5bcf4892
2012-01-12 08:56:54 -08:00
satok 21814c56f0 Merge "Move auto correction thresthold to the native code" 2012-01-12 02:58:35 -08:00
satok be0cf72253 Move auto correction thresthold to the native code
bug: 5858137

Change-Id: Ic4b6270c6e51ef4ed25a6a1d8ddd7fdfa70fd78d
2012-01-12 19:56:15 +09:00
Jean Chalard ab34a4a7f5 Merge "Fix a bug where last candidate would not be reset" 2012-01-11 21:47:35 -08:00
Jean Chalard cda8a42cbe Merge "Add a sanity check" 2012-01-11 21:47:26 -08:00
satok 53f56ddef9 Merge "Change the application name of aosp latin ime" 2012-01-11 21:31:46 -08:00
satok c1da6566dd Change the application name of aosp latin ime
Change-Id: I96281709736bc20d70e63af170bfb48b5df3f18d
2012-01-12 14:27:22 +09:00
Jean Chalard a8c8ab1cb4 Remove an excessive parens
Change-Id: If8aa4253ab0f664e628ed7f4d7a3adc02a898cc7
2012-01-12 14:07:56 +09:00