Home
last modified time | relevance | path

Searched refs:PrevWordsInfo (Results 1 – 25 of 45) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPrevWordsInfo.java29 public class PrevWordsInfo { class
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) { in PrevWordsInfo() method in PrevWordsInfo
97 public PrevWordsInfo(final WordInfo[] prevWordsInfo) { in PrevWordsInfo() method in PrevWordsInfo
105 public PrevWordsInfo getNextPrevWordsInfo(final WordInfo wordInfo) { in getNextPrevWordsInfo()
111 return new PrevWordsInfo(prevWordsInfo); in getNextPrevWordsInfo()
140 if (!(o instanceof PrevWordsInfo)) return false; in equals()
[all …]
DDictionaryFacilitator.java26 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo;
408 final PrevWordsInfo prevWordsInfo, final int timeStampInSeconds, in addToUserHistory()
412 PrevWordsInfo prevWordsInfoForCurrentWord = prevWordsInfo; in addToUserHistory()
424 final PrevWordsInfo prevWordsInfo, final String word, final boolean wasAutoCapitalized, in addWordToUserHistory()
491 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, in getSuggestionResults()
623 PrevWordsInfo prevWordsInfo = PrevWordsInfo.BEGINNING_OF_SENTENCE; in addPhraseToContextualDictionary()
647 prevWordsInfo.getNextPrevWordsInfo(new PrevWordsInfo.WordInfo(phrase[i])); in addPhraseToContextualDictionary()
DExpandableBinaryDictionary.java309 PrevWordsInfo.EMPTY_PREV_WORDS_INFO, word, mLocale); in addUnigramEntryWithCheckingDistracter()
358 public void addNgramEntry(final PrevWordsInfo prevWordsInfo, final String word, in addNgramEntry()
373 protected void addNgramEntryLocked(final PrevWordsInfo prevWordsInfo, final String word, in addNgramEntryLocked()
387 public void removeNgramDynamically(final PrevWordsInfo prevWordsInfo, final String word) { in removeNgramDynamically()
438 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, in getSuggestions()
522 protected boolean isValidNgramLocked(final PrevWordsInfo prevWordsInfo, final String word) { in isValidNgramLocked()
DBinaryDictionary.java260 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, in getSuggestions()
356 public boolean isValidNgram(final PrevWordsInfo prevWordsInfo, final String word) { in isValidNgram()
360 public int getNgramProbability(final PrevWordsInfo prevWordsInfo, final String word) { in getNgramProbability()
456 public boolean addNgramEntry(final PrevWordsInfo prevWordsInfo, final String word, in addNgramEntry()
475 public boolean removeNgramEntry(final PrevWordsInfo prevWordsInfo, final String word) { in removeNgramEntry()
DContactsBinaryDictionary.java221 PrevWordsInfo prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO; in addNameLocked()
248 new PrevWordsInfo.WordInfo(word)); in addNameLocked()
DSuggest.java71 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, in getSuggestedWords()
122 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, in getSuggestedWordsForNonBatchInput()
210 final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, in getSuggestedWordsForBatchInput()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.h34 class PrevWordsInfo; variable
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,
120 NgramListenerForPrediction(const PrevWordsInfo *const prevWordsInfo,
128 const PrevWordsInfo *const mPrevWordsInfo;
Ddictionary.cpp48 int inputSize, const PrevWordsInfo *const prevWordsInfo, in getSuggestions()
63 const PrevWordsInfo *const prevWordsInfo, SuggestionResults *const suggestionResults, in NgramListenerForPrediction()
90 void Dictionary::getPredictions(const PrevWordsInfo *const prevWordsInfo, in getPredictions()
112 int Dictionary::getNgramProbability(const PrevWordsInfo *const prevWordsInfo, const int *word, in getNgramProbability()
146 bool Dictionary::addNgramEntry(const PrevWordsInfo *const prevWordsInfo, in addNgramEntry()
152 bool Dictionary::removeNgramEntry(const PrevWordsInfo *const prevWordsInfo, in removeNgramEntry()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java33 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo;
164 "abc", mSpacingAndPunctuations, 2), PrevWordsInfo.BEGINNING_OF_SENTENCE); in testGetPreviousWord()
166 "abc. def", mSpacingAndPunctuations, 2), PrevWordsInfo.BEGINNING_OF_SENTENCE); in testGetPreviousWord()
196 "abc ", mSpacingAndPunctuations, 2), PrevWordsInfo.BEGINNING_OF_SENTENCE); in testGetPreviousWord()
205 "abc def.", mSpacingAndPunctuations, 1), PrevWordsInfo.BEGINNING_OF_SENTENCE); in testGetPreviousWord()
207 "abc def .", mSpacingAndPunctuations, 1), PrevWordsInfo.BEGINNING_OF_SENTENCE); in testGetPreviousWord()
209 "abc, def", mSpacingAndPunctuations, 2), PrevWordsInfo.EMPTY_PREV_WORDS_INFO); in testGetPreviousWord()
211 "abc? def", mSpacingAndPunctuations, 2), PrevWordsInfo.EMPTY_PREV_WORDS_INFO); in testGetPreviousWord()
213 "abc! def", mSpacingAndPunctuations, 2), PrevWordsInfo.EMPTY_PREV_WORDS_INFO); in testGetPreviousWord()
215 "abc 'def", mSpacingAndPunctuations, 2), PrevWordsInfo.EMPTY_PREV_WORDS_INFO); in testGetPreviousWord()
DBinaryDictionaryTests.java24 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo;
207 binaryDictionary.addNgramEntry(new PrevWordsInfo(new WordInfo(word0)), word1, probability, in addBigramWords()
213 return binaryDictionary.isValidNgram(new PrevWordsInfo(new WordInfo(word0)), word1); in isValidBigram()
218 binaryDictionary.removeNgramEntry(new PrevWordsInfo(new WordInfo(word0)), word1); in removeBigramEntry()
223 return binaryDictionary.getNgramProbability(new PrevWordsInfo(new WordInfo(word0)), word1); in getBigramProbability()
1345 binaryDictionary.addNgramEntry(PrevWordsInfo.BEGINNING_OF_SENTENCE, in testDictMigration()
1359 PrevWordsInfo.BEGINNING_OF_SENTENCE, "aaa")); in testDictMigration()
1469 final PrevWordsInfo prevWordsInfoBeginningOfSentence = PrevWordsInfo.BEGINNING_OF_SENTENCE; in testBeginningOfSentence()
DBinaryDictionaryDecayingTests.java23 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo;
81 binaryDictionary.addNgramEntry(new PrevWordsInfo(new WordInfo(word0)), word1, probability, in addBigramWords()
87 return binaryDictionary.isValidNgram(new PrevWordsInfo(new WordInfo(word0)), word1); in isValidBigram()
664 final PrevWordsInfo prevWordsInfoStartOfSentence = PrevWordsInfo.BEGINNING_OF_SENTENCE;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Dprev_words_info.h28 class PrevWordsInfo {
31 PrevWordsInfo() { in PrevWordsInfo() function
35 PrevWordsInfo(PrevWordsInfo &&prevWordsInfo) { in PrevWordsInfo() function
45 PrevWordsInfo(const int prevWordCodePoints[][MAX_WORD_LENGTH], in PrevWordsInfo() function
61 PrevWordsInfo(const int *const prevWordCodePoints, const int prevWordCodePointCount, in PrevWordsInfo() function
118 DISALLOW_COPY_AND_ASSIGN(PrevWordsInfo);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DLanguageModelParam.java23 import com.android.inputmethod.latin.PrevWordsInfo;
89 PrevWordsInfo prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO; in createLanguageModelParamsFrom()
106 prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO; in createLanguageModelParamsFrom()
121 new PrevWordsInfo.WordInfo(tempWord)); in createLanguageModelParamsFrom()
127 final PrevWordsInfo prevWordsInfo, final String targetWord, final int timestamp, in detectWhetherVaildWordOrNotAndGetLanguageModelParam()
152 final PrevWordsInfo prevWordsInfo, final String targetWord, final int timestamp, in createAndGetLanguageModelParamOfWord()
DPrevWordsInfoUtils.java22 import com.android.inputmethod.latin.PrevWordsInfo;
23 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo;
54 public static PrevWordsInfo getPrevWordsInfoFromNthPreviousWord(final CharSequence prev, in getPrevWordsInfoFromNthPreviousWord()
56 if (prev == null) return PrevWordsInfo.EMPTY_PREV_WORDS_INFO; in getPrevWordsInfoFromNthPreviousWord()
101 return new PrevWordsInfo(prevWordsInfo); in getPrevWordsInfoFromNthPreviousWord()
DDistracterFilter.java24 import com.android.inputmethod.latin.PrevWordsInfo;
36 public boolean isDistracterToWordsInDictionaries(final PrevWordsInfo prevWordsInfo, in isDistracterToWordsInDictionaries()
45 public boolean isDistracterToWordsInDictionaries(PrevWordsInfo prevWordsInfo,
DDistracterFilterCheckingExactMatchesAndSuggestions.java37 import com.android.inputmethod.latin.PrevWordsInfo;
158 public boolean isDistracterToWordsInDictionaries(final PrevWordsInfo prevWordsInfo, in isDistracterToWordsInDictionaries()
254 composer, PrevWordsInfo.EMPTY_PREV_WORDS_INFO, mKeyboard.getProximityInfo(),
DDistracterFilterCheckingIsInDictionary.java25 import com.android.inputmethod.latin.PrevWordsInfo;
38 public boolean isDistracterToWordsInDictionaries(PrevWordsInfo prevWordsInfo, in isDistracterToWordsInDictionaries()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerSession.java28 import com.android.inputmethod.latin.PrevWordsInfo;
65 final PrevWordsInfo prevWordsInfo = in fixWronglyInvalidatedWordWithSingleQuote()
66 new PrevWordsInfo(new PrevWordsInfo.WordInfo(currentWord)); in fixWronglyInvalidatedWordWithSingleQuote()
211 final PrevWordsInfo prevWordsInfo = in onGetSuggestionsMultiple()
212 new PrevWordsInfo(new PrevWordsInfo.WordInfo(prevWord)); in onGetSuggestionsMultiple()
DAndroidWordLevelSpellCheckerSession.java34 import com.android.inputmethod.latin.PrevWordsInfo;
77 private static String generateKey(final String query, final PrevWordsInfo prevWordsInfo) { in generateKey()
85 final PrevWordsInfo prevWordsInfo) { in getSuggestionsFromCache()
90 final String query, final PrevWordsInfo prevWordsInfo, in putSuggestionsToCache()
226 final TextInfo textInfo, final PrevWordsInfo prevWordsInfo, in onGetSuggestionsInternal()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryTests.java24 import com.android.inputmethod.latin.PrevWordsInfo;
25 import com.android.inputmethod.latin.PrevWordsInfo.WordInfo;
114 PrevWordsInfo prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO; in addToDict()
266 PrevWordsInfo prevWordsInfo = PrevWordsInfo.EMPTY_PREV_WORDS_INFO; in testDecaying()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictEncoder.java22 import com.android.inputmethod.latin.PrevWordsInfo;
107 final PrevWordsInfo prevWordsInfo = in writeDictionary()
108 new PrevWordsInfo(new PrevWordsInfo.WordInfo(word0Property.mWord)); in writeDictionary()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp242 const PrevWordsInfo prevWordsInfo = JniDataUtils::constructPrevWordsInfo(env, in latinime_BinaryDictionary_getSuggestions()
285 const PrevWordsInfo prevWordsInfo = JniDataUtils::constructPrevWordsInfo(env, in latinime_BinaryDictionary_getNgramProbability()
390 const PrevWordsInfo prevWordsInfo = JniDataUtils::constructPrevWordsInfo(env, in latinime_BinaryDictionary_addNgramEntry()
410 const PrevWordsInfo prevWordsInfo = JniDataUtils::constructPrevWordsInfo(env, in latinime_BinaryDictionary_removeNgramEntry()
494 const PrevWordsInfo prevWordsInfo(word0CodePoints, word0Length, in latinime_BinaryDictionary_addMultipleDictionaryEntries()
604 const PrevWordsInfo prevWordsInfo(wordCodePoints, wordCodePointCount, in latinime_BinaryDictionary_migrateNative()
Dcom_android_inputmethod_latin_DicTraverseSession.cpp43 PrevWordsInfo prevWordsInfo; in latinime_initDicTraverseSession()
49 PrevWordsInfo prevWordsInfo(prevWord, previousWordLength, false /* isStartOfSentence */); in latinime_initDicTraverseSession()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java48 import com.android.inputmethod.latin.PrevWordsInfo;
1339 final String suggestion, final PrevWordsInfo prevWordsInfo) { in performAdditionToUserHistoryDictionary()
1485 final PrevWordsInfo prevWordsInfo = getPrevWordsInfoFromNthPreviousWordForSuggestion( in restartSuggestionsOnWordTouchedByCursor()
1730 public PrevWordsInfo getPrevWordsInfoFromNthPreviousWordForSuggestion( in getPrevWordsInfoFromNthPreviousWordForSuggestion()
1739 PrevWordsInfo.BEGINNING_OF_SENTENCE : in getPrevWordsInfoFromNthPreviousWordForSuggestion()
1740 new PrevWordsInfo(new PrevWordsInfo.WordInfo( in getPrevWordsInfoFromNthPreviousWordForSuggestion()
2097 final PrevWordsInfo prevWordsInfo = mConnection.getPrevWordsInfoFromNthPreviousWord( in commitChosenWord()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/
Ddictionary_structure_with_buffer_policy.h32 class PrevWordsInfo; variable
80 virtual bool addNgramEntry(const PrevWordsInfo *const prevWordsInfo,
84 virtual bool removeNgramEntry(const PrevWordsInfo *const prevWordsInfo,

12