/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryDecayingTests.java | 228 assertFalse(binaryDictionary.isValidWord("a")); in testAddValidAndInvalidWords() 231 assertTrue(binaryDictionary.isValidWord("a")); in testAddValidAndInvalidWords() 234 assertTrue(binaryDictionary.isValidWord("b")); in testAddValidAndInvalidWords() 273 assertTrue(binaryDictionary.isValidWord("a")); in testDecayingProbability() 275 assertFalse(binaryDictionary.isValidWord("a")); in testDecayingProbability() 280 assertTrue(binaryDictionary.isValidWord("a")); in testDecayingProbability() 282 assertTrue(binaryDictionary.isValidWord("a")); in testDecayingProbability() 284 assertFalse(binaryDictionary.isValidWord("a")); in testDecayingProbability() 408 assertTrue(binaryDictionary.isValidWord(strong)); in testOverflowUnigrams() 409 assertTrue(binaryDictionary.isValidWord(weak)); in testOverflowUnigrams() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | LanguageModelParam.java | 134 if (dictionaryFacilitator.isValidWord(targetWord, false /* ignoreCase */)) { in detectWhetherVaildWordOrNotAndGetLanguageModelParam() 140 if (dictionaryFacilitator.isValidWord(lowerCaseTargetWord, false /* ignoreCase */)) { in detectWhetherVaildWordOrNotAndGetLanguageModelParam() 153 final boolean isValidWord, final Locale locale, in createAndGetLanguageModelParamOfWord() argument 157 && !prevWordsInfo.isValid() && !isValidWord) { in createAndGetLanguageModelParamOfWord() 169 final int unigramProbability = isValidWord ? in createAndGetLanguageModelParamOfWord() 174 + (isValidWord ? "Valid" : "OOV") + ") = " + word); in createAndGetLanguageModelParamOfWord() 180 + (isValidWord ? "Valid" : "OOV") + ") = " + word); in createAndGetLanguageModelParamOfWord() 182 final int bigramProbability = isValidWord ? in createAndGetLanguageModelParamOfWord()
|
D | DistracterFilterCheckingExactMatchesAndSuggestions.java | 201 final boolean isValidWord = mDictionaryFacilitator.isValidWord(testedWord, in isDistracterToWordsInDictionaries() 203 if (isValidWord) { in isDistracterToWordsInDictionaries()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidWordLevelSpellCheckerSession.java | 197 if (mService.isValidWord(mLocale, text)) return true; in isInDictForAnyCapitalization() 204 if (mService.isValidWord(mLocale, lowerCaseText)) return true; in isInDictForAnyCapitalization() 210 return mService.isValidWord(mLocale, in isInDictForAnyCapitalization() 245 if (!mService.isValidWord(mLocale, word)) { in onGetSuggestionsInternal() 257 return mService.isValidWord(mLocale, inText) ? in onGetSuggestionsInternal()
|
D | AndroidSpellCheckerService.java | 221 public boolean isValidWord(final Locale locale, final String word) { in isValidWord() method in AndroidSpellCheckerService 226 return dictionaryFacilitatorForLocale.isValidWord(word, false /* igroreCase */); in isValidWord()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | DictionaryFacilitator.java | 438 if (isValidWord(word, false /* ignoreCase */) in addWordToUserHistory() 439 && !isValidWord(lowerCasedWord, false /* ignoreCase */)) { in addWordToUserHistory() 513 public boolean isValidWord(final String word, final boolean ignoreCase) { in isValidWord() method in DictionaryFacilitator 528 if (dictionary.isValidWord(word) in isValidWord() 529 || (ignoreCase && dictionary.isValidWord(lowerCasedWord))) { in isValidWord()
|
D | Dictionary.java | 94 public boolean isValidWord(final String word) { in isValidWord() method in Dictionary
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/ |
D | suggestions_output_utils.cpp | 108 const bool isValidWord = !terminalDicNode->isBlacklistedOrNotAWord(); in outputSuggestionsOfDicNode() local 125 if (isValidWord && !isBlockedOffensiveWord) { in outputSuggestionsOfDicNode()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
D | ContextualDictionary.java | 46 public boolean isValidWord(final String word) { in isValidWord() method in ContextualDictionary
|
D | DecayingExpandableBinaryDictionaryBase.java | 85 public boolean isValidWord(final String word) { in isValidWord() method in DecayingExpandableBinaryDictionaryBase
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
D | InputLogic.java | 272 && !mDictionaryFacilitator.isValidWord(suggestionInfo.mWord, true /* ignoreCase */) in shouldShowAddToDictionaryHint() 2282 return !mDictionaryFacilitator.isValidWord(lastComposedWord.mTypedWord, in shouldShowAddToDictionaryForTypedWord()
|