aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-05-02Straighten out magic space vs real spaces behavior.Jean Chalard7-57/+53
Picking a suggestion inserts a space after the word. This change makes this space a magic space. Incidentally, do some minor cleanup: add CODE_DASH, CODE_SINGLE_QUOTE and CODE_DOUBLE_QUOTE to Keyboard and use them throughout the code, and remove a useless import directive in some unrelated file. Bug: 4319740 Change-Id: I245f396c34dd0af820bca91edc4ec363238a4ae4
2011-04-29Revert the suggestion update delay to the original value (100msec) for phones.Ken Wakasa3-9/+17
This is actually a follow-up to I385f9eb2 bug: 4361287 Change-Id: I4c4a0a96a7fa28f4f96dd984453d2c9f3fa7d6c2
2011-04-29Include horizontal and vertical gap in the count of Key.isOnKeyTadashi G. Takaoka3-25/+25
This change also reverts I8f6102d6 and considers that the point is on the key while sorting in proximity key detection. Bug: 4348994 Change-Id: I3ee913675e28da7e7b164805a7a683f0814b38b9
2011-04-28Fix a bug where dead space would appear on the keyboard.Jean Chalard1-1/+2
This change fixes a bug where there would be pixels on the keyboard that would not return a key although it's between two keys - or even right on top of one. This change makes it so that the closest key to the touch - within a certain threshold - is always returned, regardless of whether the touch is inside or not. Bug: 4348994 Change-Id: I8f6102d6787eb025cc3c50a26d3a475aeafc4b64
2011-04-28Improve the architecture to support multiple dictionaries.Jean Chalard5-30/+46
This change enables the interface to get multiple dictionaries from a dictionary pack. It only implements it to the end in the case of the proprietary method, as the open method needs still some working out, and the "inside the package" method does not need it. This change goes together with Iaa95bf36, and breaks the build without it. Bug: 1752028 Change-Id: I3ccfd696e8ef083ef9c074e1c3e4bb0bf2fcfd23
2011-04-27Import revised translations. DO NOT MERGEEric Fischer5-5/+5
Change-Id: I781027464664f612f90ae946e0a28ca51e3b19e7
2011-04-27Fix snap back behavior for a quote mark input.Ken Wakasa1-1/+5
Follow-up for I8168ce6a Change-Id: I63b04471c90d3d02de1bb8f092b5d57614cd8591
2011-04-27Rename a confusing variable.Jean Chalard1-21/+21
mHasValidSuggestions -> mHasUncommittedTypedChars Bug: 4322591 Change-Id: If7df986af3cf087c8e7571fd88a55e2b2ccfa38a
2011-04-27Use the new Utils.setSystemLocale method in the new code.Jean Chalard1-7/+3
The change list that introduced this code was created at the same time as the one that introduced the Utils.setSystemLocale method and didn't use it yet. Fix this. Change-Id: Ifdd2ad9f7dbb7f300bc255bc2e035ae893a9d410
2011-04-27Create a dictionary collection and a dictionary factory.Jean Chalard5-116/+254
The dictionary collection is a class complying to the Dictionary interface that acts as a front end to a collection of arbitrarily many dictionaries of any type. The dictionary factory is a helper class for creating various dictionaries and get some meta information about them. At the same time, this change makes the BinaryDictionary class not a singleton any more. This also needs I9afe61a9 to not break the build. Change-Id: I61fdcc4867fcda18342807bf1865e6e46979e5d5
2011-04-27Enable long press caps lockTadashi G. Takaoka1-1/+1
Bug: 3319295 Change-Id: I413062c759a1d91c66fcbf5dd04050dfbf15094f
2011-04-27Enable fast powersatok1-1/+1
Change-Id: I00a91381f63cde62d9e7cf7e17f75869294cf2df
2011-04-27Add a method to set the locale to Utils.Jean Chalard5-25/+18
Add a setLocale method to Utils that returns the previous locale. Also unify all calls through the code. Change-Id: Ic850dc5df19fba00ed3601835652859b4321b544
2011-04-27Release caps lock by double tap on shift keyTadashi G. Takaoka2-1/+27
Bug: 3319295 Change-Id: Ie0cad06c7b1afac0f33af76128303517e9e7bddc
2011-04-27Fix quotation marksTadashi G. Takaoka8-44/+146
This change * Allows snap back from symbols shifted to symbol layout. * Add "left single", "right single", "single low" and "single high reversed" quotation marks to popup characters of "single quote". * Add "double low" and "double high reversed" quatation marks to popup characters of "double quote". * Add "prime" and "double prime" to popup characters of "degree". * Disable non-ASCII key of symbol more layout on passowrd input. Bug: 4345054 Bug: 4347045 Change-Id: I8168ce6a74a9536e4966f7f9d1099ac0132925c7
2011-04-26Import revised translations.Eric Fischer41-82/+533
Change-Id: I71334fc9054623b29cf42188f259712f1619abf2
2011-04-26Handle overflow properly in multiplyRatesatok2-19/+48
Bug: 3401513 Change-Id: I8dd2523caa58bb51c378a01e160a58f9106ce9b8
2011-04-26Shorter timeout to update auto caps state (100ms)Tadashi G. Takaoka1-1/+1
Bug: 4319726 Change-Id: I068279ddfbb79dfebb6ab845d97cccd62d9e052a
2011-04-26Fix Eclipse warnings.Jean Chalard10-22/+15
This change is only there to fix warning issued by Eclipse. It should have absolutely no impact on the program logic. Change-Id: Ie0e242ac6c167297d33de19902340b0f6ecae9e1
2011-04-26Do not use contacts for bigram prediction.Jean Chalard1-0/+8
bug: 4346034 Change-Id: Ibc3c27ca92ed61f1f689df3e90e2eb60fa0cbd33
2011-04-26Fix getMiddleDisplayLanguagesatok1-1/+1
Change-Id: Ia73d74b122069197ac471879e5f1cee34f31b182
2011-04-25Display the language name on the spacebar if the full display locale name is ↵satok2-12/+19
too longer than the space bar Bug: 4329512 Change-Id: I477684747bf9e70a6909c25877fbe9e622571fd4
2011-04-25Refresh the dictionary when the language settings were changed on Dogfood ↵satok1-0/+5
keyboard Bug: 4339319 Change-Id: Id6361927f579797932c465988f6728191748f143
2011-04-25Disable sliding language switch on phone and number layoutTadashi G. Takaoka1-2/+9
Bug: 4331621 Change-Id: Id02c64bb2724a5f990d6dcc548a8d98a1034d531
2011-04-22Import revised translations.Eric Fischer1-2/+2
Change-Id: I4944120cd4a15f643f7c1619524dde8147fab0a3
2011-04-22Narrower the language switch threshold to key width x 1.25Tadashi G. Takaoka1-2/+2
Change-Id: I4ea9553bce34bc3783f03d1615c34b6abb153077
2011-04-22Release the previous key if multi touch input is startedTadashi G. Takaoka1-1/+1
Change-Id: Ib1205e67e900353976150e5ad58abfc92c3dfc21
2011-04-22Fix repeat key behaviorTadashi G. Takaoka3-20/+38
Change-Id: Ia7e5b2e9579aa0e5050857cdb14f16fa05a33621
2011-04-22Fix arabic layout for phonesatok1-2/+2
Change-Id: I2b71f44e27f95ba3949e2e2c150696045f3c28b3
2011-04-22Fix the spacebar language switchersatok1-0/+1
Change-Id: I54711ff2014facefe3afd22e536045cd0ffe4955
2011-04-22Clear spacebar sliding language switch diffTadashi G. Takaoka1-0/+1
Change-Id: If82540b6632476e049fa9c4b3122e9c053227d6e
2011-04-22Fix language switch previewTadashi G. Takaoka4-9/+14
This change also makes the delay after key preview longer to 60ms. Change-Id: If7cf3b493824bb12e0bf44aa0bc3c186b15b51f6
2011-04-22Fix NPE on non-distict multitouch deviceTadashi G. Takaoka1-2/+4
Change-Id: I6d8a05bf62e510d0556fa4831b3d510041cca63a
2011-04-22Move sliding language switch code to PointerTrackerTadashi G. Takaoka6-122/+95
This change is hack and temporal. Big: 4328445 Change-Id: I0b8851e9f05390db20ddaa10f35cff1cc9f016da
2011-04-22Actually use the bigram prediction option.Jean Chalard1-16/+21
This change also rename methods that should have been renamed in a previous commit (namely, the *SetBigramSuggestions family -> *UpdateBigramSuggestions) Change-Id: I18cac17ba2b93fcc011ea133324f2c7f3532946c
2011-04-22Add an debug option to use spacebar switchersatok4-3/+24
Change-Id: Icc483f097696a1c5a2a7ab037afce19c9cfe837f
2011-04-22Add an option for using bigram prediction.Jean Chalard5-26/+78
This change adds the option for bigram prediction under the option for bigram suggestion. The "prediction" option depends on the "suggestion" option. This change also reorders a tad bit the settings screen. Namely, it sticks both bigram options under a "bigram" category, and groups the options that did not have a group under a "other options", or misc, category. Finally this change also renames the internal name of the "text corrections" option category to "correction_category" instead of "prediction_category" which was misleading. Change-Id: I2d8787c8a391fd8202ed3a686c613494b7260a1e
2011-04-22Use user-history bigrams when no input if available.Jean Chalard6-37/+235
This also fixes a small inconsistency upon clicking on whitespace twice in a row. Also add some unit tests for an introduced and an existing method. Change-Id: I1be2fb53c9624f4d0f5299009632cb4384fdfc15
2011-04-21Fix language selection settingssatok5-16/+26
Change-Id: I84e51ce2b80a21650e309e5e6c9ee5f1739170c9
2011-04-21Rename and reorganize key codeTadashi G. Takaoka7-22/+20
Change-Id: I13d6fef7af1c4356a22b0e8aebc9e613b1693ece
2011-04-21Fix language selection settingssatok3-15/+5
Change-Id: I99e2039579a5bd606a8e698cdee2739465b998bc
2011-04-21Disable key preview of space, return and deleteTadashi G. Takaoka4-15/+20
This change also re-orders punctuation mini keyboard. Change-Id: I987ef14fe5956d13439a0a76de367feed825314c
2011-04-21Optimize InputLanguageSelectionsatok1-32/+23
Change-Id: I49117a1e5f7766fcfa0140ff602ff1e19ba1e3d2
2011-04-21Check the availability of layouts for showing the input languages in the ↵satok23-51/+101
settings Bug: 4316889 Change-Id: I746b3ff79c2a6cd4925fca1817d5b209623b5108
2011-04-21Compute content and visible insets even in voice modeTadashi G. Takaoka1-5/+7
Bug: 4317779 Change-Id: If54d15466db9d0362b4470a2ba4618377bdffc2a
2011-04-21Display spacebar language switcher even when key preview is offTadashi G. Takaoka2-8/+17
Bug: 4313884 Change-Id: I9d4a474302dadbfc610324799f8768b803705e52
2011-04-20Remove a useless import.Jean Chalard1-1/+0
Change-Id: I911e3e928a45bbca352a87e6b0616a2ba9bd9e9c
2011-04-20Tweak the normalized score for the words with spacessatok1-1/+10
Change-Id: Icc0c4fd0474ed5094fb274a6ea745ca583ba524d
2011-04-20Move language-specific keyboard setting to resources.Jean Chalard7-30/+103
Some flag settings used to be stored in a keyboard layout extravalue setting. This change: - Introduces the capability of setting such specific flags in values/config.xml - Retains the ability to use extravalues (for layout-specific settings), though there is no more any such setting at the moment. - Fixes a bug where loading a dictionary from outside does not initialize the flags. - Moves Flag to another class. Note: this needs I705ec68c to avoid breaking the build Change-Id: Ia7703aae3215b06c0b3cb792821649806e8998c1
2011-04-20Fix a bug that 2 length words were demoted.satok1-2/+5
Change-Id: I4a3558d0f1f1b0a9d6a36c3f75db3089b0566d7f