aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/char_utils.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-09-09Fix potential ArrayIndexOutOfBoundsExceptionTadashi G. Takaoka1-1/+4
Change-Id: I5dad81fb274cbbcf2c4f106825eecf8e4903461c
2011-09-09Back button to dismiss the more suggestionsTadashi G. Takaoka2-3/+10
Bug: 5275063 Change-Id: If31e9a25d827f44c8d4ff455a780ec2a6d2d9bef
2011-09-08Add visual dividers to more suggestions panelTadashi G. Takaoka9-16/+48
Bug: 5275003 Change-Id: I9464db71388a40ea768984b4cf06c8da05bfa26c
2011-09-08Fix a bug where the wrong suggestion score would matter.Jean Chalard1-1/+19
Also introduce a few debug prints. Bug: 5240463 Change-Id: Iea2fffa3be9d7bd69da751ece9e67e94e9819ee1
2011-09-08Make Spacer as extended Key classTadashi G. Takaoka7-57/+69
Bug: 5275003 Change-Id: I809a8ca363ba72b22ac5cfd926414990f7e8467c
2011-09-08Get rid of the double quote from the suggestion stripKen Wakasa2-2/+2
bug: 5271209 Change-Id: I1823eaac07e184092bdf2a5d607fa08ff680fca5
2011-09-08Use full screen mode on landscape/phone deviceTadashi G. Takaoka6-14/+71
Bug: 5262767 Change-Id: I721c18522c972ced9f359f2e5208572d54a4b7a1
2011-09-07Tweak bottom padding for the "..." popup hintKen Wakasa4-1/+9
Follow up to I45bd6edf bug: 5255103 Change-Id: I6d5368dadbaf6c7dffadd783d8a8756fea9dbff7
2011-09-07Tune the threshold of fullscreen mode from 2.5in to 500dipTadashi G. Takaoka2-7/+8
Bug: 5262767 Change-Id: Ie418ab766951a568d0f40822d8e8d719582749ba
2011-09-07Use different reference character for hit labelTadashi G. Takaoka2-34/+44
Bug: 5255103 Change-Id: I45bd6edfa68abccb9d67fed617b88efad2bfcc04
2011-09-07Use Eastern Arabic numerals as hint label on phoneTadashi G. Takaoka1-20/+20
Bug: 5266051 Change-Id: I8981c43a4d8060395b97cc90accdefaa3c494895
2011-09-07Fix NPE in settingssatok3-6/+6
Bug: 5246032 Change-Id: I452dab9bf863fb8cba142467f338088ee8b30283
2011-09-06More suggestions view can be modalTadashi G. Takaoka5-20/+83
Bug: 5241105 Change-Id: Ib430ee129b9f3cad0bdb1ae083b1068c51a5f2ea
2011-09-06Add gap between suggestions strip and more suggestionsTadashi G. Takaoka2-1/+5
Bug: 5260292 Change-Id: Iba792ebe0767f5117f259bcb73ac0bff778b166e
2011-09-06Revert "search" icon back to whiteTadashi G. Takaoka3-0/+0
Bug: 5232726 Change-Id: I97f53d70eb8eb3f0e88736e397ffd0c4397bcea7
2011-09-06More processTouchEvent from LatinKeyboardView to PointerTrackerTadashi G. Takaoka3-41/+32
Bug: 5241105 Change-Id: I8a5d15f43e2c9f294e78127eda68b0f85da5ad15
2011-09-05Tune mini keyboard visualTadashi G. Takaoka14-20/+52
This change only gets rid of the surrounding paddings of the mini keyboard. Bug: 5248783 Change-Id: Idb95ac1467085c230fd60e4bc0f466fef5700bfb
2011-09-05Introduce maxMoreSuggestionsRow and minMoreSuggetionsWidth attributes to ↵Tadashi G. Takaoka10-15/+50
SuggestionsView Bug: 5257594 Change-Id: Id52c841b72e38eb9034a1a7f26bcf3d4d81ad216
2011-09-05Support automatic languagesatok1-2/+1
Bug: 5057886 Change-Id: I807776b0a3d1286c66ba032c3701b3503911664c
2011-09-05Rename suggestionsPaneViewStyle to moreSuggestionsViewStyleTadashi G. Takaoka9-41/+41
Change-Id: I30873ad870c728e28a044baf9946b4461ab03575
2011-09-05Get rid of LinearLayoutCompatUtilsTadashi G. Takaoka4-86/+12
Change-Id: If0f63eaeb4539c0e03ef20190d2f9211a176babc
2011-09-05Only set LOOKS_LIKE_TYPO if the max score meets a thresholdJean Chalard2-23/+86
Bug: 5240463 Change-Id: I51e85edae57789d638aa1e12b82e6a75c49d33c7
2011-09-02Import revised translations.Eric Fischer46-146/+330
Change-Id: Ib94827629904dceb6808f4571b81b7f42dafe026
2011-09-03Use separate View for key preview backingTadashi G. Takaoka6-9/+18
Bug: 5246982 Change-Id: Icec4281cb01771909fcece36647ee42ba179118c
2011-09-02Add logssatok1-0/+10
Change-Id: I640186c8be8013841b542e8cefa5f033eb7afc32
2011-09-02Squash MiniKeyboardKeyDetector and SuggestionsPaneKeyDetector into oneTadashi G. Takaoka3-96/+67
Bug: 5241105 Change-Id: I4c310373fb8b2426fb46205fa17a49a8346f8244
2011-09-02Move Row class into KeyboardBuilderTadashi G. Takaoka3-59/+33
This is a followup of I5929e656. Bug: 5245837 Change-Id: I06bc2774f77a2c5ddf0b6fe1b3ee70e9b3a7dd23
2011-09-02Calculate x coordinate with floating pointTadashi G. Takaoka6-144/+131
This change also fixes some keyboard layouts a bit. Bug: 5245837 Change-Id: I5929e656763b150e71afe89238386904da214e21
2011-09-02Rename a resource more appropriate oneTadashi G. Takaoka4-4/+4
Bug: 5246982 Change-Id: Ic0e43c0e67f63ea069dd4758cf900765ad7a3678
2011-09-02Squash SuggestionsStripParams into SuggestionsViewParamsTadashi G. Takaoka1-42/+34
Bug: 5246982 Change-Id: Idc2563cb0175aabc4282f9fd45eefaa129ed4961
2011-09-02Move current x coordinate value into Row classTadashi G. Takaoka3-20/+28
This is a preparation to address the issue. Bug: 5245837 Change-Id: If5d463304c1689a840c8b761fedb0a8e2193734b
2011-09-02Fix an NPE in settingsJean Chalard1-2/+4
Change-Id: I264c001a9cc28f864ad024fcf51fb42e9c203d3f
2011-09-02Add an option to prevent insertion of suggestion spansJean Chalard4-3/+23
This is to help debug of Bug: 5250788 Change-Id: I961321aff3776c4912eaf7a1fa4de0c01d715f24
2011-09-01Remove unreferenced assets in LatinIMEJustin Ho9-0/+0
Bug: 5032006 Change-Id: I05b7df6c4ac4d7a32d052e0f2e98a3b9538a198e
2011-09-01Change settings wording for ICSJean Chalard1-3/+3
Bug: 5066983 Change-Id: I7f5e680da963dc4e9cf4744f7696cb35a9ca3efb
2011-09-01Dim keyboard when more suggestions are shownTadashi G. Takaoka3-23/+29
Bug: 5241009 Change-Id: Ia42bcfc34dddf93d35f9cea8a4f0efead6ce3a6a
2011-09-01Rename CandidateView to SuggestionsViewTadashi G. Takaoka38-290/+259
Change-Id: I6480cdf025f065130e1969899b259a243e7a11be
2011-09-01Remove unused suggestions pane codeTadashi G. Takaoka1-160/+5
This is a followup for Ie1d69131. Bug: 5023981 Change-Id: I42ec596af40cb7dcdd84b96ba5bff9ef1fb5dc92
2011-09-01Implement KeyboardLocale InputMethodSubtype extra keyTadashi G. Takaoka5-15/+28
The locale is specified by KeyboardLocale extra key in method.xml, LatinIME will use the specified locale for keyboard layout. Bug: 5238658 Change-Id: I8e6cb66c73a7ac1bf611d9910b42fa9cff38eba0
2011-09-01Fix a bug where autotext would occasionally not workJean Chalard1-15/+5
Autotext correction would check whether the first suggestion so far was the same as what Autotext would return, and if it was indeed the same, would not send its result as autocorrect. However, the first suggestion is not guaranteed to have a high enough score to trigger autocorrection, and there would be cases where a word in autotext would not get autocorrected because the word came out of bigram suggestions. These occurrences would be extremely rare, as they would require concomitant insert between autotext for one char and bigram suggestion. It is, in fact, probably limited to the capitalization of "I". This did not happen in gingerbread because gingerbread would not register 1-letter words as valid bigrams. This fix works by just always sending the result of autotext regardless of whether it is already the first suggestion or not. This is okay because duplicates are removed afterwards anyway - and this processing is absolutely necessary because the autotext'd word may actually be somewhere else in the suggestion, so it made really no sense checking for only the first one. Please note that there is also a race condition that can result in "i" not being converted to "I": at the moment, Latin IME relies on having the suggestions evaluated at the time autocorrection is performed, but when typing very, very fast, those messages may have been canceled. This is not limited to the autocorrection of "i", but affects all autocorrections. It requires a nearly inhumane typing speed to trigger, but hitting "i" and space in turn as fast as one can it's possible to reproduce occasionally. Bug: 5135113 Change-Id: I530ea6212487300001a2c0fc5b25a5c7716bdf63
2011-08-31Implement popup suggestions paneTadashi G. Takaoka22-31/+656
Bug: 5023981 Change-Id: Ie1d69131dbf884a3f6a2beb3ac3427e5437c1486
2011-08-31Rename alternates_for_ as more_keys_for_Tadashi G. Takaoka59-559/+559
This is a followup change for I37209a5a. Change-Id: I17cf4596034ed900cb4c769f89a2607a53b19c0a
2011-08-31Fix a possible NPEJean Chalard1-1/+3
Change-Id: I5c57752772414b4f9475d0ad43d7fc52b97c3f33
2011-08-31Fix missing renamesTadashi G. Takaoka2-0/+0
This is a followup for Ic83cd120. Change-Id: Ib51bae45939aa67394c5988a4f4451c20fff6959
2011-08-31Rename PopupCharactersParser to MoreKeySpecParserTadashi G. Takaoka93-690/+697
Also renames PopupPanel to MoreKeysPanel Change-Id: I37209a5a8fe7dbba1eef03e3be88ba5253653926
2011-08-31Update the LatinIME app iconKen Wakasa4-0/+1
bug: 5209784 Change-Id: I67be041f55732abbff7722c0e782277497a773bc
2011-08-31Remove unused XML attributeTadashi G. Takaoka1-8/+0
This is a followup for Ic83cd120. Change-Id: Iecdcf28e2e07e1110c1b2974a9cb994ab2c0a769
2011-08-31Clean up bigram settingsJean Chalard2-18/+14
Move bigram suggestion option to the advanced settings screen, remove bigram prediction option for ICS release and remove the now-empty bigram option category. Bug: 5240082 Change-Id: Ib1fc608ad33d5598410f7b0cb4a1639bffef28c7
2011-08-31Rename PopupMiniKeyboardView to MiniKeyboardViewTadashi G. Takaoka28-87/+79
Change-Id: Ic83cd1200cfb8f8c0b0cfbcad449031b8e8a29e0
2011-08-31Check the magic number of a decoded fileJean Chalard1-6/+36
Checking the magic number of a file upon decoding is necessary, because if the file is corrupt and we don't check it, we will fall back to a simple copy of the corrupted file. Latin IME would realize this and would not crash, but would not use the corrupted dictionary. If this happened to be a main dictionary, then the user would lose the ability to use the correct built-in dictionary. Not the same, but kinda similar to Bug: 5223031 Change-Id: Ic2783dc9dd5f3dcf2865623d9452765fe3778db7