aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Utils.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Make utility classes final•••Change-Id: Ic4f69b4c8da33c9fca50d6829724179310c2f875 Tadashi G. Takaoka2012-08-291-10/+4
* Merge "Allow Latin IME to cancel smiley-auto-correct consistenly" into jb-mr1...Jean Chalard2012-08-291-7/+22
|\
| * Allow Latin IME to cancel smiley-auto-correct consistenly•••This change makes Latin IME behave consistently with regards to other auto-correction cancellations in cases of auto-correction cancellation after smiley-triggered auto-correction. That is, pressing the smiley key when the keyboard signals it's about to auto-correct will get the auto-correction there plus a smiley, and pressing backspace will cancel the auto-correction, and pressing backspace again will delete the smiley. Bug: 7067593 Change-Id: Ia7eef70a5d06b8b9afa1f1fbb0ed1dbc21a3059f Jean Chalard2012-08-291-7/+22
* | Add ResourceUtils•••Change-Id: Ia198f8d95eae8c007623cd52d73cc1528d22fee9 Tadashi G. Takaoka2012-08-291-20/+0
* | Merge "Move some methods from Utils to LocaleUtils class" into jb-mr1-devTadashi G. Takaoka2012-08-291-36/+0
|\ \
| * | Move some methods from Utils to LocaleUtils class•••Change-Id: I4a834549c2ea96ac30d7e2cb692d69af219cab1a Tadashi G. Takaoka2012-08-291-36/+0
| |/
* / Remove unused methods from Utils class•••Change-Id: I209b75f1cca381610f25cd219f35ea62b9762be2 Tadashi G. Takaoka2012-08-291-10/+0
|/
* Remove GCUtils utility class•••Change-Id: Ia666aeb10c155d69763faf7f01ceca113b9b4653 Tadashi G. Takaoka2012-08-221-38/+0
* Add CollectionUtils class to create generic collection easily•••Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89 Tadashi G. Takaoka2012-08-221-3/+3
* Cleanup unused import and dead code•••Change-Id: Ife877620561d29a8f25602916420741186104617 Tadashi G. Takaoka2012-08-061-1/+0
* Fix Utils.getStackTrace()•••Change-Id: Iaf160af32bb77b3ad5929cb5ee8eccd01165bdf6 Tadashi G. Takaoka2012-08-061-1/+1
* Do away with Utils#addAllSuggestions (A14)•••It's not used any more. Change-Id: Id9da40fdbf7078f3ac647d1368237d6601f5a2ba Jean Chalard2012-06-261-10/+0
* Change JNI for Gesture•••Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088 Satoshi Kataoka2012-06-251-1/+1
* Tentatively remove a dependency on WordCallback (A3)•••Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: Id5a59eaec2aeefa0ba4524420a8e035d383f6545 Jean Chalard2012-06-211-0/+11
* Fix an occurrence of nested batch edits.•••This is harmless, but against policy. Also, rework the checking code to be more readable, give more information, and be called for all relevant methods - and not for informative methods, which are not required to be in a batch edit. Change-Id: I03fa8b2e7d68a6a133f86be8a214671750c29256 Jean Chalard2012-06-131-2/+8
* Remove a slew of Eclipse warnings.•••Change-Id: I03236386aea13fbd4fb8eaeee18e0008aa136502 Jean Chalard2012-06-081-2/+0
* Remove an unnecessary thread.•••bug: 6584677 While looking at bug 6584677, we found that LatinIME always spawns an unnecessary thread for Usability Study Mode. We don't assume this change will address the root cause of the bug, but we'd like to remove any suspicious noises in bugreports. Change-Id: Ie47d104f6cd77ec2ad164f13b4212cb4a70bcf1d Ken Wakasa2012-06-031-4/+8
* Fix NumberFormatException•••Bug: 6567496 Change-Id: Ib0d9fab8496c8c856b94cce5812a263efbcb724f Satoshi Kataoka2012-05-291-2/+2
* Forget user history•••Bug: 4192129 Change-Id: Ic98398e5383093a1c24373849eadc48fc4d3626f satok2012-05-281-0/+38
* 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