Commit Graph

577 Commits (d6cac41dc7f9992c9c7ceaf9caec61d714be0742)

Author SHA1 Message Date
Tadashi G. Takaoka ca65332145 Merge "Remove Row object from MiniKeyboardBuilder" 2011-01-05 21:20:18 -08:00
Ken Wakasa 458249e703 Consolidate main dictionary files.
This change is a preparation for upcoming optimizations on dictionary file loading.
* We can consolidate dictionary files because we are no longer relying on Asset Manager.
* Stopping compressing dictionary files as planning to use mmap() on the region in the apk file.
* Probably we won't rely on Asset Manager.  Instead we'll probably use offset and size obtained from AssetFileDescriptor.

Change-Id: Id57dce512fd3d2397a58628f8264bd824194da76
2011-01-05 11:31:58 +09:00
Tadashi G. Takaoka e89af1fa5f Remove Row object from MiniKeyboardBuilder
Change-Id: I981278f29fdd23d80c3da21ecdbbda6d62a0dfde
2011-01-01 13:52:36 +09:00
Tadashi G. Takaoka a96574fdd5 Move NOT_A_TOUCH_COORDINATE constant to KeyboardActionListener
Change-Id: Iff3fde48682a7c56201fc9eb3640755e0090d0ee
2011-01-01 13:43:28 +09:00
Tadashi G. Takaoka 611044ab30 Merge "Snap back to the previous keyboard when sliding input is canceled" 2010-12-31 03:28:35 -08:00
Tadashi G. Takaoka 5f922caff8 Snap back to the previous keyboard when sliding input is canceled
Bug: 3316517
Change-Id: Iffaad1eb93b6a014d8445f3e27b0e24c20967daf
2010-12-31 14:02:04 +09:00
Tadashi G. Takaoka 1a6fba5702 Fix potential keyboard layout change bug
Change-Id: I2518dd1d2ef4b77fe32bb1fed4e0c722f3d120c1
2010-12-31 11:46:48 +09:00
Tadashi G. Takaoka 5797cefca6 Longer long-press timeout in sliding input
Change-Id: Id74bddef4837ee46569775ce54f54d5535cfa463
2010-12-30 17:27:47 +09:00
Tadashi G. Takaoka 07357f33db Merge "Add config_default_keyboard_theme_id resource" 2010-12-28 04:33:02 -08:00
Tadashi G. Takaoka 05ddb9a5d2 Add config_default_keyboard_theme_id resource
Change-Id: Ie4e9e85694cfd43fcd1fdfeeaa477f13c372a8a6
2010-12-28 21:06:45 +09:00
satok ceaca96b5c Merge "Fix miss spelling" 2010-12-28 03:08:13 -08:00
satok 9111d76cee Fix miss spelling
Change-Id: I29d92d316525a897c86eab44f948a6c61ae38c35
2010-12-28 19:49:43 +09:00
satok 43046fef25 Initialize mMode in SubtypeSwitcher and added TODO
Change-Id: If3fa38c5ecf12159cee8d237fa3d5260a9ed66cb
2010-12-28 19:16:36 +09:00
Tadashi G. Takaoka 363cd6ef0f Make dismissing keyboard by swiping down as configurable
Bug: 3306370
Change-Id: If4e258ce4db05fb75dcd3b23fefa422c1287955b
2010-12-23 12:44:40 +09:00
Tadashi G. Takaoka 23a3b74722 Merge "Suppress punctuation suggestions if not needed" 2010-12-21 18:57:09 -08:00
Tadashi G. Takaoka 9fb8c6dd48 Suppress punctuation suggestions if not needed
Bug: 3294256
Bug: 3284745

Change-Id: I77d54cbfcc2e809315bab59ecb808ae944982501
2010-12-22 01:48:20 +09:00
Ken Wakasa 9aa20e6ad1 Ignore case in editDistance()
bug: 3278422

