Commit Graph

4315 Commits (2d651760c4ab56ad5bbdf214c69ae3b9b8e11c01)

Author SHA1 Message Date
satok 2d651760c4 am 4d355989: Add a functionality to limit the max correction errors
* commit '4d355989bd972ba792ba546a55c67e5b6fc2527a':
  Add a functionality to limit the max correction errors
2011-12-15 10:10:59 -08:00
satok c296887497 am d03317c4: Prune traversing a bit agressively and add a flag not to do auto completion
* commit 'd03317c4be21ee65c19d00c7b83a7042042b8627':
  Prune traversing a bit agressively and add a flag not to do auto completion
2011-12-15 10:10:56 -08:00
Tadashi G. Takaoka 0b910d79d2 am 5a39e527: Ignore settings key if it isn\'t adjecent to the space key on phone
* commit '5a39e527dde07cc4360234553c9bb75694ece1ef':
  Ignore settings key if it isn't adjecent to the space key on phone
2011-12-15 10:08:33 -08:00
Tadashi G. Takaoka 5661e4e4a3 am b8c2c6e2: Merge "Add XmlParseUtils class"
* commit 'b8c2c6e2ecdac2c170e17a100a007aea04aafa1a':
  Add XmlParseUtils class
2011-12-15 10:08:32 -08:00
Tadashi G. Takaoka 5e58cd999c am d549d433: Merge "Remove long press settings key function"
* commit 'd549d4334f05737128061a595a0a3304b1af00b6':
  Remove long press settings key function
2011-12-15 10:08:32 -08:00
satok 6140e326d7 am c115aed9: Merge "Unbundle members in unigram_dictionary"
* commit 'c115aed98f9d1a3cc09b3c04e659bfe0f28d91d6':
  Unbundle members in unigram_dictionary
2011-12-15 10:08:31 -08:00
Tadashi G. Takaoka 4a7adcbace am 6652e458: Merge "Move Keyboard.themeName to KeyboardSwitcher and make it private"
* commit '6652e4589981a0f06692b49e86d1a6f0784a434f':
  Move Keyboard.themeName to KeyboardSwitcher and make it private
2011-12-15 10:08:30 -08:00
Tadashi G. Takaoka c479d88196 am 90c12077: Merge "Remove EditorInfo from KeyboardId"
* commit '90c12077b2c57afe34b5d9d02fd6a9dcdd9b0cfc':
  Remove EditorInfo from KeyboardId
2011-12-15 10:08:30 -08:00
Tadashi G. Takaoka be6d5a041c am a042150a: Merge "Just ignore settings/shortcut key while typing on tablet"
* commit 'a042150a697715ca0b65fcc1a03fcc3491c488a2':
  Just ignore settings/shortcut key while typing on tablet
2011-12-15 10:08:29 -08:00
Jean Chalard e3297a79ff am 9750165c: Merge "Cleanup"
* commit '9750165c9a134a8981747f1ca1d279f0086829e5':
  Cleanup
2011-12-15 10:08:28 -08:00
Tadashi G. Takaoka 7bc67e14a1 am 014b755f: Merge "Cleanup KeyboardId\'s hasCode method"
* commit '014b755f8a22c9b5cfc70fa3c80355543445feed':
  Cleanup KeyboardId's hasCode method
2011-12-15 10:08:27 -08:00
Jean Chalard d752540d41 am 64361bd6: Merge "Move some code inside a function to simplify flow"
* commit '64361bd66d2d764bd5fb6486e9b9de5a3f2fb240':
  Move some code inside a function to simplify flow
2011-12-15 10:08:27 -08:00
Jean Chalard b60ab9752c am 676917de: Merge "Fail faster in case of a bug"
* commit '676917dea2595d7bbc1f24a44034a4254a1884fa':
  Fail faster in case of a bug
2011-12-15 10:08:26 -08:00
Tadashi G. Takaoka 6168c33aac am 2c4b21d7: Merge "Cleanup settings key related stuff"
* commit '2c4b21d7ca659e958d77eff660abab7104e03cca':
  Cleanup settings key related stuff
2011-12-15 10:08:25 -08:00
Jean Chalard ed6522b30b am b5880034: Refactoring.
* commit 'b5880034268111a094c9e684cec9cca784386140':
  Refactoring.
