Commit Graph

6023 Commits (445d8e8bf633dbec64e7e0833384777bee137ebf)

Author SHA1 Message Date
Tadashi G. Takaoka f0b5fddcb8 Clean up SettingsFragment a bit
Change-Id: Ic0727003f2645f0c38200b67bb2f4046249c6273
2013-01-24 16:16:53 +09:00
Tadashi G. Takaoka ef43cc9d1c Fix dismissing gesture floating preview
Bug: 8063926
Change-Id: I3b5b29ea0d5e4833e10e830dbdb086c868cd4884
2013-01-24 12:07:01 +09:00
Baligh Uddin dbd518b2d1 Merge "Import translations. DO NOT MERGE" 2013-01-23 22:47:06 +00:00
Baligh Uddin ab54e47fbe Import translations. DO NOT MERGE
Change-Id: I2df467fe9c740e33d2346dd09f5696c95af99aa5
Auto-generated-cl: translation import
2013-01-23 13:00:15 -08:00
Kurt Partridge 2baa4b0701 [Rlog83] Fix missing uses of hasWord() abstraction
Change-Id: I78e286723b1b8c8bcc7aea0cc81ef2ee66a193ac
2013-01-23 09:21:56 -08:00
Kurt Partridge edb5c4638b Merge "[Rlog81a] Determine correction type of words" 2013-01-23 17:12:02 +00:00
Tadashi G. Takaoka 9d514af466 Merge "Refactor SubtypeLocale to hold Resources" 2013-01-23 08:37:57 +00:00
Tadashi G. Takaoka 9dc85a673e Merge "Configurable key long press timeout" 2013-01-23 08:37:36 +00:00
Tadashi G. Takaoka cc5e4a4445 Configurable key long press timeout
The default long presss timeout is 300msec (previous timeout was
400ms).

Bug: 7600340
Change-Id: Ia8b64784ac03588631cfcbad30e021d74f3fd0d8
2013-01-23 17:12:28 +09:00
Satoshi Kataoka f1074c508e Throw exception when invalid time stamps are detected in debug mode
Change-Id: I360b5bd09869bc85ab3bccb8a43a20fed0035d9b
2013-01-23 16:29:19 +09:00
Tadashi G. Takaoka 4b3cae9b0c Refactor SubtypeLocale to hold Resources
Change-Id: Ia667bc2d406d66c87215dd3b9569f36f4642cfe0
2013-01-23 16:23:11 +09:00
Tadashi G. Takaoka 40651c8cf7 Fix activity flags to launch settings activity
This change adds the following flags to the intent to lauch settings activity.
 - Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
 - Intent.FLAG_ACTIVITY_CLEAR_TOP

Bug: 8055342
Change-Id: I85284409bbba3fd284442e5ac4c7a55e58ad15ec
2013-01-23 15:08:35 +09:00
Kurt Partridge 0c16a5c6ee [Rlog81a] Determine correction type of words
Heuristic to determine whether a word was a typo correction or a complete
replacement by examining a correction to see if it falls within the list of
suggested words of the original.

Change-Id: Ieec4861a811e96aef0d14622e662b589ef8b4772
2013-01-22 11:41:52 -08:00
Baligh Uddin ad4cacafc6 Import translations. DO NOT MERGE
Change-Id: I46c30138504fab476bcca30cd4cc83ba108f959e
Auto-generated-cl: translation import
2013-01-22 10:40:33 -08:00
Tadashi G. Takaoka f008a11cce Merge "Cache MoreKeysKeyboard instead of container view of it" 2013-01-22 08:45:52 +00:00
Tadashi G. Takaoka a729377395 Cache MoreKeysKeyboard instead of container view of it
This change also cleans up MoreKeysPanel related stuff.

Bug: 8047165
Change-Id: I4f2211e00c7d08469a7413568db039c1c597fb3c
2013-01-22 17:34:36 +09:00
Tadashi G. Takaoka 8028c1c523 Merge "SeekBarDialogPreference supports minValue and stepValue" 2013-01-22 07:40:48 +00:00
Tadashi G. Takaoka c053293484 SeekBarDialogPreference supports minValue and stepValue
Change-Id: I7aaeeb2db85103708747ae318610bd4896ef96fd
2013-01-22 16:35:59 +09:00
Ken Wakasa 6c22439bf8 Remove MAX_PROXIMITY_CHARS_SIZE_INTERNAL
Change-Id: I18a997503de4033b5341b564145bca862a872098
2013-01-22 13:18:49 +09:00
Kurt Partridge 4cb853191c [Rlog15] ResearchLogger option to include account name in feedback
multi-project commit with I0a293f392bd605c8203dc9a62993345ad58dcfbe

