aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-07-13Merging minimal gesture inputTom Ouyang7-32/+483
Change-Id: Iee6ae48bb6309c2867b5d2e344fe7d86dfabd654
2012-07-13Fix a bug where the word composer is not correctly resetJean Chalard1-0/+3
...upon commit Change-Id: I1fea87cb4c133a0884329eb9b61bf3053c36cd1b
2012-07-13Fix InputPointers.appendTadashi G. Takaoka2-53/+59
Change-Id: I6995f9b2ed00b9f948e1299e576a5e24725d58f8
2012-07-12Import translations. DO NOT MERGEYing Wang62-351/+292
Change-Id: Ie03bf1e866e2b93cade6f02ce3ce14fa4864097d Auto-generated-cl: translation import
2012-07-12Add values for suggestion types (A120)Jean Chalard4-4/+17
Also, use it in getBigrams. Change-Id: Ia0be9b57d1b7effcd8a936e01e957d1195b39c68
2012-07-12Pass an array to output suggestion types (A119a)Jean Chalard9-21/+26
This needs the matching A119b change to not break the build. The array is passed, but not used yet. Bug: 6166228 Change-Id: Ia91d658461d989ee8c94e9b31bb06f4a36f4c5b6
2012-07-12Increase encapsulation (A118)Jean Chalard1-6/+6
showSuggestions is only ever called by updateSuggestionsOrPredictions. It only feels natural that, when called with a 0-sized or null suggestion list, it clears the suggestions. Change-Id: I5b52bc9151afca1bb6c6f0a7f81e3255add92177
2012-07-12Readability improvement (A117)Jean Chalard1-6/+3
Change-Id: I6f8bb05a23edb40a079da60b7136170ec9043282
2012-07-12Simplification (A116)Jean Chalard2-9/+8
Change-Id: I97cf92a7b0dabc251dd241b24978ea00d1e5f047
2012-07-12Compute variables closer to where they are used (A115)Jean Chalard1-4/+3
This improves locality, it's better for readability/performance Change-Id: Ibb1efaf86e362dd2c9398722d0da2144df96b333
2012-07-12Cleanup (A114)Jean Chalard1-3/+4
Change-Id: I7e24e0aeae7c004cae310ae9f46cf90dac2d4d14
2012-07-12Cleanup (A113)Jean Chalard1-1/+1
If not composing a word, then consideredWord is always the empty string. Hence, it's never whitelisted, but it's also always "NotAWord", so isWhitelistedOrNotAWord returns always true, so allowsToBeAutoCorrected is always true. Which means that isPrediction implies allowsToBeAutoCorrected == true. Thus, !isPrediction && !allowsToBeAutoCorrected is strictly equivalent to !allowsToBeAutocorrected. Change-Id: I4ad7a7c3447851c539646d97cf55ff065e6ee115
2012-07-12Simplification (A112)Jean Chalard1-3/+2
If we are not composing a word, that isFirstCharCapitalized and isAllUpperCase are guaranteed to return false. Change-Id: Ic4a0be9574acf4653c729a9594f963f5bcf0c757
2012-07-12Remove the ultimate code duplication (A111)Jean Chalard1-14/+5
Change-Id: I7c76613df8f148feb02765f187db3ca6dc577977
2012-07-12Resolve a TODO: bury some implementation detail in native (A110)Jean Chalard3-8/+5
The fact that prediction does not accept a null argument is an implementation detail, it should not be visible to Java code. Change-Id: I3a156b323b6db9353de898d33f3f7c81751cecb1
2012-07-12Remove an unused method (A109)Jean Chalard2-21/+0
Change-Id: Ib785b7e8c554d030395e2c0ca92edb44eb2b245f
2012-07-12Stop using a redundant method (A108)Jean Chalard1-14/+9
Change-Id: Iffc0bae0a273419e7c50d69526c0c8e402c6461c
2012-07-12Move an implementation detail to native code (A107)Jean Chalard1-4/+11
Java code does not have to know about this implementation detail: the generic method should do the dispatching, instead of having the caller call either method. Change-Id: Ic13727f0cb18f4ced2c356cce2f8d710588c0421
2012-07-12Remove a useless parameter (A106)Jean Chalard5-12/+9
Change-Id: Ic0ecea22212fd1a098a3a168da460374e446f4a3
2012-07-12Remove a constant parameter (A105)Jean Chalard2-8/+8
Change-Id: I8a09fa2f0649880c943364699a07652e47dede22
2012-07-12Make a constant really constant (A104)Jean Chalard6-16/+19
Change-Id: Ied1f9f96a574b1e6a8ee0a71bfb1604d9c962e1c
2012-07-11Import translations. DO NOT MERGEYing Wang80-24/+1032
Change-Id: I056d8d8d630a2b3576462f7900bc39a7f19f5aa0 Auto-generated-cl: translation import
2012-07-11Cleanup (A103)Jean Chalard1-11/+6
Change-Id: Ib5ebddfdb87ef71a2f8d859fb45d3ac78040e97a
2012-07-11Revert "Workaround to avoid a bug in the batch input bigram dictionary lookup"Tadashi Takaoka1-8/+4
This reverts commit 1250cdeab2da2c7f7d9c732a816dbc36e49fd61a
2012-07-11Workaround to avoid a bug in the batch input bigram dictionary lookupTadashi G. Takaoka1-4/+8
Change-Id: I8a5641c88c45918d6bed81a0b03efdcff0b380c5
2012-07-11Inline a method to be able to factorize code (A102)Jean Chalard1-20/+14
Change-Id: I121071f80c8af3c1053968dc76aaeca3352ca9a8
2012-07-11Inline a wrapper method (A101)Jean Chalard1-14/+4
Change-Id: I6ce856ff49a8f8c696851b2487590704010fc758
2012-07-11Support batch inputTadashi G. Takaoka1-1/+1
Change-Id: Ibe63212fe71cdebb5b897bc5018ae75b2a87555a
2012-07-11Small readability improvement (A100)Jean Chalard1-2/+2
Change-Id: I6340748654a95d203ed43ceb9a7e6468b5b8ab1c
2012-07-11Pull up some common code again (A99)Jean Chalard1-8/+9
Change-Id: I9e9f5664bb12bb25d74c8a076a6ee1024c708145
2012-07-11Pull up some identical code (A98)Jean Chalard1-39/+23
Change-Id: I6c265956394cf49e74b0256dfa5af06fe6b30467
2012-07-11Inline a method to avoid confusion (A97)Jean Chalard1-25/+18
Change-Id: I3c3ffcd3d40493f4bfa0f6596f923b3430e605aa
2012-07-11Remove parameters for easier inlining (A96)Jean Chalard1-5/+3
Change-Id: Ied2e291393609300173681e26e82b7dd36b41bd0
2012-07-11Pull up some more common code (A95)Jean Chalard1-15/+13
Change-Id: I3ac7ee823471a6d1da8031e064bce38b0e5a8f5c
2012-07-11Pull up common code in the caller (A94)Jean Chalard1-14/+8
Change-Id: I84b97886280eca75d5f2b7546f20f8b1bced55bc
2012-07-10intentional loggingKurt Partridge5-286/+538
- separate ResearchLog from ResearchLogger - fix abort menu to explicitly indicate re-enabling of logging - auto flush entries every 5s - conform to new suggestedWords class multi-project change with I9fe1f8fe59d5891daa4ca84af157f36fb1bb17dc Bug: 6188932 Change-Id: I7e99390f934481c6ed9cea2b259944583edda5bb
2012-07-10Import translations. DO NOT MERGEYing Wang24-0/+672
Change-Id: I0376c38451de66ff8c40b488ed3a8599326755ad Auto-generated-cl: translation import
2012-07-10Remove useless member variables (A93)Jean Chalard1-14/+13
Change-Id: Iff0a0e8835f4d630b51a15c0d91881437094e785
2012-07-10Register the key when the finger slides off it in multitouchTadashi G. Takaoka2-0/+24
Moved from jb-dev branch (I807fd6f4). Bug: 6722867 Change-Id: I9764ac72f726396caaac819675d440372c882981
2012-07-10Start converging two identical methods (A92)Jean Chalard1-4/+4
Change-Id: I3c85a80610fde664a328f5606d0724f00d445ebe
2012-07-10Add batch input dictionary lookupTadashi G. Takaoka3-18/+73
Change-Id: I4da3c976838e8eb56c9ec80aafaaf54d759b7981
2012-07-10Remove a useless parameter (A91A)Jean Chalard2-5/+3
Change-Id: I1d1758048649ef337875a5141d825569af7ad38c
2012-07-10Cleanup old methods (A90)Jean Chalard9-151/+16
Change-Id: I5435cef8ac6be523934ffa394952cb120c8e89d6
2012-07-10Implement the common Dictionary interface (A89)Jean Chalard5-8/+78
This will de-duplicate a lot of existing code. Change-Id: Idaffb2fde23b9741f057bcb2ecb3dde9d12ea5c5
2012-07-10Reduce method visibility (A88)Jean Chalard9-14/+14
Change-Id: I29d6afbcba0998558c9b19287a460d9f0e410994
2012-07-10Factorize code (A87)Jean Chalard1-13/+7
Why was this copy-pasted :( Change-Id: I6a537c56425ad039d7301a5fe1e0485784f07914
2012-07-10Move stuff around for readability (A86)Jean Chalard1-21/+21
Change-Id: I5f4a18e43f3012acf96978d625325bf7c69c9c80
2012-07-10Add a consolidated method to the Dictionary interface (A85)Jean Chalard3-5/+27
Change-Id: I5d79021e69cc738e3013e31764ab0a59e15decdf
2012-07-10Refresh the cached single quotes count on commitJean Chalard1-0/+1
Change-Id: I9df5cf95c14da2e11ac709ca5e32dc7db3b02c37
2012-07-10Enhance behavior consistency (A84)Jean Chalard1-11/+12
Use the word the same way for suggestion and prediction. It makes little logical sense that the trailing single quotes be removed for suggestion lookup but not for prediction lookup. Change-Id: I0de4b5f7c5b4c1b4ba1817ff9653d7c03967146d