Home
last modified time | relevance | path

Searched refs:CodePointArrayView (Results 1 – 25 of 30) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.h43 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;
Ddynamic_pt_updating_helper.cpp32 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()
Dpt_node_params.h92 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/
Ddictionary.h77 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);
Ddictionary.cpp103 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()
Ddictionary_utils.h34 const CodePointArrayView codePoints);
Ddictionary_utils.cpp32 const CodePointArrayView codePoints) { in getMaxProbabilityOfExactMatches()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h57 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/
Dver4_patricia_trie_policy.h67 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;
Dver4_patricia_trie_policy.cpp87 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/
Dpatricia_trie_policy.h65 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;
Dpatricia_trie_policy.cpp280 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/
Doffdevice_intermediate_dict_pt_node.h33 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()
Doffdevice_intermediate_dict.cpp25 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()
Doffdevice_intermediate_dict.h39 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/
Dver4_patricia_trie_policy.h92 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;
Dver4_patricia_trie_policy.cpp105 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/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp270 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/
Dngram_context.cpp74 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()
Dword_property.h41 const CodePointArrayView getCodePoints() const { in getCodePoints()
42 return CodePointArrayView(mCodePoints); in getCodePoints()
Dngram_context.h60 const CodePointArrayView getNthPrevWordCodePoints(const size_t n) const;
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/utils/
Dutf8_utils_test.cpp67 EXPECT_EQ("test", Utf8Utils::getUtf8String(CodePointArrayView(codePoints))); in TEST()
79 Utf8Utils::getUtf8String(CodePointArrayView(codePoints))); in TEST()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp32 const CodePointArrayView codePoints = wordProperty.getCodePoints(); in outputWordProperty()
62 const CodePointArrayView codePoints = ngramContext->getNthPrevWordCodePoints(i + 1); in outputWordProperty()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Dutf8_utils.h33 static std::string getUtf8String(const CodePointArrayView codePoints);
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_vector.h63 const int wordId, const CodePointArrayView mergedCodePoints) { in pushLeavingChild()

12