2011-12-15 10:08:25 -08:00
Tadashi G. Takaoka b9f71631da am e35e13fc: Merge "Record onStartInputView"
* commit 'e35e13fc7dc046be7f605cbfc706678f57e40491':
  Record onStartInputView
2011-12-15 10:08:23 -08:00
Tadashi G. Takaoka b0980f0d90 am 689b9011: Merge "Utilize KeyboardSet XML definitions"
* commit '689b90115633146bcdea81bf89cdfe2f9a88c0a7':
  Utilize KeyboardSet XML definitions
2011-12-15 10:08:22 -08:00
Jean Chalard d86696a110 am dbdb385b: Merge "Fix a long-standing race condition."
* commit 'dbdb385bb06ccd235b3b6445ceabf07ca893454b':
  Fix a long-standing race condition.
2011-12-15 10:08:21 -08:00
Jean Chalard 9b5e67a281 am 4fc97c2c: Add a note of documentation to the sample word list
* commit '4fc97c2c01646d877505295713abdf16d775d3d4':
  Add a note of documentation to the sample word list
2011-12-15 10:08:21 -08:00
satok 4d355989bd Add a functionality to limit the max correction errors
Before
==== test finished, terminate logcat =====
(0)  121.97 (0.28%)
(1)  42032.07 (95.46%)
(2)  11.03 (0.03%)
(3)  12.19 (0.03%)
(4)  10.02 (0.02%)
(5)  1417.41 (3.22%)
(6)  258.43 (0.59%)
(20) 50.20 (0.11%)
Total 44033.07 (sum of others 43913.32)

After
==== test finished, terminate logcat =====
(0)  110.81 (0.29%)
(1)  36416.11 (94.47%)
(2)  10.06 (0.03%)
(3)  9.45 (0.02%)
(4)  9.83 (0.03%)
(5)  1535.52 (3.98%)
(6)  290.25 (0.75%)
(20) 40.57 (0.11%)
Total 38546.83 (sum of others 38422.60)

Change-Id: Iffd24ce0b2dc422c8c6085d5be5f6bfdaf59ca7d
2011-12-15 16:00:08 +09:00
satok d03317c4be Prune traversing a bit agressively and add a flag not to do auto completion
+1       1
-1       2
+2       0
-2       0
+3       0
-3       0
+4       6
-4       1
+5       4
-5       3
+6       3
-6      10
+7       7
-7       5

Before:
Total 42936.28 (sum of others 42814.63)

After:
Total 40860.56 (sum of others 40733.92)

