/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.h | 43 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty, 56 bool addShortcutTarget(const int wordPos, const CodePointArrayView targetCodePoints, 69 const CodePointArrayView ptNodeCodePoints, const UnigramProperty *const unigramProperty, 77 const CodePointArrayView remainingCodePoints); 80 const CodePointArrayView ptNodeCodePoints, 85 const CodePointArrayView newPtNodeCodePoints); 89 const int parentPos, const CodePointArrayView codePoints, const int probability) const; 93 const CodePointArrayView codePoints, const int probability) const;
|
D | dynamic_pt_updating_helper.cpp | 32 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty, in addUnigramWord() 120 const CodePointArrayView targetCodePoints, const int shortcutProbability) { in addShortcutTarget() 127 const CodePointArrayView ptNodeCodePoints, const UnigramProperty *const unigramProperty, in createAndInsertNodeIntoPtNodeArray() 165 const CodePointArrayView codePoints) { in createChildrenPtNodeArrayAndAChildPtNode() 175 const int parentPtNodePos, const CodePointArrayView ptNodeCodePoints, in createNewPtNodeArrayWithAChildPtNode() 201 const CodePointArrayView newPtNodeCodePoints) { in reallocatePtNodeAndAddNewPtNodes() 214 const CodePointArrayView firstPtNodeCodePoints = in reallocatePtNodeAndAddNewPtNodes() 281 const CodePointArrayView codePoints, const int probability) const { in getUpdatedPtNodeParams() 291 const CodePointArrayView codePoints, const int probability) const { in getPtNodeParamsForNewPtNode()
|
D | pt_node_params.h | 92 const CodePointArrayView codePoints, const int probability) in PtNodeParams() 109 const CodePointArrayView codePoints, const int probability) in PtNodeParams() 178 AK_FORCE_INLINE const CodePointArrayView getCodePointArrayView() const { in getCodePointArrayView() 179 return CodePointArrayView(mCodePoints, mCodePointCount); in getCodePointArrayView()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | dictionary.h | 77 int getProbability(const CodePointArrayView codePoints) const; 79 int getMaxProbabilityOfExactMatches(const CodePointArrayView codePoints) const; 82 const CodePointArrayView codePoints) const; 84 bool addUnigramEntry(const CodePointArrayView codePoints, 87 bool removeUnigramEntry(const CodePointArrayView codePoints); 92 const CodePointArrayView codePoints); 95 const CodePointArrayView codePoints, const bool isValidWord, 107 const WordProperty getWordProperty(const CodePointArrayView codePoints);
|
D | dictionary.cpp | 103 int Dictionary::getProbability(const CodePointArrayView codePoints) const { in getProbability() 107 int Dictionary::getMaxProbabilityOfExactMatches(const CodePointArrayView codePoints) const { in getMaxProbabilityOfExactMatches() 114 const CodePointArrayView codePoints) const { in getNgramProbability() 129 bool Dictionary::addUnigramEntry(const CodePointArrayView codePoints, in addUnigramEntry() 141 bool Dictionary::removeUnigramEntry(const CodePointArrayView codePoints) { in removeUnigramEntry() 152 const CodePointArrayView codePoints) { in removeNgramEntry() 158 const CodePointArrayView codePoints, const bool isValidWord, in updateEntriesForWordWithNgramContext() 187 const WordProperty Dictionary::getWordProperty(const CodePointArrayView codePoints) { in getWordProperty()
|
D | dictionary_utils.h | 34 const CodePointArrayView codePoints);
|
D | dictionary_utils.cpp | 32 const CodePointArrayView codePoints) { in getMaxProbabilityOfExactMatches()
|
/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/v4/ |
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;
|
D | ver4_patricia_trie_policy.cpp | 87 int Ver4PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() 179 bool Ver4PatriciaTriePolicy::addUnigramEntry(const CodePointArrayView wordCodePoints, in addUnigramEntry() 215 const CodePointArrayView codePointArrayView(codePointsToAdd, codePointCountToAdd); in addUnigramEntry() 232 CodePointArrayView(*shortcut.getTargetCodePoints()), in addUnigramEntry() 247 bool Ver4PatriciaTriePolicy::removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() 317 const int wordId = getWordId(CodePointArrayView(*ngramProperty->getTargetCodePoints()), in addNgramEntry() 335 const CodePointArrayView wordCodePoints) { in removeNgramEntry() 373 const NgramContext *const ngramContext, const CodePointArrayView wordCodePoints, in updateEntriesForWordWithNgramContext() 505 const CodePointArrayView wordCodePoints) const { in getWordProperty() 540 CodePointArrayView(ngramTargetCodePoints, codePointCount).toVector(), in getWordProperty() [all …]
|
/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() 90 bool removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() 103 const CodePointArrayView wordCodePoints) { in removeNgramEntry() 110 const CodePointArrayView wordCodePoints, const bool isValidWord, in updateEntriesForWordWithNgramContext() 144 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
|
D | patricia_trie_policy.cpp | 280 int PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() 421 CodePointArrayView(mergedNodeCodePoints, mergedNodeCodePointCount)); in createAndGetLeavingChildNode() 427 const CodePointArrayView wordCodePoints) const { in getWordProperty() 454 CodePointArrayView(bigramWord1CodePoints, word1CodePointCount).toVector(), in getWordProperty() 474 CodePointArrayView(shortcutTargetCodePoints, shortcutTargetLength).toVector(), in getWordProperty()
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/ |
D | offdevice_intermediate_dict_pt_node.h | 33 OffdeviceIntermediateDictPtNode(const CodePointArrayView ptNodeCodePoints) in OffdeviceIntermediateDictPtNode() 38 OffdeviceIntermediateDictPtNode(const CodePointArrayView ptNodeCodePoints, in OffdeviceIntermediateDictPtNode() 44 OffdeviceIntermediateDictPtNode(const CodePointArrayView ptNodeCodePoints, in OffdeviceIntermediateDictPtNode() 61 const CodePointArrayView getPtNodeCodePoints() const { in getPtNodeCodePoints() 62 return CodePointArrayView(mPtNodeCodePoints); in getPtNodeCodePoints()
|
D | offdevice_intermediate_dict.cpp | 25 const CodePointArrayView codePoints = wordProperty.getCodePoints(); in addWord() 32 bool OffdeviceIntermediateDict::addWordInner(const CodePointArrayView codePoints, in addWordInner() 38 const CodePointArrayView ptNodeCodePoints = ptNode->getPtNodeCodePoints(); in addWordInner() 92 const CodePointArrayView codePoints) const { in getWordProperty() 97 const CodePointArrayView ptNodeCodePoints = ptNode->getPtNodeCodePoints(); in getWordProperty()
|
D | offdevice_intermediate_dict.h | 39 const WordProperty *getWordProperty(const CodePointArrayView codePoints) const; 48 bool addWordInner(const CodePointArrayView codePoints, const WordProperty &wordProperty,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
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;
|
D | ver4_patricia_trie_policy.cpp | 105 int Ver4PatriciaTriePolicy::getWordId(const CodePointArrayView wordCodePoints, in getWordId() 266 bool Ver4PatriciaTriePolicy::addUnigramEntry(const CodePointArrayView wordCodePoints, in addUnigramEntry() 302 const CodePointArrayView codePointArrayView(codePointsToAdd, codePointCountToAdd); in addUnigramEntry() 318 CodePointArrayView(*shortcut.getTargetCodePoints()), in addUnigramEntry() 333 bool Ver4PatriciaTriePolicy::removeUnigramEntry(const CodePointArrayView wordCodePoints) { in removeUnigramEntry() 390 CodePointArrayView(*ngramProperty->getTargetCodePoints()), in addNgramEntry() 409 const CodePointArrayView wordCodePoints) { in removeNgramEntry() 450 const NgramContext *const ngramContext, const CodePointArrayView wordCodePoints, in updateEntriesForWordWithNgramContext() 550 const CodePointArrayView wordCodePoints) const { in getWordProperty() 595 CodePointArrayView(bigramWord1CodePoints, codePointCount).toVector(), in getWordProperty() [all …]
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 270 return dictionary->getProbability(CodePointArrayView(codePoints, codePointCount)); in latinime_BinaryDictionary_getProbability() 281 CodePointArrayView(codePoints, codePointCount)); in latinime_BinaryDictionary_getMaxProbabilityOfExactMatches() 296 CodePointArrayView(wordCodePoints, wordLength)); in latinime_BinaryDictionary_getNgramProbability() 353 CodePointArrayView(wordCodePoints, codePointCount)); in latinime_BinaryDictionary_getWordProperty() 382 return dictionary->addUnigramEntry(CodePointArrayView(codePoints, codePointCount), in latinime_BinaryDictionary_addUnigramEntry() 395 return dictionary->removeUnigramEntry(CodePointArrayView(codePoints, codePointCount)); in latinime_BinaryDictionary_removeUnigramEntry() 413 CodePointArrayView(wordCodePoints, wordLength).toVector(), in latinime_BinaryDictionary_addNgramEntry() 432 CodePointArrayView(wordCodePoints, codePointCount)); in latinime_BinaryDictionary_removeNgramEntry() 451 CodePointArrayView(wordCodePoints, codePointCount), isValidWord == JNI_TRUE, in latinime_BinaryDictionary_updateEntriesForWordWithNgramContext() 499 CodePointArrayView(wordCodePoints, wordLength), isValid, in latinime_BinaryDictionary_updateEntriesForInputEvents() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | ngram_context.cpp | 74 const CodePointArrayView NgramContext::getNthPrevWordCodePoints(const size_t n) const { in getNthPrevWordCodePoints() 76 return CodePointArrayView(); in getNthPrevWordCodePoints() 78 return CodePointArrayView(mPrevWordCodePoints[n - 1], mPrevWordCodePointCount[n - 1]); in getNthPrevWordCodePoints() 105 const CodePointArrayView codePointArrayView(codePoints, codePointCount); in getWordId()
|
D | word_property.h | 41 const CodePointArrayView getCodePoints() const { in getCodePoints() 42 return CodePointArrayView(mCodePoints); in getCodePoints()
|
D | ngram_context.h | 60 const CodePointArrayView getNthPrevWordCodePoints(const size_t n) const;
|
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/utils/ |
D | utf8_utils_test.cpp | 67 EXPECT_EQ("test", Utf8Utils::getUtf8String(CodePointArrayView(codePoints))); in TEST() 79 Utf8Utils::getUtf8String(CodePointArrayView(codePoints))); in TEST()
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | jni_data_utils.cpp | 32 const CodePointArrayView codePoints = wordProperty.getCodePoints(); in outputWordProperty() 62 const CodePointArrayView codePoints = ngramContext->getNthPrevWordCodePoints(i + 1); in outputWordProperty()
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
D | utf8_utils.h | 33 static std::string getUtf8String(const CodePointArrayView codePoints);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node_vector.h | 63 const int wordId, const CodePointArrayView mergedCodePoints) { in pushLeavingChild()
|