Change-Id: Ibd20488dcec215038970749b181857527311947b
2010-12-22 00:42:41 +09:00
Tadashi G. Takaoka baf83886be Filter out too short noisy touch events
Bug: 3294017
Change-Id: I1769eab1d096d16bfa9d6f23b973483ee6e7a478
2010-12-21 23:46:15 +09:00
Tadashi G. Takaoka 1d7d9664a9 Refactor PointerTracker class to include queue management
Change-Id: I81d025220df6d970d8758157a89168851c8421ae
2010-12-21 18:56:27 +09:00
Tadashi G. Takaoka 6311acb7f4 Merge "Suppress long press timer on hinted key while temporary upper case mode" 2010-12-21 00:47:03 -08:00
Tadashi G. Takaoka 2b13b4f5e5 Suppress long press timer on hinted key while temporary upper case mode
Bug: 3301932
Change-Id: I29b5e5a9aa8b44681e763a4d6485109f3f99f6fa
2010-12-21 17:28:19 +09:00
satok 68d483e2a2 Merge "Add a parameter to getEnabledSubtype" 2010-12-20 23:19:40 -08:00
satok 127ae5465e Add a parameter to getEnabledSubtype
Change-Id: Iaa87613086093bc83d155ed2c0113fc513898801
2010-12-21 14:14:00 +09:00
Tadashi G. Takaoka c4f71668d7 Remove multi-tap feature
Change-Id: Ife44b3f9d420d77d2cfb51044a8356f02ed63e8b
2010-12-20 21:58:31 +09:00
Tadashi G. Takaoka 8aa3f5a3ad Cleanup KeyboardActionListener interface
Change-Id: I851eaea479f1590fd404a7a37a9a35d1bdcd378c
2010-12-20 19:52:08 +09:00
Tadashi G. Takaoka cb2469ae17 Suppress haptic feedback while sliding key input
Bug: 3298222
Change-Id: I9507a98cc833fc6403cf9abf23457748a2bf89de
2010-12-20 19:48:27 +09:00
Tadashi G. Takaoka 5ef421b58a Cancel long press timer when sliding key input is not allowed
This change also fixes auto snap back behavior of key which has output
text, such as smiley key.

Bug: 3297825
Change-Id: Ia06e1abc0fbdff2a26504ddcce1dc7f933b45453
2010-12-19 21:57:50 +09:00
Tadashi G. Takaoka cc0e41222d Merge "Do not pick up closest key if the point is out of any key" 2010-12-19 04:07:41 -08:00
Tadashi G. Takaoka 6d929d586f Do not pick up closest key if the point is out of any key
Bug: 3286308
Change-Id: I62771fb209027ddec4595d099d5d397ae4e200fd
2010-12-19 20:34:32 +09:00
Tadashi G. Takaoka ef71c4aa4c Fix checking of sliding off from key
This is follow up change of Id6f69e82.

Change-Id: I15127929b8eeb511a652c7ae6a14ababbb49ee24
2010-12-19 19:52:15 +09:00
Tadashi G. Takaoka dbc44989a5 Refactor PointerTracker class
Change-Id: Id6f69e82119a9a3f618d95443a3ecc766abab08a
2010-12-19 19:15:01 +09:00
Tadashi G. Takaoka 9e91472285 Automaticaly snap back to the previous mode from sliding symbol input
Bug: 3280151

Change-Id: I48ea134639465d0cc178e524af8d7885d185957d
2010-12-19 18:48:49 +09:00
Tadashi G. Takaoka 67a4ecacc7 Disallow sliding key input
This feature is configurable by R.bool.config_sliding_key_input_enabled.

Bug: 3294076
Change-Id: I0225a6ce19d9b911c9d9543a106ab57ee0b7de75
2010-12-18 20:41:53 +09:00
Tadashi G. Takaoka 9b6d1d52d9 Add popupKeyboardTemplate attribute to Keyboard
This change
- introduces the popupKeyboardTemplate attribute of Keyboard to
  specify XML Keyboard file for popup mini keyboard.
- introduces the maxPopupKeyboardColumn attribute of Keyboard to
  specify the maximum column of popup mini keyboard.
- changes the content format of the popupCharacters attribute of Key.
  It now represents keyLabel, codes and keyTextOutput of each key of
  popup mini keyboard using CSV format.

Bug: 2214959
Change-Id: I539e310f7e38a049ee193de0b4ad5d7afdce37b1
2010-12-17 17:18:28 +09:00
Ken Wakasa 014f4883c7 Merge "Revise language string size on spacebar" 2010-12-16 00:50:42 -08:00
Tadashi G. Takaoka a8baf5701f Merge "Tweak base line of key top letter" 2010-12-16 00:22:23 -08:00
Ken Wakasa 183fbbb0db Revise language string size on spacebar
bug: 3290290
Change-Id: I09694392d7fa447796c56a1f74b5b719ca28e466
2010-12-16 16:53:02 +09:00
Tadashi G. Takaoka 98935836f0 Tweak base line of key top letter
Bug: 3285380
Change-Id: Idf6b9b7e000d87df924742634188d193f948130f
2010-12-16 16:07:40 +09:00
Tadashi G. Takaoka e9311bc893 Update suggestion strip drawables
Bug: 3286297
Change-Id: I51d4051ea22c465f81852e4fb98e48bad9cf57f1
2010-12-16 12:38:43 +09:00
Tadashi G. Takaoka 1d11e7903f Fix adding user dictionary
This change is follow up of I9fe45a61

