aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Enable language switching with long-press of space bar.Amith Yamasani2010-01-223-27/+37
|/ | | | This is a temporary solution until slide-on-space is implemented.
* Reintroduce Amith's memory leak fix from ↵Mike LeBeau2010-01-171-0/+1
| | | | | | 388ce92ab8a635c5ad44620dad59baf05dfea510, after it was clobbered by my overwrite of LatinIME with the voice version.
* Migrate voice features into the open-source LatinIME. This includesMike LeBeau2010-01-1720-78/+2770
| | | | | | | | | | | | | | | | | | | the change to logging to remove any private dependencies and use broadcast intents to VoiceSearch instead. I have audited this code and it appears good to go for open-source, but would appreciate a second pair of eyes. Still to do after submitting this CL: * Reintroduce Amith's memory leak fix (37557) which was the only CL added to LatinIME since the last merge over to the private copy. * Make some changes to allow LatinIME to work without voice search installed. Currently I believe it will show the mic but fail if you press it. We need to base the visibility on the mic on the availability of the service. * Fix this code to use the new Gservices framework, it's still trying to use the old one.
* Fixed a memory leak that happens when switching input languages.Amith Yamasani2010-01-151-0/+3
|
* Enable auto-correction only if there is a significant size main dictionary.Amith Yamasani2009-12-183-26/+40
| | | | | | Added e-umlaut popup for Russian keyboard. Added a French Canadian string resource but wont help until we add fr_CA to the supported locales list.
* Fix for auto-add and reduced auto-add threshold. Bug: 2332071Amith Yamasani2009-12-161-5/+6
| | | | | | | Fixed the regression of auto-add. Reduced the threshold of auto-add (to accept) to 2 times. Reduced the threshold of auto-add (to suggest) to 4 times.
* Input language switching. Bug: 2331173Amith Yamasani2009-12-168-35/+450
| | | | | | | | | | | | New feature to enable fast switching between input languages for multilingual users. Keyboard settings lets you select a bunch of languages to switch between from the Latin IME. Use the Globe icon to toggle between languages. Needs more work and some layout changes in specialized keyboards. Also added a Russian keyboard (needs some pixel TLC at the right edge).
* Experimental Extension keyboardAmith Yamasani2009-12-083-3/+130
| | | | | Slide up on keyboard to get an extended keyboard for numbers and punctuations. This is work in progress...
* am 5b63c38d: Fix 2306814: Too aggressive suggesting names from my contacts list.Amith Yamasani2009-12-081-2/+2
|\ | | | | | | | | | | | | Merge commit '5b63c38d1fc9e42348a8a90edf8dce6103f72864' into eclair-mr2 * commit '5b63c38d1fc9e42348a8a90edf8dce6103f72864': Fix 2306814: Too aggressive suggesting names from my contacts list.
| * Fix 2306814: Too aggressive suggesting names from my contacts list.Amith Yamasani2009-12-071-2/+2
| | | | | | | | | | | | | | | | | | | | When there is more than one instance of a name in the Contacts, it gets a very high weightage and can override corrections for very high frequency words such as "the". This fix prevents multiple occurences from increasing the frequency of a contact and also from bumping it above 255, which is the frequency of "the", "is", etc.
| * DO NOT MERGE: Fix for 2295810: Auto-correction of English results in EnglishmanAmith Yamasani2009-12-022-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | Comparisons were always happening with lowercase version of the typed word, which wouldn't match the uppercase word in the dictionary, so it became an unrecognized word when typed in full. Highlight was then going to the next word in the list. Fix compares the lowercase and uppercase versions of the word for validity. Merge from eclair-mr2
* | Fix for 2305181: "shift A shift M" quickly gives Am instead of AMAmith Yamasani2009-12-041-0/+1
| | | | | | | | | | | | There was a delayed changing of keyboard to lowercase after typing a shifted letter that was triggering after the user pressed shift again. Removed the delayed message when user hits shift.
* | Fix for 2295810: Auto-correction of English results in EnglishmanAmith Yamasani2009-12-012-4/+3
|/ | | | | | | | | | Comparisons were always happening with lowercase version of the typed word, which wouldn't match the uppercase word in the dictionary, so it became an unrecognized word when typed in full. Highlight was then going to the next word in the list. Fix compares the lowercase and uppercase versions of the word for validity.
* Fix for #2244624 : Keyboard freezes up sometimesAmith Yamasani2009-11-111-13/+58
| | | | | | | | | | | | | I think the cause for this is the Contacts database being updated. This causes the keyboard to reload the contacts once every 30 minutes. Since it loads it synchronously, it affects people with several thousand contacts. Although in my tests, with 3000 contacts, the delay was only 600ms, I've had several reports from long-time googlers about this problem, so I'm switching to loading the contacts asynchronously in a background thread. Also fix a potential problem with capitalizing "i" if a contact has "i" as one of the names.
* Remove dupes from suggestions. Fixes 2213629Amith Yamasani2009-10-281-3/+31
| | | | | Dupes are sometimes generated, especially for names, from Contacts and main dictionary. Check for dupes before showing suggestions.
* Fix for 2170453: Capitalization sticks when entering passwords in BrowserAmith Yamasani2009-10-121-5/+1
| | | | | | | | | | | | This is caused by a delay in changing the shift state for performance reasons. The delay was too long, causing multiple characters to be in shifted state when typing fast (300ms interval). Fix removes the optimization for the forward typing case. Doesn't affect the backspace long-press optimization. Triage: Hiroshi Dr. No: mcleron
* Fix a potential IllegalArgumentException caught by monkeys. #2176776Amith Yamasani2009-10-091-0/+4
| | | | | For some reason the key code is outside the code point range. Adding a safeguard to deal with possible out of range key codes.
* Fix for 2148982: Keyboard freezes while typingAmith Yamasani2009-10-081-10/+12
| | | | | | | | Contacts dictionary code was being triggered too frequently during sync and during presence updates and this seems expensive for accounts with a lot of contacts. Throttling the contacts read to every 30 minutes.
* Fix 2146178: On-screen keyboard is wider than screenAmith Yamasani2009-09-302-9/+10
| | | | | | | | | | | | Sometimes the keyboard is getting confused about it's width when switching between hard keyboard open and close state and portrait-forced home. Force creation of keyboard layouts after a configuration change to fix the inconsistent state. Don't force create when just switching between input fields, too expensive. Also fixes the problem of keyboard not changing layout after a locale change, unless there's an orientation change.
* AI 150810: Fix for 2023252 & 2023256: Turkish accented characters for the ↵Amith Yamasani2009-09-301-2/+3
| | | | | | | | keyboard BUG=2023252,2023256 Automated import of CL 150810
* Fix issue 2141503: Keyclick sound doesn't honor volume settings.Eric Laurent2009-09-291-1/+2
| | | | Align sound effect volume on music volume.
* Handle new flag NO_SUGGESTIONS and no auto-correct for single-line fields ↵Amith Yamasani2009-09-171-0/+11
| | | | | | | unless requested. Fix: 2030364 Don't show suggestions if NO_SUGGESTIONS flag is specified. And don't do auto-correction unless explicitly requested or it's a multi-line text.
* Adjust the size of bottom row of keys for email mode. Fix for 2099889Amith Yamasani2009-09-081-0/+4
| | | | Also recreate the keyboards when locale changes.
* Fixed accidental switch to symbols mode from alphabet.Amith Yamasani2009-09-012-4/+7
| | | | | | | | | | The KeyboardSwitcher was remembering state from a previous edittext where the user was in symbols mode and applying the switch code when user hits space in the new edittext for the first time. Make sure to reset the state when a new keyboard mode is requested. Also make sure that we don't switch from symbols to alphabet keyboard when editing in a number/datetime field and hitting space.
* Swipe down gesture to dismiss keyboard.Amith Yamasani2009-08-271-1/+1
|
* [Issue 2061094] Upgrading ContactDictionary to new APIDmitri Plotnikov2009-08-271-14/+13
|
* Tweak spacebar target area between landscape and portrait.Amith Yamasani2009-08-201-6/+9
|
* Keyboard layout improvements.Amith Yamasani2009-08-191-0/+2
| | | | | | | | Increase key height in portrait. Increase spacebar width and reduce punctuation width. Increase vertical target area for spacebar to avoid accidentally hitting "V" and "B". Increase height of candidate strip.
* Don't crash if the contacts provider returns a null Cursor.Jeff Hamilton2009-08-181-1/+3
|
* Reduce weight of missing-char suggestions.Amith Yamasani2009-08-131-3/+3
|
* Use public SDK APIs for the InputMethodManager and Vibrator.Brandon Ballinger2009-08-131-2/+3
|
* Some performance optimizations.Amith Yamasani2009-08-134-40/+70
| | | | | | | | | | Makes the user/contacts dictionary lookup faster. This is necessary because there's more in these dictionaries now and it's written in Java. Fix an auto-caps issue when moving the cursor. And do it a little lazily. Fixed a bug that was causing user dictionary words to get a much higher weightage than the main dictionary.
* Allow for non-starting letters to be upper case in dictionary lookup.Amith Yamasani2009-08-131-1/+5
| | | | Add lowercase optimization to user dictionary as well.
* Fix a stack overflow when typing long words. Limit the size of auto-added words.Amith Yamasani2009-08-131-0/+3
|
* Check for missing characters in User/Contacts dictionary as well.Amith Yamasani2009-08-132-19/+36
| | | | Also accomodate for missing characters when doing diffs between words.
* Add check for null contact name when setting up dictionary.Eric Fischer2009-08-131-17/+20
| | | | Bug 2021966
* Have the Latin IME also use the names of your contacts as suggestions.Eric Fischer2009-08-133-5/+149
| | | | Bug 1597304
* Improve auto-add heuristics.Amith Yamasani2009-08-132-15/+27
| | | | Also add auto-switch back to alphabet mode on pressing enter key.
* Less aggressive CAPS mode prediction.Amith Yamasani2009-08-132-4/+25
| | | | | | | Don't auto-correct if the typed word has more than one uppercase letter. Also, delay applying shift state to the keyboard so that fast backspaces are not interrupted by the time taken to render the shifted/unshifted keyboard. Show ellipsis on the ?123 key
* Auto-switch back from symbols keyboard on space.Amith Yamasani2009-08-132-4/+44
| | | | Also fix bug 1904029: Rotating keyboard while texting causes words to be deleted.
* Auto add new words to the user dictionary.Amith Yamasani2009-08-134-373/+491
| | | | | | | | | | First pass at automatically adding new words that the user types and deliberately accepts. After typing the word 4 times, the word gets promoted to being valid. After typing the word 7 times, the word gets added into the UserDictionary and can be removed from the UserDictionary Settings UI. Also add a second row of symbols to the period popup.
* Prune out suggestions that have a very large edit distance.Amith Yamasani2009-08-131-2/+3
| | | | | | | If the number of keys picked from proximity is too large, prune out the subtree. Otherwise you get vastly unrelated suggestions. Fix a bug introduced with the missing_chars checkin.
* Correction algorithm to check for missing single characters.Amith Yamasani2009-08-131-5/+21
| | | | | Searches for alternative words by trying wild-card characters at different character positions.
* Backup Latin IME settings shared preferences.Amith Yamasani2009-07-052-2/+50
| | | | Backup the shared preferences when they change.
* Browser text fields should suggest but not auto correct.Amith Yamasani2009-06-041-6/+21
| | | | | Only if the browser explicitly specifies the AUTO_CORRECT flag, IME will enable auto correction.
* Increase sensitivity of spacebar.Amith Yamasani2009-06-041-6/+6
| | | | Revert the touch target of the spacebar to be the same as other keys.
* Fix Bug #1833943 - CapsLock using long-press doesn't update keys.Amith Yamasani2009-05-061-4/+4
| | | | Use new API in KeyboardView to invalidate all keys on long-press of shift key.
* AI 147900: Set symbols state when setting keyboard in LatinIME [bug fix for ↵Brandon Ballinger2009-04-281-2/+2
| | | | | | | | 1815418]. BUG=1815418 Automated import of CL 147900
* AI 147226: Create symbols and shifted symbols keyboards when initializing ↵Brandon Ballinger2009-04-211-0/+2
| | | | | | KeyboardSwitcher. Automated import of CL 147226
* AI 146596: Re-factor KeyboardSwitcher to keep a map of KeyboardId->Keyboard ↵Brandon Ballinger2009-04-161-126/+115
| | | | | | rather than a separate variable for each configuration. This makes it more maintainable to add more states in the future. Automated import of CL 146596