Change-Id: Ief5b940a62dbaeaecdf1c55f2ffdd1e0fdaea2b9
2013-01-21 12:18:43 -08:00
Kurt Partridge 8b788374de Merge "[Rlog78b] Make log privacy filtering decisions on n-grams" 2013-01-21 19:39:38 +00:00
Kurt Partridge 80685aa4b9 [Rlog78b] Make log privacy filtering decisions on n-grams
Previously, words were pushed out of a LogBuffer one at a time.  The receiving code had to keep
state to know whether a n-gram was safe to log.  This patch looks at the entire n-gram and makes a
single decision based on it alone.

mult-project commit with I3c40d7e02c77943d2668094ddb1d03efb942c74f

Change-Id: Id7d90bbd551b1a2f4e0e35f38852652f68f273f8
2013-01-21 10:50:32 -08:00
Kurt Partridge 08d9c996dc Merge "[Rlog81b] Log more data with handleSeparator" 2013-01-21 18:48:16 +00:00
Tadashi G. Takaoka fb523d7f5d Move AbstractDrawingPreview objects to MainKeyboardView
Change-Id: I0be72fba9a66f7c326028ec8e4670ca74a46053f
2013-01-21 23:25:18 +09:00
Tadashi G. Takaoka 2277733048 Merge "Add GestureTrailsPreview class" 2013-01-21 13:44:13 +00:00
Tadashi G. Takaoka 8673594830 Merge "Add SlidingKeyInputPreview class" 2013-01-21 13:43:41 +00:00
Tadashi G. Takaoka 470a5805e1 Add GestureTrailsPreview class
Change-Id: Ibf9dff6d834d34b4134dbe38a609fd983731eedc
2013-01-21 22:31:54 +09:00
Tadashi G. Takaoka a237cd4a02 Add SlidingKeyInputPreview class
Change-Id: Ided47b3420b0b1e34063f30d5142a1858af2718e
2013-01-21 22:30:14 +09:00
Tadashi G. Takaoka 8aa9963a89 Fix Apache license comment
Change-Id: Ic56167f952a7f4449da366e1e81610e72c966086
2013-01-21 22:23:37 +09:00
Jean Chalard 0b51c06fd0 Merge "Update the Russian dictionary" 2013-01-21 11:01:13 +00:00
Tadashi G. Takaoka 78292e45cb Fix missing super call in PreviewPlacerView.onDetachedFromWindow
Change-Id: Iea79c0081cb66f54f161c0cf02cb365fcf88a07c
2013-01-21 19:31:05 +09:00
Jean Chalard be94d212e8 Update the Russian dictionary
The point is to get as close as possible to having the
golden Russian tests pass.

>>> dictionaries/ru_wordlist.combined.gz
Header :
  date : 1355818916 <=> 1358763720
  version : 29 <=> 30
Body :
Deleted: НКТ 14
Freq changed: без 0 -> 140
Freq changed: бонус 94 -> 130
Freq changed: за 0 -> 140
Freq changed: на 0 -> 180
Freq changed: не 0 -> 140
Freq changed: парка 133 -> 110
Freq changed: про 0 -> 131
Freq changed: ручьи 93 -> 80
Freq changed: ура 86 -> 100
Freq changed: юрты 86 -> 60
Added: вечерком 100
Added: задачки 100
Added: сорри 100
Added: узнай 100
Added: учти 100

>>> java/res/raw/main_ru.dict
All the same above changes

Change-Id: I8685c34d9ab1dcbf8ae8e23d2e26380059684c95
2013-01-21 19:30:17 +09:00
Tadashi G. Takaoka 4987108f34 Add surrounding drawing view to AbstractDrawingPreview constructor
Change-Id: If57e59f25fc3e29c0e7f46e8218d04fb233c27c6
2013-01-21 18:48:06 +09:00
Tadashi G. Takaoka 820b5e079c Merge "Add PointerTracker.isOldestPointerInQueue" 2013-01-21 09:37:59 +00:00
Tadashi G. Takaoka ab334eb646 Add PointerTracker.isOldestPointerInQueue
Change-Id: Ic6f38253c94067ec7aa7b5add4452fa144fd9352
2013-01-21 18:26:46 +09:00
Jean Chalard b56260b891 [AD4] Actually copy the file in place.
This finally makes it work.

Bug: 7702011

