/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 79 const int ptNodePos, const int maxCodePointCount, int *const outCodePoints, in getCodePointsAndProbabilityAndReturnCodePointCount() argument 115 if (ptNodePos == startPos) { in getCodePointsAndProbabilityAndReturnCodePointCount() 158 if (childrenPos > ptNodePos) { in getCodePointsAndProbabilityAndReturnCodePointCount() 275 const int ptNodePos = in getTerminalPtNodePositionOfWord() local 281 return ptNodePos; in getTerminalPtNodePositionOfWord() 301 const int ptNodePos) const { in getProbabilityOfPtNode() 302 if (ptNodePos == NOT_A_DICT_POS) { in getProbabilityOfPtNode() 306 mPtNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); in getProbabilityOfPtNode() 318 if (bigramsIt.getBigramPos() == ptNodePos in getProbabilityOfPtNode() 341 int PatriciaTriePolicy::getShortcutPositionOfPtNode(const int ptNodePos) const { in getShortcutPositionOfPtNode() [all …]
|
D | ver2_patricia_trie_node_reader.cpp | 24 const int ptNodePos) const { in fetchPtNodeParamsInBufferFromPtNodePos() 25 if (ptNodePos < 0 || ptNodePos >= mDictSize) { in fetchPtNodeParamsInBufferFromPtNodePos() 28 ptNodePos, mDictSize); in fetchPtNodeParamsInBufferFromPtNodePos() 40 PatriciaTrieReadingUtils::readPtNodeInfo(mDictBuffer, ptNodePos, mShortuctPolicy, in fetchPtNodeParamsInBufferFromPtNodePos() 48 return PtNodeParams(ptNodePos, flags, mergedNodeCodePointCount, mergedNodeCodePoints, in fetchPtNodeParamsInBufferFromPtNodePos()
|
D | patricia_trie_policy.h | 70 int getProbabilityOfPtNode(const int *const prevWordsPtNodePos, const int ptNodePos) const; 75 int getShortcutPositionOfPtNode(const int ptNodePos) const; 162 int getBigramsPositionOfPtNode(const int ptNodePos) const; 163 int createAndGetLeavingChildNode(const DicNode *const dicNode, const int ptNodePos,
|
D | ver2_patricia_trie_node_reader.h | 39 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 83 const int ptNodePos, const int maxCodePointCount, int *const outCodePoints, in getCodePointsAndProbabilityAndReturnCodePointCount() argument 86 readingHelper.initWithPtNodePos(ptNodePos); in getCodePointsAndProbabilityAndReturnCodePointCount() 100 const int ptNodePos = in getTerminalPtNodePositionOfWord() local 106 return ptNodePos; in getTerminalPtNodePositionOfWord() 126 const int ptNodePos) const { in getProbabilityOfPtNode() 127 if (ptNodePos == NOT_A_DICT_POS) { in getProbabilityOfPtNode() 130 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); in getProbabilityOfPtNode() 139 if (bigramsIt.getBigramPos() == ptNodePos in getProbabilityOfPtNode() 162 int Ver4PatriciaTriePolicy::getShortcutPositionOfPtNode(const int ptNodePos) const { in getShortcutPositionOfPtNode() 163 if (ptNodePos == NOT_A_DICT_POS) { in getShortcutPositionOfPtNode() [all …]
|
D | ver4_patricia_trie_node_reader.cpp | 30 const int ptNodePos, const int siblingNodePos) const { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() argument 31 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 34 ptNodePos, mBuffer->getTailPosition()); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 38 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 40 int pos = ptNodePos; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 41 const int headPos = ptNodePos; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
D | ver4_patricia_trie_node_reader.h | 44 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { in fetchPtNodeParamsInBufferFromPtNodePos() argument 45 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(ptNodePos, in fetchPtNodeParamsInBufferFromPtNodePos() 56 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
|
D | ver4_patricia_trie_policy.h | 75 int getProbabilityOfPtNode(const int *const prevWordsPtNodePos, const int ptNodePos) const; 80 int getShortcutPositionOfPtNode(const int ptNodePos) const; 147 int getBigramsPositionOfPtNode(const int ptNodePos) const;
|
D | ver4_patricia_trie_writing_helper.cpp | 215 const int ptNodePos = priorityQueue.top().getDictPos(); in truncateUnigrams() local 218 ptNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); in truncateUnigrams() 223 AKLOGE("Cannot mark PtNode as willBecomeNonterminal. PtNode pos: %d", ptNodePos); in truncateUnigrams()
|
D | ver4_patricia_trie_node_writer.cpp | 372 bool Ver4PatriciaTrieNodeWriter::updatePtNodeFlags(const int ptNodePos, in updatePtNodeFlags() argument 380 if (!DynamicPtWritingUtils::writeFlags(mTrieBuffer, nodeFlags, ptNodePos)) { in updatePtNodeFlags() 381 AKLOGE("Cannot write PtNode flags. flags: %x, pos: %d", nodeFlags, ptNodePos); in updatePtNodeFlags()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 93 const int ptNodePos, const int maxCodePointCount, int *const outCodePoints, in getCodePointsAndProbabilityAndReturnCodePointCount() argument 96 readingHelper.initWithPtNodePos(ptNodePos); in getCodePointsAndProbabilityAndReturnCodePointCount() 110 const int ptNodePos = in getTerminalPtNodePositionOfWord() local 116 return ptNodePos; in getTerminalPtNodePositionOfWord() 136 const int ptNodePos) const { in getProbabilityOfPtNode() 137 if (ptNodePos == NOT_A_DICT_POS) { in getProbabilityOfPtNode() 140 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); in getProbabilityOfPtNode() 149 if (bigramsIt.getBigramPos() == ptNodePos in getProbabilityOfPtNode() 172 int Ver4PatriciaTriePolicy::getShortcutPositionOfPtNode(const int ptNodePos) const { in getShortcutPositionOfPtNode() 173 if (ptNodePos == NOT_A_DICT_POS) { in getShortcutPositionOfPtNode() [all …]
|
D | ver4_patricia_trie_node_reader.cpp | 39 const int ptNodePos, const int siblingNodePos) const { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() argument 40 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 43 ptNodePos, mBuffer->getTailPosition()); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 47 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 49 int pos = ptNodePos; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 50 const int headPos = ptNodePos; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
D | ver4_patricia_trie_node_writer.cpp | 241 const int ptNodePos = in addNgramEntry() local 244 mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); in addNgramEntry() 413 bool Ver4PatriciaTrieNodeWriter::updatePtNodeFlags(const int ptNodePos, in updatePtNodeFlags() argument 421 if (!DynamicPtWritingUtils::writeFlags(mTrieBuffer, nodeFlags, ptNodePos)) { in updatePtNodeFlags() 422 AKLOGE("Cannot write PtNode flags. flags: %x, pos: %d", nodeFlags, ptNodePos); in updatePtNodeFlags()
|
D | ver4_patricia_trie_node_reader.h | 61 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { in fetchPtNodeParamsInBufferFromPtNodePos() argument 62 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(ptNodePos, in fetchPtNodeParamsInBufferFromPtNodePos() 73 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
|
D | ver4_patricia_trie_policy.h | 93 int getProbabilityOfPtNode(const int *const prevWordsPtNodePos, const int ptNodePos) const; 98 int getShortcutPositionOfPtNode(const int ptNodePos) const; 168 int getBigramsPositionOfPtNode(const int ptNodePos) const;
|
D | ver4_patricia_trie_writing_helper.cpp | 224 const int ptNodePos = priorityQueue.top().getDictPos(); in truncateUnigrams() local 227 ptNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); in truncateUnigrams() 232 AKLOGE("Cannot mark PtNode as willBecomeNonterminal. PtNode pos: %d", ptNodePos); in truncateUnigrams()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/ |
D | dynamic_pt_reading_utils.cpp | 48 const int ptNodePos) { in getParentPtNodePos() argument 52 return ptNodePos; in getParentPtNodePos() 54 return parentOffset + ptNodePos; in getParentPtNodePos()
|
D | dynamic_pt_reading_helper.h | 108 AK_FORCE_INLINE void initWithPtNodePos(const int ptNodePos) { in initWithPtNodePos() argument 109 if (ptNodePos == NOT_A_DICT_POS) { in initWithPtNodePos() 113 mReadingState.mPos = ptNodePos; in initWithPtNodePos()
|
D | patricia_trie_reading_utils.cpp | 135 /* static */ void PtReadingUtils::readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos, in readPtNodeInfo() argument 141 int readingPos = ptNodePos; in readPtNodeInfo()
|
D | pt_node_reader.h | 31 const int ptNodePos) const = 0;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictIOUtils.java | 193 final int ptNodePos = dictDecoder.getPosition(); in getTerminalPosition() local 194 final PtNodeInfo currentInfo = dictDecoder.readPtNode(ptNodePos); in getTerminalPosition() 212 return ptNodePos; in getTerminalPosition()
|
D | Ver2DictDecoder.java | 195 public PtNodeInfo readPtNode(final int ptNodePos) { in readPtNode() argument 196 int addressPointer = ptNodePos; in readPtNode() 251 return new PtNodeInfo(ptNodePos, addressPointer, flags, characters, probabilityInfo, in readPtNode()
|
D | AbstractDictDecoder.java | 87 public PtNodeInfo readPtNode(final int ptNodePos) { in readPtNode() argument
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node_vector.h | 61 void pushLeavingChild(const DicNode *const dicNode, const int ptNodePos, in pushLeavingChild() argument 67 mDicNodes.back().initAsChild(dicNode, ptNodePos, childrenPtNodeArrayPos, probability, in pushLeavingChild()
|
D | dic_node.h | 138 void initAsChild(const DicNode *const dicNode, const int ptNodePos, in initAsChild() argument 146 mDicNodeProperties.init(ptNodePos, childrenPtNodeArrayPos, mergedNodeCodePoints[0], in initAsChild()
|