History log of /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a28a05e971cc242b338331a3b78276fa95188d19 27-Sep-2012 Tadashi G. Takaoka <takaoka@google.com> Cleanup: Make some classes as final

Change-Id: I6009b3c1950ba32b7f1e205a3db2307fe0cd688e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
87cecf7db61536d9f7ec07fe198d37a11b6c8407 19-Sep-2012 Satoshi Kataoka <satok@google.com> Log for geometric input

Change-Id: Ia0f0e38086b0be70cf2d04fc6fae48358f16e74f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f035649cb612be8b80892c510bbc137a615719b4 12-Sep-2012 Tadashi G. Takaoka <takaoka@google.com> Asynchronously look up dictionary for gesture input

Bug: 7149248
Change-Id: Icba2db73508b89a85828ae9e196ab618e5e6c280
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
8c06a468e0bffa5cedc7d782be4754da70d9a657 10-Sep-2012 Jean Chalard <jchalard@google.com> Stop auto-correcting non-whitelisted one-char strings

Bug: 7134017
Change-Id: I75cf474dedafda3e1683dd8f7740c13aafdcf5ab
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5f282ea9e4a4590fcbab6e27d5fca7dacbb40a6a 21-Aug-2012 Tadashi G. Takaoka <takaoka@google.com> Add CollectionUtils class to create generic collection easily

Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
1eba97d92fb5caa4f23425837b6680ccc2a23ae8 21-Aug-2012 Jean Chalard <jchalard@google.com> Treat all caps for gesture input.

Bug: 6950087
Change-Id: I9f2271780600572c9befa96c7ad98494c554dd2b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
adbd9ae105e06287b59379d7f7127d95fd0663f4 21-Aug-2012 Jean Chalard <jchalard@google.com> Tell the shift mode to the word composer.

Bug: 6950087
Change-Id: Ifab9d6d075af398c6468d081216488712f8a53fb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
46fc768e54e3d52003645494552f9e686f28f20f 17-Aug-2012 Jean Chalard <jchalard@google.com> Remove the whitelist dictionary.

The functionality now lives in the binary dictionary.

This finalizes work on
Bug: 6906525

Change-Id: Id106d871e8afdf9afa886d2a30bea87ff89f2d24
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3e43e6998e03cbdfc5a67c42003afcd36891c02f 17-Aug-2012 Jean Chalard <jchalard@google.com> Remove access to the whitelist class.

...which becomes useless. It will be entirely removed in an
upcoming change.

Change-Id: I2f1d27f1eceda79454b01f21e057b98f2953131a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3979f060f0650cbc117eee0307d05fb0be78c6f2 14-Aug-2012 Satoshi Kataoka <satok@google.com> Step 28-A Introduce the session Id to getSuggestion

Change-Id: I39d9bf1a7c272eb16d6ed4698f52457579b40f10
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7b258e512dc2a8c821eb9f435e5719b8a967b441 10-Aug-2012 Jean Chalard <jchalard@google.com> Accept whitelisted entries from any source.

...not only the WhitelistDictionary.

Bug: 6906525
Change-Id: I7f181eb6936ec17bbccdc4e736fd09292af24e9c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
caed149b67be378adf49f3db16a2cfbb8dd15d84 10-Aug-2012 Jean Chalard <jchalard@google.com> 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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
79eefda0d3ab5e03c2d012ed8ea1898004781871 08-Aug-2012 Tadashi G. Takaoka <takaoka@google.com> Add SuggestInitializationListener to BinaryDictionary.resetMainDict()

Change-Id: I4c01f172ddb2ca60fa6e604384610c90b76e5457
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
e7c471a52f38c48cd38e412d88901bddb6f903a9 27-Jul-2012 Jean Chalard <jchalard@google.com> Don't auto-correct when there are digits.

Bug: 6667462
Change-Id: I796655f57c71c9f50ae6e38dd08b71df3998dbcf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
369e54cc338d8115d63138663b882f56208d7ec3 24-Jul-2012 Tadashi G. Takaoka <takaoka@google.com> Add Suggest initialization finish listener

Bug: 6860204
Change-Id: I1e4c03c99415cd9bdea5a8556ff4093c33f0f508
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
eea34598bf63f670f47d7b3f37b6436921e5fe02 12-Jun-2012 Tom Ouyang <ouyang@google.com> Merging minimal gesture input

Change-Id: Iee6ae48bb6309c2867b5d2e344fe7d86dfabd654
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
1343d27de30c4010c54576d6c8bbb052c7630cbe 11-Jul-2012 Jean Chalard <jchalard@google.com> Readability improvement (A117)

Change-Id: I6f8bb05a23edb40a079da60b7136170ec9043282
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
24a63b5537ea4872ec10676d147ddccabda6a1f6 11-Jul-2012 Jean Chalard <jchalard@google.com> Simplification (A116)

Change-Id: I97cf92a7b0dabc251dd241b24978ea00d1e5f047
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f5b55cb70c9d6012e1aa2b201c4785530afab168 11-Jul-2012 Jean Chalard <jchalard@google.com> Compute variables closer to where they are used (A115)

This improves locality, it's better for readability/performance

Change-Id: Ibb1efaf86e362dd2c9398722d0da2144df96b333
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
2549b4978e5b0460d0f34a5e4016374ac2198753 11-Jul-2012 Jean Chalard <jchalard@google.com> Cleanup (A114)

Change-Id: I7e24e0aeae7c004cae310ae9f46cf90dac2d4d14
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
02f1c1534c2060aaea7a9a020ce87f6c5ff5d8e0 11-Jul-2012 Jean Chalard <jchalard@google.com> Cleanup (A113)

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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ae13061245e6a82863416456a461207d871a89ff 11-Jul-2012 Jean Chalard <jchalard@google.com> Simplification (A112)

If we are not composing a word, that isFirstCharCapitalized
and isAllUpperCase are guaranteed to return false.

Change-Id: Ic4a0be9574acf4653c729a9594f963f5bcf0c757
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
d8afa2fbe13adf9f512fd294056a884a0edb0573 11-Jul-2012 Jean Chalard <jchalard@google.com> Remove the ultimate code duplication (A111)

Change-Id: I7c76613df8f148feb02765f187db3ca6dc577977
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3b57631b60c696d407a73e7594f6ab2418932229 11-Jul-2012 Jean Chalard <jchalard@google.com> Resolve a TODO: bury some implementation detail in native (A110)

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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
d82dcdc9246b340c4b355e34efc6079f3278efa6 10-Jul-2012 Tadashi G. Takaoka <takaoka@google.com> Add batch input dictionary lookup

Change-Id: I4da3c976838e8eb56c9ec80aafaaf54d759b7981
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5e573a1f0a63c017c7b0e4c4314235bd87c9363c 10-Jul-2012 Jean Chalard <jchalard@google.com> Remove a useless parameter (A91A)

Change-Id: I1d1758048649ef337875a5141d825569af7ad38c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
82009901eaa1fd0da95b25c900f8ff12fda9e679 09-Jul-2012 Jean Chalard <jchalard@google.com> Add a consolidated method to the Dictionary interface (A85)

Change-Id: I5d79021e69cc738e3013e31764ab0a59e15decdf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c677b0071d51a277413079b30f2215605637aa6b 09-Jul-2012 Jean Chalard <jchalard@google.com> Enhance behavior consistency (A84)

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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
1c6693a219d546816d70fd092f887b73a8041ea3 09-Jul-2012 Jean Chalard <jchalard@google.com> Refactoring for whitelist (A83)

Avoid special casing the whitelist dictionary by having it implement
the interface it pretends it implements

Change-Id: I8b873cb0f3fe13cefd32c8cb756a25c8ae16a2b4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
fb6eeeb35ad593926da9b7dc57335f0ba591570c 09-Jul-2012 Jean Chalard <jchalard@google.com> Refactoring (A82)

The user history dictionary should be the one knowing it does not suggest words
beyond 2 characters, not Suggest.

Change-Id: Ie85ec6116eb495e0c7f51108e4620c5ae536f4bf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
966efe48891cbdd364d94f1e72fa0435ab8f2b77 09-Jul-2012 Jean Chalard <jchalard@google.com> Fix a bug with suggestion behavior (A81)

Bug: 6788235
Change-Id: I5a4212872e0fd3f9e80168fd3abd5c2b3bc4110f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
e9a86e2cdb58dd8d5601138294521e966d164520 28-Jun-2012 Jean Chalard <jchalard@google.com> Search bigrams for the lower case version of the word (A46)

...if there aren't any for the exact case version.

Bug: 6752830
Change-Id: I2737148b01ba04a64febe009ceb2ef53c265d224
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c5e911c06b2ab21d3fd2026a307727dccdca911c 28-Jun-2012 Jean Chalard <jchalard@google.com> Consolidate a method inside another (A45)

It's simpler to check the safety net directly inside the
function that checks for auto-correction threshold.

This introduces one very slight change in behavior. The value
checked by the safety net is not any more the "typed word" but the
"considered word", the difference being any possibly appended
single quotes.
E.g. the user types "this'''" : the typed word is "this'''" but
the considered word is "this".
This change in behavior can be considered a bugfix.

Change-Id: Ia7ab4bc933183dfbd41bb00328e4c0b5ab76bc63
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f72b8f5662afb42b08eb88e92731d52f99df13e3 28-Jun-2012 Jean Chalard <jchalard@google.com> Move the safety net function to AutoCorrection (A44)

Change-Id: Iec791d061f237f60992dd6048c4a37b46f4cb9aa
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4ca05e24747896348ea1d4431fa0cd442552f33e 28-Jun-2012 Jean Chalard <jchalard@google.com> Refactoring (A43)

Change-Id: Ib0b6f36999518096819ada2f19365767cb5f9931
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7ad088a4cf5593a2c72e143f10ba2e7ffed8bb09 28-Jun-2012 Jean Chalard <jchalard@google.com> Remove useless code (A42)

