aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Utils.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Make Utils.getDeviceOverrideValue aware of device orientation•••Bug: 6277225 Change-Id: If41fe5cbee0985b9a4740dcd5d1c6ba73b94b377 Tadashi G. Takaoka2012-04-161-3/+4
* Put a misspelled flag if the word is not valid by the same logic of Android s...•••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 satok2012-03-271-4/+0
* move usability log code to new class (ResearchLogger) and clean api•••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 Kurt Partridge2012-03-241-63/+19
* Merge "log through group level abstractions"Kurt Partridge2012-03-211-22/+48
|\
| * log through group level abstractions•••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 Kurt Partridge2012-03-221-22/+48
* | Merge "Add additional structure to output logs to group entries by optional f...Kurt Partridge2012-03-211-5/+23
|\|
| * Add additional structure to output logs to group entries by optional fields.•••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 Kurt Partridge2012-03-211-5/+23
* | Merge "Refactor to memorize device dependent override parameters"Tadashi G. Takaoka2012-03-211-0/+22
|\ \ | |/ |/|
| * Refactor to memorize device dependent override parameters•••Change-Id: I79482a8ef3846525669979a30dec183ea18138b5 Tadashi G. Takaoka2012-03-211-0/+22
* | Updated logger to record touch position within backspace key events.•••Bug: 6188932 Change-Id: Ida2aff618153792f9803f30f1251d67c89af1fe0 Kurt Partridge2012-03-201-2/+2
|/
* De-duplicate a method•••Change-Id: Ia1c80eeff00a55573bb311f07e1275da23bdcf98 Jean Chalard2012-03-151-0/+11
* Split Utils class to StringUtils, SubtypeUtils, and JniUtils•••Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144 Tadashi G. Takaoka2012-03-081-397/+1
* Add language switch key only to the phone layouts•••Bug: 5759092 Change-Id: Ic7d7d4812976654c0e85fecabd1128eadfc52c5c Tadashi G. Takaoka2012-03-071-1/+38
* Make SuggestedWords immutable completely•••Change-Id: I1b0f7b857e89307c987187c1969a2846aa97fdcc Tadashi G. Takaoka2012-03-051-7/+13
* Revert "Make SuggestedWords immutable"•••This reverts commit c208f4dfb7abe1b7a83c725d515edb3615d5d927Tadashi Takaoka2012-03-051-2/+2
* Make SuggestedWords immutable•••Change-Id: I26bd82aee5ead84e40abfc3db5a48ed6d1e42361 Tadashi G. Takaoka2012-03-051-2/+2
* Move a method to a more sensical place.•••Change-Id: I11f87448f689cf828bff960ad7a3e4739a3457dc Jean Chalard2012-03-051-5/+0
* Merge "Omit InputMethodManagerCompatWrapper argument from some utility methods"Tadashi G. Takaoka2012-03-041-4/+8
|\
| * Omit InputMethodManagerCompatWrapper argument from some utility methods•••Change-Id: Ic837018c702c8c575de3e5e81fe8e31fee16fe22 Tadashi G. Takaoka2012-03-051-4/+8
* | Some renaming•••Change-Id: I445277cb3af469a0145a8da0ffb801b7e19048cd Jean Chalard2012-03-021-1/+1
|/
* Revert "Make a member read-only"•••This reverts commit 6a43e39bf077bcb706be5e5a84056a3f62580ad7Jean Chalard2012-03-021-1/+1
* Make a member read-only•••Change-Id: I9a718eaf07e1b6c659e649350d3605f365db2839 Jean Chalard2012-03-021-1/+1
* Support time, date, and datetime keyboard•••Bug: 6030364 Change-Id: I2bd4daf264757d8f3fa7c946d10a39c36ccf5905 Tadashi G. Takaoka2012-03-021-1/+9
* Give LastComposedWord knowledge of the separator (A2)•••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 Jean Chalard2012-02-211-2/+4
* Move CSV parser to KeySpecParser•••Change-Id: I424fb47bc70e9b6aaa5a16ae9b2500d23da75c26 Tadashi G. Takaoka2012-02-021-127/+0
* Make KeySpecParser and CSV parser code point aware•••This change also renames MoreKeySpecParser to KeySpecParser Change-Id: I35733cdbb344f16b57ffa2cfe79055c089b4e409 Tadashi G. Takaoka2012-02-021-5/+18
* Use MoreKeySpecParser to parse puctuations strip resources•••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 Tadashi G. Takaoka2012-02-011-0/+55
* Add "size" and "pressure" for MotionEvent logs•••bug: 5722703 Change-Id: I8e08942324b666de96682ce63e70c8d324535782 Ken Wakasa2012-01-301-1/+1
* Support @string reference in moreKeys attribute•••Change-Id: If0056d0601149d2ddd0e231a81e7b2409b37fc06 Tadashi G. Takaoka2012-01-201-0/+55
* Move MoreKeySpecParser.getResourceId to Utils•••Change-Id: I0640dbe76a8ff2dc45b504eca631942811571736 Tadashi G. Takaoka2012-01-201-8/+17
* Fix a bug in the logic to show 3 dots of the ime switcher•••Bug: 5806103 Change-Id: I67b3f0bb25d5fb9cfb902c03f41ae3e582107187 satok2012-01-131-4/+15
* Move auto correction thresthold to the native code•••bug: 5858137 Change-Id: Ic4b6270c6e51ef4ed25a6a1d8ddd7fdfa70fd78d satok2012-01-121-93/+2
* Merge "Fix auto correction spacebar LED"Tadashi G. Takaoka2011-12-151-1/+2
|\
| * Fix auto correction spacebar LED•••Change-Id: I4894d188d5612380cc9f8eec7cb72544e37fb2b0 Tadashi G. Takaoka2011-12-151-1/+2
* | Change visibility to avoid synthetic accessor method•••Change-Id: Ie93c7437fb9a3fe63adaa48c2d4a723f96c0a0e1 Tadashi G. Takaoka2011-12-151-6/+6
|/
* Extract the jni library name•••Change-Id: Icc58ccea1178d9f35f5be0dceebab67bbb965b7f satok2011-12-131-2/+7
* Remove side-effects from TextEntryState•••Change-Id: Ib98eea9e791e426435cfdfd0c9ab3ed9061664aa Jean Chalard2011-12-121-0/+24
* Some tweaks for Researcher Mode•••Change-Id: I6b16dd2fe6d7356c747ba0ee2da5976738003ded Ken Wakasa2011-12-101-3/+8
* Add a functionality to attach a log file to Gmail app•••Bug: 5722703 Change-Id: I089f944bdbf2cbb036eb59dd9b5b414370c770f1 satok2011-12-091-27/+85
* Move settings method from Utils to SettingsValues•••Change-Id: I633378a41f63cd492b8c9345d550e07254df5e5a Jean Chalard2011-12-091-34/+0
* Make some private method static•••Change-Id: Ia23765268be0ef89d7fe7c3f5372ed32d6615765 Tadashi G. Takaoka2011-10-281-2/+2
* am 605a6fea: Merge "Fix the safety net Bug: 5453150" into ics-mr0•••* commit '605a6fea750c4acc96a5136ecaf7162e0a858b9f': Fix the safety net Bug: 5453150 satok2011-10-121-5/+9
|\
| * Fix the safety net•••Bug: 5453150 Change-Id: I5990feb2622738988bf29843c6bcdb9cbf8bbf33 satok2011-10-131-5/+9
* | Add a settings to change the sound effect volume•••Bug: 5345401 Bug: 5402541 Change-Id: I1e653573a3362160104b77388d6cbd1700424649 satok2011-10-111-1/+17
|/
* Put SuggestionSpan as the indicater of the auto-correction•••Bug: 5245468 Change-Id: Ia5609e1b3c69f5553e3632fbce60a55665a5b185 satok2011-10-101-0/+4
* add vibration duration settings•••Change-Id: I56a1a94df63160f367f866da759d7dd4fc428ed5 satok2011-09-291-0/+18
* Have the spell checker honor case•••Bug: 5281103 Change-Id: I415c84dbb55f1eeb5deb9f248b4056881982ee13 Jean Chalard2011-09-121-1/+10
* Rename CandidateView to SuggestionsView•••Change-Id: I6480cdf025f065130e1969899b259a243e7a11be Tadashi G. Takaoka2011-09-011-14/+12
* Move locale-related utility methods to LocaleUtils.•••Change-Id: I7e9e6e5bc4486d8618d0213b112308c3d305c15e Jean Chalard2011-08-291-33/+1
* Move some static methods from SubtypeSwitcher to Utils•••Change-Id: I3ea8ffcdefcefaa82ae76a31bb65977009d8a040 Tadashi G. Takaoka2011-08-241-0/+28