summaryrefslogtreecommitdiff
path: root/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java
Commit message (Collapse)AuthorAgeFilesLines
* Rename LatinKeyboardView to MainKeyboardViewTadashi G. Takaoka2012-07-231-1036/+0
| | | | Change-Id: I8f3123b8d727c7beb72e226f80c17794f89c8b60
* ResearchLog splash screenKurt Partridge2012-07-221-0/+11
| | | | | Bug: 6188932 Change-Id: I1b247ecc26a2dd4f3f1c1b1cd3d928af717ebdd5
* ResearchLog refactorKurt Partridge2012-07-201-1/+1
| | | | | | | | | | - new package: com.android.inputmethod.research multi-project commit with Ic0a5744f3160d13218addd589890623c0d120ffc Bug: 6188932 Change-Id: Icf8d4a40a5725401799be6e209a640d99a5f34c4
* Add gesture input enable settingsTadashi G. Takaoka2012-07-201-5/+2
| | | | | Bug: 6845325 Change-Id: I3165465b0b280e32a9288da16abb75baa67288dc
* Add gesture trail feedback.Tom Ouyang2012-07-201-5/+7
| | | | Change-Id: I32709fac0dec3165678a052aa286e2fb3d90721b
* Make ALPHA_OPAQUE publicKen Wakasa2012-07-201-1/+0
| | | | Change-Id: I904685be07e23292dd95296617a4b64c366f06f2
* Gesture input should be turned off depending on the configurationTadashi G. Takaoka2012-07-191-2/+6
| | | | | | | | | | | | The gesture input will be disabled when * It is AOSP build. * Accessibility mode is on. * The input field is password mode. Bug: 6844755 Bug: 6844763 Bug: 6845011 Change-Id: I74972cc765d15c08059e0c9014f863ffb2a57c6c
* Merge "Remove unnecessary variables"Tadashi G. Takaoka2012-06-261-6/+2
|\
| * Remove unnecessary variablesTadashi G. Takaoka2012-06-261-6/+2
| | | | | | | | | | Bug: 6722052 Change-Id: I92e85b3e49b8f4b228f0cf0994216c5050e0865c
* | Pass MotionEvent to PointerTrackerTadashi G. Takaoka2012-06-261-1/+4
|/ | | | | | This is a one of groundwork to integrate gesture input. Change-Id: I5b75c6978b51df91fdc384a9f6d1d5a5ddc563e2
* Update current key reference in PointerTracker when keyboard is changedTadashi G. Takaoka2012-06-261-6/+13
| | | | | | | | This change also checks that the current key is the same key that started the key repeat, when key repeat timer is fired. Bug: 6722052 Change-Id: Id69880ded3338a5a3cbe7f8bf951f94f2651119c
* Refresh Accessibility key mapping when KeyboardView changes Keyboards.alanv2012-06-051-0/+4
| | | | | Bug: 6609626 Change-Id: I93d764b46e96fe70b61c91a7dcb46945ac8853dd
* Restrict phantom sudden move event hack to specific deviceTadashi G. Takaoka2012-05-301-2/+4
| | | | | Bug: 6571778 Change-Id: I4306af387074d34db68a9bb16ae41debcfc36bfd
* Get rid of heavy IPC call from key drawing codeTadashi G. Takaoka2012-05-241-10/+6
| | | | | Bug: 6541544 Change-Id: I5c7df486ff72714ae09e1dbc21a8adbe3106ce95
* Revert "Make KeyDrawParams and KeyPreviewDrawParams to top level class"Tadashi Takaoka2012-05-181-1/+0
| | | This reverts commit 4c9e6a15d174f85dfd28fbf89341549fbb986acf
* Make KeyDrawParams and KeyPreviewDrawParams to top level classTadashi G. Takaoka2012-05-181-0/+1
| | | | | | | This is a follow up of Ide48c361. Bug: 6509415 Change-Id: Ib45c476924bc4b6b2ca65e0cae91d719109a9cb1
* Set divider icon's alpha value on the flyTadashi G. Takaoka2012-05-161-1/+2
| | | | | Bug: 6183494 Change-Id: I61a0c7617648d9c52e5001b3479afa0ab4913adc
* Implement "lift-to-type" interaction. Fix event text.alanv2012-05-101-1/+1
| | | | | Bug: 6456970 Change-Id: Idd6b84fc7a730a1e78d9c1157e3b5f22e5d49fc4
* Fix calculation of more keys keyboard position based on key previewTadashi G. Takaoka2012-05-091-6/+14
| | | | | Bug: 6135881 Change-Id: Id1c4e2c13d13b474466cb9b42b425aa9f6f9448b
* Enable long-press spacebar on 7 inch tabletTadashi G. Takaoka2012-05-081-30/+22
| | | | | | | | This change also eliminate useless attribute longPressSpaceKeyTimeout of LatinKeyboardView. Bug: 6449356 Change-Id: Ib4dace4b9510c0eb96bdddacf8e0dbaa14fcfbbf
* Fix potential "divided by zero" exceptionTadashi G. Takaoka2012-04-261-44/+35
| | | | | | | | This change also refactors the language name selection to use text x-scale. Bug: 6396854 Change-Id: I31249a85bd042a93d627f40413161aef13617c87
* Fix "no language" subtype name (DO NOT MERGE)Tadashi G. Takaoka2012-04-261-3/+48
| | | | | | | | | | | * Move SubtypeLocale.get{Full,Middle,Short}DisplayName() to LatinLeyboardView and add unit tests (SpacebarTextTests). * Add SubtypeLocale.getSubtypeDisplayName() This is a cherry-pick of I57420c6a from Master. Bug: 6393865 Change-Id: I68748189c17c73984ac4ae05a5a40fb54bf46453
* researchLogger detail on IME sessionsKurt Partridge2012-04-191-0/+3
| | | | | | | | | | | log device type, screen size, etc. also simplification inside ResearchLogger to use exceptions better, and fix ResearchLoggerTests to not change preferences to specify the logfile. multi-project change with Idfd193b16260215cca32886e288f03a0c12b2781 Bug: 6188932 Change-Id: Idd3ca6eb8e8e3934f68234b241c7fd7d0cc3bcd5
* Cleanup InputMethodManagerCompatWrapperTadashi G. Takaoka2012-04-181-4/+5
| | | | Change-Id: Id3b84ee19bb504ed8fbb398e260cc663a5b5ae0d
* Remove useless key event handling methodsTadashi G. Takaoka2012-04-181-4/+0
| | | | Change-Id: I8c42fba79aba643ab7a145e6fd54ef23855a3ad0
* Utilize InputMethodSubtype and additional subtypeTadashi G. Takaoka2012-04-131-10/+8
| | | | | | | * Remove de_QY and fr_CH from supported subtypes * Add de-qwerty and fr-qwertz predefined additional subtypes instead. Change-Id: I49e8ba0299529302f2b91b4d018b07304cdd6897
* Polish fade-in/out animations for the gray-out-while-typing keysTadashi G. Takaoka2012-04-121-8/+8
| | | | | Bug: 6326723 Change-Id: Idb6fa023c497cf1f0f584f496e7e5ae82b1c9f4f
* Don't cancel key typing timer when new keyboard is setTadashi G. Takaoka2012-04-121-6/+1
| | | | | | | This change also fixes some typos. Bug: 6312143 Change-Id: I5d752c05b128a47ed022a4a804b02559eeee6915
* Introduce KeyboardCodesSet.java and remove keycodes.xmlTadashi G. Takaoka2012-04-101-2/+1
| | | | Change-Id: Icfd6d06f47425aa037682d22c895548ba6f047d8
* add more data collection points to ResearchLogger (attempt #2)Kurt Partridge2012-04-091-18/+7
| | | | | | | | | | | | | the new points are all at Log.x() positions; only those appearing directly related to user input were added. multi-project change with I159f5de2 this CL is the same as I618bcd07, which was reverted because of incompatibilities with vendor branches. Bug: 6188932 Change-Id: I999249dceb0c04f5a4ffbfff25caed09d24a2c52
* Revert "add more data collection points to ResearchLogger"Kurt Partridge2012-04-061-7/+18
| | | This reverts commit ac9e87c03ebbcbd70dd051a30ebf98d6baebedfc
* add more data collection points to ResearchLoggerKurt Partridge2012-04-061-18/+7
| | | | | | | | the new points are all at Log.x() positions; only those appearing directly related to user input were added. Bug: 6188932 Change-Id: I618bcd07b22c9efc794745678b073afe1e79a697
* Use "No language (QWERTY)" for language agnostic QWERTY keyboard nameTadashi G. Takaoka2012-04-041-4/+4
| | | | | Bug: 6010147 Change-Id: I401c2e3fcd639c0e1a03e64489a0d792810caa18
* Remove AccessibilityManagerCompatUtils and MorionEventCompatUtilsTadashi G. Takaoka2012-04-031-4/+2
| | | | | Bug: 6129704 Change-Id: Icb7e80588536066c4fe5b4a1afc100a724b43e7b
* Remove the "deprecated" classesKen Wakasa2012-03-301-7/+0
| | | | | bug: 6129704 Change-Id: Ib27f2774444e1f084b19be3fe6f56d25dffa7084
* Optimization: Start making use of ProductionFlag.IS_EXPERIMENTAL for ↵Ken Wakasa2012-03-271-15/+20
| | | | | | | | | | ResearchLogger Move GodMode specific tests to relevant directories as well. This goes along with I9dc4d469 Change-Id: I4a21c53846b26eede346cb1da13e6abbdf9ec27f
* move usability log code to new class (ResearchLogger) and clean apiKurt Partridge2012-03-241-8/+55
| | | | | | | | | | | | This change also undoes the effects of I8694eb9016, which was an initial effort built on Utils.UsabilityStudyLogs. Now Utils operates as it did previously, for backward compatibility, but the ResearchLogger retains the new log format. Coordinated with I274b75c5. Bug: 6188932 Change-Id: I41208bdc6b511f69a010c9fc38a936521beba7d5
* Merge "Use ObjectAnimator"Tadashi G. Takaoka2012-03-221-63/+50
|\
| * Use ObjectAnimatorTadashi G. Takaoka2012-03-221-63/+50
| | | | | | | | | | Bug: 6187069 Change-Id: I7df18b470b7e746da601fab3311fb4b086f40d41
* | log through group level abstractionsKurt Partridge2012-03-221-35/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the groups: - LogGroup.MOTION subfields now deteremined in Utils.writeMotionEvent() rather than in LatinKeyboardView.processMotionEvent() - LogGroup.KEY is now logged throguh LatinIME.onCodeInput() rather than Utils.push(). This catches keys more generally, including modifiers, and records touch positions for everything. Removed now-redundant Utils.writeBackspace() and Utils.writeChar(). - LogGroup.CORRECTION uses Utils.writeCorrection(), and formats instead of leaving this to callers. - LogGroup.STATE_CHANGE uses Utils.writeStateChange(). Optional fields are still left to callers, as this group has more variety. Formats have changed to incorporate new fields. Minor housekeeping: ENABLE_USABILITY_STUDY_LOG constants replaced with variable references, as the logging feature can be changed in Settings and therefore dynamically changes. New log format: 20120322-111203.621+0900 1332382323621 s [onStartInputView] com.socialnmobile.dictapps.notepad.color.note 2131624043 147457 1140850694 20120322-111204.912+0900 1332382324912 m [Down] 2782355 0 243 171 0.5666667 0.895 20120322-111204.975+0900 1332382324975 m [Move] 2782419 0 240 171 0.6 1.17 20120322-111204.983+0900 1332382324983 m [Move] 2782428 0 238 171 0.6 1.1899999 20120322-111204.992+0900 1332382324992 m [Move] 2782437 0 236 171 0.6 1.1899999 20120322-111205.002+0900 1332382325002 m [Move] 2782446 0 232 170 0.6 1.1899999 20120322-111205.012+0900 1332382325012 m [Move] 2782456 0 227 169 0.6 1.125 20120322-111205.021+0900 1332382325021 m [Move] 2782465 0 224 168 0.6 1.125 20120322-111205.031+0900 1332382325031 m [Move] 2782475 0 221 167 0.6 0.895 20120322-111205.040+0900 1332382325040 m [Move] 2782483 0 213 164 0.6 0.58 20120322-111205.047+0900 1332382325047 m [Up] 2782491 0 213 164 0.6 0.58 20120322-111205.052+0900 1332382325052 k 'D' 243 171 20120322-111205.228+0900 1332382325228 m [Down] 2782622 0 171 71 0.6333334 1.275 20120322-111205.243+0900 1332382325243 m [Move] 2782677 0 178 69 0.6333334 1.275 20120322-111205.325+0900 1332382325325 m [Up] 2782750 0 178 69 0.6333334 1.275 20120322-111205.333+0900 1332382325333 k 'e' 171 71 20120322-111205.509+0900 1332382325509 m [Down] 2782936 0 265 139 0.53333336 0.885 20120322-111205.512+0900 1332382325512 m [Move] 2782954 0 265 141 0.53333336 1.04 20120322-111205.552+0900 1332382325552 m [Move] 2782973 0 265 143 0.5666667 1.14 20120322-111205.663+0900 1332382325663 m [Up] 2783102 0 265 143 0.5666667 1.14 20120322-111205.668+0900 1332382325668 k 'f' 265 139 20120322-111206.140+0900 1332382326140 m [Down] 2783584 0 348 352 0.53333336 0.675 20120322-111206.206+0900 1332382326206 m [Move] 2783648 0 348 354 0.5666667 0.73499995 20120322-111206.223+0900 1332382326223 m [Move] 2783666 0 348 356 0.5666667 0.545 20120322-111206.232+0900 1332382326232 m [Up] 2783674 0 348 356 0.5666667 0.545 20120322-111206.236+0900 1332382326236 k ' ' 348 352 20120322-111206.245+0900 1332382326245 c [----] Def -1 Bug: 6188932 Change-Id: Iea46a0c683f858b72005b8e81191ef1d70262dca
* | Add additional structure to output logs to group entries by optional fields.Kurt Partridge2012-03-211-4/+6
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new format has time, time as int, and the new logGroup code (m=motionEvent, k=key, s=statechange, c=correction) followed by additional text whose format depends on the logGroup code. The additional text will be cleaned up in later CL's. 20120321-170548.067+0900 1332317148067 m [Down]143116235,0,691,378,0.40000004,0.435 20120321-170548.133+0900 1332317148133 m [Up]143116302,0,691,378,0.40000004,0.435 20120321-170548.146+0900 1332317148146 k <enter> 691 378 20120321-170602.485+0900 1332317162485 s [onStartInputView]com.socialnmobile.dictapps.notepad.color.note,2131624043,147457,1140850694 20120321-170606.508+0900 1332317166508 m [Down]143134679,0,40,154,0.4666667,0.64 20120321-170606.567+0900 1332317166567 m [Move]143134723,0,42,154,0.4666667,0.765 20120321-170606.577+0900 1332317166577 m [Move]143134746,0,44,154,0.4666667,0.775 20120321-170606.652+0900 1332317166652 m [Up]143134824,0,44,154,0.4666667,0.775 20120321-170606.662+0900 1332317166662 k A 40 154 20120321-170607.200+0900 1332317167200 m [Down]143135372,0,411,390,0.53333336,0.585 20120321-170607.311+0900 1332317167311 m [Up]143135483,0,411,390,0.53333336,0.585 20120321-170607.313+0900 1332317167313 c [----]A Bug: 6188932 Change-Id: I8694eb9016d8cf0389ef582f6c7d2820aa4d2c92
* Cleanup proximity related codesatok2012-03-191-1/+0
| | | | | Bug: 4343280 Change-Id: I57c0f9e20d9d8911009ea97057251a7f7a81512f
* Don't reset animation alpha value when keyboard is setTadashi G. Takaoka2012-03-161-47/+25
| | | | | | | | | | | | | | | The keys' blinking that mentioned in the bug is caused by switching keyboard layout resets the animation's alpha value to opaque but the animation is still running and changing the alpha value asynchronously. I think that switching keyboard layout between alphabet and symbols doesn't imply that the user stops typing. So the keyboard view should continue typing state timer to keep animations' alpha values changing and never reset the value. Bug: 6174273 Change-Id: Id795feaf44750358f30c1b3dc8e783a7e62aefe8
* Disabled key should respond if it is in the altCodeWhileTyping stateTadashi G. Takaoka2012-03-141-1/+1
| | | | | Bug: 6128215 Change-Id: I81e9980f8ffa5c5eaba30676c8433f542645de1d
* Gray out "alt-code-while-typing" key icon while typingTadashi G. Takaoka2012-03-141-13/+99
| | | | | Bug: 6128215 Change-Id: Ie9c13d9d38aad6e92cc465e22f3ef20c80e0a36a
* Use XML animator definitionTadashi G. Takaoka2012-03-141-29/+38
| | | | Change-Id: Ic2f6d3f8fdd2c0b0a00f004f49f95b00d474ee4b
* Use integer alpha value instead of factor for animationTadashi G. Takaoka2012-03-131-21/+17
| | | | Change-Id: I3099a7625e0176a1d2be42e58d6eb5fa95797bcb
* Move language on spacebar parameters to LatinKeyboardView attributesTadashi G. Takaoka2012-03-131-23/+24
| | | | Change-Id: I06e5d7d158a9b14b00df34e68b12cd012faf17d1
* Use Animator to draw language name on spacebarTadashi G. Takaoka2012-03-131-2/+41
| | | | | | | Note that Animator class exists in framework only on Honeycomb or later. Change-Id: Ie3392dbf8acc1547ebb2d16e04086c911d961aed
* Split Utils class to StringUtils, SubtypeUtils, and JniUtilsTadashi G. Takaoka2012-03-081-5/+8
| | | | Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144