aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-04-17Fix user recording dialogKurt Partridge1-28/+9
Clicking the "include recording" checkbox in the user feedback dialog did nothing. The code was relying on the state of the checkbox, rather than keeping its own state. Fixing this addresses the bug. Change-Id: I559d57a4e11f869f6e6f5e5de7878f765531a203
2013-04-17Fix alarm bugKurt Partridge1-19/+6
The AlarmManager takes absolute times as an argument, not durations. Change-Id: I419434ba5908c5f4070608070bbecf753088ecc8
2013-04-17Add user feedback to setup action labels and iconsTadashi G. Takaoka17-9/+186
Bug: 8159728 Change-Id: I46c77c31973ae492c2a12291f2e0b154f64d26c9
2013-04-17Finalize setup wizard strings and mark as translatableTadashi G. Takaoka2-17/+26
Bug: 8159728 Change-Id: I9f6f04b09b2cefdb7ece76a4f3c39ab56d0c8fab
2013-04-17Fix JsonWriter bugKurt Partridge1-3/+13
JsonWriter requires that data be written to it, else close() will throw an exception. Change-Id: I596c5363e063cc75bcda55e0a506eefb3f17bd67
2013-04-17Label logUnits after LatinImeOnEndBatchInputKurt Partridge1-0/+3
Previously only a commitText would cause a LogUnit to be labeled with the word that the data generates. In the case of gestured text, this information is available when LatinIME#onEndBatchInput is called. Labeling the LogUnit at this time means that the Log will have labeled words even if stop() is called before commit. Change-Id: Idb2f99a9c159a1b1aa00448a2ecddeca6c351c3e
2013-04-17Avoid duplicate MotionEventsKurt Partridge1-4/+6
Change-Id: I9c3b352b738698f262f254e581bde34b060e258f
2013-04-17Fix singleton/utility classes initialization in SettingsFragmentTadashi G. Takaoka2-7/+12
This is a follow up of Ide3cd3acba. Bug: 8632344 Change-Id: Iafe51798a1a74eff5d8fcd6f0117d16b419d447d
2013-04-17Fix missing AudioAndHapticFeedbackManager initializationTadashi G. Takaoka1-0/+2
Bug: 8632344 Change-Id: Ide3cd3acba3987317cff709fa591eadaa71834e8
2013-04-16Fix NPEKurt Partridge1-1/+1
Change-Id: I8a091fb63dab12a0d2ba69e2fe393249bc68d103
2013-04-16Clean up unnecessary log messagesKurt Partridge1-2/+0
Change-Id: I6c3252f3b31c5874ea2f909f636f58b579c06b8d
2013-04-16Fix logic errorKurt Partridge1-1/+1
Change-Id: Ia36660c66504ba2fbb7f125704926a08726df87a
2013-04-16Small dot in corner was not visibleKurt Partridge1-1/+1
Framework change perhaps? Even if not, this makes it more visible Change-Id: Ib6d36b5a30136c4516adac666bdff36d1cd9b337
2013-04-16Include nanoTime in filenameKurt Partridge2-9/+11
System is fast enough that sometimes SystemClock.currentTimeMillis() is duplicated when used to make a unique filename. Change-Id: I9454fbb5e10265d36b8e17cba183a1591d52cc7b
2013-04-17Fix bug to update last interpolated index of GestureStrokeTadashi G. Takaoka1-5/+5
Bug: 8556775 Change-Id: Ie12e0dc9bfeae45f6883580801e07d44be1d1d33
2013-04-16Make digraph lookups case insensitiveTom Ouyang1-1/+3
Example: Be able to gesture dictionary words that start with an upper-case German umlaut (e.g., Übermensch). Bug: 8493920 Change-Id: I3253bcd236d34c0af60116e5b41e359f2715bf97
2013-04-16Update SORTED_CHAR_MAPKen Wakasa2-10/+183
bug: 7873416 bug: 8493920 Change-Id: Ifddb04cad90da71df5d34dd7076850dbcf51fba4
2013-04-16Don't insert automatic spaces when text looks like a URLJean Chalard9-7/+113
This is about as ad-hoc as it gets, but then again, what we want is probably as ad-hoc as it gets. All URL boxes I know of double as search bars, and not adding automatic spaces there sucks (e.g. in Chrome URL bar). And in other boxes actually you don't want to add a space if it looks like a URL. QSB isn't even a search box, and it behaves like this. So I think this is actually the right answer to the problem. Bug: 7062925 Change-Id: Ib09472b34644fd5bf2dc84bb97cedeeba28bcd02
2013-04-16Add shadow to gesture preview trailTadashi G. Takaoka6-8/+53
Bug: 7167303 Change-Id: I8f76fe0aec6cb32388e7c85d04516d1dd7d28c29
2013-04-16Use additional multi-word cost per language (for Russian)Satoshi Kataoka11-65/+69
Bug: 7540133 Change-Id: I7eb7b8399746c15452ed2ed5069955e88fb546d3
2013-04-16Small cleanupJean Chalard1-3/+3
Change-Id: Iafdbe305712c8a571f0f5abc2032df086d7ac015
2013-04-16Don't recapitalize on shift while on symbol layoutJean Chalard1-1/+6
Change-Id: Ibf2cdedf510c296561bb5eeb6ff18c3414d6d6f4
2013-04-16Match the keyboard state to the recapitalize state.Jean Chalard5-10/+62
Bug: 7657025 Change-Id: I2f8fe7fc4596a498322ba5ccabbd0c18a2bc36cf
2013-04-16Clean up RecapitalizeStatusJean Chalard3-56/+59
Change-Id: Ib4d002f90cd3a0e9ad4c04b883b0c1f05ada3ccf
2013-04-16Fix an NPEJean Chalard1-0/+1
Bug: 8620678 Change-Id: Ia91761f33518a010b2844d34523cadece261c67e
2013-04-16Fix an NPEJean Chalard1-2/+2
Bug: 8620758 Change-Id: I39f07939ebb6148a48aae5b915ee807002a5b02d
2013-04-15Import translations. DO NOT MERGEBaligh Uddin8-14/+14
Change-Id: I865e5c110e5a31e209fad2e909deb8589347657d Auto-generated-cl: translation import
2013-04-15Import translations. DO NOT MERGEBaligh Uddin8-14/+14
Change-Id: I5f6f7233c46f7a5faaac5f959c93329ace4c70f4 Auto-generated-cl: translation import
2013-04-15Adjust CHAR_LIMITsKen Wakasa1-3/+3
bug: 8589156 bug: 8588538 bug: 8588746 Change-Id: I14050dc3542946c1bae2e1dc8b63b99758d5f9aa
2013-04-15Remove a useless functionJean Chalard2-29/+0
Bug: 8583091 Change-Id: I9195d68e44e9a282e25ccd2978d7b4088f600170
2013-04-15Small performance improvement / minor bugfixJean Chalard1-3/+3
The only place where it's used is checked for nullity. Also, it's possible, also difficult, to match a different recapitalize with the old code, triggering a bug that this fixes. Change-Id: I717d6df489025c75d1caca290a9086c3b39a9306
2013-04-15Remove gesture suggestions with an INT_MIN scoreJean Chalard1-0/+12
Bug: 7980115 Change-Id: I8de31068992aec712eaad132857d9dc61f28e30a
2013-04-15Update dictionariesJean Chalard4-0/+0
>>> dictionaries/en_GB_wordlist.combined.gz Header : date : 1366003032 <=> 1366021966 Body : Deleted: FTP 88 Deleted: HTTPS 66 Added: www 72 >>> dictionaries/en_US_wordlist.combined.gz Header : date : 1366003070 <=> 1366021978 Body : Deleted: FTP 88 Deleted: HTTPS 66 Added: http 95 Added: www 71 >>> dictionaries/en_wordlist.combined.gz Header : date : 1366003861 <=> 1366021987 Body : Deleted: FTP 88 Deleted: HTTPS 66 Freq changed: http 120 -> 95 Added: www 71 >>> java/res/raw/main_en.dict Header : date : 1366003861 <=> 1366021987 Body : Deleted: FTP 88 Deleted: HTTPS 66 Freq changed: http 120 -> 95 Added: www 71 Bug: 8233807 Change-Id: Id55f6e0dcc9ddff26902c0857edcbb9b10d42328
2013-04-15Have Latin IME re-capitalize a selected stringJean Chalard5-1/+420
Upon pressing Shift, if there is currently a selected string, have Latin IME change its capitalization. This does not yet have the keyboard mode follow the mode - the change is complicated enough as is. Bug: 7657025 Change-Id: I54fe8485f44e04efd72c71ac9feee5ce21ba06f2
2013-04-15If there are no suggestion span, recompute suggestions.Jean Chalard4-16/+148
Bug: 8084810 Change-Id: I1743c09c43ca6835bb2f607684b037bf17d36335
2013-04-15Enable touch coordinate correction for new algorithmSatoshi Kataoka8-48/+94
Bug: 8505668 Change-Id: I07eb785c74c446777524104a3d2b61f0f591a498
2013-04-15Reject a previously user-refused suggestion.Jean Chalard3-0/+27
If the user gestures a word, then hits backspace in disapproval, and gestures about the same thing again, make sure that we don't suggest the same thing again. Bug: 7549311 Change-Id: I793bc4df7c3841fa8f2f4146707c26e873f374c1
2013-04-15Remove unnecessary harmful finish() from SettingsActivityTadashi G. Takaoka1-7/+2
Bug: 8560722 Change-Id: I825b135bd13aca17e712330660978b834648dbc3
2013-04-15Add preference dependency to gesture input related optionsTadashi G. Takaoka2-4/+2
Bug: 8613600 Change-Id: I279d3264080aede59203205c45763c7f8ff08ae6
2013-04-15Update dictionariesJean Chalard10-0/+0
>>> dictionaries/en_GB_wordlist.combined.gz Header : date : 1355802832 <=> 1366003032 version : 29 <=> 31 Body : Deleted: HTTP 95 Deleted: WWW 72 Added: mm 135 >>> dictionaries/en_US_wordlist.combined.gz Header : date : 1355112451 <=> 1366003070 version : 28 <=> 31 Body : Deleted: HTTP 95 Deleted: WWW 71 Added: mm 135 >>> dictionaries/en_wordlist.combined.gz Header : date : 1355802851 <=> 1366003861 version : 29 <=> 31 Body : Deleted: HTTP 95 Deleted: WWW 71 Added: mm 135 >>> dictionaries/fr_wordlist.combined.gz Header : date : 1357617878 <=> 1366003217 version : 29 <=> 31 Body : Not a word: re false -> true Shortcut added: re le 15 >>> dictionaries/nb_wordlist.combined.gz Header : date : 1355802836 <=> 1366003450 version : 29 <=> 31 Body : Freq changed: iPhone 91 -> 30 Added: app 30 >>> dictionaries/ru_wordlist.combined.gz Header : date : 1358763720 <=> 1366003693 version : 30 <=> 31 Body : Freq changed: за 140 -> 181 Freq changed: не 140 -> 191 Freq changed: про 131 -> 151 Freq changed: эры 125 -> 140 >>> dictionaries/sv_wordlist.combined.gz Header : date : 1355802856 <=> 1366003804 version : 29 <=> 31 Body : Added: vi 180 >>> java/res/raw/main_en.dict Header : date : 1355802851 <=> 1366003861 version : 29 <=> 31 Body : Deleted: HTTP 95 Deleted: WWW 71 Added: mm 135 >>> java/res/raw/main_fr.dict Header : date : 1357617878 <=> 1366003217 version : 29 <=> 31 Body : Not a word: re false -> true Shortcut added: re le 15 >>> java/res/raw/main_ru.dict Header : date : 1358763720 <=> 1366003693 version : 30 <=> 31 Body : Freq changed: за 140 -> 181 Freq changed: не 140 -> 191 Freq changed: про 131 -> 151 Freq changed: эры 125 -> 140 Bug: 8560415 Bug: 7556679 Change-Id: If1c628edcb1cc5efd67e1715acf94f19c0eb4643
2013-04-15Ignore modifier key while sliding key inputTadashi G. Takaoka1-3/+3
Bug: 8284624 Change-Id: I839d7a769d98f29be647dbe511ba3f73ca44446d
2013-04-15Clean up tests and increase speedJean Chalard1-5/+6
Conservatively reduce the number of unigrams to test from 1000 to 100. Bug: 8583091 Change-Id: I48621ec44ff5f0590640d7c6b174ab5a6d267aaf
2013-04-15Reset vertical correction when more suggestions are in modal modeTadashi G. Takaoka3-3/+9
Bug: 8605150 Change-Id: Iadbebfb80e765c97e58e8524eb87419f2a9e41d4
2013-04-15Fix a typoJean Chalard1-1/+1
Change-Id: I27b925be030e9e6ee8ae49dc13f39accec996d7e
2013-04-15Fix Binary dict testsJean Chalard2-5/+8
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-15fix assertionSatoshi Kataoka1-1/+1
Change-Id: I34ff470122aa0f34c66425d2eeae7590187d3074
2013-04-15Suppress calling onPressKey and onReleaseKey while detecting gestureTadashi G. Takaoka1-2/+2
Bug: 8284624 Change-Id: I14470bb2373965aefa921b2c94948450bfa438e3
2013-04-15Tighten unit test condition of MoreKeysKeyboardBuilderTadashi G. Takaoka2-8/+8
Bug: 8601979 Change-Id: Icf584f3b35adce69cc3dfc46f3aacfef05e5dd2a
2013-04-12Import translations. DO NOT MERGEBaligh Uddin97-354/+1768
Change-Id: I2cb68d3f0804a0c9990916a89e079510b465253f Auto-generated-cl: translation import
2013-04-12Import translations. DO NOT MERGEBaligh Uddin97-354/+1768
Change-Id: I7c8b83b352dcc840ee2a8a6f0b8e6d4d28b4e08f Auto-generated-cl: translation import