aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-04-24Revert keyHintLetterPadding only to apply horizontallyTadashi G. Takaoka2-3/+3
Partially reverts the Ia3680d84. Bug: 6356125 Change-Id: I8faa810b833cb98ce6f0f760aa1722e63475cd45
2012-04-24Add header commnets of KeyboardTextsSet.tmplTadashi G. Takaoka2-2/+34
Bug: 6371604 Change-Id: I1054685b9985b6923e3176679b3d95424d8114e0
2012-04-24Fix binary reading code performance.Jean Chalard1-1/+10
This is not the Right fix ; the Right fix would be to read the file in a buffered way. However this delivers tolerable performance for a minimal amount of code changes. We may want to skip submitting this patch, but keep it around in case we need to use the functionality until we have a good patch. Change-Id: I1ba938f82acfd9436c3701d1078ff981afdbea60
2012-04-24Move functional keys out from rowkeys_symbols{_shift}3.Tadashi G. Takaoka4-16/+16
Change-Id: Iee5e7e93e5f319551a8ad28c58813c00fc713308
2012-04-24Fix a bug where a node size would be seen as increasing.Jean Chalard1-5/+25
The core reason for this is quite shrewd. When a word is a bigram of itself, the corresponding chargroup will have a bigram referring to itself. When computing bigram offsets, we use cached addresses of chargroups, but we compute the size of the node as we go. Hence, a discrepancy may happen between the base offset as seen by the bigram (which uses the recomputed value) and the target offset (which uses the cached value). When this happens, the cached node address is too large. The relative offset is negative, which is expected, since it points to this very charnode whose start is a few bytes earlier. But since the cached address is too large, the offset is computed as smaller than it should be. On the next pass, the cache has been refreshed with the newly computed size and the seen offset is now correct (or at least, much closer to correct). The correct value is larger than the previously computed offset, which was too small. If it happens that it crosses the -255 or -65335 boundary, the address will be seen as needing 1 more byte than previously computed. If this is the only change in size of this node, the node will be seen as having a larger size than previously, which is unexpected. Debug code was catching this and crashing the program. So this case is very rare, but in an even rarer occurence, it may happen that in the same node, another chargroup happens to decrease it size by the same amount. In this case, the node may be seen as having not been modified. This is probably extremely rare. If on top of this, it happens that no other node has been modified, then the file may be seen as complete, and the discrepancy left as is in the file, leading to a broken file. The probability that this happens is abyssally low, but the bug exists, and the current debug code would not have caught this. To further catch similar bugs, this change also modifies the test that decides if the node has changed. On grounds that all components of a node may only decrease in size with each successive pass, it's theoritically safe to assume that the same size means the node contents have not changed, but in case of a bug like the bug above where a component wrongly grows while another shrinks and both cancel each other out, the new code will catch this. Also, this change adds a check against the number of passses, to avoid infinite loops in case of a bug in the computation code. This change fixes this bug by updating the cached address of each chargroup as we go. This eliminates the discrepancy and fixes the bug. Bug: 6383103 Change-Id: Ia3f450e22c87c4c193cea8ddb157aebd5f224f01
2012-04-24Make the "Touch again to save" hint text touchable.Tadashi G. Takaoka1-7/+18
Bug: 6355346 Change-Id: I96933719cc94f25e6c7ecb1d6345c11b6acc4134
2012-04-24Fix NPE in AdditionalSubtypeSettingsTadashi G. Takaoka1-0/+1
Bug: 6384416 Change-Id: I878071b8b78acce51649f9637b59830ab681c696
2012-04-24Add methods to inverse compute the probability.Jean Chalard5-34/+48
For now the probability is just returned with the same value it had, but this is some ground work that needs to be done anyway. Bug: 6313806 Change-Id: I9bb8b96b294109771208ade558c9ad56932d2f8e
2012-04-23Import translations. DO NOT MERGEEric Fischer19-304/+152
Change-Id: I11d27b3c5c1005bd6679f59804f217640f8d5992
2012-04-24Cleanup <include/> and etc. in keyboard XMLTadashi G. Takaoka35-132/+78
* Remove keyXPos and keyWidth from key_*.xml and make it more generic. * Add keyXPos and keyWidth to <include/> generalized key_*.xml. * Remove zero width <Spacer/> and fold into successive <include/>. Change-Id: I4b5c02a165ba0bc9ef8741be0b4938c1efaf5e27
2012-04-23Remove alt-code-while-typing from tabletTadashi G. Takaoka2-4/+4
Change-Id: I4471d10e3f7c681c27805b966869c0b47508329f
2012-04-23Fix key preview when shifted hint letter is activatedTadashi G. Takaoka1-3/+4
Change-Id: I70d2627318d21eb612c3c3fee2ce8e80555dba12
2012-04-23Fix a bug where two spaces would be added instead of oneJean Chalard1-15/+16
Bug: 6378291 Change-Id: Id2453333ae16146f816faf0eb68baa8ea1dd106a
2012-04-23Fix a bug where a batch edit would not be started.Jean Chalard1-1/+3
This would end up in TextView sometimes calling onUpdateSelection multiple times (this is the correct behavior for TextView). We now commit the space and the word in a batch edit, and we only get onUpdateSelection once. Bug: 6300527 Change-Id: I9579f3d8f5320c1cc24a7a42f19db8e105eb090d
2012-04-23Separate Hebrew row4 on tabletTadashi G. Takaoka6-31/+95
Change-Id: Iea17aa7cae60e131d4b5bfeb78d287915fd04164
2012-04-23Pass words as int[] to the native code.Jean Chalard9-28/+28
We need to get the bigrams during the call to getSuggestions for bug#6313806. We already give an int[] to getSuggestions and we wanted to get rid of char[]'s anyway because it doesn't work with surrogate pairs, so here we go. Bug: 6313806 Change-Id: I56ce99f1db6b3302cdf42f0527343bded837091e
2012-04-23Modularize shortcut key on 10 inch tabletTadashi G. Takaoka3-20/+38
Change-Id: Ie4cace33f8bcffd092bea7ce2da0cee5a1cbd685
2012-04-23Support Colemak layoutTadashi G. Takaoka11-0/+495
Bug: 4460018 Change-Id: I60c3dfaf205c95b92a54022f0256c33f644c8b10
2012-04-23Fix using keyboard layout display name in custom input style spinnerTadashi G. Takaoka1-9/+8
Change-Id: I80626591574aa9995011202cf868f9c2c5168303
2012-04-23Use the best matching cached dictionary for each categoryJean Chalard1-9/+62
Bug: 6327270 Change-Id: I5a0e732c8a3fd55fd8ac3c8fe1c58e7f91555d97
2012-04-22Binary bigram lookup checks both uppercase and lowercase when previous word ↵Tom Ouyang3-14/+48
is uppercase. Bug: 6363029 Change-Id: I71a1ed5b88f54fcc15bfaf89d3645b8f17ebb821
2012-04-22Remove unused methods and classesKen Wakasa1-75/+0
Change-Id: I1a82bf2202d436efa4c5135d705a048fe45a0257
2012-04-22Remove an unused methodKen Wakasa1-24/+0
Change-Id: I3abbf6462c31b11167e356fe77b8afca2514a869
2012-04-20Fix the buildSvetoslav Ganov1-2/+4
Change-Id: I5c4e230500f058f7db86c05d554be45411004ffc
2012-04-20Import translations. DO NOT MERGEEric Fischer6-96/+48
Change-Id: I901b68d89ab5f04c79b843aa73ec40caa2c1686c
2012-04-20Add language switch key to symbols and symbols shifted layoutTadashi G. Takaoka10-30/+30
Bug: 6370179 Change-Id: I061559ea5d0cb11a059de4b6e741f9c17ee69a27
2012-04-20Predefined keyboard layouts are configurable via XML resourceTadashi G. Takaoka6-49/+73
Bug: 4460018 Change-Id: Ia03ec826fb3853ea814d9764686903dbe31a6507
2012-04-20Add language switch key to 7 inch tabletTadashi G. Takaoka2-2/+29
Bug: 6370443 Change-Id: I4079c4b06de7abd677376094dab341f34aa2d234
2012-04-20Allow using a format version 2 word list in LatinIMEJean Chalard1-7/+13
Change-Id: I73a4df3a83e49be6e8d3a7d14eb027cfe10f1a23
2012-04-20Support Dvorak layoutTadashi G. Takaoka18-2/+802
Bug: 4460018 Change-Id: I08a9b556720f6c4f7089a8838c0869c9f88f479c
2012-04-20Modularize keyboard XML filesTadashi G. Takaoka42-356/+273
* Remove duplicated xml-sw768dp/keys_apostrophe_dash.xml * Separate keys_apostrophe_dash.xml to key_apostorhe.xml and key_dash.ml * Separate key_space.xml from row_qwerty4.xml * Separate key_f1.xml from xml{,-sw600dp}/row_qwerty4.xml * Separate keys_f1f2.xml from xml-sw768dp/row_qwerty4.xml * Fix incorrectly named rows_symbols{,_shift}4.xml to row_symbols{,_shift}4.xml Change-Id: Id71967a016a348174d1fc265b654dbc233c6562e
2012-04-20Don't allow cancelling manual pick.Jean Chalard1-0/+2
Bug: 6347202 Change-Id: I30b53256e83c534436b0f0ff594fd4aaabf4558c
2012-04-20Fix confusable "label" usage, use "text" insteadTadashi G. Takaoka101-428/+428
* Rename makelabel tool to maketext * Rename KeyboardLablesSet class to KeyboardTextsSet * Rename "!label/name" to "!text/name" Change-Id: Ia9494a89fe56f20ca8e8fedb253adbcf8b771bd3
2012-04-20Use string attribute for icon nameTadashi G. Takaoka17-185/+166
Change-Id: I336acf33c7e6bc993b9da9b17ec689975fa8127d
2012-04-20Make KeySpecParser case insensitiveTadashi G. Takaoka15-264/+468
Change-Id: I76c3e9179dd8777d3cf3138ad76513d83672debf
2012-04-19remove unnecessary KeyboardState loggingKurt Partridge3-153/+0
Bug: 6188932 Change-Id: Iafbb1825777122a1810fa3339853263aced3077e
2012-04-19researchLogger detail on IME sessionsKurt Partridge4-79/+109
log device type, screen size, etc. also simplification inside ResearchLogger to use exceptions better, and fix ResearchLoggerTests to not change preferences to specify the logfile. multi-project change with Idfd193b16260215cca32886e288f03a0c12b2781 Bug: 6188932 Change-Id: Idd3ca6eb8e8e3934f68234b241c7fd7d0cc3bcd5
2012-04-19Import translations. DO NOT MERGEEric Fischer49-1/+785
Change-Id: I80769f5a263835b74a455905d2789e07c2042f16
2012-04-19Change binary dictionary output buffer size to match dictionary size.Tom Ouyang1-32/+65
Bug: 6355943 Change-Id: Iaab7bc16ba0dbc7bfde70b06e7bd355519838831
2012-04-20Add shortcut_as_more_key labelTadashi G. Takaoka2-360/+355
This change also optimezes KeyboardLabelsSet.java by reordering donottranslate-more-keys.xml in makelabel tool. Change-Id: Ief46ee783454bedcdffb0f24d9d03df51b6edcd6
2012-04-19Fix comment handling of makelabel toolTadashi G. Takaoka2-29/+65
Change-Id: Id40336b543987eee1d2777394d9ee5d0a6343a4c
2012-04-19Move main dictionary availability check to LatinIMETadashi G. Takaoka2-19/+18
Change-Id: Ib6183fec833d87bc32514b03bb691fec0a1e6ff8
2012-04-19Fix SubtypeSwitcher to honor subtypeTadashi G. Takaoka2-136/+46
Bug: 6364170 Change-Id: I31f9a7c9b6b4ca04a1c78a4210dcaae0db9825db
2012-04-19Fix English "e" more keysTadashi G. Takaoka2-2/+2
Change-Id: I982690a0d5f524769caa9a06d5da1528899552ef
2012-04-19Fix English "o" more keysTadashi G. Takaoka2-2/+2
Change-Id: If2457251a24686742f410e75938251deb91efdf8
2012-04-19Fix stack overflowTadashi G. Takaoka1-1/+1
Change-Id: I977b240ea462b40852ba9504282312d5fa4e2885
2012-04-19Remove LatinIME reference from DictionaryFactor classTadashi G. Takaoka1-7/+8
Change-Id: Iad10e71baa81a1b4eb3c84ead47d658d567b8201
2012-04-19Add Constants class to hold public constantsTadashi G. Takaoka10-83/+153
This change also gets rid of compiler warnings about "deprecations". Change-Id: Id9b83483c453a81ebac34b684656db05e3599657
2012-04-19Add custom subtype settingsTadashi G. Takaoka11-48/+640
Bug: 4460018 Change-Id: I4919d79516dcf574be2761bbaf9adcdc381b2ddc
2012-04-19Change predefined additional subtype format in preferenceTadashi G. Takaoka9-58/+174
This change also refactor StringUtils class Change-Id: Ie0b4d169b21c260bf238d6fcc9ab0ee8bfd6b508