Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/
Dpatricia_trie_policy.cpp79 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 …]
Dver2_patricia_trie_node_reader.cpp24 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()
Dpatricia_trie_policy.h70 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,
Dver2_patricia_trie_node_reader.h39 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const;
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp83 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 …]
Dver4_patricia_trie_node_reader.cpp30 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()
Dver4_patricia_trie_node_reader.h44 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { in fetchPtNodeParamsInBufferFromPtNodePos() argument
45 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(ptNodePos, in fetchPtNodeParamsInBufferFromPtNodePos()
56 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
Dver4_patricia_trie_policy.h75 int getProbabilityOfPtNode(const int *const prevWordsPtNodePos, const int ptNodePos) const;
80 int getShortcutPositionOfPtNode(const int ptNodePos) const;
147 int getBigramsPositionOfPtNode(const int ptNodePos) const;
Dver4_patricia_trie_writing_helper.cpp215 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()
Dver4_patricia_trie_node_writer.cpp372 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/
Dver4_patricia_trie_policy.cpp93 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 …]
Dver4_patricia_trie_node_reader.cpp39 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()
Dver4_patricia_trie_node_writer.cpp241 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()
Dver4_patricia_trie_node_reader.h61 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { in fetchPtNodeParamsInBufferFromPtNodePos() argument
62 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(ptNodePos, in fetchPtNodeParamsInBufferFromPtNodePos()
73 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
Dver4_patricia_trie_policy.h93 int getProbabilityOfPtNode(const int *const prevWordsPtNodePos, const int ptNodePos) const;
98 int getShortcutPositionOfPtNode(const int ptNodePos) const;
168 int getBigramsPositionOfPtNode(const int ptNodePos) const;
Dver4_patricia_trie_writing_helper.cpp224 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/
Ddynamic_pt_reading_utils.cpp48 const int ptNodePos) { in getParentPtNodePos() argument
52 return ptNodePos; in getParentPtNodePos()
54 return parentOffset + ptNodePos; in getParentPtNodePos()
Ddynamic_pt_reading_helper.h108 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()
Dpatricia_trie_reading_utils.cpp135 /* static */ void PtReadingUtils::readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos, in readPtNodeInfo() argument
141 int readingPos = ptNodePos; in readPtNodeInfo()
Dpt_node_reader.h31 const int ptNodePos) const = 0;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOUtils.java193 final int ptNodePos = dictDecoder.getPosition(); in getTerminalPosition() local
194 final PtNodeInfo currentInfo = dictDecoder.readPtNode(ptNodePos); in getTerminalPosition()
212 return ptNodePos; in getTerminalPosition()
DVer2DictDecoder.java195 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()
DAbstractDictDecoder.java87 public PtNodeInfo readPtNode(final int ptNodePos) { in readPtNode() argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_vector.h61 void pushLeavingChild(const DicNode *const dicNode, const int ptNodePos, in pushLeavingChild() argument
67 mDicNodes.back().initAsChild(dicNode, ptNodePos, childrenPtNodeArrayPos, probability, in pushLeavingChild()
Ddic_node.h138 void initAsChild(const DicNode *const dicNode, const int ptNodePos, in initAsChild() argument
146 mDicNodeProperties.init(ptNodePos, childrenPtNodeArrayPos, mergedNodeCodePoints[0], in initAsChild()

12