Bug: 3264920
Change-Id: Ic7b95892e36e30fd9fadd7bea011efad7f2f98ca
2010-12-16 12:25:01 +09:00
Tadashi G. Takaoka a893ac38f5 Merge "Tune padding of candidate word" 2010-12-13 01:01:54 -08:00
Tadashi G. Takaoka 4700a6f2b0 Tune padding of candidate word
Change-Id: I980e568f9b4b87b0f414aa7ce0197dba39a7708f
2010-12-13 17:46:11 +09:00
Tadashi G. Takaoka 7bb84eac3b Merge "Check user dictionary before inserting new word" 2010-12-12 23:57:15 -08:00
Tadashi G. Takaoka c5f1368090 Check user dictionary before inserting new word
Bug: 3264920
Change-Id: I9fe45a61b2ad2b1ed69d3a0cbc6eebecb4038acc
2010-12-13 16:52:25 +09:00
satok 7f1d3fa5d8 Remove language settings from preference activity
Bug: 3268561

Change-Id: Ia910f0a090dc66c7dd9176999930d8cb763203b0
2010-12-13 15:27:33 +09:00
Tadashi G. Takaoka 9ecad8c2e8 Fix auto correction threshold values array reference
This change also removes unused argument from Suggest.getSuggestions().

Change-Id: I512f8695d22898bb906e136a66e0ee6b521cd1d1
2010-12-13 14:40:49 +09:00
Tadashi G. Takaoka 4ca16dbd65 Highlight auto corrected word
Bug: 3230726
Bug: 3215175
Change-Id: I086324cdab610b50a96d8eb08b81aa89c886ba00
2010-12-12 22:23:39 +09:00
Tadashi G. Takaoka 1b1f7f907f Cleanup unused string resources
This change also renames some "completion" to "correction".

Change-Id: I156dd7ccafe99a632721f20769d5f0ea5915a564
2010-12-12 21:55:00 +09:00
Tadashi G. Takaoka 7e181fe101 Introduce SuggestedWords class to represent suggestions list
Change-Id: I81677a785640d37296be8b42c7a74bd0c00edf46
2010-12-12 16:44:42 +09:00
Tadashi G. Takaoka a15e45ef45 Keep previous suggestions when there is only one suggestion found
Bug: 1647861
Change-Id: I7aa7ceeb93b5d8db69480d73cc8a7177ab6bbb42
2010-12-10 18:30:50 +09:00
Tadashi G. Takaoka e26ef1bccd Remove Tutorial class and unused debug feature
This change also cleanups compiler warnings.

Bug: 2897373
Change-Id: If972cf45c1eb40436adbddbf71969e5409f4c9c5
2010-12-10 18:24:00 +09:00
satok 20cdb37bd0 Use setInputMethodAndSubtype and shortcutIME API instead of changing only view to Voice Input
Bug: 3201828

Change-Id: If452f0b2d19eeb1f8f6e7e40539ba4bac6759fcd
2010-12-10 18:03:30 +09:00
Tadashi G. Takaoka 9502cc177c Remove LatinIME prefix from classes
This change also cleanups preference key string constants

Change-Id: I58510f220a90d00d71a935731abeab87384675bb
2010-12-09 21:54:51 +09:00
Tadashi G. Takaoka 55b9d333c5 Show auto correction feedback
Bug: 3230726
Change-Id: Iecf6fc837952c4721f6b726edcf16179254179ca
2010-12-09 20:37:07 +09:00
Tadashi G. Takaoka 8ec36be4f5 Cleanup calling Spannable.setSpan() to set character style span
This change is followup of Iadc11992

Bug: 3230726
Change-Id: I4f6692c3dbfb42986d478f4315105726ff89723a
2010-12-09 14:43:54 +09:00
Tadashi G. Takaoka 522d5c16d2 Show underline for auto-completion candidate instead of bolding
Bug: 3230726
Change-Id: Iadc11992d45776f7a4002ee9ebf24828646bcc53
2010-12-09 14:04:50 +09:00
Tadashi G. Takaoka 89c58745d6 Tweak candidate view height and etc.
Change-Id: I91963d0be122baf2274ea03b5028a66259a2cdb6
2010-12-08 20:05:34 +09:00
Tadashi G. Takaoka 4a734aa21e Fix popup mini keyboard for smiley and .com key
Change-Id: Idd156b14a4a259bc7dcaf498fbc8a121a069cbe9
2010-12-08 17:48:23 +09:00
Tadashi G. Takaoka 9f01ed51d7 Support keyboardHeight and maxKeyboardHeight to Keyboard XML
This change introduces,
- new attribute keyboardHeight to specify default keyboard height.
- new attribute maxKeyboardHeight to specify maximum keyboard height,
  usually specified by percentage to the screen height.
- keyHeight attribute is obsoleted
- new attribute rowHeight to specify a row height, can be specifed as
  percentage of the keyboard height. And verticalGap is included to
  the row height (row height = key height + vertical gap).

