aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix SuggestedWords.toStringTadashi G. Takaoka2012-03-141-1/+14
| | | | Change-Id: Ide3f605ce40e8c230f217bbf37ab016457ee91f1
* Cleanup & optimizationJean Chalard2012-03-141-28/+24
| | | | | | Renaming some variables, and obvious optimizations. Change-Id: Ib716748e9f3d602cf276dcd4e73f3bcfb819585e
* Remove a useless parameterJean Chalard2012-03-144-18/+11
| | | | Change-Id: I03005240238fb004c20b2df0d836796e2e8b307f
* Remove a useless methodJean Chalard2012-03-144-29/+13
| | | | Change-Id: I208dd2e725e37c2fb3cd51fe48194679e5912f6b
* Remove the BuilderJean Chalard2012-03-141-31/+2
| | | | Change-Id: Idef22e6a82d59e3ec95b95ad237debcb07daf000
* Match the constructor of SuggestedWords to the Builder call.Jean Chalard2012-03-141-11/+11
| | | | | | | We have to match one way or another, and the argument order to the Builder call is more logical. Change-Id: Iac7c3a351c2687cb294d6a4924fd9cb20ca95177
* Make the Builder privateJean Chalard2012-03-144-17/+30
| | | | Change-Id: I2184084f4b7729c4324f8291d548bd4c4c2872a1
* Re-sequence the last calls to build()Jean Chalard2012-03-142-13/+10
| | | | Change-Id: If77ee5aa9483d3ca03c52812f31665dee6468e99
* Move up the static methods of the BuilderJean Chalard2012-03-143-40/+40
| | | | Change-Id: Ic3e07b745b7b24cae0f772ea49e0de615b44caf9
* Kill the last place where the Builder was being usedJean Chalard2012-03-142-29/+6
| | | | | | I had missed that one Change-Id: I9a5040a7a61e294396aa424de96a69dbb15f037a
* Make the Builder fully immutable at lastJean Chalard2012-03-134-16/+16
| | | | Change-Id: Ie399ca7a9e76ccab44a92bc378d11f92392fed2c
* Straighten out the last bastion of the BuilderJean Chalard2012-03-132-3/+10
| | | | | | ...and go for the kill Change-Id: I5ad57211b250d2578ca22a5dae93344d52f9da80
* Add to SuggestedWords a missing parameter, and use it.Jean Chalard2012-03-132-8/+14
| | | | | | | Also stop using Builder between its creation and the call to the #build() method. Change-Id: Ie1fc3ec7b6f4c7c3789f672f4e26b4bf58c3e062
* Make still more members of the Builder final.Jean Chalard2012-03-134-22/+22
| | | | Change-Id: Ic455f97247da5e40d4939555ab639ecffef36e2d
* Some code reorganization.Jean Chalard2012-03-132-9/+6
| | | | | | Use the same local variable inside both branches of an if. Change-Id: I61f7d506d984f3723ec90604416d1875dd97cd8c
* Make some more Builder attributes final.Jean Chalard2012-03-134-27/+29
| | | | Change-Id: I3132b7fe4ee97c566736bfc21c3783cfc79fc7ff
* Make the suggested word list final in Builder.Jean Chalard2012-03-134-22/+12
| | | | Change-Id: I2ddfab00dc8c141fc989a051f16eb2b3571b7e86
* Remove unused stuff.Jean Chalard2012-03-132-26/+3
| | | | | | | | | 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
* Make an add into a set.Jean Chalard2012-03-134-12/+13
| | | | | | | | | 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
* CleanupJean Chalard2012-03-132-27/+8
| | | | | | | Remove an unused method, make others static, fix a formatting issue Change-Id: I40cb0b5e01a6f8e2f7b953bd9aad3168dfee71d1
* Remove a method that causes annoying side-effects.Jean Chalard2012-03-132-15/+14
| | | | | | ...and replace by a call to a central method. Change-Id: I93d0a2c2e99963a5b69923d1062d0e01853216b6
* Kill the StringBuilderPool.Jean Chalard2012-03-133-117/+11
| | | | | | | | | 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
* Remove a useless parameter.Jean Chalard2012-03-134-27/+40
| | | | Change-Id: I7625bf17158c207ad7e8cd496bef825704173c4c
* Merge "Use Animator to draw language name on spacebar"Tadashi G. Takaoka2012-03-121-63/+5
|\
| * Use Animator to draw language name on spacebarTadashi G. Takaoka2012-03-131-63/+5
| | | | | | | | | | | | | | Note that Animator class exists in framework only on Honeycomb or later. Change-Id: Ie3392dbf8acc1547ebb2d16e04086c911d961aed
* | Kill methods with side-effects, take 2Jean Chalard2012-03-132-20/+16
| | | | | | | | | | | | ...working this time Change-Id: I80e377e6250d3817f1e067a551bca2a557740764
* | Revert "Kill methods with side-effects"Jean Chalard2012-03-122-14/+18
| | | | | | This reverts commit ca0e04868891c461a3e6f30bf15d209d622c8349
* | Kill methods with side-effectsJean Chalard2012-03-122-18/+14
|/ | | | Change-Id: I42baeec68eb2540e7d8f8538ae2dceeef5594391
* Consolidate words into SuggestedWordInfoJean Chalard2012-03-122-34/+37
| | | | | | | | | | 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
* Fix an OOBJean Chalard2012-03-121-1/+1
| | | | | | | | | The combination of I6b0262fe which removes the internal size() > 1 test in the safety net calculation and I642a5893 which assumed DBG means there is at least one suggestion. This change writes the test correctly. Change-Id: Ib63bce4e163a785f408dd145c23d64cd58fa8c90
* Merge "Make a method accessible for tests"Jean Chalard2012-03-121-1/+2
|\
| * Make a method accessible for testsJean Chalard2012-03-121-1/+2
| | | | | | | | | | | | | | | | Tests are using a wrapper method that's going to disappear soon. The method that becomes package-visible now is destined to be removed too a little later. Change-Id: If99b1c77ed52e050b47216cc7afab5f35c4bbb38
* | Make a method staticJean Chalard2012-03-122-4/+10
|/ | | | Change-Id: Ie1d460562d38105abe91ae2da17cafd49e2cd394
* Fix an obvious bug in handleLanguageSwitchKey()Ken Wakasa2012-03-111-1/+1
| | | | | | bug: 5759092 Change-Id: I8c7b2ef024cbab399d96f6b3ec553da4e9d2fb18
* Entirely remove safety net memory.Jean Chalard2012-03-091-8/+4
| | | | | | | mHasAutoCorrectionCandidate now includes the fact that this did not get caught by the safety net. This is more intuitive. Change-Id: I6502bbf1ca64a0a6d64f55d723305cf78352a656
* Make the safety net memory privateJean Chalard2012-03-092-4/+4
| | | | Change-Id: I10959d47c980d2e8f2ea995955acf02193e3ff7b
* Recompute safety net in debug cases instead of memorizingJean Chalard2012-03-091-1/+5
| | | | Change-Id: I67f3a31db081afa4871ec441dd461c56e098c668
* Make access to the safety net calculation easierJean Chalard2012-03-091-10/+7
| | | | Change-Id: If33897b38af94ae81b05e5ef140a542724b9f34a
* Extract a condition from a methodJean Chalard2012-03-091-11/+4
| | | | Change-Id: I6b0262fe7cb3f7a31cc19d724c301467be932640
* Remove a useless argumentJean Chalard2012-03-091-2/+2
| | | | Change-Id: I713433a3225193489fad5bdafcf302b529903116
* Remove a useless escapeJean Chalard2012-03-092-7/+4
| | | | Change-Id: I1ef0685cc9888c9cef9f60015d32b66dde75ef9b
* Remove a useless testJean Chalard2012-03-091-3/+0
| | | | | | If we are not composing a word here, we have already returned Change-Id: I63281abace777e3658286d4df6781d2cd5a29c33
* Don't use an intermediate object with a different meaningJean Chalard2012-03-091-3/+4
| | | | Change-Id: Ie89916b49c852a51385ffd61cb596a58f23a46a0
* Move some auto-correction logic to where it belongsJean Chalard2012-03-092-17/+20
| | | | Change-Id: I897c5ec3a630a4a6bfc593906df4d3fc7b244482
* Fix a shameful bugJean Chalard2012-03-091-1/+1
| | | | | | I must have been sleeping when I wrote that Change-Id: I887180ab610785a2000636adeeed99230b3c5390
* Reduction, step 8Jean Chalard2012-03-092-16/+16
| | | | Change-Id: I54334039597e235e24f169e34c1d44109180ee88
* Reduction, step 7Jean Chalard2012-03-092-26/+26
| | | | Change-Id: I177ef2f29c8b6000c5e3d021c016c5d216fe3fc6
* Reduction, step 6Jean Chalard2012-03-092-2/+4
| | | | Change-Id: I22ad4cea0e0cac23813da7e788f5c94974ce0ebf
* Reduction, step 5Jean Chalard2012-03-091-11/+3
| | | | Change-Id: Iac52e62c2bdffad14f916f69eade2b785bb41767
* Reduction, step 4Jean Chalard2012-03-091-21/+3
| | | | Change-Id: Ib27dc6e9486c3f0f2ec1e94a88a52d12c1af2d38