Change-Id: I3508c88567f79598e4d1dff561b6ba7dc5c3808f
2013-01-21 17:58:38 +09:00
Tadashi G. Takaoka db906a7c9a Merge "Rename AbstractDrawingPreview.onDraw to drawPreview" 2013-01-21 08:34:25 +00:00
Tadashi G. Takaoka 2ecbfe8e93 Rename AbstractDrawingPreview.onDraw to drawPreview
This is because the android lint warns calling a method onDraw(Canvas)
from View.onDraw(Canvas).

Change-Id: I4f54996da5454d9a8c4ef43fbbcaec37724fb20e
2013-01-21 17:00:47 +09:00
Tadashi G. Takaoka f3c4cd45a5 Move dimming keyboard to MainKeyboardView
Change-Id: Id44d4b758c8b92d1120d3a8b06812dc1fc26390c
2013-01-21 16:54:08 +09:00
Jean Chalard bde94dd96f Merge "[AD3] Implement the interface to choose a local dictionary" 2013-01-21 07:41:48 +00:00
Tadashi G. Takaoka 9c968b62d1 Move gesture related XML attribute to MainKeyboardView
Change-Id: Ia12f73a3d7d26596ee14a0aff23244ef72753d68
2013-01-21 16:16:48 +09:00
Tadashi G. Takaoka 375982106b Move PointerTracker.DrawingProxy to MainKeyboardView (step 2)
Change-Id: If15d5ee683b8026d1871a3fe438dba498944faa7
2013-01-21 16:09:25 +09:00
Tadashi G. Takaoka 0e4f0da449 Move PointerTracker.DrawingProxy to MainKeyboardView (step 1)
Change-Id: I86014de147416453503b6412eb862a2d172426aa
2013-01-21 16:06:50 +09:00
Jean Chalard fbc5e9b334 [AD3] Implement the interface to choose a local dictionary
Bug: 7702011
Change-Id: Id3b9c58dbbf5097e4d6ce986d20924eae19f9690
2013-01-21 15:40:46 +09:00
Tadashi G. Takaoka d9449ccf3c Move MoreKeysPanel.Controller implementation to MainKeyboardView
Change-Id: Iffa298d51ca21a7dcd1e77c633217532d96d2cf5
2013-01-21 15:28:17 +09:00
Tadashi G. Takaoka b9f219c935 Remove unused Keyboard.purgeKeyboardAndClosing method
Change-Id: Ia09ac04b0edca2a22d64ba83e054b115fe8851a6
2013-01-21 14:26:33 +09:00
Kurt Partridge 80375649d3 [Rlog81b] Log more data with handleSeparator
Change-Id: I4b2ebaa2398ac2f669e1e009e00842e55979e866
2013-01-18 11:51:26 -08:00
Jean Chalard 1d15fe7e51 [AD2] Add a helper method to read an arbitrary dict header
Bug: 7702011
Change-Id: Ib88f6dc222892831ae6932635b65fd2595b16b43
2013-01-18 20:34:28 +09:00
Jean Chalard babc71ee30 Merge "[AD1] Add an option to read an arbitrary dictionary." 2013-01-18 11:30:28 +00:00
Jean Chalard fd80d1ad48 Merge "Deactivate h/w keyboard when not an internal build." 2013-01-18 11:28:24 +00:00
Jean Chalard 2e680c890d Merge "Trigger the set action when pressing hardware enter (C2)" 2013-01-18 11:18:32 +00:00
Jean Chalard 9058bc0df4 [AD1] Add an option to read an arbitrary dictionary.
Bug: 7702011
Change-Id: I76f52dd3fdb22824fc243ab3845ceec610469c81
2013-01-18 20:18:06 +09:00
Jean Chalard 2fc4d422e7 Deactivate h/w keyboard when not an internal build.
The implementation is not really ready yet, so we want to
disable it for normal builds for now.
This goes together with Ic1edc6ed

Bug: 7987492
Change-Id: Id81f417e200c118f24424943823665f0b8bd6849
2013-01-18 20:15:18 +09:00
Jean Chalard b4ac04ae48 Trigger the set action when pressing hardware enter (C2)
Bug: 7969231
Change-Id: I581212093df6f16fa9304e0b3e5b46714a7acdb3
2013-01-18 20:03:38 +09:00
Jean Chalard d5e869ced8 Merge "Track handled events to consistently return handled status (C1)" 2013-01-18 10:49:54 +00:00
Jean Chalard 976a42b873 Track handled events to consistently return handled status (C1)
Bug: 5037589
Change-Id: I92d5be669420f0b2fdeb8fcf85aefd3961bf84b4
2013-01-18 19:32:22 +09:00
Tadashi G. Takaoka 5d894dcfaa Merge "Correct GesturePreviewTrail.getWidth() implementation" 2013-01-18 10:26:05 +00:00
Tadashi G. Takaoka f420e506a0 Merge "Add SeekBarDialogPreference" 2013-01-18 10:25:13 +00:00
Tadashi G. Takaoka 2df0cf2c5a Add SeekBarDialogPreference
This change removes SeekBarDialog class.