Change-Id: I48a2f2661e8a91a998503a847437c1baf1de9b9c
2010-12-08 17:43:29 +09:00
satok 59cd73b916 Merge "Suggest excessive characters" 2010-12-07 23:58:23 -08:00
satok cdbbea735f Suggest excessive characters
bug: 3193883

Change-Id: Iea7a0fce7ce62d8779a7c7e4613d50db30d82b07
2010-12-08 16:56:06 +09:00
Tadashi G. Takaoka e49bd1c43a Implement CandidateView using HorizontalScrollView
This change re-implements CandidateView using HorizontalScrollView and
customized Button, so that the candidate strip can be flingable.

This change also introduces the following features.

- Highlighting candidate strip and space bar is configurable by
  @bool/config_candidate_highlight_enabled.
- Candidate strip can be centered with left/right padding if
  @dimen/candidate_strip_padding size is greater than 0.
- Candidate text size is configurable by @dimen/candidate_text_size.

Bug: 1575885
Bug: 3230726
Change-Id: Iedf78ff31bc9f2f6291a8e8fb7faa0e6b961dd6d
2010-12-08 16:55:36 +09:00
satok e00b7c5f7b Merge "Fix a crash when MAX_WORD_LENGTH is too short." 2010-12-06 20:06:03 -08:00
Tadashi G. Takaoka 292faee8ba Fix ghost popup mini keyboard
Bug: 3257700
Change-Id: I522ceb426b825575c90e8445336191bcf889f05d
2010-12-07 11:24:18 +09:00
Ken Wakasa d024ea605c Fix an issue with lingering composing span underline after orientation changes
bug: 3246868

Change-Id: Id3887953e195281d677f31fba5feca1e60016bfa
2010-12-06 23:35:32 +09:00
satok f5cded1c6c Fix a crash when MAX_WORD_LENGTH is too short.
Change-Id: Idcb5aa2685321b8d0ac7d846caecbd1c79e4dd77
2010-12-06 22:58:56 +09:00
Tadashi G. Takaoka e18bd3e323 Fix voice key on phone device
This change,
- changes voice key code back to -102
- renames some key code names and method names
- adds mic_slash_holo to drawable-hdpi

Change-Id: I8be3a20921f472ece4298edad2d275f29a7e4955
2010-12-06 12:29:59 +09:00
Tadashi G. Takaoka a275e9eb48 Make Key, Row and Keyboard attributes final
Change-Id: Ie87e9e8936646334646cc93b228e0f6a93a79e5b
2010-12-03 14:11:38 +09:00
Tadashi G. Takaoka 7545ec8df0 Fix no smiley popup mini keyboard
Change-Id: I0e010c6f0c06fd59b7aef75fc142a4ce0089e740
2010-12-03 13:36:17 +09:00
Tadashi G. Takaoka 391a7ce6d8 Remove LatinKey class
Change-Id: I56b15980d994eed698566a1d0451e3ec7ab490a0
2010-12-03 12:55:51 +09:00
Tadashi G. Takaoka 566870c0f1 Fix NPE at Keyboard
Bug: 3250672
Change-Id: Ieef7ff5e8ba77a2d43f561c2bd2a1921230bd49d
2010-12-03 12:36:31 +09:00
Tadashi G. Takaoka 418d80d7de Double tap on shift key turns on caps lock
Bug: 3238128
Change-Id: Ib641d33da148b72c7c775caa11e0b2ab58a8c081
2010-12-03 09:31:35 +09:00
Tadashi G. Takaoka 571bdb401f Refactor LatinKeyboard and LatinKey
This change also moves KeyboardSwitcher and related classes to
com.android.inputmethod.keyboard package.

Multi project change with Ib23017b2

Change-Id: Id7d54b24615fe22ebb540ca847549909e346ee24
2010-12-02 23:03:59 +09:00
Tadashi G. Takaoka 5a309f5715 Move some inner static class to top class in new package
This change introduces new package com.android.inputmethod.keyboard
which hosts keyboard related classes.

Also adds missing @Override and @SuppressWarning("unused") annotation

Change-Id: I0317f5cfa317e13f3c77815f48ffc69b5d1ade05
2010-12-02 20:06:01 +09:00
satok 711abe6756 Merge "Fix parameters of native functions and refactor Dictionary" 2010-12-01 18:30:33 -08:00
satok 3008825948 Fix parameters of native functions and refactor Dictionary
- created bigram/unigram dictionary classes