If allowsAutoCorrected is false, there is no point in making
hasAutoCorrection true, since in the only place where we use
it again, it's &&'ed with allowsAutoCorrected !

Well that was extremely obscure, good thing refactoring allowed
to realize this was useless >.>

Change-Id: I34936d445f1ced17c7bd04a9524bf608f9e8b9c8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
90d300c770b1697af5b715e55fa87d97e22588d2 28-Jun-2012 Jean Chalard <jchalard@google.com> Clarify some code and fix a bug (A41)

The test against hasMainDictionary is a test to know if we should
auto-correct or not. Its result should be recorded in
hasAutoCorrection, not in allowsToBeAutoCorrected.

Actually, this value being inserted in allowsToBeAutoCorrected was
causing a bug that nobody noticed: when typing in a language with
no dictionary, the word in the middle of the suggestion strip would
always be bold, as if it was going to auto-correct to itself !
This change fixes this bug.

Change-Id: Ia1f08efd7089b9c5cbede910c5b0951d83e698d2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
2631e3b1954eb0f9ddd637f8ad89fd0eff495c77 28-Jun-2012 Jean Chalard <jchalard@google.com> Small refactoring (A39)

Change-Id: I3c45b5a6571f986acc7adb3a8fe17b210303f7ea
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
79f531784818115241c660f71f25cbba520d566c 28-Jun-2012 Jean Chalard <jchalard@google.com> Match calls for future consolidation (A38)

Change-Id: I2b2ab99e801fa8b4b30eab16a8aefb8cfe104ba9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
cd288620ea92580152afe4a6cfe20622a2aeba41 28-Jun-2012 Jean Chalard <jchalard@google.com> Make the autocorrection scheme more straightforward (A37)

Change-Id: I4833ca7e057b8c1f1f22390673cbca0d2433b1bd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9011b89f4ea0d73f1ad78b2dd0a6557b950fddd9 28-Jun-2012 Jean Chalard <jchalard@google.com> Remove cruft (A32)

Change-Id: I35c2ba4caf6be4ba0449e11c0597ae8e468c0e6e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
2cda148fd5aa047dca6dfd5d78db548a7a8e2bc0 28-Jun-2012 Jean Chalard <jchalard@google.com> Simplification (A31)

Change-Id: I9e4d030974ccec1a6256de6ca87610870e404149
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
deb2d88245ddfda6b8012c9a3a5d95246233fbae 28-Jun-2012 Jean Chalard <jchalard@google.com> Small refactoring (A30)

Change-Id: I41b413986a3c5bb6697bb7bbced17ed1e361913c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0a63111821b9377bf37d18f26a9e09618bec128d 28-Jun-2012 Jean Chalard <jchalard@google.com> Remove a useless parameter (A29)

Change-Id: I52625e707abf61da9b95e542f0814c66b532f483
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9e0af5773649140b5cf3f70c6def207c5a06627c 28-Jun-2012 Jean Chalard <jchalard@google.com> Optimization (A26)

Change-Id: I1d7790289635729645995fb8c38868259ab1b3be
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7a94cbd2a488d2ff3a4c0b6a4e846d9380600d2e 28-Jun-2012 Jean Chalard <jchalard@google.com> Remove useless code (A25)

isWhitelistedOrNotAWord takes an 'ignoreCase' argument. By looking
at the contents of the wordcomposer here, there is only one case
where its output will be different : when the word is typed with a
capital, but the lower case version exists in the dictionary.
E.g. the user typed "This".

In this case, isWhitelistedOrNotAWord in line 235 will return false
instead of true, so the test will score a true instead of a false,
so hasAutoCorrection may be true instead of false in this specific
case and that's the only case where it's different.

But in this case, allowsToBeAutoCorrected is certain to be false,
which means the result will not have changed if hasAutoCorrection
was true in the first place. So in the end this change is sure not
to change the behavior.

Change-Id: Ic41cf959c20c19165f84d9b8ff006731fa595d84
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
b3cfde2cbb96951b1202c70b9961f340bdf495d0 28-Jun-2012 Jean Chalard <jchalard@google.com> Add a few comments for future reference (A24)

Change-Id: Ia356130b8a95ec9cf676bc6be05d801c13f14b64
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
e398c6c024ecf507232948a2b3e862b4a27a1a84 28-Jun-2012 Jean Chalard <jchalard@google.com> Rename a method for readability (A23)

Change-Id: I6f569322e645d36bc82fddf4ec2fd621972e3b47
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ea578f6b1dbcf04ffcc9c673f72a38ed2cfecdfc 28-Jun-2012 Jean Chalard <jchalard@google.com> Revert a test for readability (A22)

Change-Id: I1df4cef5ae2736a22273843dce67f0012181bfd3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
19d02c19d0af940af358f6f91abb314330a3c60e 28-Jun-2012 Jean Chalard <jchalard@google.com> Remove a useless variable (A21)

Change-Id: I901e6b0e2b994128da19d68233b9f68bb308cb95
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4d5e7235c566345a54121bfe5e53f58df1274352 28-Jun-2012 Jean Chalard <jchalard@google.com> Remove a useless variable (A20)

Change-Id: Ifc37462f5243563693c8cd7cbeb401ff054daa52
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
739683dcfb27c68b88eeacdfd486812321fc6b5a 28-Jun-2012 Jean Chalard <jchalard@google.com> Rename a method for readability (A19)

Change-Id: I0b8c06d1fd0bfb3caf363c048acc7048abed1752
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
31b346aac6dc04a2445a17d156906cc308c7e0d4 28-Jun-2012 Jean Chalard <jchalard@google.com> Remove a useless test (A18)

allowsToBeAutoCorrected always returns false if the word is empty.
This is because the whitelist never contains an empty string,
and isValidWord returns false if the word is empty.

Change-Id: I34ecc2a1563aea6db5b2f12796f251f6598576a2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
b01cdb975a0001a5d4bdc66e6ae451f2deab439d 28-Jun-2012 Jean Chalard <jchalard@google.com> Inline a method (A17)

This will allow us to remove unnecessary processing

Change-Id: I251dfdaffb077906186686ebe65fd82e1e360bd2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
a96a11949fc396a2b2e65071a972062bb435cf74 28-Jun-2012 Jean Chalard <jchalard@google.com> Inline a simple method (A15)

Change-Id: Ib74fcbf33c680bf02c39a9896e30e3afbcfd149a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
074c90af98487f94bac26d9463020e883b26f358 28-Jun-2012 Jean Chalard <jchalard@google.com> Inline a method (A14)

The new code is worse than the old one, but this is a necessary
step to make things prettier.

Change-Id: If6e8a139bb85e6920c749743c78792a22a8acb45
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f89a75134b03bd2675c85249a184c09f83c6f80c 28-Jun-2012 Jean Chalard <jchalard@google.com> Small readability improvement (A10)

Change-Id: Iba326921711e1c4eab38264e66b6b44a64fec398
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5110e2cb5115bc7d8337a63427b895eeb74c9cd5 28-Jun-2012 Jean Chalard <jchalard@google.com> Optimization (A8)

Change-Id: I2b9e8cc6a13fd9af84a5189e4d3fbb2b05c68d46
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4847a27f74964a8f04bb40c8520d72096f69f7e7 28-Jun-2012 Jean Chalard <jchalard@google.com> Cleanup (A7)

Change-Id: Iba97e0062b702c005ab3ff9ce59f181d19ab7c98
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ed83d4b14366b9799bf94c3f3486dc14ebd15d0f 28-Jun-2012 Jean Chalard <jchalard@google.com> Stop special-casing a single suggestion (A6)

Treat it like the others

Change-Id: Ic24e40ada0e75773c3ece9470ab61c350697be5d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
251bb70f087c396afc504a8d0f0221c890e88571 28-Jun-2012 Jean Chalard <jchalard@google.com> Cleanup (A5)

Change-Id: I06134145b47c46bbc6c340ca539f34a01e2ca163
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4c4e3a094908842905cde8eb381d55357c0bb555 28-Jun-2012 Jean Chalard <jchalard@google.com> Transform the whitelist suggestion like the others (A4)

...instead of having a different code path

Change-Id: Icd177e2151e45d25300000d4b63d4fba1f52b6a8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
33b3805e79ab168500ac3bba2c349ef6ea0755f5 28-Jun-2012 Jean Chalard <jchalard@google.com> Small refactoring (A3)

This will help make upcoming changes clearer

Change-Id: Ida8d4935f7315e5da6007ad364124694da3112d0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
b7cdafd78a7e97c70ceaa3349197eb012e69cc3f 27-Jun-2012 Jean Chalard <jchalard@google.com> Don't pass everything to a function that needs only the head (A2)

Change-Id: Ic367836202ab8071c1a9a02eaf0651b0da947d51
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
2d2e3480338b97b55f1a22bf2bfe89c52ba866e2 27-Jun-2012 Jean Chalard <jchalard@google.com> Use a TreeSet to sort suggestions instead of doing it by hand (A1)

Change-Id: I16ba39321107e87ad48a99c2410a15995a66f23c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
10abf10c1fd3782389cbec1aec7b91855a7b5154 27-Jun-2012 Jean Chalard <jchalard@google.com> Convert local members to local variables

Change-Id: I852787986c79502a4de7effe9c8281a4cf2d519d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3ecb2747b3b46991a0fb8e1573d689611ecbd1cc 27-Jun-2012 Jean Chalard <jchalard@google.com> Optimization.

It's useless to do this for all suggestions including those
that will be ousted from the list.

Change-Id: I7bd63d783e21984a269e4b1ae17e9b9d8c0859e3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3705ef407b654e818d4ec8854f08495bca4688d9 27-Jun-2012 Jean Chalard <jchalard@google.com> Read the suggestion type from the suggestion

