aboutsummaryrefslogtreecommitdiffstats
path: root/java/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-06-26Fixing follow-up to I548d899bJean Chalard2-9/+7
I548d899b introduced a new method to fix a sync miss between the cursor position and the cached cursor position, but did not take into account that it should also update the cached text before and after the cursor in this case and that there was already a method for doing this. Change-Id: I31bd741893207c822827304e77791b1159774e1a
2013-06-26Move shortcut reading methods.Keisuke Kuroynagi5-75/+77
Moved form BinaryFormat to BinaryDictionaryTerminalAttributesReadingUtils. Bug: 6669677 Change-Id: Ia1ab25854effbf61df37837fe26755ac7dc4d020
2013-06-26Add jni methods for dynamically handling a dictionary.Keisuke Kuroynagi5-21/+119
Bug: 6669677 Change-Id: I8a26623adbb41a78e3c023c652be635c635e3b47
2013-06-25Make UserLogRingCharBuffer an external classKen Wakasa4-125/+140
Change-Id: I9d506995337d64ec11c72939a8d739423ee46efa
2013-06-25Fix the one-suggestion case.Jean Chalard1-22/+36
When there is only one suggestion, this code does not work. The reason for that is, it's not homogeneous at all and takes indices of one thing into another. Not completely related to b/8839763, but realized working on this and needed to have it addressed. Bug: 8839763 Change-Id: I422730cc7eebb69ff421a171025af0390ebcdf92
2013-06-25Add a parameter isUpdatable to the constructor of BinaryDictionary.Keisuke Kuroynagi3-8/+12
Bug: 6669677 Change-Id: I6bc25131afd97112e3bbde036a81ab559a9a6460
2013-06-25Cleanup under the utils packageKen Wakasa8-78/+64
Change-Id: If2f7bd1346cc5085bf57645830f0faac44d017e4
2013-06-25Add canBeDynamicallyUpdated() in BinaryDictionaryInfo.Keisuke Kuroynagi1-0/+6
Bug: 6669677 Change-Id: I7391641253b99bfcb1f9380ebee2037015e7dc14
2013-06-25Allow mmapping dictionary file in writable mode in openNative.Keisuke Kuroynagi5-13/+19
Bug: 6669677 Change-Id: I447668932de118b158fa029ddc977b3f3cc06cb8
2013-06-25Move file and mmap information form Dictionary to BinaryDictionaryInfo.Keisuke Kuroynagi4-27/+37
Bug: 6669677 Change-Id: I05d435e0884430f8abbbed6ea2df775005ee8622
2013-06-24Import translations. DO NOT MERGEBaligh Uddin32-65/+36
Change-Id: I17e9ad751b1e628c8a60bc2234180a37716d10e9 Auto-generated-cl: translation import
2013-06-24Load the native lib eagerlyKen Wakasa1-0/+7
in the hope of avoiding UnsatisfiedLinkError. This is definitely not a confident fix as we still don't know the root cause of the issue. bug: 9325110 Change-Id: I1abf8031b98509f63fce6a2d069d497895ea712c
2013-06-24Fix possible divided by zeror errorTadashi G. Takaoka1-13/+7
Bug: 9534022 Change-Id: I5ab575c724fd7a9e80c76a93d83949e81b2970bb
2013-06-24Fix a small bugJean Chalard1-4/+4
SpannableStrings are not the only type of Spanned, they are only the mutable kind. SpannedString is the immutable one. Spanned is the correct class to use there. Bug: 8839763 Bug: 8862327 Change-Id: Ic5e6199a51f22368914f2748ac2d0d1ca6a33f78
2013-06-24Move util classes to the latin/utils directoryKen Wakasa130-241/+349
Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
2013-06-24Fix tests for Ia78d3540Jean Chalard1-0/+1
Bug: 9550023 Change-Id: I13f4411573ff7b2564e88fc9b9a8d801dde23019
2013-06-24Refactor text range to be able to get spans larger than the wordJean Chalard2-26/+34
This changes how the Range class stores its data, but not its functionality. It also improves encapsulation a bit. Bug: 8839763 Bug: 8862327 Change-Id: I5bd583b3fc96a99b93a2632882d8fd587c03ab76
2013-06-24Extend center point vertically for bottom keys on a keyboard.Keisuke Kuroynagi1-6/+14
Bug: 9505397 Change-Id: Ic415ac4065d23cb832dd3bb85876e2a4dc9e9fc3
2013-06-24Rename BinaryDictionaryBigramsReadingUtils to ↵Keisuke Kuroynagi4-58/+57
BinaryDictionaryTerminalAttributesReadingUtils and remanme the class methods Bug: 6669677 Change-Id: I960dcf51a950ead2c3d7b9dedcde0a450569cbe9
2013-06-24Check adjacent proximity chars for insertion for typingKeisuke Kuroynagi4-22/+17
Change-Id: I6ce1b065bba055516fca0c8af6f14853a111aa68
2013-06-22Move splash screen to separate fileKurt Partridge2-64/+127
Change-Id: I5cad5d5814303d7ca4abadd3fca1c37bd1bc357e
2013-06-21Defer disk-intensive tasks until after the keyboard is shownJean Chalard1-9/+33
Bug: 8689779 Change-Id: Ia78d3540f44ec0028c3246a8e0163e9ecf061ecf
2013-06-21Give the best score to the most probable exact match.Keisuke Kuroynagi3-1/+27
Bug: 9490364 Change-Id: If7fe5da190516d4b5f7a41b752ef5960205a5899
2013-06-21Fix a bug in the cached cursor pos, and simplify selection handlingJean Chalard2-10/+14
The documentation for setComposingRegion states explicitly that it does not move the cursor. This is just a bug. This does not have any ill effects right now, but it will have in later changes if not fixed. As for the selection handling, the specific test that this code removes used to serve a purpose, but it does not any more because the code using the value has been much sanitized. Now the variable can just take the obvious value, and become so self-explanatory that the comments are unnecessary. Change-Id: I548d899b38776bd3ab5f5361aab0d89d98f12e73
2013-06-21Fix punctuations stripTadashi G. Takaoka2-5/+14
Bug: 9508186 Change-Id: I8f0fbf4e0578cf9116d4c57e7e5747d38c89387e
2013-06-21Enable long-press digit input for tabletsTadashi G. Takaoka40-121/+199
Bug: 6632204 Change-Id: I8a62e78367c87c2fbb8f14575aef98035fa8440e
2013-06-21Add ByteArrayUtils::readSignedInt24andAdvancePosition to read dynamic ↵Keisuke Kuroynagi1-0/+11
dictionaries. Bug: 6669677 Change-Id: I75eeedbb50868432f6a7ff5fa63624d03e788356
2013-06-20Change method name of getDepth and getTotalLength.Keisuke Kuroynagi3-24/+24
Change-Id: I4b3aa54e17d7de7c31f956dc9d59941d79856fd7
2013-06-20Add tests to dicttool test.Jean Chalard13-73/+252
Bug: 8526576 Change-Id: Idd6f9cd076d5915361c68f5c29afbba67dd54eba
2013-06-20Lengthen CHAR LIMIT of settings_system_defaultTadashi G. Takaoka1-1/+1
Bug: 9495443 Change-Id: Ib52d0ab357e79ae6004411f4b4201570a228bc71
2013-06-19Import translations. DO NOT MERGEBaligh Uddin51-0/+84
Change-Id: Ic7508cb2b5098403786af2f2e220d908dab51e8d Auto-generated-cl: translation import
2013-06-19Initialize inputStatusG at the constructor.Keisuke Kuroynagi1-0/+5
Bug: 9490519 Change-Id: I1806f765f7a0b5335df253b2618b40cfd17aab14
2013-06-19Add an initial test command to dicttool.Jean Chalard6-8/+66
Also fix some warnings This is a preliminary change to help track b/8526576 Bug: 8526576 Change-Id: If2ed74bb92f9b5fb7bbaf9c4851d9d0b5514b405
2013-06-19Support digits more keys in Hebrew phone keyboardTadashi G. Takaoka2-16/+55
Bug: 9431432 Change-Id: Ie1d438e0483022eac97cec52a64e49fbd3c7d503
2013-06-18Use system default key press volumeTadashi G. Takaoka2-2/+5
Bug: 9475973 Change-Id: I6ae825b161dde69e19b52d73fb9aa782e2aa7423
2013-06-18Use system default vibration patternTadashi G. Takaoka3-2/+7
Bug: 9468462 Change-Id: Ifa46a56873c10888da8eaa2782fe07ef138a141b
2013-06-18Optimize ProximityInfo#computeNearestNeighbors()Jean Chalard1-17/+110
This cuts the time spent in computeNearestNeigbors by a factor of 6 to 20, with an average at about 8. This method representing about 25% of the total time spent when switching keyboards, this change is a 20% improvement in layout switching time. Bug: 8689779 Change-Id: Icb465f6010b317c7156057891c3341e51a198688
2013-06-18Get value text from ValueProxyTadashi G. Takaoka4-26/+31
As a preparation to show "system default" in the settings. LatinIME can't know the actual system default value. Bug: 9468462 Change-Id: I0b7898d1ca29ded7a619dd636d2ad16eb0db292e
2013-06-18Check compound distance of node and prune useless node after creating new word.Keisuke Kuroynagi1-1/+7
Before: 136309.89 ms After: 73133.95 ms Bug: 8591918 Change-Id: If029b768e2b459c0e566188bcf425f71b2df866d
2013-06-17Fix a bug with recapitalizationJean Chalard1-1/+4
This is a shameful bug :/ Bug: 9410367 Change-Id: I54ddbcd0323fa2c11fbd2aa8a1b3d2e07f6e83c8
2013-06-17Support multi words input for gesture.Keisuke Kuroynagi4-10/+17
Bug: 8591918 Change-Id: I344f936907a385cc6c3c8a2215a6603938483401
2013-06-14Support keys that have uncommon width.Keisuke Kuroynagi5-65/+86
Bug: 8591918 Change-Id: I1e01e1560200333f9e35993af0aa7e5a17e6944f
2013-06-14Use bloom filter in multi bigram map.Keisuke Kuroynagi6-47/+122
Evaluated with previous word "this". without bloom filter (use only hash_map): Total 147792.34 (sum of others 147771.57) with bloom filter: Total 145900.64 (sum of others 145874.30) always read binary dictionary: Total 148603.14 (sum of others 148579.90) Bug: 8592527 Change-Id: I821dc39454543826adb73b9eeeef6408fad8ae28
2013-06-14Introduce BinaryDictionaryBigramsIterator to access bigrams attributes in ↵Keisuke Kuroynagi10-101/+299
binary dictionaries. Bug: 6669677 Change-Id: Ifb1adebc5305a930c80396f6b4ec31d84400a9dc
2013-06-14Don't count Spacer into histogramsTadashi G. Takaoka1-4/+9
Change-Id: I202a25da4e1a722aa35c57665d73bc5990404c4e
2013-06-14Fix a bug with long user dict entriesJean Chalard1-1/+3
Bug: 9410958 Change-Id: I966e452c6dbdcb444abbb6ffb316849a7c85a73b
2013-06-13Log score, kind, and sourceDict for manual suggestion and gestureKurt Partridge3-8/+15
b/9422713 Change-Id: I4880fad6a5b10d09ca11b63311f14862bee724e5
2013-06-12Cache subtype lists reasonably.Jean Chalard2-9/+35
This will spare a lot of IPC for Latin IME at the cost of very little retained memory. This improves the loading by potentially a lot - between 15 and 30% when the layout is cached (which should now be the case almost every time), and half that if it's not. More importantly, it makes the load time less sensitive to high device load, which is one of the sore points. Bug: 8689779 Change-Id: I2e07736f1a92c38eed0e203bc690761a181da8b9
2013-06-12Adjust settings for development-only versionsKurt Partridge2-1/+17
Change-Id: I4f08632d97f182d312edc82bda3c3897a71099ad
2013-06-12Retun an empty Path instead of nullTadashi G. Takaoka2-4/+5
Bug: 9374496 Change-Id: If74306104e9d25288e1b216a328304da376c1bdb