Home
last modified time | relevance | path

Searched refs:isValidWord (Results 1 – 19 of 19) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DPersonalDictionaryLookupTest.java218 assertTrue(lookup.isValidWord("foo", Locale.US)); in testExactLocaleMatch()
219 assertTrue(lookup.isValidWord("Foo", Locale.US)); in testExactLocaleMatch()
220 assertTrue(lookup.isValidWord("FOO", Locale.US)); in testExactLocaleMatch()
222 assertFalse(lookup.isValidWord("fo", Locale.US)); in testExactLocaleMatch()
223 assertFalse(lookup.isValidWord("fop", Locale.US)); in testExactLocaleMatch()
224 assertFalse(lookup.isValidWord("fooo", Locale.US)); in testExactLocaleMatch()
226 assertFalse(lookup.isValidWord("foo", Locale.ENGLISH)); in testExactLocaleMatch()
227 assertFalse(lookup.isValidWord("foo", Locale.UK)); in testExactLocaleMatch()
228 assertFalse(lookup.isValidWord("foo", Locale.FRENCH)); in testExactLocaleMatch()
229 assertFalse(lookup.isValidWord("foo", ANY_LOCALE)); in testExactLocaleMatch()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java195 if (mService.isValidWord(mLocale, text)) return true; in isInDictForAnyCapitalization()
202 if (mService.isValidWord(mLocale, lowerCaseText)) return true; in isInDictForAnyCapitalization()
208 return mService.isValidWord(mLocale, in isInDictForAnyCapitalization()
244 if (!mService.isValidWord(mLocale, word)) { in onGetSuggestionsInternal()
256 return mService.isValidWord(mLocale, text) ? in onGetSuggestionsInternal()
DAndroidSpellCheckerService.java160 public boolean isValidWord(final Locale locale, final String word) { in isValidWord() method in AndroidSpellCheckerService
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestions_output_utils.cpp158 const bool isValidWord = !(wordAttributes.isBlacklisted() || wordAttributes.isNotAWord()); in outputSuggestionsOfDicNode() local
173 if (isValidWord && !shouldBlockThisWord) { in outputSuggestionsOfDicNode()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp158 const CodePointArrayView codePoints, const bool isValidWord, in updateEntriesForWordWithNgramContext() argument
162 codePoints, isValidWord, historicalInfo); in updateEntriesForWordWithNgramContext()
Ddictionary.h95 const CodePointArrayView codePoints, const bool isValidWord,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryFacilitatorImpl.java653 return isValidWord(word, ALL_DICTIONARY_TYPES); in isValidSpellingWord()
657 return isValidWord(word, ALL_DICTIONARY_TYPES); in isValidSuggestionWord()
660 private boolean isValidWord(final String word, final String[] dictionariesToCheck) { in isValidWord() method in DictionaryFacilitatorImpl
673 if (dictionary.isValidWord(word)) { in isValidWord()
DBinaryDictionary.java212 int[] word, boolean isValidWord, int count, int timestamp); in updateEntriesForWordWithNgramContextNative() argument
494 final String word, final boolean isValidWord, final int count, final int timestamp) { in updateEntriesForWordWithNgramContext() argument
503 isBeginningOfSentenceArray, wordCodePoints, isValidWord, count, timestamp)) { in updateEntriesForWordWithNgramContext()
DDictionary.java111 public boolean isValidWord(final String word) { in isValidWord() method in Dictionary
DExpandableBinaryDictionary.java369 final String word, final boolean isValidWord, final int count, final int timestamp) { in updateEntriesForWord() argument
378 isValidWord, count, timestamp)) { in updateEntriesForWord()
DPersonalDictionaryLookup.java394 public boolean isValidWord(@Nonnull final String word, @Nonnull final Locale inputLocale) { in isValidWord() method in PersonalDictionaryLookup
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp374 const bool isValidWord, const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext() argument
381 false : isValidWord; in updateEntriesForWordWithNgramContext()
393 if (!isValidWord) { in updateEntriesForWordWithNgramContext()
Dver4_patricia_trie_policy.h100 const CodePointArrayView wordCodePoints, const bool isValidWord,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h91 const CodePointArrayView wordCodePoints, const bool isValidWord,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.h110 const CodePointArrayView wordCodePoints, const bool isValidWord, in updateEntriesForWordWithNgramContext() argument
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.h121 const CodePointArrayView wordCodePoints, const bool isValidWord,
Dver4_patricia_trie_policy.cpp451 const bool isValidWord, const HistoricalInfo historicalInfo) { in updateEntriesForWordWithNgramContext() argument
457 const int probability = isValidWord ? DUMMY_PROBABILITY_FOR_VALID_WORDS : NOT_A_PROBABILITY; in updateEntriesForWordWithNgramContext()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionary.java132 public boolean isValidWord(final String word) { in isValidWord() method in UserHistoryDictionary
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp437 jbooleanArray isBeginningOfSentenceArray, jintArray word, jboolean isValidWord, jint count, in latinime_BinaryDictionary_updateEntriesForWordWithNgramContext() argument
451 CodePointArrayView(wordCodePoints, codePointCount), isValidWord == JNI_TRUE, in latinime_BinaryDictionary_updateEntriesForWordWithNgramContext()