...instead of dirtily passing it from the dictionary loop

Change-Id: I92ddbd7451609b69f6d4dc31bf89d614423b2016
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
24eec0fa680f97e64d1fa0df754acbad95ed9a76 27-Jun-2012 Jean Chalard <jchalard@google.com> Remember the source dictionary for each suggestion.

Change-Id: I3c63372bd5572a479a67eaecfe8c8ea1cabc70d9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
d8f0caa406a0ca1df488baeb3af05528085755b7 27-Jun-2012 Jean Chalard <jchalard@google.com> Move constants to a better place.

Change-Id: I5c27a3ed99b17f850e26a8503de16f001c7111c1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
089c11a08665d3670be9ca1678ac06545ecfcd6f 27-Jun-2012 Jean Chalard <jchalard@google.com> Cleanup

Change-Id: I575f22330bf6881af1d9a35f22b51b7bf2198113
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
b5afd3de0c20bce40a600357a15e8e8df0e62420 27-Jun-2012 Jean Chalard <jchalard@google.com> Remove unused stuff.

Change-Id: Ifd0d5b6978f76b841574a6e10157c32d0cd656b6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
32ff2504a0574bf9d697161abba3a422a292a75b 27-Jun-2012 Jean Chalard <jchalard@google.com> Update the prototype of onAddSuggestedWord - calling side.

We want to get rid of all those IDs in Latin IME.

Change-Id: Ibe08100a5e2976c80abb049889233b4047a686f3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
56beb9e3219ae2138b96874aec6f2439180b3507 26-Jun-2012 Jean Chalard <jchalard@google.com> Use binarySearch instead of a hand-written linear search

Yay.

Change-Id: Icf686eb2d675da959f19edc856b521e6288dcea3
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9da0027b386c23b83c2f9b0121bc15fa15306e3a 26-Jun-2012 Jean Chalard <jchalard@google.com> Implement a comparator for SuggestedWordInfos.

Change-Id: Ic4b0ae05cd98a1aec5806c5e4b744158e73aea7a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4ef01c51f8fc063647c7497dabe1a1d76e87c324 27-Jun-2012 Jean Chalard <jchalard@google.com> Merge "Remove some special casing"
7e49a2b6b8ad341d467d47adf45c58d22f4a05c6 26-Jun-2012 Jean Chalard <jchalard@google.com> Remove some special casing

This special casing is useless. If the word is the same as what
user typed, the scoring algorithm already ensures that it comes
out at the top. Actually, as is written in a comment here, code
executed later is actively relying on this suggestion having
the top score ! There is no need to test it for equalness and
inserting it at the top then.

Change-Id: I263a6de59b77ec72a2dcbb933361b8e16fca0681
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
a3f5f51ec4aeb438fc4ad408c085b463ed3f8c82 26-Jun-2012 Jean Chalard <jchalard@google.com> Fix a bug where a log would mysteriously not work

Change-Id: I5ca77ed65e95a6d357215c0e730238fb463986bb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
22657dcba07fc54919020119408cb71d187a14fd 26-Jun-2012 Jean Chalard <jchalard@google.com> Optimization.

We already had that computed

Change-Id: I2a9742eaee2e9db1f73aeddda7bae7e237b4d15c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ec8b27fe49bd0a149cf7dcd36d1b0d966b03a3b5 26-Jun-2012 Jean Chalard <jchalard@google.com> Cut out a method for clarity

Change-Id: I1dc668698a5cd840297e713a26a525f5e32d35d6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5953dc93cfe5eea3f03d439956d48d50fef990e3 26-Jun-2012 Jean Chalard <jchalard@google.com> Avoid string conversions when possible.

Change-Id: Ibf5f3e40da55998364d0d835ecf283f32c80fcf5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
bed514bd902d9736edcbfe03d37d8cced2bb03a3 26-Jun-2012 Jean Chalard <jchalard@google.com> Simplify a method call.

Change-Id: Ieede787a13cef79353f13af52488ef3732ac9850
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9433ce86b702bf33ff6d1bd020266ffcb7b133ea 26-Jun-2012 Jean Chalard <jchalard@google.com> Refactor and squash long-standing bugs (A2)

This is awesome.
- Improve performance by stopping useless string/array conversions.
- Simplify method interface.
- Fix localization bugs - we now know our locale
- Fix bugs with surrogate code points

Bug: 4769095
Change-Id: I8a8ee224b713429ee0a4ce5bd52f1b63378cf56f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
8e17f6d93a3b079eab41450539b9890763fb6e3f 26-Jun-2012 Jean Chalard <jchalard@google.com> Remember the locale in the Suggest object (A1)

This will be necessary for uppercasing and titlecasing words
correctly.

Change-Id: I0f446a4c82bc482240ff730a2ad6586a61571d6b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
6cad198d9c02646d6bab9ec683f99680b111c659 26-Jun-2012 Jean Chalard <jchalard@google.com> Remove a useless member (A2)

Change-Id: Ia727ffc2946352bbf79e0c97684f8fa98f428cef
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0da9a7c094ed29f680f1ab9d4a27194a84c593c3 26-Jun-2012 Jean Chalard <jchalard@google.com> Convert a member to a local variable (A1)

Change-Id: I9eab910989443704f83711cf4fb0070c5987a13a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f05392f213b1c6df0b139e641054f4064af32bb7 26-Jun-2012 Jean Chalard <jchalard@google.com> Remove an unused method (A22)

Change-Id: I2195f365df1799c8b3b2a53670d1df535ab1a742
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
6234be1fe76740c458781b633f4ac66edd8ea84f 26-Jun-2012 Jean Chalard <jchalard@google.com> Simplification and optimization (A20)

Change-Id: Ia837e553ccfe67cd4303096290194a5186df059b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
77e95e60bbfacb08d2298813af36d281a96661a6 26-Jun-2012 Jean Chalard <jchalard@google.com> Preparation for a simplification (A19)

Change-Id: I4605a571faf5fbc68b18ce525d6019600bfa8cf7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0a7944653105f257d99e9db2d90b2bfc932ee765 26-Jun-2012 Jean Chalard <jchalard@google.com> Remove a meaningless separation (A18)

Change-Id: I267177044c7d7b0d9119839a11057b2bbf41f75f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
61e7ec658710eca3fd03af39b52b4a87eabcdd4c 26-Jun-2012 Jean Chalard <jchalard@google.com> Remove the Callback interface for simpler code. (A17)

Bug: 6252660
Bug: 6166228
Bug: 2704000
Bug: 6225530

Change-Id: I009b54fc2e73cadca6734bdca074d033e81f6a2b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
2f1b6c9ea438841fc2a7262a0593739c3dc82782 21-Jun-2012 Jean Chalard <jchalard@google.com> Remove the callback argument to getBigrams() (A16)

Bug: 6252660
Bug: 6166228
Bug: 2704000
Bug: 6225530
Change-Id: I7457ac04f8cd4019fb86c986725aae3de1b1a65e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
60eed92dc37e59403142ac35bdf676ae7ceac298 21-Jun-2012 Jean Chalard <jchalard@google.com> Remove the callback argument to getWords() (A15)

Bug: 6252660
Bug: 6166228
Bug: 2704000
Bug: 6225530
Change-Id: I919bf70a1213ab5d7c7a9e5715bd72a6e257148b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
783047602295819c89e489e707cabfedf6dd6dd4 19-Jun-2012 Jean Chalard <jchalard@google.com> Neutralize Suggest#addWords (A12)

Bug: 6252660
Bug: 6166228
Bug: 2704000
Bug: 6225530
Change-Id: Id923367342a62a650a5f1d38e2fa0e913030dca8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
fd998bd37a6373beb858d8d3c859c69b65776d4d 26-Jun-2012 Jean Chalard <jchalard@google.com> Refactoring (A11)

Change-Id: I86bd7587dd80773a51ba6db312ba55dc41e7c8c7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
64dad2d5a958acf2bc53cce5cade4b8e2b34c05f 26-Jun-2012 Jean Chalard <jchalard@google.com> Remove an unused method and inline another (A10)

Change-Id: Ifd71ce79711b0c15c7764e97351dbb1b8e4c0c2d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
28eeb35d149468514a65379e9d0d1672cf26981e 26-Jun-2012 Jean Chalard <jchalard@google.com> Merge the interface of two methods that do the same thing (A9)

Change-Id: Ia5701d713d0fd5bb646b54a03a1a5602dad0a9e6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
17111afcd6315d7bfd8d9dd0f3d207d6aec1576c 26-Jun-2012 Jean Chalard <jchalard@google.com> Remove useless code and storage (A6)

This is only used as temporary storage to be then added to
the other variable, relying on the fact that it is hopefully
sorted. It's better to just add it right away to the final
storage.

Change-Id: I5da702ac9dc579593ab21feb2021a01e5dfdf4dc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5e0545d69dc07c9f127bbb305062f817f2ccd352 26-Jun-2012 Jean Chalard <jchalard@google.com> Remove a duplicate processing (A5)

This filtering is already done in native code. It's useless (and
costly) to do it again here.

Change-Id: Ide6794d7a8682a881f097f33e222f10d30f297bd
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
73680097996ea2ddbca3f84144a00ce3ba66b763 25-Jun-2012 Satoshi Kataoka <satok@google.com> Change JNI for Gesture

Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0e8b1db948f47693c5e5863b4cb8d1b022f491b4 19-Jun-2012 Jean Chalard <jchalard@google.com> Merge "Cleanup, part 6 (C6)"
c03bd090ea9f5e610d5380a5e0b70f3c60d9b6fe 19-Jun-2012 Jean Chalard <jchalard@google.com> Merge "Cleanup, part 4 (C4)"
bd765d33556def42c41a6f36298f28feb01af8e4 19-Jun-2012 Jean Chalard <jchalard@google.com> Merge "Cleanup, part 3 (C3)"
8b538807a3f014aea21aa707b1d945e442589614 18-Jun-2012 Jean Chalard <jchalard@google.com> Merge "Make a variable final (A2)"
0176faf6c03a8e988b9085e7ac8e8fd6c1dc0b07 18-Jun-2012 Jean Chalard <jchalard@google.com> Merge "Add a kind to the suggestion for bookkeeping (A1)"
6080f6878b10916013a8a5e1d5f58f8041452c56 16-Jun-2012 Kurt Partridge <kep@google.com> Remove non-dictionary words and digit touch data.

