Commit graph

5672 commits

Author SHA1 Message Date
Tadashi G. Takaoka
736d740aa5 Merge "Get rid of Resource reference from KeyboardView, LatinKeyboardView and PointerTracker" 2012-01-26 00:17:56 -08:00
Jean Chalard
56c3c944db am a02e7032: Add a missing brace
* commit 'a02e703289d2704963f140c44d630dcc0a65e34a':
  Add a missing brace
2012-01-25 23:16:09 -08:00
satok
7409d151a1 Refactor words priority queue
Change-Id: I14b7ef39263ad2b1d5ec087bc80b7b8d7c30abe7
2012-01-26 16:13:25 +09:00
Tadashi G. Takaoka
160f01211d Get rid of Resource reference from KeyboardView, LatinKeyboardView and PointerTracker
This change introduces the following attributes.
 * KeyboardView
   - keyPreviewLingerTimeout
 * LatinKeboardView
   - keyHysteresisDistance
   - touchNoiseThresholdTime
   - touchNoiseThresholdDistance
   - slidingKeyInputEnable
   - keyRepeatStartTimeout
   - keyRepeatInterval
   - longPressKeyTimeout
   - longPressShiftKeyTimeout
   - longPressSpaceKeyTimeout
   - ignoreSpecialKeyTimeout
   - showMiniKeyboardAtTouchedPoint

Change-Id: I25159a87289b12447e20031add173523070e9b03
2012-01-26 16:10:20 +09:00
Jean Chalard
a02e703289 Add a missing brace
Change-Id: Ia51da6506d78a295b8b70a241208fb81602cf0ea
2012-01-26 16:08:53 +09:00
Jean Chalard
b4464e61e7 am 9184d8b2: Add a test for moving cursor then backspace
* commit '9184d8b2352e11a25026ea9eed7f404836a7d476':
  Add a test for moving cursor then backspace
2012-01-25 22:46:41 -08:00
Jean Chalard
d3d0d4196c am 41df8a98: Add a test case for backspace at start of line
* commit '41df8a98fd0b89de87c7531903262c75dc7e505b':
  Add a test case for backspace at start of line
2012-01-25 22:39:38 -08:00
Jean Chalard
9184d8b235 Add a test for moving cursor then backspace
This is a test for the case in
Bug: 5851148

Change-Id: I58ee459d85f463b445a28137bdc6c40bc3067ff5
2012-01-26 15:39:29 +09:00
Jean Chalard
41df8a98fd Add a test case for backspace at start of line
Tests the behavior from
Bug: 5784542

Change-Id: I78ec9d77c5dd1e3ea8eff530f9d7d284a1c094d4
2012-01-26 15:36:27 +09:00
Tadashi G. Takaoka
c400482d17 am bd51aaf9: Merge "Warn deprecated privateImeOptions, "nm" and "forceAscii""
* commit 'bd51aaf98f39a2de01143109714a69dc9c1a7b66':
  Warn deprecated privateImeOptions, "nm" and "forceAscii"
2012-01-25 22:22:18 -08:00
Tadashi G. Takaoka
bd51aaf98f Merge "Warn deprecated privateImeOptions, "nm" and "forceAscii"" 2012-01-25 22:20:35 -08:00
satok
8da7bc6791 am f8ce19c2: Merge "Cleanup unused code"
* commit 'f8ce19c29de6440e15a16d91a86e0e6d840d114c':
  Cleanup unused code
2012-01-25 22:14:17 -08:00
satok
f8ce19c29d Merge "Cleanup unused code" 2012-01-25 22:12:52 -08:00
Jean Chalard
27310ae012 am 20ec43a2: Merge "Add tests for double space behavior"
* commit '20ec43a2652263532e41035360988567164ac311':
  Add tests for double space behavior
2012-01-25 22:11:21 -08:00
Jean Chalard
20ec43a265 Merge "Add tests for double space behavior" 2012-01-25 22:09:40 -08:00
satok
1c03306994 Cleanup unused code
Change-Id: I6c840f9ed170919e48d1c576cd0a48777ad44030
2012-01-26 14:56:52 +09:00
Jean Chalard
5f859f20a0 am 051ac1ef: Merge "Add a guard against OOB."
* commit '051ac1ef143113df7f8b7b2a693b8c5b8d8c38ca':
  Add a guard against OOB.
