aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-03-05Move some treatment to a more sensical place.Jean Chalard1-6/+6
It makes more sense to catch words with the safety net in updateSuggestions() than in showSuggestions(). Also, it's useless to do it in updateBigramPredictions, because the result will always be provably false. This will also help with writing unit tests. Change-Id: Ifab81e6c5a74b1aa75cf85ef7742fee69a98f5ce
2012-03-05Support embedded more keyTadashi G. Takaoka5-17/+21
This is a followup change to Ie10b3e0b. Change-Id: I1f91d96e32357b83bd0546537d561d638b6ff0c6
2012-03-05Move a method to a more sensical place.Jean Chalard4-10/+9
Change-Id: I11f87448f689cf828bff960ad7a3e4739a3457dc
2012-03-05Remove a useless methodJean Chalard1-7/+0
Change-Id: I2002662ee07af2fcc626a52ea4e9ad8977b29ca2
2012-03-05Suppress more keys that share the same meaning with the parent key's imeActionTadashi G. Takaoka1-0/+14
Bug: 6080806 Change-Id: Ifc3145fd79f10b39442b95432a8d19a624c2fdfd
2012-03-05Replace a useless computation with a constantJean Chalard1-1/+1
This is provably always false Change-Id: I88d783fa59fec0b7a729558ba974a6a58c158645
2012-03-05Remove a useless testJean Chalard1-4/+0
With the current logic, this test provably always resolves to false. Change-Id: Iba84ef5f3a14cd8ac48c6a813519ab283bf605f8
2012-03-05Fix commentTadashi G. Takaoka1-3/+3
This is follow up of Ie10b3e0. Change-Id: Idefbe1575915bb87f1c86cb3ddb5efe578c5b760
2012-03-05Omit InputMethodManagerCompatWrapper argument from some utility methodsTadashi G. Takaoka4-12/+14
Change-Id: Ic837018c702c8c575de3e5e81fe8e31fee16fe22
2012-03-02Fix long press behavior of akye that has altCode definedTadashi G. Takaoka1-2/+5
This issue has been introduced by I2bd4daf2 Change-Id: Ie10b3e0bb360986597a0f5a8e5b8253400f924c4
2012-03-02Support Greek KeyboardTadashi G. Takaoka6-1/+607
Bug: 5679585 Change-Id: I540d5ea42a830be8b85440e794cfcee92a23838e
2012-03-02Support dividers in MoreKeysKeyboardTadashi G. Takaoka9-14/+69
Bug: 6080806 Change-Id: Iacd78c6aab6abf948717d34da7489a79c41316d2
2012-03-02Some renamingJean Chalard4-9/+9
Change-Id: I445277cb3af469a0145a8da0ffb801b7e19048cd
2012-03-02Remove a useless methodJean Chalard1-4/+0
Change-Id: I038e6a82b6463a2a8ec494171a596d76fbc75fe1
2012-03-02Support Macedonian KeyboardTadashi G. Takaoka14-73/+177
This change also fixes missing Cyrillic DJE key of Seribian keyboard on 10-inch tablet. Bug: 5934396 Change-Id: I18ae5f0e54f788b65f649a52bdbbef1813334d96
2012-03-02Some more simplificationJean Chalard1-9/+10
I wish "are we autocorrecting?" was not computed in a dozen places all depending on a hundred code paths More than likely, this fixes very subtle discrepancies between auto-correction indicator with the underline and with the LED on the spacebar - which is not displayed any more in the current version anyway. Especially, the LED probably would have been off when the word was caught by the safety net. Change-Id: Idda3021771081d6155b06915e728ecd64d9e042e
2012-03-02OptimizationJean Chalard1-3/+3
Avoid doing some useless processing. Change-Id: I4ce0a188e10db30322bd25751dc5c09492cea301
2012-03-02Precompute two values that never changeJean Chalard1-2/+2
Change-Id: Ic54e7926028ea8374564da5e5004d710f42c53e1
2012-03-02Change a parameter type to make a call clearerJean Chalard1-6/+5
Change-Id: I2918d0a8b00da743689b919f80128bbf36973f24
2012-03-02Move a method up a levelJean Chalard1-2/+6
Change-Id: I6b9a697480127e4745698ab19f8a360b86ff39ca
2012-03-02Break out a methodJean Chalard1-0/+3
Change-Id: Ia14fc320422b7f198c33ba522bb93dd70fbcb2c1
2012-03-02Revert "Make a member read-only"Jean Chalard3-7/+3
This reverts commit 6a43e39bf077bcb706be5e5a84056a3f62580ad7
2012-03-02Make a member read-onlyJean Chalard3-3/+7
Change-Id: I9a718eaf07e1b6c659e649350d3605f365db2839
2012-03-02Small refactor (A1)Jean Chalard1-10/+9
Change-Id: Ia0838bbce47a2b60067f464685ad6d55ee4ec934
2012-03-02Remove a useless methodJean Chalard1-38/+0
Change-Id: Ic00520b18f74838fe1002a679952f62bc7226c15
2012-03-02Readable debug outputTadashi G. Takaoka1-1/+1
Change-Id: I4110791832d2ab1d681b01c9e8a237567442c827
2012-03-02Remove obsolete testsTadashi G. Takaoka6-663/+0
Change-Id: Ibfbe6b39580ae13e4c32fb2ceab7a6c6f3a24ccb
2012-03-02Support time, date, and datetime keyboardTadashi G. Takaoka12-72/+169
Bug: 6030364 Change-Id: I2bd4daf264757d8f3fa7c946d10a39c36ccf5905
2012-03-02Fix correction utilitysatok1-1/+9
Bug: 6096247 Change-Id: Ie17c60dde9bd081790b79312ce8d96d292c5128c
2012-03-02Add basic tests for auto-correct indicator.Jean Chalard1-0/+119
Bug: 5975557 Change-Id: I39e782f89813b9d585e369e590d6288e696168a2
2012-03-01Explicitly specify that labels might be in more keysTadashi G. Takaoka6-23/+58
Bug: 6080806 Bug: 6081427 Change-Id: I455a0210e65ea2a7774e0e0071cea5f4a99577bd
2012-03-01Change a dangerous IDJean Chalard1-1/+1
The message id 0 is used intrinsically by the framework for all messages without a specific ID. Using 0 here we can't reliably use the post(Runnable) method on our handler, because these would in *some* respects be taken for update_suggestion messages, but not all. For example, they'd be removed on removeMessage() but they would not trigger the actual process. This would lead to utter confusion. Change-Id: I5d9b01d38e2ff090cd0d80c27421dc8a41c317b8
2012-03-01Refactor more keys spec handlingTadashi G. Takaoka5-56/+78
Change-Id: Ibd95eff0725724ea35ad58e1d1ec7ec3d02a6e90
2012-03-01Make makedict able to write binary format versions 1 and 2Jean Chalard2-19/+87
Version 2 provides for a variable-length header region. The first step is to allow the implementation to simply step over the header, which will allow us to put any ignored metadata we want. This change implements the makedict part of this. Bug: 5686638 Change-Id: I97f1a8a4f84d15e1bedbad74e54303852aef6e0b
2012-03-01Try to survive unavailability of local storageJean Chalard2-13/+45
Bug: 6035465 Change-Id: Ibe2d542349ec598824f78b91d374a977082fc2d1
2012-03-01Reset previous symbols shifted state when auto switch backedTadashi G. Takaoka2-2/+7
Bug: 6072517 Change-Id: I00337b3ed5c85df4627e8f5a02465d406c4d9178
2012-03-01Fix spacebar icon position on phone/number keyboardTadashi G. Takaoka2-11/+6
Change-Id: I4d6bb0f2f12e7b263ff951f3173cac8e41d0f23e
2012-02-29Shift+Smiley can register enter in textMultiLine fieldTadashi G. Takaoka1-0/+9
Bug: 2498607 Change-Id: Ied2217c49665394a01c7d3451a93c0bc647d392f
2012-02-29Add a method to run the handler's messages from the testsJean Chalard1-0/+47
This is really brutal, but after trying many many things I didn't find a better way. It works with the current implementation of MessageQueue. Since this only introduces a utility method it doesn't really do anything, but the functionality it provides will be essential to Bug: 5975557 Change-Id: I81c4113a08f9a8d8a88294d7dd3b6c8c483c8b1d
2012-02-28Added virtual view hierarchy for keyboard accessibility.alanv12-115/+561
Bug: 5829051 Change-Id: Ied1b6267eec616bd3b9337f6e761b0c740aa0eb2
2012-02-24Import translations. DO NOT MERGEEric Fischer1-1/+1
Change-Id: I6e4e75a7713a683dcb4d9159179103b412ab41be
2012-02-22Remove logs now that we don't need them any more.Jean Chalard1-1/+0
This has served its purpose, we don't need this any more. The logging function itself can be kept since it's not called any more. It may come in handy later. Bug: 6053661 Change-Id: Icb40dad131793a704dbe6514cf7433e43ea04450
2012-02-22Add debug prints to help with debuggingJean Chalard1-0/+62
This is intended to help tracking #6048808. Another bug has been filed to remove this once we're done with the debugging: #6053661 Change-Id: I4547fb71926af6dc2e9c23ee4b44e4e345be6657
2012-02-22Import translations. DO NOT MERGEEric Fischer2-4/+2
Change-Id: Ibcf6712652c6faf320cefb3fe408b172adf130e0
2012-02-22Add some unit tests.Jean Chalard1-0/+51
- Type "tgis", manually pick "thus", press backspace. Backspace should revert the manual pick. Check "tgis" is the result. - Type "tgis" followed by a period. Period should trigger auto-correct to "this". Check "this" is the result. - Type "tgis" followed by a period, then backspace. Period should trigger auto-correct to "this", and backspace should revert the auto-correction. Check "tgis." is the result. Change-Id: I7e23c8a26fbdbe23336149a05ff01bc51707422e
2012-02-22Rename cancelCommit to revertCommitJean Chalard2-6/+6
This wording is easier to understand, and it matches the other revert* functions. Change-Id: Ibc2ec79fb5a0f9bf508e5cdeb75e54abd9241d0c
2012-02-22Remove a useless code path (A7)Jean Chalard1-53/+17
This is never called any more, since we now use the cancelCommit path to react to a backspace after a manual pick. This concludes the run of changes to implement feature request #5968922 Change-Id: I23df653bb2a3de2ba0152394d5d616a42ac7519b
2012-02-22Rename cancelAutoCorrect to cancelCommit (A6)Jean Chalard2-18/+7
Also remove a test in debug mode that would check for absence of a situation which is now expected. Change-Id: Ia5be350bc98a604b3bf8f6057652c5534f6a19af
2012-02-22Activate the code to cancel a manual pick (A5)Jean Chalard3-19/+8
This finally makes active the behavior described in Bug: 5968922 Change-Id: I363ed23270c3dea75411ea806011225097b5d07c
2012-02-22Implement cancelling a manual pick (A4)Jean Chalard1-1/+3
This is new code, but simple code. The new code path is never used for now, but it will be in an upcoming change. This serves to implement feature request #5968922 Change-Id: I3e67731ec6e9fc0b86c5cbd972e9c081781c11a9