aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove a useless methodJean Chalard2014-06-101-18/+0
| | | | Change-Id: I21a4219f682f43f4a84b1ab12d00dd930b35caa1
* Merge "Add distracter cache to optimize the distracter test."Keisuke Kuroyanagi2014-06-091-0/+18
|\
| * Add distracter cache to optimize the distracter test.Keisuke Kuroyanagi2014-06-091-0/+18
| | | | | | | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: Ia390b148ffb36ace6c2010daf0f14838492413e8
* | Merge "Check isInDictionary() before the distracter test."Keisuke Kuroyanagi2014-06-092-4/+62
|\|
| * Check isInDictionary() before the distracter test.Keisuke Kuroyanagi2014-06-092-4/+62
| | | | | | | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I7ce2c09ebbef6ca8c056807c2a35f2f987fd436e
* | Merge "Refactor logic to determine showing suggestions strip or not"Tadashi G. Takaoka2014-06-061-9/+4
|\ \ | |/ |/|
| * Refactor logic to determine showing suggestions strip or notTadashi G. Takaoka2014-06-061-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic to determine when the suggestions strip (a.k.a. the contextual strip) should be shown is already complex. In addition to that the voice input key get shown on the strip as well. There are a several factors to be considered and a few things to control. - The password input field shouldn't have the strip. - Show voice input key on the strip or not. - User preference settings "Show Voice Input Key". - A voice IME exists and is enabled. - The input field may have a private IME option to prevent the voice input key from being displayed. - Application can specify auto completions. - Full screen mode or not. - User preference settings "Show correction suggestions". - Always show, Show in portrait mode, Always hide. - The input field may have flags to prevent showing suggestions or auto corrections. - Suggestions is empty or not. - An important notice may be shown. Bug: 14981852 Bug: 15436479 Change-Id: I3050fd53ee6271fc64a8f17b6b12d9581d37b750
* | Make Distracter filter use getMaxFrequencyOfExactMatches().Keisuke Kuroyanagi2014-06-061-143/+12
|/ | | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5c23fbea2851f891f76f19d9da2cb70ae964569b
* Don't recapitalize just at the start of inputJean Chalard2014-06-041-0/+16
| | | | | Bug: 13283555 Change-Id: Iab0466425dc44779d110f2cd29d725d22eb04827
* RefactoringJean Chalard2014-06-041-9/+9
| | | | | | | | | Rename `initialize' to `start' and `deactivate' to `stop' for ease of understanding. It's completely bizarre that you can "deactivate" a recapitalization and that will just restart a new one the next time you press shift. Start and stop are easier to understand. Change-Id: I455175aebfcfe11198c6c61bf2c6b19efc3f82df
* Merge "Remove LatinImeLogger and UsabilityStudyLogUtils"Tadashi G. Takaoka2014-05-293-506/+0
|\
| * Remove LatinImeLogger and UsabilityStudyLogUtilsTadashi G. Takaoka2014-05-293-506/+0
| | | | | | | | | | | | | | This CL must be checked in together with Ie52007dc5c. Bug: 15318007 Change-Id: Ie665f296e43b5485ae8ba7e949aa262794ee0dcc
* | Remove PrioritizedSerialExecutor.Keisuke Kuroyanagi2014-05-292-143/+25
|/ | | | | Bug: 15320560 Change-Id: Icb88a96ebd685da1d2cba7b07889a2751c603a2e
* Remove researcher loggerTadashi G. Takaoka2014-05-292-6/+3
| | | | | | | This CL must be checked in together with I5cc76807e3. Bug: 15318007 Change-Id: I61423c3377ddc299fb332e742d6626c2e47145bb
* Stop directly checking SuggestedWordInfo.mKindKeisuke Kuroyanagi2014-05-282-5/+6
| | | | | | Bug: 15298959 Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
* Merge "Add thread name for PrioritizedSerialExecutor."Keisuke Kuroyanagi2014-05-272-7/+22
|\
| * Add thread name for PrioritizedSerialExecutor.Keisuke Kuroyanagi2014-05-272-7/+22
| | | | | | | | | | Bug: 15270123 Change-Id: I655ba97f0543476980d0e8461bc1c8a56c9f954b
* | Stop filtering out when perfect freq > top non-perfect freq.Keisuke Kuroyanagi2014-05-271-1/+15
|/ | | | | Bug: 13142176 Change-Id: I0290df918a5bd5018bf55231dc462d5e797155c6
* Apply distracter filter for UserHistoryDictionary.Keisuke Kuroyanagi2014-05-272-11/+23
| | | | | Bug: 13142176 Change-Id: I67d63a5c789d7c587bcd7abacd26b2e76da11978
* Apply distracter filter for in-vocabulary words.Keisuke Kuroyanagi2014-05-261-16/+13
| | | | | Bug: 13142176 Change-Id: I4db763783a2f8b9a0df0df951db3223f70748870
* Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-261-43/+34
| | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-2419-111/+31
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Introduce EMPTY_PREV_WORDS_INFO and BEGINNING_OF_SENTENCE.Keisuke Kuroyanagi2014-05-231-2/+2
| | | | | Bug: 14119293 Change-Id: I5020e5f0aa64bc3e97b3a3c2c07a60c8b765ed64
* Merge "Make DistracterFilter interface."Keisuke Kuroyanagi2014-05-232-196/+244
|\
| * Make DistracterFilter interface.Keisuke Kuroyanagi2014-05-232-196/+244
| | | | | | | | | | | | Bug: 13142176 Bug: 15094186 Change-Id: If94b0a155b5ea2ff6b839e7da9d12a9cc6553931
* | Fix some auto-caps problems:Jean Chalard2014-05-231-4/+39
|/ | | | | | | | | - (mainly for Spanish) auto-caps after inverted bang and what - (German only) don't auto-cap after digits-period-space Bug: 15177663 Bug: 12206753 Change-Id: Ia214bc067319469d9debbbfbdcb1dcff980847f0
* Move distracter filter to dictionary facilitator.Keisuke Kuroyanagi2014-05-232-25/+56
| | | | | | Bug: 13142176 Bug: 15094186 Change-Id: Ib9e42f8e25538009f3ba62cf1e034cae3f6823c7
* Have DictionaryFacilitator in LatinIME.Keisuke Kuroyanagi2014-05-232-7/+10
| | | | | | Bug: 13142176 Bug: 15094186 Change-Id: I9da67352ff2abcd289fa5885389895ced878a413
* Fix: NPE in DistracterFilterKeisuke Kuroyanagi2014-05-221-7/+9
| | | | Change-Id: I19a92d79cf547aae8f15e7e5fd5309812ae4f2d5
* Use enabled subtypes for Keyboard in DistracterFilter.Keisuke Kuroyanagi2014-05-212-51/+68
| | | | | | Bug: 13142176 Bug: 15094186 Change-Id: I142eeaa11f838080a4fc5a342155e5d470eab3d4
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-1/+1
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-1/+1
| | | | | | | | | | This reverts commit ff50b39176370ab80a33bfdcf9979603c08a88b3. Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: If278b4ab236e38d20d8cdc0761b0438911bd4ff9
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-201-1/+1
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Use PrevWordsInfo instead of String in Java side.Keisuke Kuroyanagi2014-05-192-18/+20
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I3d5da84881a49a04550180dd9aac2c37da2ed762
* Use dedicated DictionaryFacilitator for DistracterFilterKeisuke Kuroyanagi2014-05-173-10/+40
| | | | | Bug: 15002249 Change-Id: Ic77eaa7d627d406daad7dcd15cb4884d9f647312
* Merge "Revert "Use dedicated DictionaryFacilitator for DistracterFilter""Keisuke Kuroyanagi2014-05-163-50/+10
|\
| * Revert "Use dedicated DictionaryFacilitator for DistracterFilter"Keisuke Kuroyanagi2014-05-163-50/+10
| | | | | | | | | | | | This reverts commit 7122fe76e3ca48a12f1e069ee0c742788c1884b6. Change-Id: I341089864a2b58de6e0f35844a12fb632bd1eabb
* | Merge "Use dedicated DictionaryFacilitator for DistracterFilter"Keisuke Kuroyanagi2014-05-163-10/+50
|\|
| * Use dedicated DictionaryFacilitator for DistracterFilterKeisuke Kuroyanagi2014-05-163-10/+50
| | | | | | | | | | Bug: 15002249 Change-Id: I2ebf1941fb0453ea4b97c0e539f8b36e5e0262c1
* | Fix: StringIndexOutOfBoundsException.Keisuke Kuroyanagi2014-05-162-3/+13
|/ | | | | Bug: 14985751 Change-Id: I9df2f737555ab02e24e0fbd231a97c1eec26bc57
* Merge "Simplify StatsUtils"Yohei Yukawa2014-05-151-24/+5
|\
| * Simplify StatsUtilsYohei Yukawa2014-05-151-24/+5
| | | | | | | | | | | | | | | | | | | | | | With this CL, the implementation of StatsUtils no longer needs to know how to read settings from the system. Insted, the LatinIME class is now responsible for notifying StatsUtils whenever the settings is changed. BUG: 14324207 Change-Id: Ic3d26ec31c8d2c082d3e7487b578b323aad2f960
* | Fix off-device buildXiaojun Bi2014-05-142-14/+40
| | | | | | | | | | | | | | | | | | This CL fixed the breakage caused by DistracterFilter. It should be checked in together with I8f53e9481c0f Bug: 14911612 Bug: 13142176 Change-Id: I33c3526165cea58926d10404552f1fadc385c2e5
* | Fix a NPE in DistracterFilter.isDistracterToWordsInDictionaries()Xiaojun Bi2014-05-131-7/+2
|/ | | | | Bug: 14904706 Change-Id: I3b52bb01b9c59cbba2eba0bd1d91dffb4419c019
* Merge "Implement the distracter filter"Xiaojun Bi2014-05-132-5/+92
|\
| * Implement the distracter filterXiaojun Bi2014-05-132-5/+92
| | | | | | | | | | | | Bug: 13142176 Change-Id: I85a048cdcbbad3d6020a25f900250d8d7a0fe3da
* | Create the path for specifying combining rules in the subtypeJean Chalard2014-05-121-0/+4
|/ | | | | | | | Also add the skeleton of the combining rules for Myanmar reordering as a pilot. Bug: 13945569 Change-Id: Iabeb6838f45f1efff482143595ce5b48543e0c43
* Use DistracterFilter when getting Language Model Param of a wordXiaojun Bi2014-05-072-10/+18
| | | | | | | | | | A preparation for implementing Distracter Filter. This CL should be checked in together with Icfefa0463180 Bug: 13142176 Change-Id: If9e5ca840c4a81cb0339ab70f146b42fbfa7af5d
* Fix unit tests by adding @UsedFortesting.Keisuke Kuroyanagi2014-04-291-0/+3
| | | | Change-Id: I8f66632a32b9e9ddc1b771e8ee74492c7baf9338
* Simplify asyncFlushBinaryDictionary.Keisuke Kuroyanagi2014-04-281-33/+0
| | | | | | | We no longer write files when the dict has not been updated. Bug: 8187060 Change-Id: I8aa23a93d5deafb3a7f16f5466a5e0e84fbbf095