Change-Id: I233a28ed8d611870db3f4cf8f25fc45b5d41529b
2010-12-02 01:16:44 +09:00
Tadashi G. Takaoka 8d7ecc70a6 Load keyboard only when subtype is keyboard mode
Bug: 3224990
Change-Id: I1ae1d86dce923464d4474fc7ce02f2ff22067603
2010-12-01 22:53:06 +09:00
Ken Wakasa 383d6d8c81 Disable "touch to correct words" when suggestion strip is off
bug: 3232408
Change-Id: Ic0d5f86288befcd5cf93cd86aaf8936929dbcdcc
2010-12-01 20:24:05 +09:00
Tadashi G. Takaoka c0007568d9 Merge "Key release event should be sent when finger sliding" 2010-12-01 02:35:17 -08:00
satok d4952c8fe9 Move a logic for finding words with a missing character to the native code.
Change-Id: I58338643830ff4f9708f78a9c26f75c8bf2ebf45
2010-12-01 19:26:36 +09:00
Tadashi G. Takaoka bd20db25be Merge "Tweak tablet keyboard design" 2010-12-01 02:07:26 -08:00
Tadashi G. Takaoka 5d04042663 Tweak tablet keyboard design
This change introduces,
- center align "More" key label
- remove drop shadow from key label
- darker key label color when manual temporary upper case
- narrower pop up mini keyboard
- remove unnecessary key background from pop up mini keyboard
- smaller key label in portrait

Bug: 3216592
Change-Id: I77e0733f467a88aa32e09fcbace56fe08f755229
2010-12-01 18:51:38 +09:00
Tadashi G. Takaoka c0b5c9c43e Key release event should be sent when finger sliding
This change is cherry-pick I1a020e3d from Gingerbread-MR

Bug: 3132881
Change-Id: I885eab7744369dfb841f9b34d210b6c2aef8f19a
2010-12-01 15:12:08 +09:00
Ken Wakasa 80e459f8c9 Update the voice input warning dialog message string.
Updated the relevant settings menu as well.

bug: 3194809

Change-Id: Ibcd00fcf32f82b7733da155ef6e15e389d53c645
2010-12-01 14:14:47 +09:00
satok 965004fbe9 Remove excessive call of onKeyboardLanguageChanged in SubtypeSwitcher
Change-Id: I8f85f9b053a70b8ad1755e4f343ac06ecd9e103b
2010-11-30 11:10:50 +09:00
Tadashi G. Takaoka fa086c9076 Cleanup unused Java import
This change also fixes wrong file mode.

Change-Id: Ifcf4c9444ddcdc62d2e4b394891d6eee135c1e8f
2010-11-29 17:57:48 +09:00
Ken Wakasa 27d13713bb Preload SharedPreferences at start.
bug: 3207554
Change-Id: I84072461aee9675cc67897de03f89e9c0036bc1f
2010-11-26 18:48:04 +09:00
Tadashi G. Takaoka 7f0befe1f0 Update tablet keyboard layout to the latest design
This change introduces shiftedIcon attribute for Key which specifies
icon to draw the shift key while the key is in shifted state.

This change also intriduces new configurable dimension value
key_label_horizontal_alignment_padding which represents horizontal
padding for left or right alignment of key label.

Bug: 3216592
Bug: 3201839
Change-Id: I3aa7392227ce573c404517678e6340a8d1fcb328
2010-11-25 00:11:21 -08:00
satok 79efbed76f Call showInputMethodPicker instead of showInputMethodSubtypePicker
- because showInputMethodSubtypePicker will be removed.

Change-Id: I255f9bbff77de24ce067f35ee101d368e36edd45
2010-11-25 14:09:50 +09:00
satok 1fb28137f4 Fix a bug at showing warning dialog at the first time when IME is trigerred in voice mode
bug: 3226268

Change-Id: Ife7c752ad309ef796d9b7cc32517f00c2bb2af34
2010-11-24 20:53:57 +09:00
Tadashi G. Takaoka 2c60d6e28e Support dedicated number/date keyboard layout
Bug: 3009716
Change-Id: Idc12cc9d8ee4f5febfae4e11712e2aaca327a6ea
2010-11-24 00:16:00 -08:00
Tadashi G. Takaoka 6624fd8736 Support imeOptions condition in <case>
Change-Id: Ie5494601efb29cf65363c4aa3bf5a9ab04a0109a
2010-11-23 23:13:39 -08:00
Tadashi G. Takaoka 59c9930ca9 Support colorScheme <case/> condition in Keyboard XML
Change-Id: Ibbfb99e0e2b15df301f83af6739b7bca01ebf490
2010-11-23 18:07:27 -08:00
Tadashi G. Takaoka a963d0b2e4 Merge "Fix odd "more" key behavior on tablet phone number keyboard" 2010-11-23 15:59:10 -08:00
satok da64719c6d Merge "Enabled to change the current subtype to voice input subtypes" 2010-11-23 13:35:20 -08:00
Tadashi G. Takaoka 4b8bbbadac Fix odd "more" key behavior on tablet phone number keyboard
Bug: 3176540
Change-Id: Iaa1f3776d5ac236b2655910ede7522ceac36a9a1
2010-11-23 09:52:59 -08:00
satok 8e09172df1 Enabled to change the current subtype to voice input subtypes
bug: 3201828