Output to the ResearchLogger is now queued and only flushed if the word
the user was working on is a dictionary word.

multi-project commit with Ic713ec00777fbdcf4a937b3c77b995257e100fc7

Bug: 6188932
Change-Id: I9de15227ff51be23083d9096f1c1b3d83802fff7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c5f1d998c28b12a446c356419cf2b5fe4cc63207 16-Jun-2012 Jean Chalard <jchalard@google.com> Cleanup, part 6 (C6)

Change-Id: I184f3a336278559df255c5d600a98fbba468a243
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9b233ecef2e6fce4024caa4da4b88d75edfd7b00 16-Jun-2012 Jean Chalard <jchalard@google.com> Cleanup, part 4 (C4)

Change-Id: I2821ae71ec49e4b6b512157d17b80198f74321e4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5475e92b3fb33dd7d6b021ddcbe1ca593112b5c8 16-Jun-2012 Jean Chalard <jchalard@google.com> Cleanup, part 3 (C3)

Change-Id: Ib0be8dc26b6fa366a3dabeea940d466602073244
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0998c48ac30294b7b6b70257b390962e930b59e1 12-Jun-2012 Jean Chalard <jchalard@google.com> Make a variable final (A2)

This is never changed, and probably doesn't need to be.
It's public because it's going to be used elsewhere in a future
change

Change-Id: Iec8d65859c470de5e1fb0b05533356fbc3b8e91b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
e7d2ee3ec310a3991f07d20994871bb0dc84941a 12-Jun-2012 Jean Chalard <jchalard@google.com> Add a kind to the suggestion for bookkeeping (A1)

This will help for debug as well as serve as groundwork for
Bug: 6252660
Bug: 6166228
Bug: 2704000
Bug: 6225530

Change-Id: I74d0a7b943fb22c514ad79dc064d69ddf336d3ef
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
67fd0c240d7c37b06e05333347fd17acf59fadf8 08-Jun-2012 Jean Chalard <jchalard@google.com> Remove deprecated classes.

Should we maybe rename back *BinaryDict* to *Dict* in another
change for simplicity?

Change-Id: I8f7dcb78b9bdf1a13ce403a997fbb8619f2b453b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
1b06b59e28743b713947947437ea5b312477f808 24-May-2012 Jean Chalard <jchalard@google.com> Fix a bug with a concurrent modification of a map.

Bug: 6538848
Change-Id: I1a8422356d9909213e53cfdc8c5bcc12eb48f19d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
b5db270962f03abd6ba416e3fddf02356e8b7ce9 23-May-2012 Tadashi G. Takaoka <takaoka@google.com> Remove unused private method Suggest.searchBigramSuggestion

Change-Id: I077c4c019676fefb8eac6042bd7db1b7ab33ca03
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0028ed3627ff4f37a62a80f3b2c857e373cd5090 16-May-2012 satok <satok@google.com> Use "float" instead of "double"

Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f837b57bf51b2767ec62a6140b28d84383ad75b1 16-May-2012 satok <satok@google.com> Merge "Reorder suggestions result according to auto correction threshold" into jb-dev
db1939dbaa1de59eaf5693e2c89b02b323e9aac8 15-May-2012 satok <satok@google.com> Reorder suggestions result according to auto correction threshold

Bug: 5413904
Change-Id: I3aa3a8109ba45d2129b58d8242866fd3dd3473cb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ed49e4d82e3050bcf0e96babb40ce908d03f87f2 16-May-2012 Jean Chalard <jchalard@google.com> Merge "Stop meaningless bigram computations" into jb-dev
f0e12a969974987f1b97929886c6ebe6a685c538 16-May-2012 Jean Chalard <jchalard@google.com> Don't auto-correct when there is no main dictionary.

Bug: 6502485
Change-Id: I5803b0db8552867110587a1140fc03fc2e0eccef
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
a86c0f1ea4ef9a55ed4b6d64471080b22f28ec6e 15-May-2012 Jean Chalard <jchalard@google.com> Stop meaningless bigram computations

Bug: 6313806
Change-Id: Idf765b40812a43de13aa166ed0b44c7b5f7cc218
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0142b997bf18f5d07e83b3fd403f0b3ea4736040 14-May-2012 satok <satok@google.com> Do not set "SuggestionSpan"s for suggestions from the next word predicition

Bug: 6294817
Change-Id: I5010eafa5ba7e947743706adf7e722f4f0cfb415
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4b5b46bb66bf74ef5edd65c55e186b02f3c56e5d 26-Apr-2012 Jean Chalard <jchalard@google.com> Don't autocorrect after suggestion resuming

Bug: 6105732
Change-Id: I92e7a9c6d6eb648f747c3b396d7993479fd8478a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0806bb01d9e857db9fbac38b9b6e77feb9e9e4c9 19-Apr-2012 Tom Ouyang <ouyang@google.com> Binary bigram lookup checks both uppercase and lowercase when previous word is uppercase.

Bug: 6363029
Change-Id: I71a1ed5b88f54fcc15bfaf89d3645b8f17ebb821
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ac27e4544b5b5ff7b4f365a4bde5c288d511ae13 16-Apr-2012 Jean Chalard <jchalard@google.com> Pass the previous word to getSuggestions

This is a preparative change to bug#6313806

Change-Id: I1be9ec49b21005c1f45ce459fa93712bc74ef3f0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
18222f8c863e509538857b1fafca9c696fae2f55 26-Mar-2012 Tom Ouyang <ouyang@google.com> Add a new binary contacts dictionary based on ExpandableBinaryDictionary and use locale for bigrams.

Bug: 6188977
Change-Id: I753422eed1effaeb5fd01124cf1ddd1e31ee9d60
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
e6269759d642eac0a03ae6942acb5cd556e7ff46 11-Apr-2012 Jean Chalard <jchalard@google.com> Read the dictionary resource in a more sensical place.

We don't need to pass this down all the way from LatinIME any more.
It fetched be done exactly where it needs to be.

Change-Id: I9f277f9c4f9de70ae755a1334d86c67bbb24c988
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
338d3ec725a952cbe603ac8b2d49c337463f4093 06-Apr-2012 Jean Chalard <jchalard@google.com> Replace the flags in getSuggestions with a boolean.

Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd

Conflicts:

java/src/com/android/inputmethod/latin/Suggest.java
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
24aee9100e92dc4c06cdb54487a4922420fa8660 06-Apr-2012 Jean Chalard <jchalard@google.com> Change the flags to a boolean in constructors.

Change-Id: I9939204f3b16346aaebd4d726315ba9c4faf910a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7540fd009d47d7210f1bbbbae75582698be6f313 06-Apr-2012 satok <satok@google.com> Merge "Fix the locale of the flags in BinaryDicitonary for tests"
aa300bb73a970a42ffb8bc8c5419c22191a7c08a 05-Apr-2012 Ken Wakasa <kwakasa@google.com> Don't draw red underline for manually picked words that came from bigram prediction

Change-Id: I544680c8b4b1baff71bd08168630a34e803c40b9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ae234abd215fe22d53c0b5fa6c973a982adba50c 04-Apr-2012 satok <satok@google.com> Fix the locale of the flags in BinaryDicitonary for tests

Bug: 6129372
Change-Id: I5611f88b10c44261b6145c9dc8615b80e4341e77
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7e518d8b8358c96b94b900f0917cdc5fd8190ce1 02-Apr-2012 satok <satok@google.com> Combine candidate words and scores

Bug: 5240798
Change-Id: Ie56c1c2cfd7f365e771fee88c1ed15012448feed
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9ffb94fa1318f354692fab7abf4775fa14397a96 16-Mar-2012 Jean Chalard <jchalard@google.com> Rename the user history dictionary.

UserBigramDictionary -> UserHistoryDictionary.

Also update all methods, strings and comments, except those needed
for backward compatibility (which only include the name of the
database file).

Change-Id: I0bccea29880dc566b90100575b83baaa947b03ae
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
660776e09b9a3b321074a94721d901a035ca1b9f 16-Mar-2012 Ken Wakasa <kwakasa@google.com> Small performance improvement by removing interface accesses.

Change-Id: I6d91f3b086470b79306dbe2874db9748b9e0eb5f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3187ba5dfe4bd3c781bae01233314cbcd6e64dc5 15-Mar-2012 Jean Chalard <jchalard@google.com> Remove a now-useless flag.

This has been moved to the SuggestedWords object and is now
represented by a single flag instead of a flag in each suggestion.

Change-Id: I6e9a7cff5a7701de7e61b4de13baac25c9a87b1b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
03a35170751a635332c00bf6c272a0127a255cf6 15-Mar-2012 Jean Chalard <jchalard@google.com> Add info for obsolete suggestions in SuggestedWords

Change-Id: I9684c7b08244b34853ce8a99b6e9d885389f6687
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ca3e7cbdf43baf8f70d8f71d04de5b1b09345461 14-Mar-2012 Jean Chalard <jchalard@google.com> Move a computation closer to where it's used.

Change-Id: I5aee4c36ceaacbb1dbfc47c011f1e4aec4b9dca6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
271e5b6cb7b93ae7ca5dc17699734b2d5ca4212d 14-Mar-2012 Jean Chalard <jchalard@google.com> Some readability improvement