Change-Id: I6a3d52f31ec181970083358280c3ebaca0a1f63e
2011-12-15 12:09:25 +09:00
Tadashi G. Takaoka 5a39e527dd Ignore settings key if it isn't adjecent to the space key on phone
Bug: 5759096
Change-Id: I1e1250d917e726e1931de3247ddc782b005ab5c1
2011-12-14 20:17:36 +09:00
Tadashi G. Takaoka b8c2c6e2ec Merge "Add XmlParseUtils class" 2011-12-14 03:02:17 -08:00
Tadashi G. Takaoka d549d4334f Merge "Remove long press settings key function" 2011-12-14 03:02:09 -08:00
satok c115aed98f Merge "Unbundle members in unigram_dictionary" 2011-12-14 02:54:41 -08:00
Tadashi G. Takaoka 17dc10724b Remove long press settings key function
Bug: 5759092
Change-Id: I328e2043075ce5d0d0285febc4a9b7356702c250
2011-12-14 19:47:17 +09:00
Tadashi G. Takaoka 4665463ccd Add XmlParseUtils class
Change-Id: Ie288272bc75832db7d743262c4c4fbe73b6dca04
2011-12-14 19:46:03 +09:00
satok 1147c7bac9 Unbundle members in unigram_dictionary
Change-Id: Id737d943d20e3de3db568162caf40d3e956c7fae
2011-12-14 19:45:51 +09:00
Tadashi G. Takaoka 6652e45899 Merge "Move Keyboard.themeName to KeyboardSwitcher and make it private" 2011-12-14 02:43:06 -08:00
Tadashi G. Takaoka 90c12077b2 Merge "Remove EditorInfo from KeyboardId" 2011-12-14 02:42:58 -08:00
Tadashi G. Takaoka 7a91deb685 Move Keyboard.themeName to KeyboardSwitcher and make it private
Change-Id: I101b6927d43e86b3c636c1a527e181df8af9c73e
2011-12-14 19:01:20 +09:00
Tadashi G. Takaoka a042150a69 Merge "Just ignore settings/shortcut key while typing on tablet" 2011-12-14 01:59:46 -08:00
Tadashi G. Takaoka 2d603fff64 Remove EditorInfo from KeyboardId
Change-Id: I70919ff30622afa1d8c29ca45589fa617f2c1f0e
2011-12-14 18:58:55 +09:00
Jean Chalard 9750165c9a Merge "Cleanup" 2011-12-14 01:50:25 -08:00
Tadashi G. Takaoka 014b755f8a Merge "Cleanup KeyboardId's hasCode method" 2011-12-14 01:48:46 -08:00
Jean Chalard f3ca6a59a7 Cleanup
Change-Id: I724df0be7ac07ffb9f1f4974175aed5a2606221b
2011-12-14 18:42:47 +09:00
Tadashi G. Takaoka 601e411c13 Cleanup KeyboardId's hasCode method
Change-Id: I5fd8f6ac0f42152fb0e2aaaedc6092f6d82fe677
2011-12-14 18:42:20 +09:00
Jean Chalard 64361bd66d Merge "Move some code inside a function to simplify flow" 2011-12-14 01:42:17 -08:00
Jean Chalard 676917dea2 Merge "Fail faster in case of a bug" 2011-12-14 01:42:05 -08:00
Tadashi G. Takaoka 2c4b21d7ca Merge "Cleanup settings key related stuff" 2011-12-14 01:36:34 -08:00
Jean Chalard 1c6cf26c37 Move some code inside a function to simplify flow
Also rename the function to reflect better the behavior.
An upcoming change will clean up the remnants

Change-Id: I19bdf0d9e95f62ee749e1f64fe17132c4a5ef0bc
2011-12-14 17:56:57 +09:00
Jean Chalard 46798d8f1f Fail faster in case of a bug
Change-Id: Ibea64133f200dce80034c641d4798b62843a2512
2011-12-14 17:54:18 +09:00
Tadashi G. Takaoka 623d0155b6 Just ignore settings/shortcut key while typing on tablet
Bug: 5759096
Change-Id: Ie1f1800d0f32ac0938715c79974e0f382c9c3d27
2011-12-14 17:14:44 +09:00
Jean Chalard b588003426 Refactoring.
Small simplification of the code.

Change-Id: I1f67ae529bbb2c9316bf5e083d367c57040ea22c
2011-12-14 16:59:25 +09:00
Tadashi G. Takaoka 8b1b8aae9c Cleanup settings key related stuff
Change-Id: Ie0d1204e94fcdf9d578974256bf2ae3e87797f13
2011-12-14 16:34:35 +09:00
Tadashi G. Takaoka e35e13fc7d Merge "Record onStartInputView" 2011-12-13 23:31:43 -08:00
Tadashi G. Takaoka 689b901156 Merge "Utilize KeyboardSet XML definitions" 2011-12-13 23:31:00 -08:00
Jean Chalard dbdb385bb0 Merge "Fix a long-standing race condition." 2011-12-13 23:29:47 -08:00
Tadashi G. Takaoka f86109ca56 Utilize KeyboardSet XML definitions
This change introduces KeyboardSet and SubKeyboard XML definitions to
represent a set of keyboard layouts.

Bug: 5002108
Bug: 5679585
Change-Id: Ib6c8d5936187381bb6725c9fe574e93871c01a86
2011-12-14 16:28:31 +09:00
Jean Chalard 514beb0992 Fix a long-standing race condition.
Upon autocorrection, there is visual feedback in the text
view that quickly flashes the background of the text that
just changed. This fixes a race condition that happens
upon autocorrection when typing fast, and that results in
flashing one character too far left (typically, the flashing
area includes the whitespace before the corrected word and
not the last character of the corrected word).
This happens because the call to commitCorrection may
happen before or after the IPC sent by sendKeyChar, but the
arguments are fit only for the case where it arrives first.

Change-Id: I9b5442a665aad5a9bc66cd49228075b9056b37fa
2011-12-14 16:24:18 +09:00