aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-12-13SimplificationJean Chalard1-4/+2
Both tests have the same meaning. They should be merged. Also, if "deleteLast()" deletes more than one char (which never happens in the current implementation, but it's not guaranteed), the new code is more correct. Change-Id: I216df7cd45f4a7d76d1d5d6aa7f8d7f9a6e35ea3
2011-12-13RefactoringJean Chalard1-21/+18
If mHasUncommittedTypedChars is true, then mWordSavedForAutoCorrectCancellation must always be null, and spaceState must always be SPACE_STATE_NONE. Hence, this change is supposed to be very no-op. Change-Id: I2716f7372d996cc4dec40a4b7ac1ee7f5f4afe91
2011-12-13Refactor + small bugfixJean Chalard1-4/+3
postUpdateShiftKeyState used to be called also when mEnteredText is not null => this is a bugfix. The rest does not change the logic, as posting a message can be done anywhere within the function with no impact. Change-Id: I7888797c0778702d64f96701e35b611a55a6a259
2011-12-13RefactoringJean Chalard1-7/+5
Change-Id: I57b2232f7fde32df5f6e1925aad1df988def34f9
2011-12-13Remove current keyboard id variableTadashi G. Takaoka1-5/+3
Change-Id: Iec19af98209e1ea8ecd176d3be04d628d4b38950
2011-12-12Fix a bug where revert auto-correct would revert too muchJean Chalard1-8/+24
If there are no uncommitted chars, we shouldn't enter any of the tests that follow. We didn't use to, but a change today made it possible - it should not happen. There is no point in doing the rest of the tests, they are sure to fail. Change-Id: I580dd104aff3585de72a93b38989bfd9713f615b
2011-12-12Remove a useless function callJean Chalard1-1/+0
Change-Id: I1a775cbf90dca301e1e6b596ddac64fdbc023199
2011-12-12Remove a useless variableJean Chalard1-3/+2
This can be just read when it's needed. Change-Id: I00753fe55645c244db5d4a96e7fdb8f5325475d9
2011-12-12Move a settings var to the settings classJean Chalard2-2/+3
Change-Id: I1331ad6dec3a9d64a77e314f8a1f4c29282df31b
2011-12-12Remove a messy and unused class.Jean Chalard2-225/+0
Today is a happy day Change-Id: I3ef484bd258d5a59815bfcb0bd35ea3606b32430
2011-12-12Remove side-effects from TextEntryStateJean Chalard3-12/+41
Change-Id: Ib98eea9e791e426435cfdfd0c9ab3ed9061664aa
2011-12-12Add special handling for "Phone number" layout.Tadashi G. Takaoka1-0/+6
Bug: 5743584 Change-Id: I821b837a2078afb64b460191c98b28f7733cf2c1
2011-12-12Remove a useless variable.Jean Chalard1-5/+1
Change-Id: Iea5ce5cfc05bad8b1d9085438e90147bd54b7e9c
2011-12-12Straighten out logic for revert word pathsJean Chalard1-30/+67
This also includes a new memorized string with simpler logic that will allow to remove other members Change-Id: I0b97243084902e68fcb835b6163c86fef8190ebc
2011-12-12Add unit test of KeyboardStateTadashi G. Takaoka2-3/+263
Bug: 5708602 Change-Id: I1a8a9f4320948bb500a96df8773b0bfa1a1d4167
2011-12-12Move KeyDetector.printableCode to KeyboardTadashi G. Takaoka3-10/+23
Change-Id: I9cde21fbb45c1e5f1a568bb97b1b1a76524f4bf2
2011-12-12Assign Key.mCode from the label only when outputText is not specifiedTadashi G. Takaoka1-1/+8
Bug: 5742827 Change-Id: I72b55ce246b14a2d8f4fd16211b71dc716db30b2
2011-12-12Remove unused Keyboard.CODE_CANCELTadashi G. Takaoka2-6/+0
Change-Id: Ic2eab17e525901a1cf7096ebe7d24ae78624ed2e
2011-12-12Remove a duplicated variable.Jean Chalard3-37/+27
This is awesome cleanup. Change-Id: I35ce8940a13f3084630dc26d6e7e397acfdaac36
2011-12-10Build God Mode keyboard with API level 14Ken Wakasa2-1/+46
Change-Id: I29ab9e9041c9faac91dc303175625221bfdb3af8
2011-12-10Fix isResearcherPackagesatok2-3/+2
Change-Id: I286450fe89a37d75cb398f17d300ddc6f5857ffd
2011-12-10Some tweaks for Researcher ModeKen Wakasa3-4/+10
Change-Id: I6b16dd2fe6d7356c747ba0ee2da5976738003ded
2011-12-09Add a functionality to attach a log file to Gmail appsatok1-27/+85
Bug: 5722703 Change-Id: I089f944bdbf2cbb036eb59dd9b5b414370c770f1
2011-12-09Resolve TODOs: add members to hold preferencesJean Chalard1-3/+9
Change-Id: I34f6c76bf9318e1fbe8eb5ffab6772a98ff824e0
2011-12-09Remove unused public methods from KeyboardState and KeyboardSwitcherTadashi G. Takaoka3-75/+42
Bug: 5708602 Change-Id: I3dbc3cd00aa9ddf611e2078ff2cfea8945fa09bf
2011-12-09Resolve TODOs: add some members to store prefsJean Chalard2-11/+21
Change-Id: Idf09cb5d801e8008eb63cbb5138058faeb7db136
2011-12-09Resolve TODOs: add members to store raw settingsJean Chalard1-17/+17
Change-Id: I481eadb6a73faf239e24d05b7e220fcb01194fa4
2011-12-09Read options in the declaration orderJean Chalard1-3/+2
Change-Id: I1a7c4d0bcaedad6d4045c36c79280c23234db5b3
2011-12-09Straighten out prefs reading codeJean Chalard2-20/+31
Change-Id: Ibf9113a8ef07ac720100ee32d2e5ef321e8ddd98
2011-12-09Straighten out members extracted from resources.Jean Chalard1-23/+29
Change-Id: I9b9602ec5b379b44b0f0663d4f065dbcf88fd352
2011-12-09Match constant names to option namesJean Chalard2-28/+28
Change-Id: I7586fa342d7a39412d656890f7b525139c45ea4a
2011-12-09Reorder members in SettingsValues.Jean Chalard2-32/+33
Reorder so that they match the order in the preference xml file. Also add TODOs for missing raw variables. Change-Id: I06332c131a624d6c359512d75c808f3f7313fa91
2011-12-09Move settings variables to the settings classJean Chalard3-21/+18
Change-Id: Ifa7033a84b08ea626eb44cf6d04ba8e28c250bea
2011-12-09KeyboardState keeps track of isAlphabetMode and isSymbolShiftedTadashi G. Takaoka2-71/+70
Bug: 5708602 Change-Id: I181cdeb90d24984ce6f6c993b278293aae7364eb
2011-12-09Stop a flag from escaping.Jean Chalard4-33/+26
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
2011-12-09Move settings method from Utils to SettingsValuesJean Chalard4-42/+42
Change-Id: I633378a41f63cd492b8c9345d550e07254df5e5a
2011-12-09Show usability study mode for research purposessatok3-6/+20
Bug: 5722703 Change-Id: I27acc374c5d4b52707708b83689dea5d78a573d7
2011-12-09Cleanup debug logging codeTadashi G. Takaoka4-47/+67
Change-Id: If806d61c5945d319c89d9cc127e09f98b7b10a4e
2011-12-09Get rid of public KeyboardState.setShifted and setShiftLockedTadashi G. Takaoka2-34/+46
Bug: 5708602 Change-Id: I98bcca7d3e9dd88f034d0faecada76902b2d0dff
2011-12-09Remove direct calls of setKeyboardXXX from KeyboardSwitcherTadashi G. Takaoka3-51/+54
These calls, setAlphabetKeyboard, setSymbolsKeyboard, and setSymbolsShiftedKeyboard have to be call backed from KeyboardState. Bug: 5708602 Change-Id: Ibbe1a21bd10bf942e17886869c0ab0fa1735b87e
2011-12-09Extract Settings.Values to a new classJean Chalard4-224/+254
This is pretty much automatic refactoring. Thanks Eclipse! Change-Id: I8ccd24d11878445c836347e9c487c91461eee9cd
2011-12-08Cleanup KeyboardSwitcher a bitTadashi G. Takaoka2-33/+35
* Move caps lock state preserving code to KeyboardState. * Merge KeyboardState.onLoadKeyboard and onRestoreKeyboardState. * Merge private methods into toggleShift and toggleKeyboardMode. Bug: 5708602 Change-Id: I793a934a0ba18d5750be011c52ebe20c1976eac6
2011-12-08Remove a useless methodJean Chalard1-4/+0
Change-Id: Ib6a0ee21bfe2000231f9ba7bcad4b18ae57e4249
2011-12-08CleanupJean Chalard1-5/+2
Here, shouldAutoCorrect implies mSettingsValues.mAutoCorrectEnabled Change-Id: I9256718dd63b75252d1454e264db6814bbf18aa5
2011-12-08Add proximity for Russian.Jean Chalard3-85/+181
This also tries to make the code as easy to extend as possible for future developments. Bug: 5701241 Change-Id: I1ed48e6a5cc7aab94c5d6e309930cc004247d7e7
2011-12-08Move KeyboardLayoutState into KeyboardStateTadashi G. Takaoka2-54/+61
Bug: 5708602 Change-Id: Ieb6b872d0f2cf3ad1fcb69409e2cf49f60427672
2011-12-08Move SWITCH_STATE related stuffs to KeyboardStateTadashi G. Takaoka3-234/+267
Bug: 5708602 Change-Id: I904ec370e3761c47af17a680c0932ec98cfd3c27
2011-12-07Reset saved caps lock sate when new keyboard is loadedTadashi G. Takaoka1-0/+2
Bug: 5722919 Change-Id: Id92632a0feffc3342d3c31e90c0da973c934f3c0
2011-12-07Don't execute pending onStartInputView if EditorInfos are equivalentTadashi G. Takaoka3-18/+25
Bug: 5722732 Bug: 5722867 Change-Id: I8347c258b286c3329f318d50adf205e78e49c722
2011-12-07Remove internal toggleShift callsTadashi G. Takaoka2-20/+17
Bug: 5708602 Change-Id: Id1f76dbd40aaf9ed35d4598d902043675c3d74fc