- Dec 13, 2011
-
-
Jean Chalard authored
This place is very confusing because a member variable with a consistent meaning is hijacked for the duration of a function to mean something else. This is in the way of easy-to-understand refactoring. Change-Id: If79bc771950d6bfc0ad5f0e9c51c7ef1dbb45b66
-
Jean Chalard authored
-
Ken Wakasa authored
-
Ken Wakasa authored
Change-Id: I0f62ce8a6a4d2b6134db698f8b8d0576616e524d
-
Jean Chalard authored
Change-Id: I3d376dfda3acd8864274390de3ff5752b18456e0
-
Jean Chalard authored
mBestWord has a confusing name - it's actually an auto-correction. It's cleaner if it lives in the word composer because an auto-correction should be tied to a specific user input, and should be reset each time the user input changes to avoid race conditions. Change-Id: I718d29395bc747372067e6440e090c6a181994ae
-
Jean Chalard authored
-
Jean Chalard authored
-
Tadashi G. Takaoka authored
-
Tadashi G. Takaoka authored
This change moves * KeyboardSwitcher.getKeyboardId to KeyboardSet.<init> and KeyboardSet.getKeyboardId. * KeyboardSwitcher.getF2KeyMode to KeyboardSet. This is the first step to get rid of shift state from Keyboard. Bug: 5002108 Bug: 5679585 Change-Id: I2a5a97e5e89277bc606916d45c1afbc8d105d773
-
satok authored
-
Jean Chalard authored
Change-Id: I4393ff1ec28a6b3118d1344dd6d82d04899dea42
-
Jean Chalard authored
Instead of ignoring silently a found bug, throw an exception. Change-Id: I0aa96d0cab022b6a5e7cffe8a592dcc443c3c7a8
-
Tadashi G. Takaoka authored
-
satok authored
Change-Id: Icc58ccea1178d9f35f5be0dceebab67bbb965b7f
-
Jean Chalard authored
-
Tadashi G. Takaoka authored
Change-Id: I032fc50a62a573ba4258530e695c8c88467783c6
-
satok authored
-
Jean Chalard authored
Change-Id: Iefe10e94e2d88171387351a5b6cab52e281d0f76
-
Jean Chalard authored
-
Jean Chalard authored
-
Jean Chalard authored
* changes: Refactor + small bugfix Refactoring
-
satok authored
+1 2 -6 2 Performance before ==== test finished, terminate logcat ===== (0) 100.34 (0.26%) (1) 37149.26 (95.30%) (2) 8.43 (0.02%) (3) 11.18 (0.03%) (4) 9.92 (0.03%) (5) 1330.60 (3.41%) (6) 250.46 (0.64%) (20) 12.41 (0.03%) Total 38982.50 (sum of others 38872.59) after ==== test finished, terminate logcat ===== (0) 97.65 (0.26%) (1) 35427.43 (95.32%) (2) 10.30 (0.03%) (3) 8.95 (0.02%) (4) 11.01 (0.03%) (5) 1224.67 (3.30%) (6) 243.76 (0.66%) (20) 40.91 (0.11%) Total 37167.04 (sum of others 37064.68) Change-Id: Id4d3b88a9cdef765affc52973aeac951ecc6a8ca
-
Jean Chalard authored
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
-
Jean Chalard authored
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
-
Jean Chalard authored
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
-
Jean Chalard authored
Change-Id: I57b2232f7fde32df5f6e1925aad1df988def34f9
-
Tadashi G. Takaoka authored
Change-Id: Iec19af98209e1ea8ecd176d3be04d628d4b38950
-
- Dec 12, 2011
-
-
Jean Chalard authored
-
Jean Chalard authored
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
-
Jean Chalard authored
Change-Id: I1a775cbf90dca301e1e6b596ddac64fdbc023199
-
Jean Chalard authored
-
Jean Chalard authored
This can be just read when it's needed. Change-Id: I00753fe55645c244db5d4a96e7fdb8f5325475d9
-
Jean Chalard authored
Change-Id: I1331ad6dec3a9d64a77e314f8a1f4c29282df31b
-
Jean Chalard authored
Today is a happy day Change-Id: I3ef484bd258d5a59815bfcb0bd35ea3606b32430
-
Jean Chalard authored
-
Jean Chalard authored
Change-Id: Ib98eea9e791e426435cfdfd0c9ab3ed9061664aa
-
Tadashi G. Takaoka authored
Bug: 5743584 Change-Id: I821b837a2078afb64b460191c98b28f7733cf2c1
-
Tadashi G. Takaoka authored
-
Jean Chalard authored
Change-Id: Iea5ce5cfc05bad8b1d9085438e90147bd54b7e9c
-