aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-03-26add tests for ResearchLoggerKurt Partridge1-7/+9
Bug: 6188932 Change-Id: Icf407f9d145d2b25b70d5d7bc30ee3d64561620c
2012-03-26Split a method for reuseJean Chalard1-1/+5
Change-Id: I9a82e538903f05bedad51bc195866abbd9daf957
2012-03-26Add missing ZWNJ icon for tabletsTadashi G. Takaoka2-0/+2
Follow up to I7238f41c. Bug: 5456620 Change-Id: I3492b38102ecc5af7fc8cddedff1f0319672e3fe
2012-03-26Add ZWNJ and ZWJ iconsTadashi G. Takaoka14-11/+33
Bug: 5456620 Change-Id: I7238f41c841803746ca2ab6cd332b2be8498a3ee
2012-03-26Fix Thai KeyboardTadashi G. Takaoka2-5/+7
Bug: 6070772 Change-Id: I0bda4032825cb8bac17d9f800346a77f6903fd30
2012-03-24update ResearchLogger times to report SystemClock.uptime()Kurt Partridge1-1/+3
Bug: 6188932 Change-Id: I852537caed46958e4d9c3251664edaa69652205c
2012-03-24move usability log code to new class (ResearchLogger) and clean apiKurt Partridge4-73/+379
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
2012-03-24Change the first character check in bigram dictionary to be case insensitive.Tom Ouyang1-1/+2
Bug: 6188977 Change-Id: I121c1abf245c7f8734730810c07d3351b1ec581a
2012-03-23Fix a native crashJean Chalard2-2/+12
-1 & 0xFFFF is 65536 :p Change-Id: I8ecb882b6d6c5bcc91b52e23eb9cc02b04fcdd34
2012-03-23Remove verbose debug messageTadashi G. Takaoka1-4/+0
Change-Id: I05bfe24228a6fbe806987d2a0d81e59611c3b476
2012-03-23Add support for updating and adding bigrams to existing nodes.Tom Ouyang1-29/+128
Bug: 6188977 Change-Id: I48aca8ba199247d73395ab13b9d1976f4e739208
2012-03-23Correct a shaky processing and move it to a better placeJean Chalard2-14/+9
The old code would remove caps from the first letter if auto-capsed but that makes very little sense when the word is camel-cased. Also, it would not correctly handle surrogate pairs, and would require a direct reference to LatinIME and a specific method to do the processing in an unexpected place. Change-Id: I416d6a805242788a2473f007ca7452c9fe3f5205
2012-03-23Optimization and typo fixJean Chalard2-6/+5
Change-Id: Iafa414b8bcf2cca4569b3753bfac58f301a72269
2012-03-23Convert dimension unit "in" and "mm" to "dp"Tadashi G. Takaoka8-44/+41
Bug: 6183561 Change-Id: I06d74705fd49566684815853b8f2df7b5a9f9d7e
2012-03-23Override the keyboard height per deviceTadashi G. Takaoka14-25/+213
Bug: 6183561 Change-Id: I7432552fbe41212e8f412962b16877a2af07eb9c
2012-03-23Fix build breakagesatok1-1/+1
Change-Id: Ic4d3cf6932dcd57c1040c7877ab7c7f48cd6c408
2012-03-23Smaller gap for Thai 5 rows keyboardTadashi G. Takaoka11-2/+148
Change-Id: Ib7239a3d06db7154fb0fb506fcc64805c18a6787
2012-03-23Fix a bug with negative coordinates, step 3Jean Chalard1-2/+2
This implements the actual change, now that indentation is okay Change-Id: Idd897f988394125611516431711c1e575df871df
2012-03-23Fix a bug with negative coordinates, step 2Jean Chalard1-5/+5
Indentation changes only Change-Id: I95011e7d3f787ae6749b826af627f9acaed34e97
2012-03-23Fix a bug with negative coordinates, step 1Jean Chalard1-37/+39
This breaks style guidelines but for some reason git diff gets so lost on this re-indent that it's better to do it like this Change-Id: Ie0a603eb0739704894a5adc25f9d527b37bdf151
2012-03-23Cleanup jni 1satok6-33/+26
Change-Id: Ieb6af8385356e259720b50f1fe46a694a098b30f
2012-03-23Stop creating useless objectsJean Chalard1-15/+3
Man that was bad, it's heavy, it's called quite often, and it's totally useless Change-Id: Ia7e23e0e60ff4a929b226f3f4ccabedbc3ea2c06
2012-03-23Fix a typoJean Chalard2-4/+4
Change-Id: If794344629e93b558d60b023ae70b703f9c039ab
2012-03-23Small optimizationJean Chalard1-4/+3
Change-Id: I5dd7c848f2aaec20325e7ee85f27e282e1ba7a85
2012-03-23Add processing for French ligatures.Jean Chalard5-1/+43
Bug: 5140033 Change-Id: I1c2751fc617e662aad9f67506e28a622f81d0bc9
2012-03-23Support Thai KeyboardTadashi G. Takaoka21-0/+1335
Bug: 6070772 Change-Id: Ib7078d062801e17db500f0cd0b4b53d5433b75d1
2012-03-23Add a missing comparison in Word.equals()Ken Wakasa1-0/+1
Follow up to I94e2e29c bug: 6209651 Change-Id: Iff2daca8c2678e2d1796f98d6db738f109e3d03f
2012-03-23Separate input logic tests in several categories.Jean Chalard4-246/+312
The intent is to make things easier to read. Change-Id: Ida95ac8bd4119a2497d3e2a4d92485a96316962d
2012-03-23Split input logic tests to make creating new tests easierJean Chalard2-217/+236
This will allow easier reuse of the complicated set up code and the various helper methods. Change-Id: I864eb0da476cbf0fe087ddb1713af80d3c3eb850
2012-03-23Add missing Word.hashCode()Ken Wakasa4-31/+66
Some cleanups too. bug: 6209651 Change-Id: I94e2e29c92e90e554e4952d277d590e093766c4f
2012-03-23Send correct coordinates for the spell checkerJean Chalard5-36/+34
This results in the computation being done in native code and the correct proximity being used. Bug: 6181080 Change-Id: I08fa05c781d607e4feca2caeda353ec19c133a3d
2012-03-22Don't rely on spell checker proximity in testsJean Chalard2-1/+12
This fixes the input logic tests that were broken and suppresses their dependency upon the spell checker proximity. Instead, it gets the Keyboard instance from Latin IME and uses the actual coordinates, which results in a test run closer to what actually happens during typing. Change-Id: I3a81d249ee7fb3ac6ae6940aa2e8b2421e829e5c
2012-03-22Fix shift locked keyboard layouts of caseless scriptsTadashi G. Takaoka6-6/+6
The scripts/languages such as Georgian, Hndi have no notion of case. In such scripts/language, shift locked keyboard should be the same of manually shifted keyboard. Change-Id: Iadea3a332674a52188de7f1566727e4b56dced8c
2012-03-22Make some constants more explicit.Jean Chalard2-4/+21
This wasn't very obvious, but the actual values are critical, so make it more readable Bug: 6181080 Change-Id: I07461d2df4c796dad0cb6f5283e41a28036d023c
2012-03-22Use ObjectAnimatorTadashi G. Takaoka8-67/+68
Bug: 6187069 Change-Id: I7df18b470b7e746da601fab3311fb4b086f40d41
2012-03-22log through group level abstractionsKurt Partridge3-57/+64
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
2012-03-22Revive the Makefile for makedictKen Wakasa2-22/+19
Follow up to I4d2ef504. Address a compiler warning and a small optimization as well. bug: 6188977 bug: 6209651 Change-Id: Ibc9da51d48ebf0b8815ad0bb2f697242970ba8f7
2012-03-22Add a replacement character to digraphs systemJean Chalard2-12/+24
The digraphs system used to allow only the replacement of a pair (A, B) by (A). This change allows the replacement to be any character. Bug: 5140033 Change-Id: Icf5995f0ec553f7b7989af9902cbb2c4c6b51009
2012-03-21Import translations. DO NOT MERGEEric Fischer38-223/+112
Change-Id: Iea3ffbd477e54bbccd65266ce4e070efb7a8c3fc
2012-03-21Refactor key drawing code in KeyboardViewTadashi G. Takaoka5-37/+31
Change-Id: Ic7af05caee32eb6cba68d27ba4e2d9072472b34d
2012-03-21Add additional structure to output logs to group entries by optional fields.Kurt Partridge2-9/+29
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
2012-03-21Move makedict to LatinIME android keyboard.Tom Ouyang9-33/+12
Bug: 6188977 Change-Id: I4d2ef504bb983abbda3cb52ee450cb46f58d95cf
2012-03-21Use "dp" instead of "dip"Tadashi G. Takaoka14-79/+79
Change-Id: Iaab1032a0ce0f97742288e76221433ef400e4b4f
2012-03-21Use "dp" instead of "sp"Tadashi G. Takaoka8-12/+7
Change-Id: I772d117d88eb7361d8695c4d97c051f0c7397df8
2012-03-21Refactor to memorize device dependent override parametersTadashi G. Takaoka4-35/+34
Change-Id: I79482a8ef3846525669979a30dec183ea18138b5
2012-03-21Generalize the digraph codeJean Chalard3-19/+27
Bug: 5140033 Change-Id: I19c8c89f79f7c1ce1fba58d50bc2697747052599
2012-03-21Correctly close the gzip streamJean Chalard1-2/+2
I had gotten the chain call in reverse. Bug: 6177523 Change-Id: Ic5b76425de2d5d05d5132f8d2c7ade0d79c14ccc
2012-03-21Fix a bug where the returned number of bigrams was incorrectJean Chalard1-2/+3
Bug: 6191885 Change-Id: I1daa4d2eaeec5f5c1a4eef79221fd7de357763e9
2012-03-21Strengthen java code against bad returns from nativeJean Chalard1-0/+3
This doesn't really fix the following bug but it may alleviate the symptoms Bug: 6191885 Change-Id: I0de3f550cc7c6cdf79b291399785ad31b205d2ac
2012-03-20Updated logger to record touch position within backspace key events.Kurt Partridge3-4/+4
Bug: 6188932 Change-Id: Ida2aff618153792f9803f30f1251d67c89af1fe0