aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/accessibility/KeyCodeDescriptionMapper.java (unfollow)
Commit message (Expand)AuthorFilesLines
2012-05-03Import translations. DO NOT MERGE•••Change-Id: I5527274e1462dab152b4b3bf907343d22ec0e102 Eric Fischer2-10/+10
2012-05-02Import translations. DO NOT MERGE•••Change-Id: I4f26fabb1968b81ba8646deb459a2ebd0fc07fe3 Eric Fischer1-4/+4
2012-05-02Fix build breakage•••Change-Id: I22305137b336c9aab019d044a517ae8bc5fefe45 satok1-1/+1
2012-05-02Fill up a map of bigram addresses for lookup.•••We don't want to do a linear search on each terminal when there may be 100+ bigrams for a given word because that would be disastrous for performance. Also, we need to resolve each bigram address anyway. This change resolves the addresses at first and puts them in a balanced tree so that lookup will be O(log(n)). Bug: 6313806 Change-Id: Ibf088035870b9acb41e948f0ab7af4726f2cee24 Jean Chalard4-3/+28
2012-05-02Workaround return preserved backing view height when the backing view is not ...•••Change-Id: If4f24500ead516c46e6a93a95291e0897548c2f0 satok1-2/+17
2012-05-01Import translations. DO NOT MERGE•••Change-Id: Ia71f1f0df919691792648da0d4b6eb41edcf5747 Eric Fischer1-10/+5
2012-05-01Fix checking if subtype belongs to this ime•••Bug: 6422318 Change-Id: I5779c0e277444315191fa964a976dcb4316cc24a Tadashi G. Takaoka2-3/+17
2012-05-01Tune letter text size of 7 inch tablet•••Bug: 6422086 Bug: 6411272 Change-Id: Ia3c40206555353b6f0c633a529d546dc2379e9aa Tadashi G. Takaoka4-6/+7
2012-05-01Narrow horizontal gap of 7 inch tablet landscape•••Change-Id: I20579d75f5669909efd18a70b47cd44f471fd452 Tadashi G. Takaoka1-1/+1
2012-05-01Auto X scale domain key label•••Bug: 6411275 Change-Id: I94906adb6936371f5275a1494f6f8b5546633a2b Tadashi G. Takaoka1-1/+1
2012-05-01Remove duplicated functional keys•••Bug: 6410931 Change-Id: I07e84729da00d335e3864b9324bb1261df8968f7 Tadashi G. Takaoka7-104/+76
2012-05-01Remove tab key from alphabet layout of tablet 7•••Bug: 6410889 Change-Id: If7269aa2aeb1b6af9f0286f96c48b68309d646c5 Tadashi G. Takaoka27-66/+58
2012-05-01Override defaultActionKeyStyle to use non-blue action background•••Bug: 6412932 Change-Id: I1c7335c53a35fc88694224332511415ea63ac745 Tadashi G. Takaoka1-0/+6
2012-05-01Don't autocorrect after suggestion resuming•••Bug: 6105732 Change-Id: I92e7a9c6d6eb648f747c3b396d7993479fd8478a Jean Chalard2-0/+15
2012-05-01Add keyboard bottom padding for 7 inch tablet•••Bug: 6411451 Change-Id: I183e9dca258aa2b632e486ce1d115d1d7f3d739d Tadashi G. Takaoka1-1/+1
2012-05-01Can override key-style•••Bug: 6412932 Change-Id: I9576ae5b42bcc54cfd8ede0bae5148f3b04c1978 Tadashi G. Takaoka2-56/+47
2012-05-01Fix CHAR LIMIT of some string resources•••Bug: 6421155 Change-Id: I1e2f1fa419c16dcbf483ace7c1a362b51f0dc7bb Tadashi G. Takaoka1-9/+9
2012-05-01Remove tab key from number/phone layout of 7 inch tablet•••Bug: 6411288 Bug: 6411588 Bug: 6411840 Change-Id: I44b358ae9c078779d6b1108281c1458387a32948 Tadashi G. Takaoka9-66/+52
2012-05-01Remove tab key from phone layout of 7 inch tablet•••Bug: 6411288 Change-Id: Ie3836becf787536b7346150008053a985280f61b Tadashi G. Takaoka3-33/+19
2012-04-30Import translations. DO NOT MERGE•••Change-Id: Ie86b666066f353bd16f3c8564111f8c096c32283 Eric Fischer47-470/+235
2012-04-27Import translations. DO NOT MERGE•••Change-Id: I34b791b8bd756e6e68e6e396e5e02bf8950398a3 Eric Fischer1-1/+1
2012-04-28Avoid Resources$NotFoundException•••bug: 6410653 Change-Id: I4263632e76b44abf8ecd9114a9eb185ad39201fd Ken Wakasa2-2/+6
2012-04-26modifications for new system volume policy.•••The new system and UX sound volume policy makes that STREAM_SYSTEM volume is not fixed anymore. It is tracking STREAM_RING (phones) or STREAM_MUSIC (tablets) in a constrained range between -24dB and -6dB. Sound Fx where previously played over STREAM_SYSTEM with a fixed attenuation of -20dB. The default value of 5% in the keypress sound volume setting was corresponding to -26dB, meaning 6dB below default. Modified the default volume value to 50% so that by default, keypress sound volume varies from -30dB to -12dB which is also 6dB below the other system sounds. Change-Id: I146f72275b8e88fdce5ccf8b6dae2903c27f15eb Eric Laurent1-3/+3
2012-04-26Import translations. DO NOT MERGE•••Change-Id: I1df0104d5ec4dac73c45667c621cbb671b44e6df Eric Fischer49-6/+496
2012-04-26Add a flag for bigram presence in the header•••This is a cherry-pick of Icb602762 onto jb-dev. Bug: 6355745 Change-Id: Icb602762bb0d81472f024fa491571062ec1fc4e9 Jean Chalard2-4/+34
2012-04-26Fix potential "divided by zero" exception•••This change also refactors the language name selection to use text x-scale. Bug: 6396854 Change-Id: I31249a85bd042a93d627f40413161aef13617c87 Tadashi G. Takaoka1-44/+35
2012-04-26Increase CHAR LIMIT in some string resources•••Bug: 6374565 Bug: 6381144 Change-Id: I2fff2323e8f0f79df2b71ed030a1a0953b2854c8 Tadashi G. Takaoka1-4/+4
2012-04-26Fetch and pass the bigram position on suggestions.•••This is a cherry-pick of change I2d81742f Bug: 6313806 Change-Id: Ic1190b7980d032bc11b57841bca040d980889b6b Jean Chalard4-16/+18
2012-04-26Ignore bigrams that are not also listed as unigrams•••This is a cherry pick of I14b67e51 on jb-dev Bug: 6340915 Change-Id: Iaa512abe1b19ca640ea201f9761fd7f1416270ed Jean Chalard5-41/+51
2012-04-26Show settings key when noMicrophone option is enabled on PC QWERTY•••Change-Id: Ib419a597e218af347e5d5da19f5ca8b3db8548c7 Tadashi G. Takaoka2-0/+13
2012-04-26Fix SubtypeSwitcher incomplete initialization•••Bug: 6400718 Change-Id: Id5dce156ad397b911bfeaedeeddd4aeb21a10b3a Tadashi G. Takaoka1-1/+2
2012-04-26Fix "no language" subtype name (DO NOT MERGE)•••* Move SubtypeLocale.get{Full,Middle,Short}DisplayName() to LatinLeyboardView and add unit tests (SpacebarTextTests). * Add SubtypeLocale.getSubtypeDisplayName() This is a cherry-pick of I57420c6a from Master. Bug: 6393865 Change-Id: I68748189c17c73984ac4ae05a5a40fb54bf46453 Tadashi G. Takaoka10-187/+357
2012-04-25Support PC QWERTY layout•••Bug: 4460018 Change-Id: I9a29f6a322af66f6a152fa1883b3686c5f7a3328 Tadashi G. Takaoka31-2/+1627
2012-04-25Cancel SubtypePreference dialog properly•••Bug: 6384416 Bug: 6387408 Change-Id: Ia7b0653a09410b42a55915815c887bf0ad56c856 Tadashi G. Takaoka1-1/+10
2012-04-25Save & restore additional subtype dialog state when orientation is changed•••Bug: 6384416 Change-Id: Id5fa4742ad900fafb82cc37a0bbb9f380b99254d Tadashi G. Takaoka1-67/+100
2012-04-25Ignore unknown keyboard layout safely•••Bug: 6393755 Change-Id: I3a74b23f934cd52925026ad04647cc76de92ee07 Tadashi G. Takaoka3-11/+19
2012-04-25Fix percent sign in more keys•••Bug: 6029665 Change-Id: I4bf0f5703d0c11d76bab478da2729b0e20fc64ea Tadashi G. Takaoka3-12/+4
2012-04-24Import translations. DO NOT MERGE•••Change-Id: I17745dd7dbabcc6409361e1b2fa0141ff3f13e09 Eric Fischer23-368/+184
2012-04-24Change expandable binary dict write to a temp file first.•••Bug: 6380724 Change-Id: Ic1d0d902dc45ecb41a1792f33a60ab85e606fcef Tom Ouyang1-1/+4
2012-04-24Use HTML entity for non-ASCII unicode•••Change-Id: If8b605778196a5c0a0205ebd49378759027ee265 Tadashi G. Takaoka1-2/+3
2012-04-24Pass the bigram list position from the top level•••The position itself is still a const int = 0 until we have the previous word passed to the function. This basically does the plumbing. Bug: 6313806 Change-Id: Ib58995f334fe93e3ff5704d7c79f332017f101ac Jean Chalard3-44/+55
2012-04-24Revert keyHintLetterPadding only to apply horizontally•••Partially reverts the Ia3680d84. Bug: 6356125 Change-Id: I8faa810b833cb98ce6f0f760aa1722e63475cd45 Tadashi G. Takaoka2-3/+3
2012-04-24Add header commnets of KeyboardTextsSet.tmpl•••Bug: 6371604 Change-Id: I1054685b9985b6923e3176679b3d95424d8114e0 Tadashi G. Takaoka2-2/+34
2012-04-24Fix binary reading code performance.•••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 Jean Chalard1-1/+10
2012-04-24Move functional keys out from rowkeys_symbols{_shift}3.•••Change-Id: Iee5e7e93e5f319551a8ad28c58813c00fc713308 Tadashi G. Takaoka4-16/+16
2012-04-24Fix a bug where a node size would be seen as increasing.•••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 Jean Chalard1-5/+25
2012-04-24Make the "Touch again to save" hint text touchable.•••Bug: 6355346 Change-Id: I96933719cc94f25e6c7ecb1d6345c11b6acc4134 Tadashi G. Takaoka1-7/+18
2012-04-24Fix NPE in AdditionalSubtypeSettings•••Bug: 6384416 Change-Id: I878071b8b78acce51649f9637b59830ab681c696 Tadashi G. Takaoka1-0/+1
2012-04-24Add methods to inverse compute the probability.•••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 Jean Chalard5-34/+48
2012-04-23Import translations. DO NOT MERGE•••Change-Id: I11d27b3c5c1005bd6679f59804f217640f8d5992 Eric Fischer19-304/+152