/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 290 int wordCodePoints[wordLength]; in latinime_BinaryDictionary_getNgramProbability() local 291 env->GetIntArrayRegion(word, 0, wordLength, wordCodePoints); in latinime_BinaryDictionary_getNgramProbability() 296 CodePointArrayView(wordCodePoints, wordLength)); in latinime_BinaryDictionary_getNgramProbability() 312 int wordCodePoints[codePointBufSize]; in latinime_BinaryDictionary_getNextWord() local 314 const int nextToken = dictionary->getNextWordAndNextToken(token, wordCodePoints, in latinime_BinaryDictionary_getNextWord() 317 MAX_WORD_LENGTH /* maxLength */, wordCodePoints, wordCodePointCount, in latinime_BinaryDictionary_getNextWord() 320 if (wordCodePointCount > 0 && wordCodePoints[0] == CODE_POINT_BEGINNING_OF_SENTENCE) { in latinime_BinaryDictionary_getNextWord() 341 int wordCodePoints[MAX_WORD_LENGTH]; in latinime_BinaryDictionary_getWordProperty() local 342 env->GetIntArrayRegion(word, 0, wordLength, wordCodePoints); in latinime_BinaryDictionary_getWordProperty() 346 wordCodePoints, wordLength, MAX_WORD_LENGTH); in latinime_BinaryDictionary_getWordProperty() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 105 int Ver4PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() argument 109 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), in getWordId() 110 wordCodePoints.size(), forceLowerCaseSearch); in getWordId() 266 bool Ver4PatriciaTriePolicy::addUnigramEntry(const CodePointArrayView wordCodePoints, in addUnigramEntry() argument 277 if (wordCodePoints.size() > MAX_WORD_LENGTH) { in addUnigramEntry() 279 wordCodePoints.size()); in addUnigramEntry() 293 int codePointCountToAdd = wordCodePoints.size(); in addUnigramEntry() 294 memmove(codePointsToAdd, wordCodePoints.data(), sizeof(int) * codePointCountToAdd); in addUnigramEntry() 333 bool Ver4PatriciaTriePolicy::removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() argument 339 getWordId(wordCodePoints, false /* forceLowerCaseSearch */)); in removeUnigramEntry() [all …]
|
D | ver4_patricia_trie_policy.h | 92 int getWordId(const CodePointArrayView wordCodePoints, const bool forceLowerCaseSearch) const; 110 bool addUnigramEntry(const CodePointArrayView wordCodePoints, 113 bool removeUnigramEntry(const CodePointArrayView wordCodePoints); 118 const CodePointArrayView wordCodePoints); 121 const CodePointArrayView wordCodePoints, const bool isValidWord, 133 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 87 int Ver4PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() argument 91 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), in getWordId() 92 wordCodePoints.size(), forceLowerCaseSearch); in getWordId() 179 bool Ver4PatriciaTriePolicy::addUnigramEntry(const CodePointArrayView wordCodePoints, in addUnigramEntry() argument 190 if (wordCodePoints.size() > MAX_WORD_LENGTH) { in addUnigramEntry() 192 wordCodePoints.size()); in addUnigramEntry() 206 int codePointCountToAdd = wordCodePoints.size(); in addUnigramEntry() 207 memmove(codePointsToAdd, wordCodePoints.data(), sizeof(int) * codePointCountToAdd); in addUnigramEntry() 247 bool Ver4PatriciaTriePolicy::removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() argument 252 const int wordId = getWordId(wordCodePoints, false /* forceLowerCaseSearch */); in removeUnigramEntry() [all …]
|
D | ver4_patricia_trie_policy.h | 67 int getWordId(const CodePointArrayView wordCodePoints, const bool forceLowerCaseSearch) const; 89 bool addUnigramEntry(const CodePointArrayView wordCodePoints, 92 bool removeUnigramEntry(const CodePointArrayView wordCodePoints); 97 const CodePointArrayView wordCodePoints); 100 const CodePointArrayView wordCodePoints, const bool isValidWord, 112 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
D | dictionary_structure_with_buffer_policy.h | 57 virtual int getWordId(const CodePointArrayView wordCodePoints, 76 virtual bool addUnigramEntry(const CodePointArrayView wordCodePoints, 80 virtual bool removeUnigramEntry(const CodePointArrayView wordCodePoints) = 0; 87 const CodePointArrayView wordCodePoints) = 0; 91 const CodePointArrayView wordCodePoints, const bool isValidWord, 107 virtual const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.h | 65 int getWordId(const CodePointArrayView wordCodePoints, const bool forceLowerCaseSearch) const; 83 bool addUnigramEntry(const CodePointArrayView wordCodePoints, in addUnigramEntry() argument 90 bool removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() argument 103 const CodePointArrayView wordCodePoints) { in removeNgramEntry() argument 110 const CodePointArrayView wordCodePoints, const bool isValidWord, in updateEntriesForWordWithNgramContext() argument 144 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
|
D | patricia_trie_policy.cpp | 280 int PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() argument 284 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), in getWordId() 285 wordCodePoints.size(), forceLowerCaseSearch); in getWordId() 427 const CodePointArrayView wordCodePoints) const { in getWordProperty() 428 const int wordId = getWordId(wordCodePoints, false /* forceLowerCaseSearch */); in getWordProperty() 452 NgramContext(wordCodePoints.data(), wordCodePoints.size(), in getWordProperty() 481 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams); in getWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.cpp | 32 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty, in addUnigramWord() argument 42 wordCodePoints[matchedCodePointCount])) { in addUnigramWord() 52 if (nextIndex >= wordCodePoints.size() in addUnigramWord() 54 wordCodePoints[matchedCodePointCount + j])) { in addUnigramWord() 57 wordCodePoints.skip(matchedCodePointCount)); in addUnigramWord() 61 if (wordCodePoints.size() == readingHelper->getTotalCodePointCount(ptNodeParams)) { in addUnigramWord() 67 wordCodePoints.skip(readingHelper->getTotalCodePointCount(ptNodeParams))); in addUnigramWord() 80 wordCodePoints.skip(readingHelper->getPrevTotalCodePointCount()), unigramProperty, in addUnigramWord()
|
D | dynamic_pt_updating_helper.h | 43 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | ngram_context.cpp | 90 const int *const wordCodePoints, const int wordCodePointCount, in getWordId() argument 92 if (!dictStructurePolicy || !wordCodePoints || wordCodePointCount > MAX_WORD_LENGTH) { in getWordId() 97 memmove(codePoints, wordCodePoints, sizeof(int) * codePointCount); in getWordId()
|
D | ngram_context.h | 68 const int *const wordCodePoints, const int wordCodePointCount,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionary.java | 386 final int[] wordCodePoints = StringUtils.toCodePointArray(word); in getNgramProbability() local 388 isBeginningOfSentenceArray, wordCodePoints); in getNgramProbability() 483 final int[] wordCodePoints = StringUtils.toCodePointArray(word); in addNgramEntry() local 485 isBeginningOfSentenceArray, wordCodePoints, probability, timestamp)) { in addNgramEntry() 501 final int[] wordCodePoints = StringUtils.toCodePointArray(word); in updateEntriesForWordWithNgramContext() local 503 isBeginningOfSentenceArray, wordCodePoints, isValidWord, count, timestamp)) { in updateEntriesForWordWithNgramContext()
|