aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/unigram_dictionary.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move obsolete files to obsolete dir 2Satoshi Kataoka2013-06-031-998/+0
| | | | | Bug: 8550444 Change-Id: Ia83796d696e04f51adb39867dfd21d1ac993b63c
* Move obsolete files to obsolete dirSatoshi Kataoka2013-06-031-2/+2
| | | | | Bug: 8550444 Change-Id: Ie65eea25da4c41e1128d1d8d8643fb6afe8f41e4
* Create "src/utils" directoryKen Wakasa2013-06-031-1/+1
| | | | Change-Id: I0b7c51d181edc4786e343f7a953367b040ee6b66
* Merge "Use BinaryDictonaryInfo instead of raw pointers."Keisuke Kuroyanagi2013-06-031-24/+32
|\
| * Use BinaryDictonaryInfo instead of raw pointers.Keisuke Kuroyanagi2013-06-021-24/+32
| | | | | | | | | | | | Bug: 6669677 Change-Id: I9792a872f1609de7c1ba0fc08d916047d6724c0b
* | Move dictionary format independent probability calculation methods to ↵Keisuke Kuroyanagi2013-06-011-2/+3
|/ | | | | | | ProbabilityUtils. Bug: 6669677 Change-Id: Idc09a2fbb04e4d843e11313011178022177616aa
* Move char_utils to the dictionary directoryKen Wakasa2013-05-311-5/+6
| | | | Change-Id: Id397485407fe63600c9bb5c80d223042942b4d8a
* Move some dictionary related implementations to the dictionary directoryKen Wakasa2013-05-311-4/+4
| | | | Change-Id: I6fe71a540ad91ca46755be234abc8894242e2413
* Create a new directory for layout-related implementationsKen Wakasa2013-05-301-1/+1
| | | | Change-Id: Ia227bb296f20dab0dfc03dfcde3a06c624eca76c
* Add method to get dictionary flags from DicTraverseSessionTom Ouyang2013-04-081-3/+3
| | | | | | | | | This is needed for the traversal algorithm to know which digraphs (if any) are associated with the current dictionary. Bug: 8493920 Change-Id: I6ae088b55e50c0c2c7066d045b304c5068e23390
* Add DigraphUtils classTom Ouyang2013-04-041-22/+9
| | | | | | | | Add a new DigraphUtils class to manage digraph handling for both gesture and typing input. Bug: 8493920 Change-Id: I3a509e1311b9039653f9f488d3c28bb54205f416
* Refactor parameters by naming conventionSatoshi Kataoka2013-03-181-34/+36
| | | | Change-Id: I8bda8075b33f656ecbec08320afcd864b620fe77
* Remove MAX_WORD_LENGTH_INTERNALKen Wakasa2013-01-151-37/+32
| | | | Change-Id: Ie11ff000675601acff5fbb00e9e9f48eb32c5071
* Remove BinaryDictionary.MAX_PREDICTION and MAX_SPACES, and rename MAX_WORDS ↵Ken Wakasa2013-01-111-4/+4
| | | | | | to MAX_RESULTS Change-Id: Iab2a422b367e7521f346481c7fe5e2575f2e9de3
* Replace assert() with ASSERT() & use -funwind-tables for debug buildsKen Wakasa2013-01-091-6/+5
| | | | Change-Id: I9ec14eb24ebc45657119a45aba09517e71a22974
* Misc small cleanupsKen Wakasa2013-01-081-3/+2
| | | | Change-Id: Iea61e6c76a9a0437a1b2e8143f6ab5b09a8e211e
* Remove unused variablesKen Wakasa2012-11-161-3/+2
| | | | Change-Id: Ia5079368a1bc86ccdf0052445dc6945041c0abca
* Follow up to Ic6af0c596374d936d2b9b31e626fb62bd265ce64Ken Wakasa2012-11-031-1/+1
| | | | | | Tidy up inline functions with AK_FORCE_INLINE. Moved back some inline methods to header files. Change-Id: Ibd37b595666ebddda198d9237f19f6712653a8e8
* Add more compiler warning flagsKen Wakasa2012-11-021-6/+4
| | | | Change-Id: Ic6af0c596374d936d2b9b31e626fb62bd265ce64
* Use sizeof() more safely.Ken Wakasa2012-11-011-9/+10
| | | | Change-Id: I7cffb4d8da847b483cf4bb482508e3c88c4903be
* Use 32-bit code points for suggestions outputKen Wakasa2012-11-011-42/+38
| | | | | | | This is a multi-project commit with Ic43dd666 bug: 6526418 Change-Id: I39c1acb4e91d04cd8a4ec5a943c8cf575da75ebc
* am 005f3768: am 25b4a14e: am d03e065b: Don\'t consider non-words for split ↵Jean Chalard2012-10-171-1/+2
|\ | | | | | | | | | | | | word suggestion * commit '005f3768400ce1d7bb29ef69151183084aceeb2c': Don't consider non-words for split word suggestion
| * Don't consider non-words for split word suggestionJean Chalard2012-10-181-1/+2
| | | | | | | | | | Bug: 7368683 Change-Id: Iecd8348be788e5a749dafabdf7eddc4a14d901e0
* | Make use of the NELEMS and KEYCODE_SPACE macro. Also, remove an unused ↵Ken Wakasa2012-10-091-15/+9
|/ | | | | | parameter. Change-Id: I3c7e6c59990c92b0d5e2fb80493e8673cdd37b09
* Using isSkippableChar instead of '\'' and '-'.Keisuke Kuroyanagi2012-09-141-1/+0
| | | | Change-Id: I295a72b683b2ebc28a006baa66baf7e1b97100eb
* Add comments for meaningless linesKen Wakasa2012-09-071-1/+1
| | | | Change-Id: I20ebe246f6980fd3054c2c7e98b5150eaabbcc77
* Fix one-off bugs reported by ValgrindJean Chalard2012-09-061-4/+4
| | | | | Bug: 7108990 Change-Id: I40ba30f50a26b65bcac905fc005ad6bb9cb034cc
* Cosmetic fixes and a bug fix in ↵Ken Wakasa2012-09-041-42/+41
| | | | | | | | UnigramDictionary::testCharGroupForContinuedLikeness(). This change has actually been extracted from a change work in progress I4fe423834b8131fb122251892c98228a6e08ba25 Change-Id: I52568fa09da2ea22be7f8bfe9676b7cd73c31fa4
* Reinstate the shortcut-only attributeJean Chalard2012-08-311-1/+9
| | | | | | | | Also add the blacklist attribute Bug: 7005742 Bug: 2704000 Change-Id: Icbe60bdf25bfb098d9e3f20870be30d6aef07c9d
* Step 38-A Cleanup touch pathSatoshi Kataoka2012-08-231-34/+34
| | | | Change-Id: I9bfac98b9ac10f3812290f21673c4002241eae01
* Allow one-character suggestions.Jean Chalard2012-08-171-35/+34
| | | | | Bug: 6906525 Change-Id: I62117653ac1281f825afc4ebb30f7e786902b750
* Tag the whitelisted entries in native code.Jean Chalard2012-08-131-5/+20
| | | | | | | | | | Since this is already used in Java land, this actually does activate the whitelist path, and the code is now fully functional. We still have to remove the old whitelist resource and to compile the dictionary that includes the whitelist. Bug: 6906525 Change-Id: Iacde5313e303b9ed792940efaf6bcfa4ee1317bd
* Pass the type from native code all the way to Java.Jean Chalard2012-08-101-8/+10
| | | | | Bug: 6906525 Change-Id: I057390d47a223450e22d8338509e22c28fc0d5f6
* Header cleanup. Moved a couple of functions from .h to .cpp.Ken Wakasa2012-08-021-3/+5
| | | | Change-Id: Ifd12a7632f75395bd0ef5e394d5c2abd6cbe28c6
* Move flags belonging to BinaryFormat to the right place.Jean Chalard2012-08-011-5/+5
| | | | | | | | | | These masks and flags are constants that are an integral part of the format. They belong in BinaryFormat and have nothing to do in UnigramDictionary. This needs I6751dda4 to not break the build Bug: 6429243 Change-Id: Ic1c842b3245f7fdc25aa8d1459c5bb07b262e265
* Cleanup headersKen Wakasa2012-07-311-2/+2
| | | | Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3
* Misc cleanupsKen Wakasa2012-07-301-2/+1
| | | | Change-Id: I28308f12c3064299acefc346b72279036c3726a7
* Cosmetic fixes and style fixesKen Wakasa2012-07-251-43/+42
| | | | Change-Id: I69c42ff945cdf0d5205c6ca61d6861a0479492dc
* Pass an array to output suggestion types (A119a)Jean Chalard2012-07-121-1/+2
| | | | | | | | This needs the matching A119b change to not break the build. The array is passed, but not used yet. Bug: 6166228 Change-Id: Ia91d658461d989ee8c94e9b31bb06f4a36f4c5b6
* Search bigrams for the lower case version of the word (A46)Jean Chalard2012-07-041-1/+2
| | | | | | | ...if there aren't any for the exact case version. Bug: 6752830 Change-Id: I2737148b01ba04a64febe009ceb2ef53c265d224
* Make native bigram dictionary constsatok2012-06-141-8/+9
| | | | Change-Id: Id883f2d69483c9234877ad42446a582258e1cf91
* Move correction state to stack memorysatok2012-06-141-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | *Before (0) 13.18 (0.01%) (1) 93025.41 (62.06%) (2) 10.75 (0.01%) (3) 10.50 (0.01%) (4) 117.50 (0.08%) (5) 55678.98 (37.14%) (6) 9.09 (0.01%) (20) 883.84 (0.59%) Total 149898.24 (sum of others 149749.25) *After (0) 17.41 (0.01%) (1) 92673.41 (61.95%) (2) 10.62 (0.01%) (3) 10.37 (0.01%) (4) 120.96 (0.08%) (5) 55741.18 (37.26%) (6) 11.01 (0.01%) (20) 862.72 (0.58%) Total 149595.52 (sum of others 149447.68) Change-Id: Ia5a25a544fc388e4dab1e08d8f78d5117b249cf3
* Refactor step3: const unigram_dictionarySatoshi Kataoka2012-06-081-26/+32
| | | | | | - make all functions in unigram_dictionary const Change-Id: I94a64865aa793435e6c81890e68d999f6374074e
* refactor native step 2Satoshi Kataoka2012-06-081-11/+11
| | | | | | - proximity_info is now stateless Change-Id: I62725bfe05b161fa8fc050ea6b50867e10a354e2
* Separate state from proximity_info step1Satoshi Kataoka2012-06-071-1/+1
| | | | | | Bug: 6548943 Change-Id: I7b4fbe20615a28151a74875be43b9f4a20e0dce9
* am fb3fdf15: Merge "Enhance the safety net in multiple word suggestions" ↵Satoshi Kataoka2012-05-311-3/+42
|\ | | | | | | | | | | | | into jb-dev * commit 'fb3fdf15040cb67c311047dea0144fa5aa071185': Enhance the safety net in multiple word suggestions
| * Enhance the safety net in multiple word suggestionsSatoshi Kataoka2012-05-311-3/+42
| | | | | | | | | | | | Bug: 6576793 Change-Id: I97100b482d3cf4e1b417c197b5d1e971a72b998d
* | am 6cbe204f: Fix the performance issue on suggesting ↵Satoshi Kataoka2012-05-301-14/+35
|\| | | | | | | | | | | | | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa * commit '6cbe204fce109fab652da15f4c8ea1ae35fca3e7': Fix the performance issue on suggesting aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
| * Fix the performance issue on suggesting aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaSatoshi Kataoka2012-05-301-14/+35
| | | | | | | | | | | | Bug: 6576793 Change-Id: I46f56654cd25dc28668ad75ac71e0e3beb8cdcf3
* | am 51705efc: Merge "Add a JNI to get the frequency" into jb-devSatoshi Kataoka2012-05-291-2/+15
|\| | | | | | | | | * commit '51705efc96c1c555cf9e0f557ea8cdc1c1c97781': Add a JNI to get the frequency