Change-Id: I437b1e554a5af264b8031ebe05b8250a831c8d3b
2013-01-18 19:10:55 +09:00
Tadashi G. Takaoka 41afa87a72 Merge "Remove automatic switch back to alphabet feature" 2013-01-18 10:03:02 +00:00
Tadashi G. Takaoka cc2636b4e1 Remove automatic switch back to alphabet feature
Change-Id: I4600c808f2ec31c18d3698a43afa7f4be9407e3e
2013-01-18 18:44:27 +09:00
Tadashi G. Takaoka 9e63ef89e3 Correct GesturePreviewTrail.getWidth() implementation
Bug: 7981153
Change-Id: I20785b7f82329ce6f19c883e77a9716772cda290
2013-01-18 17:55:24 +09:00
Jean Chalard 81a4b7f48e Merge "Fix a bug in gesture after a dash or apostrophe" 2013-01-18 08:39:58 +00:00
Jean Chalard 889a5e1430 Merge "Reset forgotten members (D3)" 2013-01-18 07:46:41 +00:00
Jean Chalard e3ec5fcc88 Fix a bug in gesture after a dash or apostrophe
It would insert a space when it shouldn't when composing a
word ending in either dash or apostrophe and gesturing right
away.

Bug: 7889078
Change-Id: Ib3e2f6f5e551888cc081b464a641e2deac6f5ef7
2013-01-18 15:05:34 +09:00
Jean Chalard 5a6b4f953e Merge "Insert into user dict in lower case if auto-caps (D2)" 2013-01-18 05:39:18 +00:00
Kurt Partridge 345ef67627 [Rlog78a] Annotate logUnits with corrections
If the user makes a correction to a word, this is now explicitly indicated
in the logUnit.

Change-Id: I8638aadd7b8c8e32bbc9c4b020548d786513d887
2013-01-17 14:05:02 -08:00
Kurt Partridge e6a9655a03 Merge "Consolidate SuggestedWords.getWordInfo and .getInfo" 2013-01-17 22:01:26 +00:00
Kurt Partridge 937877b877 Merge "[Rlog14] Increase feedback buffer to cover whole session" 2013-01-17 21:21:49 +00:00
Kurt Partridge 63ed9abbe8 Merge "[Rlog13] ResearchLogger fix feedback" 2013-01-17 19:56:25 +00:00
Kurt Partridge f881f10e90 Merge "Fix commit partial text logStatement" 2013-01-17 19:15:32 +00:00
Kurt Partridge 34ecd12a05 Merge "Add comment" 2013-01-17 17:50:42 +00:00
Kurt Partridge b5ac8ef586 Consolidate SuggestedWords.getWordInfo and .getInfo
Change-Id: I959cf049f550b7be3ec002281ca7457e566b0214
2013-01-17 07:50:15 -08:00
Kurt Partridge 5213559e0e Fix commit partial text logStatement
- No longer suggests that it is called from a non-existent method
  in RichInputConnection

Change-Id: I25fe4a0f232a4320ca113598bbcdd029ca319944
2013-01-17 07:46:06 -08:00
Jean Chalard 8914555776 Reset forgotten members (D3)
Only resetting mCapitalizedMode is enough to fix bug#8013488,
but we may as well correctly reset both fields.

Bug: 8013488
Change-Id: Icb0d7c5b1e93368e8eb7848aa9137b45d5d3531e
2013-01-17 20:39:09 +09:00
Jean Chalard 96845ecff6 Insert into user dict in lower case if auto-caps (D2)
Also recapitalize afterwards if the word has been changed.

