aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Utils.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-511/+0
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Tidy up Utils class a bitTadashi G. Takaoka2013-05-311-53/+73
| | | | Change-Id: Idc2feb84a902a6cbb7265d1efe06c34e7d63c2c7
* Work around a bug in older DownloadManager versions.Jean Chalard2013-04-251-1/+1
| | | | | | | | | | | | | This adds a number to the extension. Note that for DownloadManager to keep this, the server needs to send it a mime type it does not recognize. Right now, it does not recognize application/json so it's okay, but we'd do well to remove the content/type header from the server to prevent problems. Bug: 8467516 Change-Id: Ic484f66ac3f67c36f59f2c0bcb8c7fdeb6e8590d
* Legal noticeSatoshi Kataoka2013-04-221-0/+15
| | | | | Bug: 8533258 Change-Id: I00e4916f86f29dd476c51a65e8fa5a6c136fd179
* Fix appnameSatoshi Kataoka2013-03-221-0/+20
| | | | | Bug: 6789579 Change-Id: Ic4694e36e0846af95fa8dcdef919be251983b528
* Make some methods visible for testingKurt Partridge2013-03-051-0/+3
| | | | | | | | bug: 8302967 multi-project commit with Icf915abb57ef00840ee93b67a25db42ba51f1c38 Change-Id: I105bda5bdff871508140fb99487dddbf17992790
* Small code cleanupsKen Wakasa2013-01-071-2/+2
| | | | | | Multi-project commit with I249d5fbe Change-Id: Ia28c4e970992aa1299a30e604eaa5d096655c3a5
* Remove a couple Eclipse and Android Lint warningsJean Chalard2012-12-061-5/+10
| | | | Change-Id: I0c29c5d2abcbf80759b996d34b534deb083cd7d3
* Log for geometric inputSatoshi Kataoka2012-09-191-3/+13
| | | | Change-Id: Ia0f0e38086b0be70cf2d04fc6fae48358f16e74f
* Log touch timingSatoshi Kataoka2012-09-181-1/+1
| | | | Change-Id: I45ce16c3194fac6da98486a986d23318347cad3a
* Make utility classes finalTadashi G. Takaoka2012-08-291-10/+4
| | | | Change-Id: Ic4f69b4c8da33c9fca50d6829724179310c2f875
* Merge "Allow Latin IME to cancel smiley-auto-correct consistenly" into ↵Jean Chalard2012-08-291-7/+22
|\ | | | | | | jb-mr1-dev
| * Allow Latin IME to cancel smiley-auto-correct consistenlyJean Chalard2012-08-291-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add ResourceUtilsTadashi G. Takaoka2012-08-291-20/+0
| | | | | | | | Change-Id: Ia198f8d95eae8c007623cd52d73cc1528d22fee9
* | 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 classTadashi G. Takaoka2012-08-291-36/+0
| |/ | | | | | | Change-Id: I4a834549c2ea96ac30d7e2cb692d69af219cab1a
* / Remove unused methods from Utils classTadashi G. Takaoka2012-08-291-10/+0
|/ | | | Change-Id: I209b75f1cca381610f25cd219f35ea62b9762be2
* Remove GCUtils utility classTadashi G. Takaoka2012-08-221-38/+0
| | | | Change-Id: Ia666aeb10c155d69763faf7f01ceca113b9b4653
* Add CollectionUtils class to create generic collection easilyTadashi G. Takaoka2012-08-221-3/+3
| | | | Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
* Cleanup unused import and dead codeTadashi G. Takaoka2012-08-061-1/+0
| | | | Change-Id: Ife877620561d29a8f25602916420741186104617
* Fix Utils.getStackTrace()Tadashi G. Takaoka2012-08-061-1/+1
| | | | Change-Id: Iaf160af32bb77b3ad5929cb5ee8eccd01165bdf6
* Do away with Utils#addAllSuggestions (A14)Jean Chalard2012-06-261-10/+0
| | | | | | It's not used any more. Change-Id: Id9da40fdbf7078f3ac647d1368237d6601f5a2ba
* Change JNI for GestureSatoshi Kataoka2012-06-251-1/+1
| | | | Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088
* Tentatively remove a dependency on WordCallback (A3)Jean Chalard2012-06-211-0/+11
| | | | | | | | Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: Id5a59eaec2aeefa0ba4524420a8e035d383f6545
* Fix an occurrence of nested batch edits.Jean Chalard2012-06-131-2/+8
| | | | | | | | | | 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
* Remove a slew of Eclipse warnings.Jean Chalard2012-06-081-2/+0
| | | | Change-Id: I03236386aea13fbd4fb8eaeee18e0008aa136502
* Remove an unnecessary thread.Ken Wakasa2012-06-031-4/+8
| | | | | | | | | | 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
* Fix NumberFormatExceptionSatoshi Kataoka2012-05-291-2/+2
| | | | | Bug: 6567496 Change-Id: Ib0d9fab8496c8c856b94cce5812a263efbcb724f
* Forget user historysatok2012-05-281-0/+38
| | | | | | Bug: 4192129 Change-Id: Ic98398e5383093a1c24373849eadc48fc4d3626f
* 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