In-place replacements of visibly identical things.

Change-Id: I02b51bd7f63597e3428f0650b239e9a39ef5a7c7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0d0f182959600d83c376e6b844337ea45e5ddbbf 14-Mar-2012 Jean Chalard <jchalard@google.com> Cut out a private method to make things more readable

Change-Id: I791700890338e023bd86b8794dbc90379b91dc7d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ac5e463402f7c15a941a5eda93e9576c2a904f1c 14-Mar-2012 Jean Chalard <jchalard@google.com> Minor optimization

We know the size in advance, this may save a few allocations

Change-Id: I2fb9a725f34ba2da4f34ed335652f10447d5d166
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
def4551c2a570e7f575b2e9303506d790c2f335f 14-Mar-2012 Jean Chalard <jchalard@google.com> Some code simplification

Just write the same thing in a more succint manner

Change-Id: I08a2c5edd52a3502914541061fd5b6ee7a92ebc4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4a08b2f0e4d0ee7f1d89b4eb3c77c37d987584ea 14-Mar-2012 Jean Chalard <jchalard@google.com> Cleanup & optimization

Renaming some variables, and obvious optimizations.

Change-Id: Ib716748e9f3d602cf276dcd4e73f3bcfb819585e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f985efe39c98d03125884b140d7c64bb28914018 14-Mar-2012 Jean Chalard <jchalard@google.com> Remove a useless parameter

Change-Id: I03005240238fb004c20b2df0d836796e2e8b307f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
bdf6d1b18b3cebdde5f39d10066ead34be161baf 14-Mar-2012 Jean Chalard <jchalard@google.com> Remove a useless method

Change-Id: I208dd2e725e37c2fb3cd51fe48194679e5912f6b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7d55c891afdf7e74e505acac998a95a9ca7a9ec2 14-Mar-2012 Jean Chalard <jchalard@google.com> Make the Builder private

Change-Id: I2184084f4b7729c4324f8291d548bd4c4c2872a1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5b0643f50d8c363296360f3ceaf32f7edc157141 14-Mar-2012 Jean Chalard <jchalard@google.com> Re-sequence the last calls to build()

Change-Id: If77ee5aa9483d3ca03c52812f31665dee6468e99
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
88bf1ba5263f5a5c1df367ddc401db4109ef8677 13-Mar-2012 Jean Chalard <jchalard@google.com> Move up the static methods of the Builder

Change-Id: Ic3e07b745b7b24cae0f772ea49e0de615b44caf9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
e3afb7d19276676d28ca018e5f156892e137a96e 13-Mar-2012 Jean Chalard <jchalard@google.com> Make the Builder fully immutable at last

Change-Id: Ie399ca7a9e76ccab44a92bc378d11f92392fed2c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
6ffb5018c1355f70230d19899124633c92ce64f0 13-Mar-2012 Jean Chalard <jchalard@google.com> Straighten out the last bastion of the Builder

...and go for the kill

Change-Id: I5ad57211b250d2578ca22a5dae93344d52f9da80
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
2e2519ee914d4bf9462950553840557a4c19faed 13-Mar-2012 Jean Chalard <jchalard@google.com> Make still more members of the Builder final.

Change-Id: Ic455f97247da5e40d4939555ab639ecffef36e2d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
bd4ba23d2b661094d3bd32ee3ef9965775c7d859 13-Mar-2012 Jean Chalard <jchalard@google.com> Some code reorganization.

Use the same local variable inside both branches of an if.

Change-Id: I61f7d506d984f3723ec90604416d1875dd97cd8c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
b5eeb724fc98bb7169683539027d9ba54ffb8b14 13-Mar-2012 Jean Chalard <jchalard@google.com> Make some more Builder attributes final.

Change-Id: I3132b7fe4ee97c566736bfc21c3783cfc79fc7ff
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c60fea852d0eaaed7f212dbab0af500d07188c69 13-Mar-2012 Jean Chalard <jchalard@google.com> Make the suggested word list final in Builder.

Change-Id: I2ddfab00dc8c141fc989a051f16eb2b3571b7e86
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
08adb09e149f920a63ecbc5c2f63d9cb7dbee0ab 13-Mar-2012 Jean Chalard <jchalard@google.com> Remove unused stuff.

Remove 2 methods that were left only for tests to compile in
another project, but are not used any more now that the tests
have been updated.
Also remove an attribute that is never read.

Change-Id: Ic9ba1f52a465199c82c923d77ed7450460e8a4b9
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
674ffcdf9361b3c90cc39daf02f3217fb6d870de 13-Mar-2012 Jean Chalard <jchalard@google.com> Make an add into a set.

This method now only sets words, so it should be named set.
The functionality is identical since there are no more places
where the list is reused.
This will also allow to make the list final in an upcoming change.

Change-Id: I25b0c7d7f13c3fa5d89806f01f48f1026769603f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
d6662ecd306e1084af81c79df61cf52ef6da75ea 13-Mar-2012 Jean Chalard <jchalard@google.com> Cleanup

Remove an unused method, make others static, fix a formatting
issue

Change-Id: I40cb0b5e01a6f8e2f7b953bd9aad3168dfee71d1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
adf218eed544f2239ca5394b8a6bcc542d89a4d9 13-Mar-2012 Jean Chalard <jchalard@google.com> Kill the StringBuilderPool.

The intention may have been nice originally but these end up
being copied anyway :/
Let's remove them now, and in a later change, just keep
references to the created objects.

Change-Id: Ifba8357c20384f9eb40cd916665ed1fc6dc8cab1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
d0d4074392a844602d068b17733fe16b1af94d86 13-Mar-2012 Jean Chalard <jchalard@google.com> Remove a useless parameter.

Change-Id: I7625bf17158c207ad7e8cd496bef825704173c4c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c3c4ed91cf34cffc8f5c0f6919bf08a31f9b18ad 12-Mar-2012 Jean Chalard <jchalard@google.com> Consolidate words into SuggestedWordInfo

We can't get rid of SuggestedWordInfo because it conveys
the information about whether a suggestion is outdated or
not. It is always created anyway. So it makes sense not
to have separate lists and to just keep everything in the
SuggestedWordInfo object.

Change-Id: Idd79dc267d97633901d3d2869da457736963e178
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
682c2d53cc5a8ec9d79e4fe4276c6e940c8f251e 09-Mar-2012 Jean Chalard <jchalard@google.com> Make access to the safety net calculation easier

Change-Id: If33897b38af94ae81b05e5ef140a542724b9f34a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
151d5cb5326f90d4f5856ebb3bb5ce338229ce7f 09-Mar-2012 Jean Chalard <jchalard@google.com> Extract a condition from a method

Change-Id: I6b0262fe7cb3f7a31cc19d724c301467be932640
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
36c1b379144bcb7e5a46e3ffb8817075d4f73ff3 09-Mar-2012 Jean Chalard <jchalard@google.com> Remove a useless argument

Change-Id: I713433a3225193489fad5bdafcf302b529903116
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
28e59b98c6b8601a1b515c7332f3ada1c149ca5f 09-Mar-2012 Jean Chalard <jchalard@google.com> Remove a useless escape

Change-Id: I1ef0685cc9888c9cef9f60015d32b66dde75ef9b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ed9986824e1339855376771ad29fae4de921a029 09-Mar-2012 Jean Chalard <jchalard@google.com> Move some auto-correction logic to where it belongs

Change-Id: I897c5ec3a630a4a6bfc593906df4d3fc7b244482
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0cf422fbb763e2672fb2f9e8e1e8af91d2e87cb3 09-Mar-2012 Jean Chalard <jchalard@google.com> Reduction, step 8

Change-Id: I54334039597e235e24f169e34c1d44109180ee88
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
a333ff19ef330c93287cfa0f6568d0cdcd431b04 09-Mar-2012 Jean Chalard <jchalard@google.com> Reduction, step 7

Change-Id: I177ef2f29c8b6000c5e3d021c016c5d216fe3fc6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
a3ee019331e2d8881e19185fba9ccebfeb170614 09-Mar-2012 Jean Chalard <jchalard@google.com> Reduction, step 6

Change-Id: I22ad4cea0e0cac23813da7e788f5c94974ce0ebf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
dbd140504d0f1c6b02998d0899efc853e78a3966 09-Mar-2012 Jean Chalard <jchalard@google.com> Reduction, step 5

Change-Id: Iac52e62c2bdffad14f916f69eade2b785bb41767
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0b96bc4b2b9c523c0228ed53e4576518cd7ab3eb 09-Mar-2012 Jean Chalard <jchalard@google.com> Reduction, step 4

Change-Id: Ib27dc6e9486c3f0f2ec1e94a88a52d12c1af2d38
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5a61d03f318c2813c75b2c2e7057019f9ad472c7 09-Mar-2012 Jean Chalard <jchalard@google.com> Reduction, step 3

Change-Id: I0e08b102c9539d97c473505b9d42176c4a7c8853
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
8abd15b59f87f2738b0d27b7c24a126b1450a17c 09-Mar-2012 Jean Chalard <jchalard@google.com> Reduction, step 2

Change-Id: I06e117df43d25dbaf9fc7a7366efd9355a6215ce
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f08f30176b2020b36fa6ee856d9a0b84ee5b1fba 09-Mar-2012 Jean Chalard <jchalard@google.com> Reduction, step 1

Change-Id: Ic3ed04300cfd4c0b69b93b27379aca4093b32f67
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
de165aed2ab9bfa13b5227cfe29d0770092db468 09-Mar-2012 Jean Chalard <jchalard@google.com> Separate bigram prediction from suggestion process

Change-Id: Ibdef206fbd6688a45cebbd7fb8a9f6cd175d03b0
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
67af2a24157ead953607bdfd585fba3a7e6bf50c 09-Mar-2012 Jean Chalard <jchalard@google.com> Export some more logic out of Latin IME

