aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/char_utils.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-01-27Add inactivatedLabel and inactivatedUppercaseLetter flags for Key.keyLabelFlagsTadashi G. Takaoka3-3/+25
Change-Id: I6c7dc79cbad360602b278283f4c3a24c54040622
2012-01-27Merge missing space and mistyped space correction algorithmsatok5-124/+93
Change-Id: Idd64d38d3d29be24748f9c0359667883698a5756
2012-01-27Save and restore previous mode keyboard state at ↵Tadashi G. Takaoka3-21/+166
KeyboardState.toggleAlphabetAndSymbols Bug: 5881820 Change-Id: I9b1718b16c60f27c05ba727724c0189aa5284334
2012-01-26Remove a useless member (A8)Jean Chalard2-5/+3
It turns out this can be removed entirely. Change-Id: I6f23703cef1666311989a825285317eef696487f
2012-01-26Cleanup (A9)Jean Chalard1-2/+4
Deactivate the LastComposedWord when the commit was not the right type, instead of fooling it by passing it a null auto-correction. Change-Id: I032b477dc691bd151a644ca4b0c9f0a9b5512e45
2012-01-26Remove the CharacterStore class (A7)Jean Chalard1-70/+50
Remove the now useless WordComposer.CharacterStore class and merge back its members inside WordComposer. This should simplify the word composer a bit. Change-Id: I5fe32418c62a583cd558dce98758a4701559bdf5
2012-01-26Guard against wrong auto-correction cancellation (A6)Jean Chalard1-2/+9
This deactivates the cancellation at each separator pressed while not composing a word. The net effect is to fix Bug: 5875776 Change-Id: I67aa3f842ddff250828c60596ad5a7e466c1ddaa
2012-01-26Straighten out resuming suggestion on kept word (A5)Jean Chalard3-19/+20
This is cleanup. This also introduces a "deactivated" state to the last committed word, that can be used for Bug: 5875776 Change-Id: I1855adb8ac8123f6d2c5365b0ae899145e5c3ba1
2012-01-26Merge multiple words suggestions algorithmsatok2-125/+89
Change-Id: I70d85b90ddaa28a41e9679f445bc14ef9ff50f16
2012-01-26Remove mCommittedWordSavedForSuggestionResuming (A4)Jean Chalard2-25/+15
Change-Id: Ia62ef33b5c777a258b02280bda1b8368780a7eef
2012-01-26Add KeyboardState.SwitchActions.setAlphabetShiftLockShiftedTadashi G. Takaoka5-18/+36
Change-Id: I6c49d8eb0a8272840ff03e0940d88a31c3d20bd9
2012-01-26Move some functionality into LastComposedWord (A3)Jean Chalard3-18/+38
Change-Id: Ie0ea02a061dd0cb84db5f33113ff433584636bc7
2012-01-26Add useful information to LastComposedWord (A2)Jean Chalard2-2/+18
Change-Id: Idf47f2e2bdd1d6394fc4b1ab7df28d64a808da1e
2012-01-26Add a class for previously composed data (A1)Jean Chalard3-24/+52
Change-Id: I87498799e6a48b8fa65924a098bb0ceb7626dce1
2012-01-26Refactor words priority queuesatok4-30/+52
Change-Id: I14b7ef39263ad2b1d5ec087bc80b7b8d7c30abe7
2012-01-26Get rid of Resource reference from KeyboardView, LatinKeyboardView and ↵Tadashi G. Takaoka11-120/+162
PointerTracker This change introduces the following attributes. * KeyboardView - keyPreviewLingerTimeout * LatinKeboardView - keyHysteresisDistance - touchNoiseThresholdTime - touchNoiseThresholdDistance - slidingKeyInputEnable - keyRepeatStartTimeout - keyRepeatInterval - longPressKeyTimeout - longPressShiftKeyTimeout - longPressSpaceKeyTimeout - ignoreSpecialKeyTimeout - showMiniKeyboardAtTouchedPoint Change-Id: I25159a87289b12447e20031add173523070e9b03
2012-01-26Add a missing braceJean Chalard1-0/+1
Change-Id: Ia51da6506d78a295b8b70a241208fb81602cf0ea
2012-01-26Add a test for moving cursor then backspaceJean Chalard1-0/+13
This is a test for the case in Bug: 5851148 Change-Id: I58ee459d85f463b445a28137bdc6c40bc3067ff5
2012-01-26Add a test case for backspace at start of lineJean Chalard1-0/+12
Tests the behavior from Bug: 5784542 Change-Id: I78ec9d77c5dd1e3ea8eff530f9d7d284a1c094d4
2012-01-26Cleanup unused codesatok4-174/+0
Change-Id: I6c840f9ed170919e48d1c576cd0a48777ad44030
2012-01-26Add a guard against OOB.Jean Chalard1-3/+7
...and avoid crashing in one case where the application may change the text while we are typing. Bug: 5685922 Change-Id: I4a22c63168986f43ac84f512aaa4267023d536e3
2012-01-26Warn deprecated privateImeOptions, "nm" and "forceAscii"Tadashi G. Takaoka2-5/+17
Public API EditorInfo.IME_FLAG_FORCE_ASCII has been supported by I6665b483. Change-Id: I0ffdee15d8177d126cd8fe86a6bc4ab21be58c36
2012-01-26Convert an internal enum into an int of same underlying value.Jean Chalard6-21/+18
Goes together with Id4f4e066 Bug: 5922118 Change-Id: I1e39dd01c67e9284d9d7fe008d868847e69986d7
2012-01-26Small cleanupJean Chalard1-1/+1
All calls to this method are done with the same parameter, and it's really hard to understand if we call upon this member inside. Change-Id: I787664bb59053ab0fe666ed812fb12b2b9090918
2012-01-26Add tests for double space behaviorJean Chalard1-0/+15
Bug: 5875776 Change-Id: Icc28b6c5c0132a3afc8d603841c9e321f720b7c9
2012-01-25Do other error correction for the second word of two word correctionsatok7-101/+181
result: I4e0b68a12190933f9 Change-Id: I98afce6fe4d5bde97392146d204370ba31a72566
2012-01-25Add Key preserveCase enum to keyLabelOptions attributeTadashi G. Takaoka5-32/+104
To support auto generate key depending keyboard element id, the KeysCache class is introduced to hold whole keys and reuse. Change-Id: Icb81b5f1c1b3aaa31968dcdb93aa0a856e737f78
2012-01-25Prepare to get rid of Drawable reference from KeyTadashi G. Takaoka3-19/+24
Change-Id: If435f95b2863e0af8d8916c643e6b01feabd3ea5
2012-01-25Add a test for auto-correction.Jean Chalard6-5/+54
Fix two related subtle bugs: - Stop singling out fat-finger-only corrections for rejection when touch coordinates are not available. - Remove a racy check that would happen only in debug mode Change-Id: Ic904f9b27c091ca6b369052c4e65a630bff81257
2012-01-25Add element predicator to <switch><case> condition of KeyboardTadashi G. Takaoka2-7/+25
Change-Id: I8f9eb8eb28707d23e421e88f979022d844a3b3ee
2012-01-25Draw language name on spacebar on the flyTadashi G. Takaoka1-113/+54
Change-Id: If54251acbd40d0dda37df1b368ed76dcdf3c8ac0
2012-01-25Change scope of some methods in KeyboardViewTadashi G. Takaoka2-19/+18
Change-Id: I6569b413b20a2e683c6c636aafd755f51868dd28
2012-01-25Use String instaed of CharSequence in Key classTadashi G. Takaoka6-37/+36
Change-Id: Ia76a41daede402ed2a509e110ae97d6bb660c760
2012-01-25Add autoGenerateFromAlphabet enum to KeyboardSet.Element.elementKeyboardTadashi G. Takaoka34-136/+168
This is the first step to support separate Keyboard for elementName. This change is the second attempt of Icef66564. Change-Id: I78ea6cb9ea3d965ff89e0ff5d896a6b11ba5c670
2012-01-25Use PointerTracker.getPointerTracker() class methodTadashi G. Takaoka1-11/+11
Change-Id: Ieab5d43d2bfe9bdf2b499834dff267df84b8d76d
2012-01-24Revert "Add autoGenerateFromAlphabet enum to ↵Tadashi Takaoka34-143/+134
KeyboardSet.Element.elementKeyboard" This reverts commit b5b92f9b78295366c12b25d1b464a371401c3677 Bug: 5908440
2012-01-24Add autoGenerateFromAlphabet enum to KeyboardSet.Element.elementKeyboardTadashi G. Takaoka34-134/+143
This is the first step to support separate Keyboard for elementName. Change-Id: Icef66564b6938910fa06ecab664dce4be84c9505
2012-01-24Test that delete actually removes any selected text.Jean Chalard2-8/+28
Bug: 5699301 Change-Id: I09a967eb03690251e8bd69503285c982d6958a7d
2012-01-24Fix a bug where backspace would not delete the selectionJean Chalard1-5/+27
Bug: 5699301 Change-Id: I6c5a8470464d045349ac38e191c859b5c34cbeee
2012-01-24Clean up symbol key chording state from KeyboardStateTadashi G. Takaoka3-45/+20
Change-Id: I575da2bf2941c8a2e7b1fe0a455cbcdebb201276
2012-01-24Fix sliding shift input in caps lock modeTadashi G. Takaoka2-6/+7
Bug: 5881820 Change-Id: I4cbe3eda83c09edc9da8efbdff7d3359c1e140d5
2012-01-24For get the symbols shifted state when switch back from alphabet layoutTadashi G. Takaoka2-25/+27
Bug: 5881820 Change-Id: Ic478264e1cd366affc34fbf4cd59f1b6e7efede7
2012-01-24Get rid of setShifted/setShiftLocked from SwitchActionsTadashi G. Takaoka3-80/+119
Change-Id: Ib54b0575be190556690ef2dfb14077842745f038
2012-01-24Fix a typoJean Chalard1-4/+4
Change-Id: I358350c959d5610214a752b14d7744fe83eb3821
2012-01-24Add more sliding input unit testTadashi G. Takaoka4-216/+411
Bug: 5881820 Change-Id: I9249d8b702ba9afbd1c7d0a4889ac5b2e929f85d
2012-01-24Add comments along with Ic108f301Ken Wakasa1-0/+2
Change-Id: Ic754662865511ad44e99d070585bd9482379c2a0
2012-01-24Move string resources for unit test to donottranslate.xmlTadashi G. Takaoka1-0/+0
Bug: 5904617 Change-Id: I2eb677a4dd9686f87fec9f11051775a5c9c670a1
2012-01-23Clean up two word correctionsatok1-44/+60
Change-Id: I5cd2697d7f61b81aff0c249df01479d86ad0fba5
2012-01-23Force KeyboardShiftState reset by setShiftLocked(false)Tadashi G. Takaoka1-6/+1
Change-Id: Ib00d598e6e6a91e594ae01cfc51fb688601f6b8f
2012-01-23Add more debug message to KeyboardStateTadashi G. Takaoka1-6/+13
Change-Id: Ie0bceb494b0521bf406418d5ecbc16752c818aba