aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Utils.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make Utils.getDeviceOverrideValue aware of device orientationTadashi G. Takaoka2012-04-161-3/+4
| | | | | Bug: 6277225 Change-Id: If41fe5cbee0985b9a4740dcd5d1c6ba73b94b377
* Put a misspelled flag if the word is not valid by the same logic of Android ↵satok2012-03-271-4/+0
| | | | | | | | | | spell checker. Bug: 6222722 Currently, the flags of the suggestion span from the Latin IME is different from the flags from Android spell checker. Change-Id: I2f7a54ae0d63235a0b94e039109ab8b2f1311055
* move usability log code to new class (ResearchLogger) and clean apiKurt Partridge2012-03-241-63/+19
| | | | | | | | | | | | 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 "log through group level abstractions"Kurt Partridge2012-03-211-22/+48
|\
| * log through group level abstractionsKurt Partridge2012-03-221-22/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add additional structure to output logs to group entries by optional ↵Kurt Partridge2012-03-211-5/+23
|\| | | | | | | fields."
| * Add additional structure to output logs to group entries by optional fields.Kurt Partridge2012-03-211-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Refactor to memorize device dependent override parameters"Tadashi G. Takaoka2012-03-211-0/+22
|\ \ | |/ |/|
| * Refactor to memorize device dependent override parametersTadashi G. Takaoka2012-03-211-0/+22
| | | | | | | | Change-Id: I79482a8ef3846525669979a30dec183ea18138b5
* | Updated logger to record touch position within backspace key events.Kurt Partridge2012-03-201-2/+2
|/ | | | | Bug: 6188932 Change-Id: Ida2aff618153792f9803f30f1251d67c89af1fe0
* De-duplicate a methodJean Chalard2012-03-151-0/+11
| | | | Change-Id: Ia1c80eeff00a55573bb311f07e1275da23bdcf98
* Split Utils class to StringUtils, SubtypeUtils, and JniUtilsTadashi G. Takaoka2012-03-081-397/+1
| | | | Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144
* Add language switch key only to the phone layoutsTadashi G. Takaoka2012-03-071-1/+38
| | | | | Bug: 5759092 Change-Id: Ic7d7d4812976654c0e85fecabd1128eadfc52c5c
* Make SuggestedWords immutable completelyTadashi G. Takaoka2012-03-051-7/+13
| | | | Change-Id: I1b0f7b857e89307c987187c1969a2846aa97fdcc
* Revert "Make SuggestedWords immutable"Tadashi Takaoka2012-03-051-2/+2
| | | This reverts commit c208f4dfb7abe1b7a83c725d515edb3615d5d927
* Make SuggestedWords immutableTadashi G. Takaoka2012-03-051-2/+2
| | | | Change-Id: I26bd82aee5ead84e40abfc3db5a48ed6d1e42361
* Move a method to a more sensical place.Jean Chalard2012-03-051-5/+0
| | | | Change-Id: I11f87448f689cf828bff960ad7a3e4739a3457dc
* Merge "Omit InputMethodManagerCompatWrapper argument from some utility methods"Tadashi G. Takaoka2012-03-041-4/+8
|\
| * Omit InputMethodManagerCompatWrapper argument from some utility methodsTadashi G. Takaoka2012-03-051-4/+8
| | | | | | | | Change-Id: Ic837018c702c8c575de3e5e81fe8e31fee16fe22
* | Some renamingJean Chalard2012-03-021-1/+1
|/ | | | Change-Id: I445277cb3af469a0145a8da0ffb801b7e19048cd
* Revert "Make a member read-only"Jean Chalard2012-03-021-1/+1
| | | This reverts commit 6a43e39bf077bcb706be5e5a84056a3f62580ad7
* Make a member read-onlyJean Chalard2012-03-021-1/+1
| | | | Change-Id: I9a718eaf07e1b6c659e649350d3605f365db2839
* Support time, date, and datetime keyboardTadashi G. Takaoka2012-03-021-1/+9
| | | | | Bug: 6030364 Change-Id: I2bd4daf264757d8f3fa7c946d10a39c36ccf5905
* Give LastComposedWord knowledge of the separator (A2)Jean Chalard2012-02-211-2/+4
| | | | | | | | | | This stores the separator that was used to commit the word in the LastComposedWord. It may be NOT_A_SEPARATOR if there was no separator (for example, the cursor moved causing a commit, or there was a manual pick). This is necessary to implement feature request #5968922. Change-Id: I5fcf19a78ec66d68d4df89418eaef13952588207
* Move CSV parser to KeySpecParserTadashi G. Takaoka2012-02-021-127/+0
| | | | Change-Id: I424fb47bc70e9b6aaa5a16ae9b2500d23da75c26
* Make KeySpecParser and CSV parser code point awareTadashi G. Takaoka2012-02-021-5/+18
| | | | | | This change also renames MoreKeySpecParser to KeySpecParser Change-Id: I35733cdbb344f16b57ffa2cfe79055c089b4e409
* Use MoreKeySpecParser to parse puctuations strip resourcesTadashi G. Takaoka2012-02-011-0/+55
| | | | | | | | | | | This change also * Doesn't use Key.getRtlParenthesisCode to get correct parentheses code in RTL context. Intead uses the outputText feature of moreKeys specification. * Move CVS string parser from KeyStyles to Utils. Bug: 5948247 Change-Id: I45752c7d01b4f7d3f3da900b110a2185b336a1f0
* Add "size" and "pressure" for MotionEvent logsKen Wakasa2012-01-301-1/+1
| | | | | bug: 5722703 Change-Id: I8e08942324b666de96682ce63e70c8d324535782
* Support @string reference in moreKeys attributeTadashi G. Takaoka2012-01-201-0/+55
| | | | Change-Id: If0056d0601149d2ddd0e231a81e7b2409b37fc06
* Move MoreKeySpecParser.getResourceId to UtilsTadashi G. Takaoka2012-01-201-8/+17
| | | | Change-Id: I0640dbe76a8ff2dc45b504eca631942811571736
* Fix a bug in the logic to show 3 dots of the ime switchersatok2012-01-131-4/+15
| | | | | Bug: 5806103 Change-Id: I67b3f0bb25d5fb9cfb902c03f41ae3e582107187
* Move auto correction thresthold to the native codesatok2012-01-121-93/+2
| | | | | | bug: 5858137 Change-Id: Ic4b6270c6e51ef4ed25a6a1d8ddd7fdfa70fd78d
* Merge "Fix auto correction spacebar LED"Tadashi G. Takaoka2011-12-151-1/+2
|\
| * Fix auto correction spacebar LEDTadashi G. Takaoka2011-12-151-1/+2
| | | | | | | | Change-Id: I4894d188d5612380cc9f8eec7cb72544e37fb2b0
* | Change visibility to avoid synthetic accessor methodTadashi G. Takaoka2011-12-151-6/+6
|/ | | | Change-Id: Ie93c7437fb9a3fe63adaa48c2d4a723f96c0a0e1
* Extract the jni library namesatok2011-12-131-2/+7
| | | | Change-Id: Icc58ccea1178d9f35f5be0dceebab67bbb965b7f
* Remove side-effects from TextEntryStateJean Chalard2011-12-121-0/+24
| | | | Change-Id: Ib98eea9e791e426435cfdfd0c9ab3ed9061664aa
* Some tweaks for Researcher ModeKen Wakasa2011-12-101-3/+8
| | | | Change-Id: I6b16dd2fe6d7356c747ba0ee2da5976738003ded
* Add a functionality to attach a log file to Gmail appsatok2011-12-091-27/+85
| | | | | | Bug: 5722703 Change-Id: I089f944bdbf2cbb036eb59dd9b5b414370c770f1
* Move settings method from Utils to SettingsValuesJean Chalard2011-12-091-34/+0
| | | | Change-Id: I633378a41f63cd492b8c9345d550e07254df5e5a
* Make some private method staticTadashi G. Takaoka2011-10-281-2/+2
| | | | Change-Id: Ia23765268be0ef89d7fe7c3f5372ed32d6615765
* am 605a6fea: Merge "Fix the safety net Bug: 5453150" into ics-mr0satok2011-10-121-5/+9
|\ | | | | | | | | * commit '605a6fea750c4acc96a5136ecaf7162e0a858b9f': Fix the safety net Bug: 5453150
| * Fix the safety netsatok2011-10-131-5/+9
| | | | | | | | | | | | Bug: 5453150 Change-Id: I5990feb2622738988bf29843c6bcdb9cbf8bbf33
* | Add a settings to change the sound effect volumesatok2011-10-111-1/+17
|/ | | | | | Bug: 5345401 Bug: 5402541 Change-Id: I1e653573a3362160104b77388d6cbd1700424649
* Put SuggestionSpan as the indicater of the auto-correctionsatok2011-10-101-0/+4
| | | | | | Bug: 5245468 Change-Id: Ia5609e1b3c69f5553e3632fbce60a55665a5b185
* add vibration duration settingssatok2011-09-291-0/+18
| | | | Change-Id: I56a1a94df63160f367f866da759d7dd4fc428ed5
* Have the spell checker honor caseJean Chalard2011-09-121-1/+10
| | | | | Bug: 5281103 Change-Id: I415c84dbb55f1eeb5deb9f248b4056881982ee13
* Rename CandidateView to SuggestionsViewTadashi G. Takaoka2011-09-011-14/+12
| | | | Change-Id: I6480cdf025f065130e1969899b259a243e7a11be
* Move locale-related utility methods to LocaleUtils.Jean Chalard2011-08-291-33/+1
| | | | Change-Id: I7e9e6e5bc4486d8618d0213b112308c3d305c15e
* Move some static methods from SubtypeSwitcher to UtilsTadashi G. Takaoka2011-08-241-0/+28
| | | | Change-Id: I3ea8ffcdefcefaa82ae76a31bb65977009d8a040