Change-Id: Ib264533a05e9e09347bf254789e6ab5beec92400
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
df9fce5df1bacdffb39c7926bdda4b205f186998 09-Mar-2012 Jean Chalard <jchalard@google.com> Export some logic out of LatinIME

Hopefully that will end in Suggest/SuggestedWords being autonomous
and won't need the logic spoon-fed to them

Change-Id: I915661bce13c69c8a5b8e5d4a8c41e18fea594cf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
de19ab878dd70ca9b2a9a3b18ee48c44a93a0b38 09-Mar-2012 Jean Chalard <jchalard@google.com> Merge "Remove useless tests (B5)"
54392438c57544c7bcabc0def058a0dfba9243f1 09-Mar-2012 Jean Chalard <jchalard@google.com> Merge "Optimize and clean up (B2)"
92146f29269a799935c00c530d05829d7f17cc9e 09-Mar-2012 Jean Chalard <jchalard@google.com> Remove useless tests (B5)

WordComposer#getTypedWord() may not return null. Don't test for it.

Change-Id: I6aff14892503d0c275a3328c404ed99d2f40a687
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
94b20c90d86aa042c2f361597665045271956dec 08-Mar-2012 Jean Chalard <jchalard@google.com> Optimize and clean up (B2)

Stop parameters from escaping and don't do useless work and
simplify the code.
Yay.

Change-Id: I0dfc3e14b1cb50e0730f6d9c1d52b54516baa90e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
13fb8fb775f77610105115d7cb30f6177ec6d771 08-Mar-2012 Jean Chalard <jchalard@google.com> Limit escape of parameters

Change-Id: I3a7ab069042d5542ab2e033d1eeb13d718cd7698
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
23a5e9d1a78f42e76996e756fd1d6a37fc2ac679 09-Mar-2012 Jean Chalard <jchalard@google.com> Merge "Make AutoCorrection static and non-instantiable (A5)"
2621fe2256b68e59070d632dce72f35281bddf89 09-Mar-2012 Jean Chalard <jchalard@google.com> Merge "Move a memory in the container class (A4)"
427dfe37ec1f94693a4ddbdba6b090828c261d88 09-Mar-2012 Jean Chalard <jchalard@google.com> Merge "Remove an unused method"
58722d83f02074a309bc2c447ca74f357f7c95f0 09-Mar-2012 Jean Chalard <jchalard@google.com> Merge "Stop uselessly remembering a value (A2)"
caae6df0ced5f98c68302d9f9228238e3e6af32c 08-Mar-2012 Jean Chalard <jchalard@google.com> Remove an unused method

Who would have guessed this wasn't being called at all.

Change-Id: Ib74a212356ea44e9bf149619ed5464c14684a1ba
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
82adfdaeae20b20eb24a5fe69eeefa37f36b4115 08-Mar-2012 Jean Chalard <jchalard@google.com> Make AutoCorrection static and non-instantiable (A5)

This needs change Ic6756baa to not break the build

Change-Id: I1c772dd99d63fec5d3ad67a0eb7fbc28ec7a0f0f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7a580a4769f1adb34cbdb6346f53ebf2e12f260b 08-Mar-2012 Jean Chalard <jchalard@google.com> Move a memory in the container class (A4)

This allows us to make AutoCorrection a purely static class.

Change-Id: I15b81bd7f3d6ea487154a5b09a81bc323be82ce1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
719f92fc77d10a55fe78daa5bce9617d8a0af335 08-Mar-2012 Jean Chalard <jchalard@google.com> Stop uselessly remembering a value (A2)

The value is only used in debug mode, and it can be recomputed
at the time.
This change does not impact the logic. There is however a side
effect: in debug mode, the normalized score will be displayed
also when the word comes out of the whitelist or is a valid word.
It's actually a good thing.

The end purpose is to make all methods in AutoCorrection static.

Change-Id: I1642b1fdfa6ae62b8aa2fed94a8a26ff4a7e4d0e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
cc8c8b99bd0463f5977dea82f5e2379ea1dd4e73 08-Mar-2012 Tadashi G. Takaoka <takaoka@google.com> Split Utils class to StringUtils, SubtypeUtils, and JniUtils

Change-Id: I09e91675fe7d573dad8c933ad513b21d7e409144
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
ca7ec2097ca6af1505c1e6aa8b81b6068ba46dae 06-Mar-2012 satok <satok@google.com> Integrate the logic to calculate the proximities

Bug: 4343280

Change-Id: I0f6a7e6912ed4abea07c10d266da4c7ccb0dae76
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
6e082cb30dbe1a8cc314b474dc1377b85fdb25c2 25-Jan-2012 Jean Chalard <jchalard@google.com> Convert an internal enum into an int of same underlying value.

Goes together with Id4f4e066

Bug: 5922118
Change-Id: I1e39dd01c67e9284d9d7fe008d868847e69986d7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9c735b803809add04d865a039259686b220a0e93 13-Jan-2012 Tadashi G. Takaoka <takaoka@google.com> Fix SuggestTests

We need revised scoring test because dictionary look up algorithm has
been changed significantly since this SuggestTests was made.

Change-Id: I69d527a6bfa24ed0dc189fddad1afab0566c6eb8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4606de117b7541125f3f15bd6b50d77ed20e5132 08-Dec-2011 Jean Chalard <jchalard@google.com> Stop a flag from escaping.

The ultimate intent is to close it up in the settings, as it does not
change while typing, only when the keyboard is open again.

Change-Id: I12ff56e7482c1584877fe5531473bf03e95a60f6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c1fdd966a73c2ddda73307d5f811935dbac5bf69 08-Dec-2011 Jean Chalard <jchalard@google.com> Remove a useless method

Change-Id: Ib6a0ee21bfe2000231f9ba7bcad4b18ae57e4249
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
117fc18ed46496c81596f8207bba30a09c7317d1 29-Nov-2011 Jean Chalard <jchalard@google.com> Keep count of the trailing single quotes for suggestions

Bug: 5665809
Change-Id: I4d9100dbe980861ccb55c78464524be670cac1f7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c83359f9746ca6f0269a1a7017b585c1a5cab9b8 18-Nov-2011 Jean Chalard <jchalard@google.com> Special case quotes at start and end of words

Single quote at start of word is not considered a part of a
word any more.
Single quote at the end of a word now behave like capitalization:
lookup in the dictionary is done *disregarding* a final quote,
and it is forcefully added back into the suggestions afterwards.

Bug: 5566368
Change-Id: I14dd3815f4b743edba56d64a3abdf4b73d863a6a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
8fbf29e2d54027a17993cd0d4ad486e3454b56f6 28-Oct-2011 Tadashi G. Takaoka <takaoka@google.com> Make some private method static

Change-Id: Ia23765268be0ef89d7fe7c3f5372ed32d6615765
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
fee149abe0358ff0efcebff3d0b60d8be83af437 06-Oct-2011 Jean Chalard <jchalard@google.com> Use the whitelist as a dictionary in the spell checker.

Bug: 5402436
Change-Id: If89b8bbdebf6751697c4788270d01d4639cff665
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3458d61807a03ed7fb8571488ee0fcbff39e07f8 06-Oct-2011 Jean Chalard <jchalard@google.com> Make the whitelist an instanciable class.

This goes together with I6b8628b9acc32449e4147a2a754b222fbb76c754
or it will break the build

Bug: 5402436
Change-Id: I07c6266b713773a8de80bb22afdd4c566261f78a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
904baab25a4c6ec5d9c4bf7e562154e3f544d296 03-Oct-2011 satok <satok@google.com> Remove code related to AutoText

Bug: 5245751

Change-Id: Ic02f951e8e1dbde9d8964d2c16e4928fb374ca41
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5c08151c227d98031abe27c3f0a8f43a7126ae9d 15-Sep-2011 Jean Chalard <jchalard@google.com> Avoid returning an object that's still used internally

There is no definite path known for this to end up being
touched by other classes, but we could imagine through
some way or some other it ends up shoved in the stringbuilder
pool, leading to catastrophic results.

Hopefully related to
Bug: 5248688

Change-Id: Ib8abfc31263cbf31d515ed607ced5d8253971938
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
358e1327d8d1c392ab711778d8e616400360e313 31-Aug-2011 Jean Chalard <jchalard@google.com> Fix a bug where autotext would occasionally not work

Autotext correction would check whether the first suggestion
so far was the same as what Autotext would return, and if it
was indeed the same, would not send its result as
autocorrect. However, the first suggestion is not guaranteed
to have a high enough score to trigger autocorrection, and
there would be cases where a word in autotext would not get
autocorrected because the word came out of bigram
suggestions. These occurrences would be extremely rare, as
they would require concomitant insert between autotext for
one char and bigram suggestion. It is, in fact, probably
limited to the capitalization of "I".

This did not happen in gingerbread because gingerbread would
not register 1-letter words as valid bigrams.

This fix works by just always sending the result of autotext
regardless of whether it is already the first suggestion or
not. This is okay because duplicates are removed afterwards
anyway - and this processing is absolutely necessary because
the autotext'd word may actually be somewhere else in the
suggestion, so it made really no sense checking for only the
first one.

Please note that there is also a race condition that can
result in "i" not being converted to "I": at the moment,
Latin IME relies on having the suggestions evaluated
at the time autocorrection is performed, but when typing
very, very fast, those messages may have been canceled.
This is not limited to the autocorrection of "i", but
affects all autocorrections. It requires a nearly
inhumane typing speed to trigger, but hitting "i" and
space in turn as fast as one can it's possible to
reproduce occasionally.

Bug: 5135113
Change-Id: I530ea6212487300001a2c0fc5b25a5c7716bdf63
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
a6e912cf9849f5c979303042ce83820a8dc560d0 23-Aug-2011 Jean Chalard <jchalard@google.com> Fix a bug with the string pool.

