/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
DistracterFilter.java | 24 import com.android.inputmethod.latin.PrevWordsInfo; 30 * @param prevWordsInfo the information of previous words. 36 public boolean isDistracterToWordsInDictionaries(final PrevWordsInfo prevWordsInfo, 45 public boolean isDistracterToWordsInDictionaries(PrevWordsInfo prevWordsInfo,
|
PrevWordsInfoUtils.java | 22 import com.android.inputmethod.latin.PrevWordsInfo; 23 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo; 46 // represent this situation using PrevWordsInfo. See TODO in the method. 54 public static PrevWordsInfo getPrevWordsInfoFromNthPreviousWord(final CharSequence prev, 56 if (prev == null) return PrevWordsInfo.EMPTY_PREV_WORDS_INFO; 58 final WordInfo[] prevWordsInfo = new WordInfo[Constants.MAX_PREV_WORD_COUNT_FOR_N_GRAM]; 59 for (int i = 0; i < prevWordsInfo.length; i++) { 69 prevWordsInfo[i] = WordInfo.EMPTY_WORD_INFO; 76 prevWordsInfo[i] = WordInfo.BEGINNING_OF_SENTENCE; 83 prevWordsInfo[i] = WordInfo.BEGINNING_OF_SENTENCE [all...] |
DistracterFilterCheckingIsInDictionary.java | 25 import com.android.inputmethod.latin.PrevWordsInfo; 38 public boolean isDistracterToWordsInDictionaries(PrevWordsInfo prevWordsInfo, 46 prevWordsInfo, testedWord, locale);
|
LanguageModelParam.java | 23 import com.android.inputmethod.latin.PrevWordsInfo; 89 PrevWordsInfo prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO; 106 prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO; 114 prevWordsInfo, tempWord, timestamp, dictionaryFacilitator, 120 prevWordsInfo = prevWordsInfo.getNextPrevWordsInfo( 121 new PrevWordsInfo.WordInfo(tempWord)) [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
dictionary.h | 34 class PrevWordsInfo; 67 int inputSize, const PrevWordsInfo *const prevWordsInfo, 71 void getPredictions(const PrevWordsInfo *const prevWordsInfo, 78 int getNgramProbability(const PrevWordsInfo *const prevWordsInfo, 86 bool addNgramEntry(const PrevWordsInfo *const prevWordsInfo, 89 bool removeNgramEntry(const PrevWordsInfo *const prevWordsInfo, const int *const word [all...] |
dictionary.cpp | 48 int inputSize, const PrevWordsInfo *const prevWordsInfo, 52 traverseSession->init(this, prevWordsInfo, suggestOptions); 63 const PrevWordsInfo *const prevWordsInfo, SuggestionResults *const suggestionResults, 65 : mPrevWordsInfo(prevWordsInfo), mSuggestionResults(suggestionResults), 90 void Dictionary::getPredictions(const PrevWordsInfo *const prevWordsInfo, 93 NgramListenerForPrediction listener(prevWordsInfo, outSuggestionResults, 96 prevWordsInfo->getPrevWordsTerminalPtNodePos [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
PrevWordsInfo.java | 29 public class PrevWordsInfo { 30 public static final PrevWordsInfo EMPTY_PREV_WORDS_INFO = 31 new PrevWordsInfo(WordInfo.EMPTY_WORD_INFO); 32 public static final PrevWordsInfo BEGINNING_OF_SENTENCE = 33 new PrevWordsInfo(WordInfo.BEGINNING_OF_SENTENCE); 92 public PrevWordsInfo(final WordInfo prevWordInfo) { 97 public PrevWordsInfo(final WordInfo[] prevWordsInfo) { 100 (prevWordsInfo.length > i) ? prevWordsInfo[i] : WordInfo.EMPTY_WORD_INFO [all...] |
LastComposedWord.java | 51 public final PrevWordsInfo mPrevWordsInfo; 67 final PrevWordsInfo prevWordsInfo, final int capitalizedMode) { 76 mPrevWordsInfo = prevWordsInfo;
|
Dictionary.java | 74 * @param prevWordsInfo the information of previous words. 84 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, 170 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo,
|
DictionaryFacilitator.java | 26 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo; 408 final PrevWordsInfo prevWordsInfo, final int timeStampInSeconds, 412 PrevWordsInfo prevWordsInfoForCurrentWord = prevWordsInfo; 424 final PrevWordsInfo prevWordsInfo, final String word, final boolean wasAutoCapitalized, 470 UserHistoryDictionary.addToDictionary(userHistoryDictionary, prevWordsInfo, secondWord, 491 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/ |
prev_words_info.h | 28 class PrevWordsInfo { 31 PrevWordsInfo() { 35 PrevWordsInfo(PrevWordsInfo &&prevWordsInfo) { 37 mPrevWordCodePointCount[i] = prevWordsInfo.mPrevWordCodePointCount[i]; 38 memmove(mPrevWordCodePoints[i], prevWordsInfo.mPrevWordCodePoints[i], 40 mIsBeginningOfSentence[i] = prevWordsInfo.mIsBeginningOfSentence[i]; 45 PrevWordsInfo(const int prevWordCodePoints[][MAX_WORD_LENGTH], 61 PrevWordsInfo(const int *const prevWordCodePoints, const int prevWordCodePointCount [all...] |
dic_traverse_session.h | 32 class PrevWordsInfo; 66 void init(const Dictionary *dictionary, const PrevWordsInfo *const prevWordsInfo,
|
dic_traverse_session.cpp | 33 const PrevWordsInfo *const prevWordsInfo, const SuggestOptions *const suggestOptions) { 38 prevWordsInfo->getPrevWordsTerminalPtNodePos(
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/ |
dictionary_structure_with_buffer_policy.h | 32 class PrevWordsInfo; 80 virtual bool addNgramEntry(const PrevWordsInfo *const prevWordsInfo, 84 virtual bool removeNgramEntry(const PrevWordsInfo *const prevWordsInfo,
|
/packages/inputmethods/LatinIME/native/jni/ |
com_android_inputmethod_latin_DicTraverseSession.cpp | 43 PrevWordsInfo prevWordsInfo; 44 ts->init(dict, &prevWordsInfo, 0 /* suggestOptions */); 49 PrevWordsInfo prevWordsInfo(prevWord, previousWordLength, false /* isStartOfSentence */); 50 ts->init(dict, &prevWordsInfo, 0 /* suggestOptions */);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
AndroidSpellCheckerSession.java | 28 import com.android.inputmethod.latin.PrevWordsInfo; 65 final PrevWordsInfo prevWordsInfo = 66 new PrevWordsInfo(new PrevWordsInfo.WordInfo(currentWord)); 83 if (mSuggestionsCache.getSuggestionsFromCache(splitText.toString(), prevWordsInfo) 211 final PrevWordsInfo prevWordsInfo = 212 new PrevWordsInfo(new PrevWordsInfo.WordInfo(prevWord)) [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
Ver4DictEncoder.java | 22 import com.android.inputmethod.latin.PrevWordsInfo; 107 final PrevWordsInfo prevWordsInfo = 108 new PrevWordsInfo(new PrevWordsInfo.WordInfo(word0Property.mWord)); 109 if (!binaryDict.addNgramEntry(prevWordsInfo, word1.mWord, 112 + prevWordsInfo + " -> " + word1.mWord);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
UserHistoryDictionary.java | 26 import com.android.inputmethod.latin.PrevWordsInfo; 55 * @param prevWordsInfo the information of previous words 62 final PrevWordsInfo prevWordsInfo, final String word, final boolean isValid, 64 final CharSequence prevWord = prevWordsInfo.mPrevWordsInfo[0].mWord; 79 if (prevWordsInfo.mPrevWordsInfo[0].mIsBeginningOfSentence) { 81 userHistoryDictionary.addNgramEntry(prevWordsInfo, word, 84 userHistoryDictionary.addNgramEntry(prevWordsInfo, word, frequency, timestamp);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/ |
patricia_trie_policy.h | 98 bool addNgramEntry(const PrevWordsInfo *const prevWordsInfo, 105 bool removeNgramEntry(const PrevWordsInfo *const prevWordsInfo, const int *const word,
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/ |
UserHistoryDictionaryTests.java | 24 import com.android.inputmethod.latin.PrevWordsInfo; 25 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo; 114 PrevWordsInfo prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO; 116 UserHistoryDictionary.addToDictionary(dict, prevWordsInfo, word, true, 119 prevWordsInfo = prevWordsInfo.getNextPrevWordsInfo(new WordInfo(word)); 266 PrevWordsInfo prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/ |
ver4_patricia_trie_policy.h | 116 bool addNgramEntry(const PrevWordsInfo *const prevWordsInfo, 119 bool removeNgramEntry(const PrevWordsInfo *const prevWordsInfo, const int *const word1,
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ |
ver4_patricia_trie_policy.h | 95 bool addNgramEntry(const PrevWordsInfo *const prevWordsInfo, 98 bool removeNgramEntry(const PrevWordsInfo *const prevWordsInfo, const int *const word1,
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
RichInputConnectionAndTextRangeTests.java | 33 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo; 164 "abc", mSpacingAndPunctuations, 2), PrevWordsInfo.BEGINNING_OF_SENTENCE); 166 "abc. def", mSpacingAndPunctuations, 2), PrevWordsInfo.BEGINNING_OF_SENTENCE); 196 "abc ", mSpacingAndPunctuations, 2), PrevWordsInfo.BEGINNING_OF_SENTENCE); 205 "abc def.", mSpacingAndPunctuations, 1), PrevWordsInfo.BEGINNING_OF_SENTENCE); 207 "abc def .", mSpacingAndPunctuations, 1), PrevWordsInfo.BEGINNING_OF_SENTENCE); 209 "abc, def", mSpacingAndPunctuations, 2), PrevWordsInfo.EMPTY_PREV_WORDS_INFO); 211 "abc? def", mSpacingAndPunctuations, 2), PrevWordsInfo.EMPTY_PREV_WORDS_INFO); 213 "abc! def", mSpacingAndPunctuations, 2), PrevWordsInfo.EMPTY_PREV_WORDS_INFO); 215 "abc 'def", mSpacingAndPunctuations, 2), PrevWordsInfo.EMPTY_PREV_WORDS_INFO) [all...] |
DistracterFilterTest.java | 54 final PrevWordsInfo EMPTY_PREV_WORDS_INFO = PrevWordsInfo.EMPTY_PREV_WORDS_INFO;
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
jni_data_utils.h | 99 static PrevWordsInfo constructPrevWordsInfo(JNIEnv *env, jobjectArray prevWordCodePointArrays, 126 return PrevWordsInfo(prevWordCodePoints, prevWordCodePointCount, isBeginningOfSentence,
|