2012-01-25 21:24:23 -08:00
Jean Chalard
051ac1ef14 Merge "Add a guard against OOB." 2012-01-25 21:22:18 -08:00
Jean Chalard
8be16f78b1 Add a guard against OOB.
...and avoid crashing in one case where the application may
change the text while we are typing.

Bug: 5685922
Change-Id: I4a22c63168986f43ac84f512aaa4267023d536e3
2012-01-26 14:17:48 +09:00
Jean Chalard
e8ff9e107b am 5a38ff30: Merge "Convert an internal enum into an int of same underlying value."
* commit '5a38ff305f6ee95cecf2d337b7efda1eacff8140':
  Convert an internal enum into an int of same underlying value.
2012-01-25 21:15:19 -08:00
Jean Chalard
5a38ff305f Merge "Convert an internal enum into an int of same underlying value." 2012-01-25 21:13:56 -08:00
Tadashi G. Takaoka
4f5c3a2898 Warn deprecated privateImeOptions, "nm" and "forceAscii"
Public API EditorInfo.IME_FLAG_FORCE_ASCII has been supported by
I6665b483.

Change-Id: I0ffdee15d8177d126cd8fe86a6bc4ab21be58c36
2012-01-26 13:37:35 +09:00
Jean Chalard
159789c962 am fda847a8: Small cleanup
* commit 'fda847a870829f1491cbd5325f9c985213081149':
  Small cleanup
2012-01-25 20:08:44 -08:00
Jean Chalard
6e082cb30d Convert an internal enum into an int of same underlying value.
Goes together with Id4f4e066

Bug: 5922118
Change-Id: I1e39dd01c67e9284d9d7fe008d868847e69986d7
2012-01-26 13:07:51 +09:00
Jean Chalard
fda847a870 Small cleanup
All calls to this method are done with the same parameter,
and it's really hard to understand if we call upon this
member inside.

Change-Id: I787664bb59053ab0fe666ed812fb12b2b9090918
2012-01-26 11:40:16 +09:00
Jean Chalard
60e7718462 Add tests for double space behavior
Bug: 5875776
Change-Id: Icc28b6c5c0132a3afc8d603841c9e321f720b7c9
2012-01-26 10:10:38 +09:00
satok
12e3a077e8 am 61b31a64: Merge "Do other error correction for the second word of two word correction"
* commit '61b31a646ea5c65f55891354dfd0485cbbcbc997':
  Do other error correction for the second word of two word correction
2012-01-25 05:50:44 -08:00
satok
61b31a646e Merge "Do other error correction for the second word of two word correction" 2012-01-25 05:48:15 -08:00
satok
8330b488e9 Do other error correction for the second word of two word correction
result: I4e0b68a12190933f9

Change-Id: I98afce6fe4d5bde97392146d204370ba31a72566
2012-01-25 22:30:37 +09:00
Tadashi G. Takaoka
1b709fe947 am 09f8b126: Add Key preserveCase enum to keyLabelOptions attribute
* commit '09f8b126e532ca2ac6bbe00c0d78bf03e44b78a2':
  Add Key preserveCase enum to keyLabelOptions attribute
2012-01-25 03:29:19 -08:00
Tadashi G. Takaoka
bf57d2c802 am bcf2b793: Prepare to get rid of Drawable reference from Key
* commit 'bcf2b79365d7b655e973809c775772479dd8dff5':
  Prepare to get rid of Drawable reference from Key
2012-01-25 03:29:15 -08:00
Tadashi G. Takaoka
09f8b126e5 Add Key preserveCase enum to keyLabelOptions attribute
To support auto generate key depending keyboard element id, the
KeysCache class is introduced to hold whole keys and reuse.

Change-Id: Icb81b5f1c1b3aaa31968dcdb93aa0a856e737f78
2012-01-25 20:16:21 +09:00
Tadashi G. Takaoka
bcf2b79365 Prepare to get rid of Drawable reference from Key
Change-Id: If435f95b2863e0af8d8916c643e6b01feabd3ea5
2012-01-25 19:41:15 +09:00
Tadashi G. Takaoka
210f323089 am 2419a31c: Merge "Add element predicator to <switch><case> condition of Keyboard"
* commit '2419a31c98927da807710e8ea713aa8a98b8c3d7':
  Add element predicator to <switch><case> condition of Keyboard