Bug: 7972124
Change-Id: I9306580bb4ed0ffa80cc4559ce1abcd2034d1905
2013-01-17 20:38:52 +09:00
Jean Chalard c665cbee7f Merge "Forward the capitalized mode to the positional info (D1)" 2013-01-17 11:02:00 +00:00
Jean Chalard 15ea1d4096 Merge "Simplify the space-before and space-after logic." 2013-01-17 09:07:20 +00:00
Jean Chalard ae3b96b26e Simplify the space-before and space-after logic.
Bug: 7889078
Bug: 7268000
Change-Id: I6c77b8c9e60ef69f02526b407124d2f5d02818ee
2013-01-17 17:52:46 +09:00
Tadashi G. Takaoka 40c59727cf Merge "Add default button to vibration/volume settings dialog" 2013-01-17 08:41:01 +00:00
Tadashi G. Takaoka 1b1fa7a18b Merge "SeekBarDialog supports neutral and dismiss listener" 2013-01-17 08:27:27 +00:00
Jean Chalard 22959faad4 Merge "Stop relying on the soft keyboard to get the editor action." 2013-01-17 07:16:58 +00:00
Jean Chalard b6b7f5e39e Forward the capitalized mode to the positional info (D1)
Bug: 7972124
Change-Id: I3c74f3b075e698b9e9dd1d2c7b6f173073539063
2013-01-17 14:35:58 +09:00
Kurt Partridge 7f8c096bf2 [Rlog13] ResearchLogger fix feedback
The feedback string was not being inserted in the feedback logs.  Also changed the tag to
"UserFeedback" from "UserTimestamp" to better reflect the data recorded.

Change-Id: Iccf781b25e2573168c36e729419468f5bd73903e
2013-01-16 21:29:51 -08:00
Tadashi G. Takaoka 84ce64f2c0 Fix bounding rectangle of gesture preview trail
Bug: 7917443
Bug: 7987585
Change-Id: I99e6db1fe43d3a9b497e92330a6857e0454c428c
2013-01-16 19:51:01 +09:00
Jean Chalard d818f1e3b6 Stop relying on the soft keyboard to get the editor action.
Bug: 7969231
Change-Id: I9848c63c4c51550b5dc53c981eafa74e7fa95197
2013-01-16 18:22:00 +09:00
Kurt Partridge 14b800d858 [Rlog14] Increase feedback buffer to cover whole session
Change-Id: I55b61d9ca6eecd56181b8d2913f71559555cd89e
2013-01-15 18:34:13 -08:00
Kurt Partridge 9579936bcf [Rlog67] Renaming clarification
ResearchLogger.latinIME_handleSeparator wasn't doing anything really specific to
the separator, so its implementation has been renamed according to its role.

Change-Id: I24e8691c7dc440dd067e96d23e50463683e17cfc
2013-01-15 08:57:52 -08:00
Jean Chalard dcfceaff1b Distinguish action-enter/shift-enter/enter
Bug: 7969231
Change-Id: I75d495ee1ea126da9be4e269ee990ee0a97793c1
2013-01-15 19:12:41 +09:00
Ken Wakasa c995dbcf59 Merge "Remove MAX_WORD_LENGTH_INTERNAL" 2013-01-14 19:46:09 -08:00
Ken Wakasa 5db594abba Remove MAX_WORD_LENGTH_INTERNAL
Change-Id: Ie11ff000675601acff5fbb00e9e9f48eb32c5071
2013-01-15 12:39:08 +09:00
Tadashi G. Takaoka 722eeb144f Fix drawing Arabic diacritics
Bug: 8001868
Change-Id: I0e5aab266bbaad8c68e4a900b8d5572977a0379d
2013-01-15 11:03:15 +09:00
Kurt Partridge 019bcc62b9 Merge "[Rlog68] Logger; make filenames more unique to prevent filesys conflicts" 2013-01-14 10:02:16 -08:00
Kurt Partridge 5b611e184b Merge "[Rlog63] Log whether a manual suggestion is a prediction" 2013-01-14 09:30:12 -08:00
Kurt Partridge 0a292ad883 Add comment
Change-Id: If21222aa678a827c1fcad5cacac0fa20655e4e5e
2013-01-14 09:08:51 -08:00
Kurt Partridge 939e3f3152 Merge "[Rlog59d] Pass separatorString through revertCommit" 2013-01-14 08:59:04 -08:00
Kurt Partridge 67a61fc6be [Rlog68] Logger; make filenames more unique to prevent filesys conflicts
multi-project commit with If6b9f8990d7cdbf570740a81096513698d0e0f4c

Change-Id: I124aed24be0beb4c472869594184ecf003c2fed4
2013-01-14 07:11:42 -08:00
Kurt Partridge 31156c816e [Rlog59d] Pass separatorString through revertCommit
Change-Id: I5ef20476318979f99f543f9300cf6198d18f6244
2013-01-14 07:01:49 -08:00
Kurt Partridge 3e05370d53 Merge "[Rlog59c] More detailed logging of backspace" 2013-01-13 11:13:37 -08:00
Kurt Partridge 916c0a08c6 Merge "[Rlog60] Log if a logUnit is uncommitted" 2013-01-12 12:57:19 -08:00