Commit graph

5083 commits

Author SHA1 Message Date
Jean Chalard
9ecec4eb5c am a9552f8f: am 5d6b8e18: Fix a bug that would prevent spell checking
* commit 'a9552f8f0233c04dd5237c35027f309e6ec0b6f9':
  Fix a bug that would prevent spell checking
2012-08-13 22:56:35 -07:00
Jean Chalard
5d6b8e1818 Fix a bug that would prevent spell checking
java.lang.ArrayIndexOutOfBoundsException:
        [I offset=0 length=528 src.length=512
com.android.inputmethod.keyboard.ProximityInfo
        .setProximityInfoNative(Native Method)
com.android.inputmethod.keyboard.ProximityInfo
        .createSpellCheckerProximityInfo(ProximityInfo.java:85)
com.android.inputmethod.latin.spellcheck.AndroidSpellCheckerService
        .createDictAndProximity(AndroidSpellCheckerService.java:411)

The array was too small with respect with the passed size.

Change-Id: I7777d7aecd17375d3fbf82854a66eb7a5a289ce6
2012-08-14 14:45:17 +09:00
Baligh Uddin
bdea4a0c88 Import translations. DO NOT MERGE
Change-Id: I5d7f7487291f5a0cd054ab8db0c5a891900fec6a
Auto-generated-cl: translation import
2012-08-13 14:11:40 -07:00
Baligh Uddin
0aeb4c206c Import translations. DO NOT MERGE
Change-Id: I36bb28cfdf548a38bfdd3127ddafa6c7d938376e
Auto-generated-cl: translation import
2012-08-13 14:05:29 -07:00
Tadashi G. Takaoka
4d9d1e50c8 am 322f2a80: am f92f9de7: Merge "Eliminate redundant time parameter from gesture detection code" into jb-mr1-dev
* commit '322f2a80b88d2ec05792b09a60cbcd3583ae8c26':
  Eliminate redundant time parameter from gesture detection code
2012-08-13 02:29:37 -07:00
Tadashi G. Takaoka
f92f9de7a9 Merge "Eliminate redundant time parameter from gesture detection code" into jb-mr1-dev 2012-08-13 02:25:28 -07:00
Ken Wakasa
ed340b99db am 9e3d8722: am 40a6d4af: Merge "Cleanups in geometry_utils.h" into jb-mr1-dev
* commit '9e3d8722a8ecd519786e26cba331519a89d02ebb':
  Cleanups in geometry_utils.h
2012-08-13 02:15:29 -07:00
Ken Wakasa
40a6d4af2a Merge "Cleanups in geometry_utils.h" into jb-mr1-dev 2012-08-13 02:11:52 -07:00
Tadashi G. Takaoka
74d0bb09c7 Eliminate redundant time parameter from gesture detection code
This change also uses the key width to determine the sampling rate of
the gesture points (instead of the key height).

Change-Id: I987487825693b4883d8359eb5b31f1d668cd5ef4
2012-08-13 18:11:03 +09:00
Tadashi G. Takaoka
5b8ab8e481 am 9d7924dc: am f5fba0c1: Merge "Remove unnecessary drawing point" into jb-mr1-dev
* commit '9d7924dc82291f8180a947c905b66e3bd8039ff4':
  Remove unnecessary drawing point
2012-08-13 02:10:52 -07:00
Ken Wakasa
0fb950858e Cleanups in geometry_utils.h
Change-Id: Ic051703e5b67adfc62753ebd9ab254296719c6e9
2012-08-13 17:47:00 +09:00
Tadashi G. Takaoka
fc5e3f973c Remove unnecessary drawing point
Change-Id: Ib9cba3484a72306320eb9c1744d940da1a0998c7
2012-08-13 14:03:10 +09:00
Tadashi G. Takaoka
a3c86d4aac am 6b5f5bb2: am 708cc94a: Remove gesture detection hacking code
* commit '6b5f5bb22710e15ecfd4d3ecbc955b7a8236c85d':
  Remove gesture detection hacking code
2012-08-12 20:46:11 -07:00
Tadashi G. Takaoka
708cc94a35 Remove gesture detection hacking code
Change-Id: Idaec3753592ca0a5c5545eb5ab65254a3e32e662
2012-08-13 12:19:19 +09:00
Ken Wakasa
aa9063a1f4 am 7b4531a1: am bcec82de: Clean up constructors
* commit '7b4531a16f0d7f237822e94f3e962257ee9d0c16':
  Clean up constructors
2012-08-12 19:09:24 -07:00
Ken Wakasa
bcec82de66 Clean up constructors
And, use C++ style casts and use float math functions rather than double ones to save memory space.

Also, stop using FloatMath and NativeUtils as standard Math methods are faster now.
See http://code.google.com/p/android/issues/detail?id=36199 and https://android-review.googlesource.com/40700

multi-project commit with I4259fb5ab8a15ac5760a7f04fc8f4c860529f04a

Change-Id: I0b81cff8c91769f7559a59b9528c75a5aabb4211
2012-08-13 10:48:37 +09:00
satok
078a0028d6 am f9b2841f: am 81451030: Merge "Fix JNI" into jb-mr1-dev
* commit 'f9b2841fb592778ad34b5181e1c0bcbf551e3632':
  Fix JNI
2012-08-12 18:32:43 -07:00
satok
814510305c Merge "Fix JNI" into jb-mr1-dev 2012-08-12 18:29:16 -07:00
satok
847c8dfe17 Fix JNI
Change-Id: If134baf52e78fbe18b78611a23870f5d10c80955
2012-08-11 13:54:01 +09:00
Baligh Uddin
88257b367d Import translations. DO NOT MERGE
Change-Id: Ieadaecf909a0f3902ab07711f4bc9fd645719417
Auto-generated-cl: translation import
2012-08-10 11:54:24 -07:00
Baligh Uddin
9b6b279807 Import translations. DO NOT MERGE
Change-Id: I22eacc83a5aaa0f4e50e02e84ebf2b176dd08fe6
Auto-generated-cl: translation import
2012-08-10 11:50:11 -07:00
Ken Wakasa
be03370d1e am caa197d7: am f3850e55: Use JNI Region calls also in getSuggestions()
* commit 'caa197d76f8eb27dbb4fa400bace4db625b930bd':
  Use JNI Region calls also in getSuggestions()
2012-08-10 05:17:45 -07:00
Satoshi Kataoka
0914ba8a53 am f85ec408: am f6c22008: Workaround to stop init dict traverse session
* commit 'f85ec4082f60d4b7a06d907505938d91b3dfcee5':
  Workaround to stop init dict traverse session
2012-08-10 05:09:48 -07:00
Ken Wakasa
f3850e5543 Use JNI Region calls also in getSuggestions()
Change-Id: I9cc0208397c202aeb6f7b5bb5ad59e00c5afbd80
2012-08-10 21:09:23 +09:00
Satoshi Kataoka
f6c2200890 Workaround to stop init dict traverse session
Change-Id: I3d46c54a96a9fc0359ef75b9d2f8590b44164a8b
2012-08-10 21:07:53 +09:00
Jean Chalard
9e49160687 am 407d23ad: am a5e57d67: Merge "Accept whitelisted entries from any source." into jb-mr1-dev
* commit '407d23ad246cb55e8e6a0138ca39d4d105c5b0a0':
  Accept whitelisted entries from any source.
2012-08-10 03:21:12 -07:00
Jean Chalard
225659a7ec am b5cb4447: am 58040e7d: Merge "Optimization & Simplification" into jb-mr1-dev
* commit 'b5cb4447cfbc7d397f4da7d3753431bc97ee445e':
  Optimization & Simplification
2012-08-10 03:21:11 -07:00
Jean Chalard
7b258e512d Accept whitelisted entries from any source.
...not only the WhitelistDictionary.

Bug: 6906525
Change-Id: I7f181eb6936ec17bbccdc4e736fd09292af24e9c
2012-08-10 19:02:19 +09:00
Jean Chalard
caed149b67 Optimization & Simplification
It's useless to do the whitelist lookup twice. Also, putting
this test out of this method will allow whitelist entries to
come from other sources.

Bug: 6906525
Change-Id: I4afe678cae6556d16642d155ce770fbf4e61ad49
2012-08-10 19:02:15 +09:00
Jean Chalard
fdbc75e5d4 am 1599feda: am dc2fb6bc: Merge "Pass the type from native code all the way to Java." into jb-mr1-dev
* commit '1599feda42e0f0881368b948222a0667a09de728':
  Pass the type from native code all the way to Java.
2012-08-10 01:30:01 -07:00
Jean Chalard
dc2fb6bc6d Merge "Pass the type from native code all the way to Java." into jb-mr1-dev 2012-08-10 01:26:59 -07:00
Jean Chalard
926ef06a1e Pass the type from native code all the way to Java.
Bug: 6906525
Change-Id: I057390d47a223450e22d8338509e22c28fc0d5f6
2012-08-10 15:51:55 +09:00
Tadashi G. Takaoka
d66ed30b0b am 7a9695e4: am ce38c62a: Merge "Remove conservative MainKeyboardView.draw" into jb-mr1-dev
* commit '7a9695e455d4cd5eeb509452eb58c06e5000cc03':
  Remove conservative MainKeyboardView.draw
2012-08-09 23:35:50 -07:00
Tadashi G. Takaoka
ce38c62aef Merge "Remove conservative MainKeyboardView.draw" into jb-mr1-dev 2012-08-09 23:31:53 -07:00
Satoshi Kataoka
f775fcfba3 am ab45cc6e: am e9f3e182: Add arguments for dic traverse session
* commit 'ab45cc6e5c96bee7d020135639c66ba0322e3649':
  Add arguments for dic traverse session
2012-08-09 20:56:43 -07:00
Satoshi Kataoka
e9f3e182e4 Add arguments for dic traverse session
Change-Id: I8776ad528eeea9a5fc4dcf394ca13bb80c04fb6d
2012-08-10 12:34:00 +09:00
Tadashi G. Takaoka
1b6829b0e0 Remove conservative MainKeyboardView.draw
Change-Id: I52f58d1e013dfe1f1b0f8320cba903d3dbb4eabd
2012-08-10 11:02:41 +09:00
Ken Wakasa
7b03580340 am eab16a4a: am 5bb42062: Use more JNI Region calls
* commit 'eab16a4a4b7fd91072e5764d68b80455b981de54':
  Use more JNI Region calls
2012-08-09 09:10:23 -07:00
Ken Wakasa
5bb4206275 Use more JNI Region calls
Change-Id: I371db517ff4749c0b7e5bdb4362e6310c91a24dc
2012-08-10 00:46:20 +09:00
Satoshi Kataoka
b481b045f3 am 73fc766e: am 9d298716: Add reset method for dic travserse session
* commit '73fc766e8c03a84cad5a049d7c9a93a476097277':
  Add reset method for dic travserse session
2012-08-09 02:21:10 -07:00
Satoshi Kataoka
9d29871605 Add reset method for dic travserse session
Change-Id: Ia3dd924f92549da2cf8302ef77c629902d4f275b
2012-08-09 17:49:19 +09:00
Tadashi G. Takaoka
9643c1c02c am 03c580e8: am 877157e1: Optimize keyboard drawing code a bit
* commit '03c580e801b66404b8edd8b99b7321d67ac70915':
  Optimize keyboard drawing code a bit
2012-08-09 01:01:18 -07:00
Tadashi G. Takaoka
877157e1f5 Optimize keyboard drawing code a bit
* Remove useless boolean flag.
 * Use invalidate(int,int,int,int).
 * Don't draw background when hardware acceleration is enabled.

Change-Id: Id560ac84f33b5151437a42a4ff22736284d71e2d
2012-08-09 16:44:11 +09:00
Tadashi G. Takaoka
e30f346263 am 80d63d22: am f40a6669: Merge "Update dictionary availability at onStartInputView" into jb-mr1-dev
* commit '80d63d226308f70752634425e1cdd748429a1b83':
  Update dictionary availability at onStartInputView
2012-08-09 00:16:01 -07:00
Tadashi G. Takaoka
2be2d77664 Update dictionary availability at onStartInputView
This is a follow up of I7901c0f9489b4deb79314c2c903b138611bfd78e

Change-Id: I38c22e886db247c402a964e3ddd10b09a461151c
2012-08-09 16:09:54 +09:00
Tadashi G. Takaoka
73ea4dfe52 am b2c57991: am 9abea49d: Merge "Fix NPE and don\'t call UI API from non-UI thread" into jb-mr1-dev
* commit 'b2c579910e44f3b768053ec4cc946fcb47491aa8':
  Fix NPE and don't call UI API from non-UI thread
2012-08-08 20:04:19 -07:00
Tadashi G. Takaoka
9abea49dd4 Merge "Fix NPE and don't call UI API from non-UI thread" into jb-mr1-dev 2012-08-08 20:00:19 -07:00
Tadashi G. Takaoka
8335c59ea7 Fix NPE and don't call UI API from non-UI thread
This change also reverts I29ec3e9f10484f30288fac76f0c45b3707bc2259

Bug: 6956969
Bug: 6891020
Bug: 6947253
Change-Id: I7901c0f9489b4deb79314c2c903b138611bfd78e
2012-08-09 11:55:41 +09:00
Kurt Partridge
630a1c8032 Merge "ResearchLogging upload via service" 2012-08-08 09:27:03 -07:00
Satoshi Kataoka
dc0f8abf18 am da31bde5: am 60d4961f: Merge "Pass traverse session" into jb-mr1-dev
* commit 'da31bde599077608f5da595150626a32229b418f':
  Pass traverse session
2012-08-08 07:53:42 -07:00