Change-Id: I4450cbc8ba8829060d702564889c735f1326cf23
2010-11-23 20:20:50 +09:00
Tadashi G. Takaoka a444889403 Merge "Use normal font for functional key label instead of italic font" 2010-11-23 01:01:43 -08:00
Tadashi G. Takaoka fab243a183 Use normal font for functional key label instead of italic font
This change also uses slightly larger font size for functional key
label according to the v4 keyboard design.

Bug: 3216592
Change-Id: I027f109b7748ade8564dc808487d9a6ce1da9761
2010-11-23 00:38:09 -08:00
Tadashi G. Takaoka cc359dddb3 Merge "Fix caps lock release in non-distinct multi touch device" 2010-11-22 22:54:34 -08:00
Tadashi G. Takaoka 0d0a46da03 Fix caps lock release in non-distinct multi touch device
Bug: 3221869
Change-Id: I7c5d407c465f22945cba37e42683345913b43acc
2010-11-22 22:41:17 -08:00
Tadashi G. Takaoka 0b60f83192 Support <key-style/> and keyStyle attribute for Keyboard XML
Change-Id: Ie052e989d0180eecfc8c244ba6c60594a46103d1
2010-11-22 18:33:47 -08:00
satok 4092205833 Refactor to move voice functionarities in LatinIME to VoiceIMEConnector
Change-Id: I593a8187d48338c9c0e7d75c73c2dbfc32400335
2010-11-23 10:32:12 +09:00
Tadashi G. Takaoka 04448c2978 Make F1 and Symbol keys static in XML file
Change-Id: If869f5ad4fe8f192f89a8679a4abde99a25e02e6
2010-11-21 03:00:53 -08:00
Tadashi G. Takaoka cd39f2adee Add keyLabelAlign attribute to Keyboard XML
Bug: 3216592
Change-Id: I88f8055199f2cd0525faf9374114fbebba53b951
2010-11-20 18:48:55 -08:00
Tadashi G. Takaoka 45911256fd Perform editor action IME_ACTION_NEXT/PREVIOUS by tab key
Bug: 3122995
Change-Id: I44280fe1c6cc27f429b311edec71e1027178222d
2010-11-19 21:36:37 -08:00
Tadashi G. Takaoka 07f903afba Merge "Fix automatic temporary upper case mode behaviour" 2010-11-19 17:21:55 -08:00
Tadashi G. Takaoka 6769c67987 Fix automatic temporary upper case mode behaviour
This change is a followup of I948ef26f

Automatic Temporary Upper Case mode acts like Normal mode until shift
key is pressed. However, after shift key is pressed, it acts like
Manual Temporary Upper Case mode.

Bug: 3193390
Change-Id: Id3d7a38a1f5905322cd46ded36b1db26576d49af
2010-11-19 16:51:50 -08:00
Tadashi G. Takaoka 1d8196cd41 Use "flag" feature of attr.xml to represent keyboard mode
Change-Id: Ibc317ada5167a119477fe8ea2994df6c6462afd0
2010-11-19 14:57:24 -08:00
Tadashi G. Takaoka 75fde64890 Cleanup drawable-xlarge resources into drawable-mdpi
Change-Id: I2db335a601ddb0062a637a71289e14cf1d375a1e
2010-11-19 01:37:38 -08:00
Tadashi G. Takaoka f27364600c Implement both automatic and manual temporary upper cases
With this change,
- Shift and Shift lock state of keyboard is maintained by
  LatinKeyboard.ShiftState.
- Shift key state is maintained by ShiftKeyState object in
  KeyboardSwitcher.
- LatinIME informs KeyboardSwitcher that shift key press, release and
  long press and KeyboardSwitcher determines which state LatinKeyboard
  and ShiftLeyState should be.