This also adds some optional debug code to detect more easily possible
future occurrences of the same problem.

Bug: 5195017
Change-Id: I2558b468e46f7090de868f1ec2dc9e24895d670f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
6da8b74582b1c70cae02558c605c5a224329cf7a 19-Aug-2011 Jean Chalard <jchalard@google.com> Move the dupes-removing method to the Utils class

This is preparation for bug: 5175740

Change-Id: I18b2042317f740cb1e021d3dfbf90ecfbb1a1d37
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4e01afc520da212b73804164d4d5a1c62239b02a 17-Aug-2011 Jean Chalard <jchalard@google.com> Make the string builder pool in Suggest a singleton.

This is internal refactoring, done as preliminary work to fix
Bug: 5175740

Change-Id: I21bd4c001c27e7b925ddb87a152105b4dcab320a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3016863f86279d0be04c0285fefce6861415f242 17-Aug-2011 Jean Chalard <jchalard@google.com> Refactor string removal to make it static

The next step is to move this over to the Utils class.
The ultimate goal is to make use of the duplicate removal code
also in the spell checker as per
Bug: 5175740

Change-Id: Ica36691b843b0713b832c56ffc65e5b2ec427c4a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
14051e2b5343db4b0531b7b4b806da0c09d6e251 09-Aug-2011 Jean Chalard <jchalard@google.com> Stop reloading contacts when not appropriate.

A recent change had the contacts reloaded every time a new field
is touched. This change not only fixes the problem, but also removes
reloading contacts when changing language, which should make language
switch within LatinIME lighter.

Bug: 5125034
Change-Id: Ia61c4f75a8617113cdce88a2e2c6fdf073146a2d
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c769ef4dd17ff9561e99528624f74b9072a09fbb 08-Aug-2011 Ken Wakasa <kwakasa@google.com> Correction mode should not rely on the existence of the main dic

bug: 5114094
Change-Id: I2088918ec2c9ad6f8db13b55e58d3e73e180aef8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
043f7841985916717f4fa821fe3e423daf3ff2f5 03-Aug-2011 Jean Chalard <jchalard@google.com> Create a way to pass the proximity info to the dictionary

This is a preparative change for inserting the spell checker.

Change-Id: Ie441879cac4f67078ec27a95f1fcbbf3ef373df7
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3af9f05f2916e376f265974c820c369a6c63a780 21-Jul-2011 Jean Chalard <jchalard@google.com> Load the binary dictionary asynchronously.

This should help with LatinIME opening performance.
It should not be merged before Ia9e4741f (if it is, there is a
race condition where the wrong dictionary is opened).

Bug: 5023141
Change-Id: I39c52de70a449929a622dddfdd92b38425ad9416
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
f4223452119f9ff8b52f026f7ef92d961736dc51 15-Jul-2011 Jean Chalard <jchalard@google.com> Rename AutoDictionary to UserUnigramDictionary.

...and adjust internal functions, variables and constant names.

Bug: 3459274
Change-Id: I1b11c6adfee360ac0fc22d627955688b3dbdcffc
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
35f20916e5348d7fa485ba8eb0a5cf2e67f4f354 21-Jun-2011 Tadashi G. Takaoka <takaoka@google.com> Support Turkish keyboard

I left TODOs in Suggest.java because we must pay attention to locale
when changing character's case. Filed another Bug: 4769095 to track
that.

Bug: 4768050
Change-Id: I1ae2c4ffd2208403a8c2a25dd3a56b71dcefc826
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
3439c72639d50921a87ab6f9d3aa1bf941aef8d2 20-Jun-2011 Tadashi G. Takaoka <takaoka@google.com> Close dictionary appropriately

The dictionary that extends ExpandableDictionary must be closed when
it becomes unused.

Bug: 4725930
Change-Id: Ib5d2c39771fb7010d303a26d1ea1c8e237c0101f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
86e815a142c8aa13213151e381a8a24ef23073d3 14-Jun-2011 Tadashi G. Takaoka <takaoka@google.com> Implement expandable candidates pane

This change removes horizontal scroll from candidates strip. Instead
of that this change introduces "fixed 3 items candidates strip" and
"expandable candidates pane".

Bug: 4175031

Change-Id: Ia367d9074436fdea76d3b653d81798ce2749170e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
699094f9b6e0a4621e8b3cfab70b59c0c7c086bb 10-Jun-2011 Jean Chalard <jchalard@google.com> Add an option to use or not the contacts dictionary.

Bug: 4586840
Change-Id: If62cd57e5ab661e6a51a5442d09bf0af8f08f263
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
4250eb27f54f8fedc388fe4825b0646a88778744 26-Apr-2011 Jean Chalard <jchalard@google.com> Create a dictionary collection and a dictionary factory.

The dictionary collection is a class complying to the Dictionary
interface that acts as a front end to a collection of arbitrarily many
dictionaries of any type.
The dictionary factory is a helper class for creating various
dictionaries and get some meta information about them.

At the same time, this change makes the BinaryDictionary class
not a singleton any more.

This also needs I9afe61a9 to not break the build.

Change-Id: I61fdcc4867fcda18342807bf1865e6e46979e5d5
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0c8d5ca023d54b7c9ef6c20eb7988288132bacb5 26-Apr-2011 Jean Chalard <jchalard@google.com> Fix Eclipse warnings.

This change is only there to fix warning issued by Eclipse.
It should have absolutely no impact on the program logic.

Change-Id: Ie0e242ac6c167297d33de19902340b0f6ecae9e1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
89bd776cf68150202d774d62cc1c88664aea5e9f 20-Apr-2011 Jean Chalard <jchalard@google.com> Use user-history bigrams when no input if available.

This also fixes a small inconsistency upon clicking on whitespace
twice in a row.
Also add some unit tests for an introduced and an existing method.

Change-Id: I1be2fb53c9624f4d0f5299009632cb4384fdfc15
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
15a0ba6d74feed57124938336f951ae14aa47ad9 21-Apr-2011 satok <satok@google.com> Check the availability of layouts for showing the input languages in the settings

Bug: 4316889

Change-Id: I746b3ff79c2a6cd4925fca1817d5b209623b5108
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c899038eee5c01d520a2707cca01ee093a674d05 20-Apr-2011 Jean Chalard <jchalard@google.com> Move language-specific keyboard setting to resources.

Some flag settings used to be stored in a keyboard layout extravalue setting. This
change:
- Introduces the capability of setting such specific flags in values/config.xml
- Retains the ability to use extravalues (for layout-specific settings), though
there is no more any such setting at the moment.
- Fixes a bug where loading a dictionary from outside does not initialize the flags.
- Moves Flag to another class.

Note: this needs I705ec68c to avoid breaking the build

Change-Id: Ia7703aae3215b06c0b3cb792821649806e8998c1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
cba93f50c3d46ada773ec49435689dc3e2094385 14-Mar-2011 Jean Chalard <jchalard@google.com> Add different ways of reading the dictionary file.

This change adds basic support for an external dictionary provider.
It adds methods for reading the dictionary itself from an asset in
the dictionary provider package directly, obtaining the file name
through the ContentProvider interface; it also adds a way of getting
the data through an InputStream and copying the file locally.

Incidentally this change also adds the code needed to listen for
updating the dictionary provider package and reloading it in time.

This change also goes hand-in-hand with Iab31db6e, which implements
the small closed part of this.

Issue: 3414944

Change-Id: I5e4fff99a59bb99dbdb002102db6c90e6cb41c8a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
071f47140cec02197de5e163f45c77990b39457d 15-Mar-2011 Tadashi G. Takaoka <takaoka@google.com> Refactor BinaryDictionary a bit

This changes:
* Flag initialization code in BinaryDictionary to be more unit test friendly.
* Removing unnecessary class hierarchy of LatinIME inner class WordAlternatives.
* Formatting normalized score neatly.

Change-Id: I9f10c093d4f36258fe883cf3fb10cbbda2770497
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
e7a2512aa3666e1b891dc7dfc5a0cb28fd66bea9 15-Mar-2011 Tadashi G. Takaoka <takaoka@google.com> Add Utils.equalsIgnoreCase methods

This change also corrects usage of "frequency", "priority" and "score"
* Frequency is the relative probability in dictionary.
* Score is the relative probability in suggestions.
* Priority is kind a sorted score.

Change-Id: Iafb135a4ecdb401cc505014a07c74dfcac44d699
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
d631651b1291aef52bdd6ea7caaf9b95c9704506 15-Mar-2011 Jean Chalard <jchalard@google.com> Avoid the removal of high-ranking exactly typed candidates.

It used to be the case that the scoring system turns up the same word
that was entered with a different capitalization, but with a lower
score than some other, more frequent word. To cope with this, there
was code that would order such candidates in the first slot no matter
what. This processing is now useless because fully matching words now
have a huge boost that ensures they will get to the top of the list,
before any non-fully matching word (which means, differing only by
capitalization or accents).

The bug that did happen with this was, if a fully-matching word got
matched by several processing passes, and the (chronologically) later
score affected to this word was weaker, it would result in the
duplicate removal pass removing the stronger score. This in turn would
mess with autocorrect.

In an effort to keep the risk at a minimum for MR1, this change does
not actually remove the useless code, but adds a check in the odd case
to avoid the bad situation. Another change will remove the code for
ICS release.

bug: 4100269

Change-Id: I18c0575332981ffec0e257e26a360995838d521e
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
bcfce3b3b9dbd4f5db736948b74bd820fc639a08 04-Mar-2011 satok <satok@google.com> Add whitelist dictionary

Bug: 3447571

Change-Id: I538e4e706982129b666ca1ab1085f1b68b69f87f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
c2c44f94e705e74598ec944ab51f3bd13eb50dbf 04-Mar-2011 Tadashi G. Takaoka <takaoka@google.com> Cleanup Suggest to be able to be unit test ready

