aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-04-15Fix Binary dict testsJean Chalard1-4/+4
There are two problems here. The first one is the tests would send an invalid unicode character. Although we could want dicttool to handle this more gracefully, it's fine for now. The second problem is much more serious. If a node has more than 128 children, then the java code will crash trying to read the dictionary back because of a bug that this change fixes. In theory, it's possible that happens when we try to load the user history dictionary back from the disk - native code is not affected so there is no other point that may cause a problem. In the practice, that means you'd need to have 129 words with a common prefix (including empty string) but all different after this. It's almost impossible with Google Keyboard since there are only so many keys on the keyboard that you can make a word out of, and then again you'd have to do it repeatedly until it actually enters the user history dictionary, wait for it to get saved on the disk. The bad news is, if you manage to get this far, the keyboard will crash every time and won't be able to get up until you clear data for the package. The good news is, the dictionary itself is not corrupted and only the reading code is wrong. So updating to a newer version would actually even recover from this situation. All in all, considering how almost-impossible this is to trigger, I don't think even a single user actually did hit this bug. Bug: 8583091 Change-Id: Iabb2a7f47cbd9ed3193d2a3487318d280753e071
2013-04-12Fix a bug with bad application completionsJean Chalard3-2/+48
Bug: 8561056 Change-Id: I91fb0ac76dabfc841bafc0e2c0ea9f63e6f604f9
2013-04-12Restart suggestions when the cursor moves.Jean Chalard7-15/+103
This uses the old suggestions. It does not try to recompute new suggestions if there are no old suggestions yet: this is coming in a later change. If there are no suggestions, this shows the word itself as a suggestion. Bug: 8084810 Change-Id: I4c2e25df0ff3673be1825f57a0c19a9d23d47a48
2013-04-12Remove voodoo magic.Jean Chalard1-32/+9
There was a much, much simpler way of achieving the same thing. Bug: 8583091 Change-Id: I8882f389312caad3b17335672892a31d30cd00bc
2013-04-12Make shortcut-only user dict entry non-words.Jean Chalard3-6/+8
Bug: 7369456 Change-Id: Iecd6f6d617f31bd2aa6749516711aeb1f0549622
2013-04-12Remove the dialog to insert words to the dictionary.Jean Chalard3-22/+63
Bug: 8562529 Change-Id: Ibd853f0cb995e7fb35f8730eafcef73ead58c869
2013-04-12Fix a native crash in AOSP LatinIMEKen Wakasa1-2/+3
bug: 8597610 Change-Id: I585c629636a52a1ac45b8cc686bc94427bb601df
2013-04-11Add a class to encapsulate getting the metadata URIJean Chalard2-1/+29
Bug: 8376173 Change-Id: Icaac8ad412e0180c44e6a955943e3b208981b2ea
2013-04-11Move some values to a place where they are easier to overrideJean Chalard2-7/+4
Bug: 8418765 Change-Id: Iff0edd4ed8da9d0d1a6fb9545224b232ba374469
2013-04-11Change the default vibration duration to 20msecTadashi G. Takaoka1-2/+6
Bug: 8556975 Change-Id: Ia6a0fe230585c9826199a0696fb0c1367e917134
2013-04-11Add some utility functions.Jean Chalard2-0/+150
Bug: 7657025 Change-Id: I4889721b5348c77ed56c5157557e9988dea48a02
2013-04-11Reorder advanced settings menuTadashi G. Takaoka1-4/+5
Bug: 8247224 Change-Id: I339f285304824b778635f435d8587893fc241c4e
2013-04-11Add debug message to detect unusual zero width conditionTadashi G. Takaoka1-0/+12
Bug: 8452013 Change-Id: I0169dc6b0d08d1b4d9e01a5fa2ad01e9db292bda
2013-04-11Add TypefaceUtilsTadashi G. Takaoka8-128/+178
Change-Id: I2d939bc1e3279253902b28ff12bbf7861716b64d
2013-04-11add a debug flag to evaluate the most probable stringSatoshi Kataoka2-0/+6
Change-Id: I34dc08c14feb9cbc0304c1d0ff06922e3b65819d
2013-04-11More precise geometry checking for more keys keyboardTadashi G. Takaoka1-2/+3
Bug: 8484528 Change-Id: I0dd09530a5262fee9c19bb0f11d5830b00306944
2013-04-10Preserve a class for testingKurt Partridge1-0/+3
Addresses b/8583091 Change-Id: I89605223784312d9572dfc7c8aaa7e5eba44c4f6
2013-04-10Add ability to handle digraphs in gesture and tap typingTom Ouyang2-4/+25
Example: Gesture the German word "ueber" and the system will now replace the transliteration "ue" with the correct u-umlaut. Bug: 8493920 Change-Id: I03e1d6311b4187b6c7f802d8fef43a50eee12721
2013-04-10Add mechanism to handle digraphs in DicNodeTom Ouyang4-21/+114
This is needed to support for German umlaut handling for both gesture and typing input. Bug: 8493920 Change-Id: I292e2a4911c54aa5566c38411016a220bb35a1f4
2013-04-10Import translations. DO NOT MERGEBaligh Uddin4-32/+16
Change-Id: Icb4c4f32b1549f3d98b99a48b7c2f1b0de1b5a04 Auto-generated-cl: translation import
2013-04-10Import translations. DO NOT MERGEBaligh Uddin49-196/+373
Change-Id: Iafc0a5506abef8e709d76ebf4600bacae7dd1e00 Auto-generated-cl: translation import
2013-04-10Better isolate ResearchLogging dataKurt Partridge1-0/+3
Calls to LatinIME#onStartInputViewInternal log important information about the context in which an IME is used. This is reported as a single LogStatement. Previously, this was not placed into a separate LogUnit, and was mixed in with general word data. This change wraps this LogStatement in its own LogUnit. Change-Id: I0fecd41c8a1de622a764cc4b5d6902336697046c
2013-04-10Better release build reportingKurt Partridge1-4/+21
The ResearchLogger reports whether a build is a release build or not to avoid polluting data with IME debugging work by developers. Previously this was done by checking a constant flag, which was also serving the dual purpose of masking out debug code in release builds. This change introduces a heuristic to determine whether a build was created by a developer (using the package versionName), and annotating the data sent to the server appropriately. Change-Id: Icbad17c66b703cabf6d23d05e2c7c41bcceaae45
2013-04-10Fix two bugs in dicttoolJean Chalard1-3/+6
Both bugs only affect debug mode. One has the wrong object tested with equals, the other has the iteration failing in some cases. Change-Id: Ie9100d257a3f9e3be340cf3e38116f63417bdc1a
2013-04-10Fix a bug where a space would not be inserted before a gestureJean Chalard1-1/+2
Bug: 8583675 Change-Id: I14924fef5663f48481994c02c56be45f9f85be65
2013-04-10Use private object as a lock instead of synchronized methodTadashi G. Takaoka1-123/+145
Change-Id: I0b9a935d8c97ddfb18ab7950a9d6bf542863072a
2013-04-10Use private lock object instead of synchronized methodTadashi G. Takaoka1-22/+31
Change-Id: Ifc62bacbd0583a7d102009681a94bdd9ccff7d47
2013-04-10Protect simultaneously modifying gesture preview dataTadashi G. Takaoka1-1/+15
Bug: 8556775 Change-Id: I83272e3adbfc0c9cc14f9e8b479e926aabf4fa2a
2013-04-10Fix a faulty testJean Chalard1-1/+1
Change-Id: I5c03cea41e9b6e936e8f93b7d756f0fc9520002d
2013-04-10Fix a bug where autocorrection status would be wrong.Jean Chalard9-20/+41
Change-Id: Ic220129dc59f585164dbf63591cd1c96de17fe6f
2013-04-10Don't override EXTRA_SHOW_FRAGMENT if existsTadashi G. Takaoka1-1/+4
Bug: 8541190 Change-Id: I37d3de12558efd55f157389d2e0b51fc83dc5da1
2013-04-10Separate StringUtils.capitalizeFirstCharacterTadashi G. Takaoka5-9/+16
Bug: 8582061 Change-Id: Iac8f65defdd92d7df533bdf0e2937ad897d96363
2013-04-09Hide Setup Wizard icon for stock keyboardTadashi G. Takaoka3-1/+34
Bug: 8581647 Change-Id: Id530f1a33a5c919f4a732ec0d545dfbe76e56316
2013-04-10Typing double letters via a 'circle' on the key.Keisuke Kuroynagi4-22/+33
Bug: 8550980 Change-Id: I5e432dea0e025ccea196f80e90a6bf945488e130
2013-04-10Hide Setup Wizard icon for stock keyboardTadashi G. Takaoka3-1/+34
Bug: 8581647 Change-Id: Id530f1a33a5c919f4a732ec0d545dfbe76e56316
2013-04-10Use SparseIntArray instead of TreeMap<Integer, Integer>Tadashi G. Takaoka1-42/+24
Change-Id: I56a64228a5fd85d440d0d08ac67cba8bf2e5690d
2013-04-09Fix touch coordinate calibrationSatoshi Kataoka10-32/+51
TRT: I3b5f3ed07eabc59306a17 Bug: 8505668 Change-Id: I574d25a4e9886c521f013f9a8ffc09cc145fc0fc
2013-04-09Offer to add any OOV typed word to the dictionary.Jean Chalard3-8/+14
That includes gestures, which used not to work. Bug: 8532637 Change-Id: I04606565d7000faadf954c4a806c39d4d162a2c1
2013-04-08Add method to get dictionary flags from DicTraverseSessionTom Ouyang6-6/+17
This is needed for the traversal algorithm to know which digraphs (if any) are associated with the current dictionary. Bug: 8493920 Change-Id: I6ae088b55e50c0c2c7066d045b304c5068e23390
2013-04-08Import translations. DO NOT MERGEBaligh Uddin49-196/+389
Change-Id: I3605a7fd941d9ebe76460d114f384b1e233b3440 Auto-generated-cl: translation import
2013-04-08Update commentsKen Wakasa2-4/+4
Change-Id: I6aef328ec9041666cc168c8323bed04d39591b71
2013-04-08Tiny clean up in MakefileKen Wakasa1-5/+2
Change-Id: Iff6f363894f01a4c30c795fe88892c2bb8e0a856
2013-04-08Cleanup the include pathsKen Wakasa20-61/+69
Change-Id: Ic93d39e230170cfc9f5be6d81d42006e1a61e347
2013-04-08Suppress bigram native logSatoshi Kataoka1-3/+3
Change-Id: I0b3900e0a205b6925ab9a2be55d375f6b14c803c
2013-04-08Cleanup suggest interfaceSatoshi Kataoka9-162/+71
Change-Id: Ibe334a1d3ab3af69acfa64412c80f0ea24cd2c46
2013-04-08Clean up a few option strings under the Advanced settingsKen Wakasa1-6/+6
Change-Id: If41ac016128fce401dedcab0fa7d6c23edaca158
2013-04-05Fix bugs and add testsJean Chalard2-9/+66
Change-Id: I6b56b91ace57f4a49584b5dceb71b145859f839e
2013-04-05Move a generic string utility to StringUtilsJean Chalard3-36/+36
Change-Id: I9cc2e9a7ac0b3346af40bcb083f939333336cf09
2013-04-04Add DigraphUtils classTom Ouyang5-29/+153
Add a new DigraphUtils class to manage digraph handling for both gesture and typing input. Bug: 8493920 Change-Id: I3a509e1311b9039653f9f488d3c28bb54205f416
2013-04-04Force inlining Correction::isSingleQuoteBen Cheng2-2/+2
Also, only apply -Winline with GCC 4.6. There are some copy constructors that GCC 4.7/4.8 fail to inline. Change-Id: I97906045224e89377e8ea6add07a79fa088648af