2012-01-25 02:38:44 -08:00
Tadashi G. Takaoka
3d2663af06 am 9650e856: Merge "Draw language name on spacebar on the fly"
* commit '9650e856626fc820c59518a51810089681be8a43':
  Draw language name on spacebar on the fly
2012-01-25 02:38:43 -08:00
Tadashi G. Takaoka
2419a31c98 Merge "Add element predicator to <switch><case> condition of Keyboard" 2012-01-25 02:37:27 -08:00
Tadashi G. Takaoka
9650e85662 Merge "Draw language name on spacebar on the fly" 2012-01-25 02:37:22 -08:00
Jean Chalard
5fa9948561 am d9702a37: Merge "Add a test for auto-correction."
* commit 'd9702a375ab35af58f517b75683595b17a224f35':
  Add a test for auto-correction.
2012-01-25 02:35:47 -08:00
Jean Chalard
d9702a375a Merge "Add a test for auto-correction." 2012-01-25 02:33:39 -08:00
Jean Chalard
0bfe359ee4 Add a test for auto-correction.
Fix two related subtle bugs:
- Stop singling out fat-finger-only corrections for rejection
  when touch coordinates are not available.
- Remove a racy check that would happen only in debug mode

Change-Id: Ic904f9b27c091ca6b369052c4e65a630bff81257
2012-01-25 19:29:40 +09:00
Tadashi G. Takaoka
83306b914f Add element predicator to <switch><case> condition of Keyboard
Change-Id: I8f9eb8eb28707d23e421e88f979022d844a3b3ee
2012-01-25 19:09:18 +09:00
Tadashi G. Takaoka
bd93eddb52 Draw language name on spacebar on the fly
Change-Id: If54251acbd40d0dda37df1b368ed76dcdf3c8ac0
2012-01-25 19:05:58 +09:00
Tadashi G. Takaoka
d839c9c2ca am f9521c6f: Change scope of some methods in KeyboardView
* commit 'f9521c6f378e3f2aa13d9e382ae13708e3ae6317':
  Change scope of some methods in KeyboardView
2012-01-25 02:00:09 -08:00
Tadashi G. Takaoka
f9521c6f37 Change scope of some methods in KeyboardView
Change-Id: I6569b413b20a2e683c6c636aafd755f51868dd28
2012-01-25 18:50:27 +09:00
Tadashi G. Takaoka
5d7cfc2afb am f9c6715b: Merge "Use PointerTracker.getPointerTracker() class method"
* commit 'f9c6715b1781f31f0dc2589f9399de5009a556f2':
  Use PointerTracker.getPointerTracker() class method
2012-01-25 00:53:32 -08:00
Tadashi G. Takaoka
f9c6715b17 Merge "Use PointerTracker.getPointerTracker() class method" 2012-01-25 00:51:22 -08:00
Tadashi G. Takaoka
71aba3d2fb am 38d6a188: Use String instaed of CharSequence in Key class
* commit '38d6a18821794dc733760b55fd2a896626f784e2':
  Use String instaed of CharSequence in Key class
2012-01-25 00:13:40 -08:00
Tadashi G. Takaoka
38d6a18821 Use String instaed of CharSequence in Key class
Change-Id: Ia76a41daede402ed2a509e110ae97d6bb660c760
2012-01-25 17:04:00 +09:00
Tadashi G. Takaoka
3095f87317 am 117c124c: Add autoGenerateFromAlphabet enum to KeyboardSet.Element.elementKeyboard
* commit '117c124c13f0e6af737b1858bd5c4d9e6e7eb353':
  Add autoGenerateFromAlphabet enum to KeyboardSet.Element.elementKeyboard
2012-01-24 20:26:43 -08:00
Tadashi G. Takaoka
117c124c13 Add autoGenerateFromAlphabet enum to KeyboardSet.Element.elementKeyboard
This is the first step to support separate Keyboard for elementName.
This change is the second attempt of Icef66564.

Change-Id: I78ea6cb9ea3d965ff89e0ff5d896a6b11ba5c670
2012-01-25 13:19:53 +09:00