Bug: 3193390
Change-Id: I948ef26fda512eb1cb0ebddc89d322c4f4f4d670
2010-11-18 19:32:59 -08:00
satok 1d2d3228a3 Merge "Add a functionarity to handle Subtype" 2010-11-18 18:10:25 -08:00
satok 4ab730dbd3 Add a functionarity to handle Subtype
Change-Id: Ic6055ba218b64f4276e3db99a435f546c3990ee5
2010-11-19 08:30:02 +09:00
Ken Wakasa 95a5daa3e3 Merge "Avoid disk writes on UI thread." 2010-11-18 12:46:58 -08:00
Ken Wakasa 11eb13e04f Avoid disk writes on UI thread.
bug: 3207554
Change-Id: I285691f9e94d989823fcb5c21615ca50cecddff6
2010-11-19 05:38:18 +09:00
satok 279da1da91 Hide space bar preview when space bar switcher is disabled.
Change-Id: I469197a4b3f55335eaee104177f0970cc904bb34
2010-11-18 20:50:37 +09:00
satok 3b776b7892 Move functions in LatinKeyboard related to LanguageSwitcher to SubtypeSwitcher
Change-Id: I777db896bd0287931ce7c810b080ccee1121d34e
2010-11-18 08:35:26 +09:00
satok 0ed7191b4d Move functions related to LanguageSwitcher to LatinIMESubtypeSwitcher
Change-Id: I5fa306cf311063ff96b6d45faaca2ffe84cddbf9
2010-11-18 06:58:49 +09:00
Ken Wakasa 378a1b516d Stop highlighting in suggestion strip after auto-completion cancellation
Follow up change to I2185fcf6

bug: 2847211
Change-Id: I7874bc8400e5a7613bfbae83b790ea6192d287b3
2010-11-17 16:40:48 +09:00
Tadashi G. Takaoka b643dab73a Refactor KeyboardSwitcher and LatinIME
Bug: 3193390
Change-Id: Id894c9bc574a53966d9efc419ab398bae89c34c1
2010-11-16 23:06:37 -08:00
Tadashi G. Takaoka 10227a71a0 Implement temporary upper case hint icon
This change partially implements the requested feature. The following
are not supported yet.
- Non-letter key handling on automatic temporary upper case layout.
- Non-letter key handling on shift chording in caps lock layout.
- Hint icons for manual temporary upper case layout are not final ones.

Bug: 3193390

Change-Id: I636da99d1be05b1337935d87c6f4d140661e1cc8
2010-11-16 13:45:49 -08:00
Ken Wakasa c1e2e827b5 Canceled auto-completion shouldn't be re-auto-completed
bug: 2847211
Change-Id: I2185fcf6b798a41135c329485914bc035fad5119
2010-11-16 19:18:05 +09:00
Tadashi G. Takaoka 889691eca1 Refactor shift key state into KeyboardSwitcher
Change-Id: If484d3d7e7a0794ee7fc88f0771229d6f90db466
2010-11-16 01:47:39 -08:00
Tadashi G. Takaoka d7641636db Refactor UI Handler of LatinIME
Change-Id: Iabae338c32969997cb3c7f612c2e5a6999420e28
2010-11-16 01:37:19 -08:00
Tadashi G. Takaoka 89cfd23f34 Merge "Refactor symbol key state into KeyboardSwitcher" 2010-11-16 01:17:26 -08:00
Tadashi G. Takaoka 6c92ee127d Refactor symbol key state into KeyboardSwitcher
Change-Id: Idce4e9bf070b08b8a930fd8e800df9c4d8829f8f
2010-11-16 01:15:16 -08:00
satok af41759729 Add functions for usability logging
Change-Id: I9b66bde1b5ae76742cb685bbc558ce9570dca50a
2010-11-16 18:03:28 +09:00
satok 18e9a7c6fb Add a logging functionarity for usability study.
Bug: 3193879

- Log char input

Change-Id: I5c1568f81012743b7068d423baa99b0f9d1653f8
2010-11-16 17:15:37 +09:00
satok 7599cfea4a Add showing suggestion only on portrait mode and fixing the state of suggestion strip
Change-Id: I7babd1400a3516c87506a3ea4bd46ddaf89e19b4
2010-11-16 07:30:08 +09:00
Tadashi G. Takaoka 71c353aa87 Refactor Tutorial class
Change-Id: Ib8dbcf8f36966988fb0d4efdc6bdb7e30b776a68
2010-11-13 01:49:29 -08:00
Tadashi G. Takaoka 1679432d1c Get rid of the reference to LatinKeyboard from LatinIME
Change-Id: I94286ecec0aa8dbfdfaa74d3a76b744c4a250370
2010-11-13 01:45:12 -08:00
Ken Wakasa 3009310283 Partially revert I63ad561c
This is required to make cancellations of auto-corrections/completions work.

Change-Id: I091fb9946d4642847fde39d86a6b3b09735e93a8
2010-11-13 15:16:43 +09:00
Tadashi G. Takaoka d98c20b036 Fix NPE that is caused by null EditorInfo
Bug: 3192772
Change-Id: Ia057d29e070ccbb90ee60df1e141de14de95f820
2010-11-12 15:26:54 -08:00
Tadashi G. Takaoka b0465116bd Keyboard XML supports switch-case-default tags to select rows and keys
Change-Id: I0d92e513757e765d9de98561205754af5a143650
2010-11-12 14:30:25 -08:00
Tadashi G. Takaoka 8b00bc4f32 Rename KeyboardSwitcher.setKeyboardMode to loadKeyboard
This change also eliminates KeyboardSwitcher.refreshKeyboardCache,
LatinIME.reloadKeyboards() and LanguageSwicther.getLocales().