Bug: 3414081
Change-Id: Ia76afac4b1a61b8953a215b7cbdb7557736f7b9c
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9f67e12a0e3f77985fb8bafe0db4c00e32317b9a 02-Mar-2011 satok <satok@google.com> Move the auto correction functionalities to AutoCorrection.java

- Also removed a quick fix for 2nd or more suggestions.

Change-Id: I7bf46a9cd6a727473e68836954fca160c9d853e6
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7e99a28dfcc14f5b19220442db972ca8d786b4fe 02-Mar-2011 Ken Wakasa <kwakasa@google.com> Clear suggestion strip when the suggestion starts

bug: 3488704
bug: 3480132

Change-Id: Ie895d2ad1b58dc65fe16d65baa6fccafd4a142bb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
887f11ee43ad621aa6ad93d535ab7f48dec73fc7 10-Feb-2011 Tadashi G. Takaoka <takaoka@google.com> Remove next letters frequency handling

Bug: 3428942
Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
33e0b1e79e464ac48a09433bbfcbb17ded620452 08-Feb-2011 Tadashi G. Takaoka <takaoka@google.com> Add unit test helper method to BinaryDictionary and Suggest

Bug: 3414081
Change-Id: Idee64010f2f423d3c7c548d0279c7bf287088762
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5ef096f5f601c759e8a4a888aaca91ac5ccd9974 07-Feb-2011 Tadashi G. Takaoka <takaoka@google.com> Move and rename computeProximityThreshold

Move and rename KeyboardView.computeProximityThreshold to
KeyDetector.getMostCommonKeyWidth. And make it public for unit test
use.

This is a part of multi-project change (If751659a, Idb18f362)

Bug: 3414081
Change-Id: If751659a53c7412f836d6d28866760ffe84b179b
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
8553b5ec315660ab53dd9234e64e1e39ea09ec0f 31-Jan-2011 Jean Chalard <jchalard@google.com> Add debugging info for Latin IME.

Add frequency of candidates in the candidates view when the debug
mode is active.

Bug: 3312867

Change-Id: Ie911f14ef11b2fa02af8f3a74302129f16ed0604
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
b5d7857fbc28d311d93de10d9e99f26045a518f0 27-Jan-2011 satok <satok@google.com> Merge "Fix auto-correction threshold and promote full matched words" into honeycomb
14e427d5bb13d59d23fb317ef90a6c44ae279425 26-Jan-2011 satok <satok@google.com> Fix safety net not to be enabled at aggressive autocompletion mode

Bug: 3374359

Change-Id: I7b1dbeb64a87dda05397c236bb58da292f819471
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
58c49b91322847dc453742cb34c2899da9b44479 26-Jan-2011 satok <satok@google.com> Fix auto-correction threshold and promote full matched words

Bug: 3374359
Bug: 3278422

"zbe" will be auto corrected to "be" by fixing s-line
"teh" will be auto corrected to "the" by promotion of full matched words

Change-Id: I314c632820e4e0b1501edeca60ada205d291451f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
6f7218627eda110a8454053f8ecb7b80edfdc8ce 19-Jan-2011 satok <satok@google.com> Dim previously suggested words

Change-Id: Id673c03bfa22ea9ce1bedb5174d8309a37a2a460
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
82411d47ba7e8133ed2390c6920945e139a738ce 18-Jan-2011 satok <satok@google.com> Add a safety net for auto-correction.

Bug: 3353956

Change-Id: I6a32632b2f986f0d9a07aa72f256a2c41cc09873
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
da50e1e98dadc3733c615dfb8d87fe8b4688c782 17-Jan-2011 Ken Wakasa <kwakasa@google.com> Fixes in close() in BinaryDictionary.

Avoid using 'synchronized' in finalizer as well.

bug: 3340837
Change-Id: I9b28f54e4490ecb844ba33a379f71b625e4246a2
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
e90b333017c68e888a5e3d351f07ea29036457d0 07-Jan-2011 Ken Wakasa <kwakasa@google.com> Load main dic in native

Follow up to Id57dce51

bug: 3219819
Change-Id: I00e11ef21d0252ffa88c12dffb9c55b0f2e19a66
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
458249e703bded3a1cbd25a2ab2249f9366a8188 04-Jan-2011 Ken Wakasa <kwakasa@google.com> Consolidate main dictionary files.

This change is a preparation for upcoming optimizations on dictionary file loading.
* We can consolidate dictionary files because we are no longer relying on Asset Manager.
* Stopping compressing dictionary files as planning to use mmap() on the region in the apk file.
* Probably we won't rely on Asset Manager. Instead we'll probably use offset and size obtained from AssetFileDescriptor.

Change-Id: Id57dce512fd3d2397a58628f8264bd824194da76
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9fb8c6dd48dfa4e45827628a866d9b13c4c6c799 19-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Suppress punctuation suggestions if not needed

Bug: 3294256
Bug: 3284745

Change-Id: I77d54cbfcc2e809315bab59ecb808ae944982501
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9ecad8c2e8571ece6f3f7fbb19ceda5be7866cf0 12-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Fix auto correction threshold values array reference

This change also removes unused argument from Suggest.getSuggestions().

Change-Id: I512f8695d22898bb906e136a66e0ee6b521cd1d1
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
1b1f7f907f6c7d6e849c88ca06c3608bc84d7c5f 11-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Cleanup unused string resources

This change also renames some "completion" to "correction".

Change-Id: I156dd7ccafe99a632721f20769d5f0ea5915a564
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
7e181fe1010c8eac7814cc67a0c4b3864a10b151 10-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Introduce SuggestedWords class to represent suggestions list

Change-Id: I81677a785640d37296be8b42c7a74bd0c00edf46
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
9502cc177cc53678c9ddcc01d4d046f69220e13b 09-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Remove LatinIME prefix from classes

This change also cleanups preference key string constants

Change-Id: I58510f220a90d00d71a935731abeab87384675bb
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
cdbbea735f590784791f0c1fe33a514c4e864836 08-Dec-2010 satok <satok@google.com> Suggest excessive characters

bug: 3193883

Change-Id: Iea7a0fce7ce62d8779a7c7e4613d50db30d82b07
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
5a309f57155fb95667c2ccdda730eaf175de8876 02-Dec-2010 Tadashi G. Takaoka <takaoka@google.com> Move some inner static class to top class in new package

This change introduces new package com.android.inputmethod.keyboard
which hosts keyboard related classes.

Also adds missing @Override and @SuppressWarning("unused") annotation

Change-Id: I0317f5cfa317e13f3c77815f48ffc69b5d1ade05
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
fa086c90760bc2bedf0b74eacb0fed3bf7ebc2b7 29-Nov-2010 Tadashi G. Takaoka <takaoka@google.com> Cleanup unused Java import

This change also fixes wrong file mode.

Change-Id: Ifcf4c9444ddcdc62d2e4b394891d6eee135c1e8f
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
200ece79070750ba702a071908d990f8d1c41f02 01-Nov-2010 Ken Wakasa <kwakasa@google.com> Capitalization for "Quick Fixes" words doesn't work

bug: 3151706
Change-Id: I7770a1d26edb1ea72ee93396181953a724dcc4bf
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
b1abda8d62d654e876c4f781a07d724922c736e4 27-Sep-2010 Mitsuhiro Shimoda <halwhite@google.com> Add an auto complete's threshold option.

Change-Id: I3a6821ced8642ab8f954e79a25e31766e4a18eb8
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0b4ae1f578e768eec4ada90aeb81d11acb10eb2e 27-Sep-2010 Ken Wakasa <kwakasa@google.com> Capitalize the displayed text in the suggestion bar when all of the user typed chars are upper case

bug:3014227
Change-Id: Ic453e2fde57ce51be00f3a506e1c9328103ca99a
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
525141a402ac9a3fb3495cb069ad25b9ba1fc970 23-Aug-2010 satok <satok@google.com> Clean up LatinIME java

- remove unused code
- add @Override
- change the inappropriate cast

Change-Id: Ib25b4939e5b4273794ab0f6349776b5b62d89894
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
979f8690967ff5409fe18f5085858ccdb8e0ccf1 20-Aug-2010 satok <satok@google.com> DO NOT MERGE. Backport LatinIME from master to Gingerbread

TODO: Cleanup will follow.

Change-Id: I4a68ba9f2f55760aa24187f1f13fdfa8a0b70963
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
443c360d0afdbab091994244f045f4756feaf2b4 26-Mar-2010 Jean-Baptiste Queru <jbq@google.com> Clarify licensing

-use AOSP copyright instead of Google
-add NOTICE and tag file

Bug: 2548782
Change-Id: If50b2e9e9cc4b4876b0d047fc9f34e2d537a6da4
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
0c05902e331b03426754a1cfffe28d185dd8338c 25-Mar-2010 Amith Yamasani <yamasani@google.com> Don't auto-add when in suggest-only mode. Bug: 2521344

Also don't highlight quickfixes when in suggest-only mode
In general, reduce the situations where words are auto-added. It was
too eagerly adding even words that were in the dictionary.
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
1e5374e98b2707aecd774f495350a74be55ec5dc 17-Mar-2010 Amith Yamasani <yamasani@google.com> Remove popup for extension keyboard in landscape. bug: 2519903

Also add a summary text in the input language list for languages with
a dictionary so that users don't feel cheated when they pick a language
that doesn't happen to have a dictionary. Remove greek as it isn't an
extension of the QWERTY keyboard.
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java
07b1603a3f9611f6d15dd7fcedf883d6ef8e5817 09-Mar-2010 Amith Yamasani <yamasani@google.com> Don't let the native code target be included twice when unbundling.

Move java code to a different directory so that the unbundled
version doesn't try to compile the native code again.

Change-Id: I05cf9e643824ddc448821f69805ccb0240c5b986
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/Suggest.java