Change-Id: I5fd4914660ea1c955ddfa0ca62b920f9bcd53e1b
2010-11-11 15:44:50 -08:00
Ken Wakasa 4174655e23 Check the system vibrator availability for the "Vibrate on keypress" preference.
bug: 3021001
Change-Id: I7843a3e4765333c720fd8f258c1fffdf6f090d3a
2010-11-11 19:15:34 +09:00
satok ca26f20fa4 Fix states for showing PunctuationList and correction
- Fixed the visibility of the suggestion strip

Change-Id: I63ad561c71464657521661dbd25c72dd34841834
2010-11-11 17:37:11 +09:00
Tadashi G. Takaoka 48bc6b158b Refactor KeyboardSwitch.KeyboardId class
This change defers determining which keyboard should be loaded and
holds the information in KeyboardId object as much as possible.  At
keyboard loading time, the determination deferred will be made
depending on the information of KeyboardId.

Change-Id: Ice2455d9e5b21671a250c342c06c043e4baa5355
2010-11-10 21:26:53 -08:00
Tadashi G. Takaoka 507495efd5 Refactor to remove KeyboardSwitcher.setVoiceMode
This change also renames KeyboardSwitcher.makeKeyboards to
refreshKeyboardCache.

Change-Id: I76897562d5876a53364dc378e7800ab92fb2a37b
2010-11-10 21:16:47 -08:00
Tadashi G. Takaoka 8aaab7c286 Should cancel both normal and shift long press timers
Bug: 3132881

Change-Id: Ib89e2efa4e68e7d57ac1123df2ec6241f1b902d1
2010-11-10 15:27:24 -08:00
Tadashi G. Takaoka f8e30a9153 Refactor calling KeyboardSwitcher.setKeyboardMode
This change also eliminates unnecessary recursive call in
KeyboardSwitcher.setKeyboardMode.

Change-Id: Iff25fe23b34227d526dee0bbe8710842545c2afa
2010-11-08 23:50:27 -08:00
Tadashi G. Takaoka 59b7bd0730 Using distance to the edge of key as proximity detection
Because there may be very long key, such as space bar on tablet, we
should not use the distance between the touch point and the center of
key as proximity detection.  Instead of that, this change uses the
distance between the point and the nearest edge of key as proximity
detection.

Also this change fixes the bug that space key (code 32) was not
counted in proximity detection.

Bug: 3164020
Bug: 3168138
Change-Id: I687f1ce94a8e944c3f6eea0fe00e18ed6e68e278
2010-11-06 01:10:55 +09:00
Tadashi Takaoka 68864723cf Rename LatinKeyboardBaseView class to KeyboardBaseView
Change-Id: I496ecbfa7d398583d01f821398f49f75d17311d8
2010-11-05 18:36:19 +09:00
Leon Scroggins 47f795dc87 Treat the new web fields like their corresponding variations.
Bug:2692655
Bug:2460543

Change-Id: I86e814902447ecd5c8b00e399a0143d3dc2ad2cf
2010-11-04 11:27:55 -04:00
Ken Wakasa 17fcd719de Make sure there are no modes with settings key on tablet.
Follow-up change to I73b8a502

bug: 3095814
Change-Id: I79bb05c61dc73b036331e17d02c791f08a0168fc
2010-11-02 19:33:27 +09:00
Ken Wakasa 200ece7907 Capitalization for "Quick Fixes" words doesn't work
bug: 3151706
Change-Id: I7770a1d26edb1ea72ee93396181953a724dcc4bf
2010-11-01 20:25:07 +09:00
Ken Wakasa 2a952e9b7e am b5e8c779: am 69db35c4: Make the buttons work for edge pixels of the keyboard
* commit 'b5e8c7799726a5975283fa138ad2870ab02d01a4':
  Make the buttons work for edge pixels of the keyboard
2010-10-29 08:28:28 -07:00
Ken Wakasa 69db35c493 Make the buttons work for edge pixels of the keyboard
Follow-up change to If7630b89

bug: 3142416
Change-Id: I2660e3d688eb0490363e460d5b4944c89b8ca35c
2010-10-29 19:24:08 +09:00
satok dd8c4c0068 Merge "Increased the size of GRID in Keyboard" 2010-10-29 03:01:32 -07:00
satok 74103ee1b9 Increased the size of GRID in Keyboard
Bug: 3122894

- Changed width 10 -> 32
- Changed height 5 -> 16

Change-Id: I07354cf5c942974cc25a5e043f41e0f13a09351b
2010-10-29 18:50:18 +09:00