Home
last modified time | relevance | path

Searched refs:parentPos (Results 1 – 8 of 8) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp34 int parentPos = NOT_A_DICT_POS; in addUnigramWord() local
70 parentPos = ptNodeParams.getHeadPos(); in addUnigramWord()
79 return createAndInsertNodeIntoPtNodeArray(parentPos, in addUnigramWord()
126 bool DynamicPtUpdatingHelper::createAndInsertNodeIntoPtNodeArray(const int parentPos, in createAndInsertNodeIntoPtNodeArray() argument
134 return createNewPtNodeArrayWithAChildPtNode(parentPos, ptNodeCodePoints, unigramProperty); in createAndInsertNodeIntoPtNodeArray()
280 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos, in getUpdatedPtNodeParams() argument
286 return PtNodeParams(originalPtNodeParams, flags, parentPos, codePoints, probability); in getUpdatedPtNodeParams()
290 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos, in getPtNodeParamsForNewPtNode() argument
296 return PtNodeParams(flags, parentPos, codePoints, probability); in getPtNodeParamsForNewPtNode()
Ddynamic_pt_updating_helper.h68 bool createAndInsertNodeIntoPtNodeArray(const int parentPos,
79 bool createNewPtNodeArrayWithAChildPtNode(const int parentPos,
89 const int parentPos, const CodePointArrayView codePoints, const int probability) const;
92 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos,
Dpt_node_params.h76 const int parentPos, const int codePointCount, const int *const codePoints, in PtNodeParams() argument
79 : mHeadPos(headPos), mFlags(flags), mHasMovedFlag(true), mParentPos(parentPos), in PtNodeParams()
91 const PatriciaTrieReadingUtils::NodeFlags flags, const int parentPos, in PtNodeParams() argument
94 mParentPos(parentPos), mCodePointCount(codePoints.size()), mCodePoints(), in PtNodeParams()
108 PtNodeParams(const PatriciaTrieReadingUtils::NodeFlags flags, const int parentPos, in PtNodeParams() argument
110 : mHeadPos(NOT_A_DICT_POS), mFlags(flags), mHasMovedFlag(true), mParentPos(parentPos), in PtNodeParams()
Ddynamic_pt_writing_utils.cpp84 BufferWithExtendableBuffer *const buffer, const int parentPos, const int basePos, in writeParentPosOffsetAndAdvancePosition() argument
86 return writeDictOffset(buffer, parentPos, basePos, parentPosFieldPos); in writeParentPosOffsetAndAdvancePosition()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_node_reader.cpp51 const int parentPos = in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() local
83 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(parentPos, newSiblingNodePos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
85 return PtNodeParams(headPos, flags, parentPos, codePointCount, codePoints, in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_node_writer.cpp243 int parentPos = toBeUpdatedPtNodeParams->getParentPos(); in updateAllPositionFields() local
244 if (parentPos != NOT_A_DICT_POS) { in updateAllPositionFields()
246 dictPositionRelocationMap->mPtNodePositionRelocationMap.find(parentPos); in updateAllPositionFields()
248 parentPos = it->second; in updateAllPositionFields()
255 parentPos, toBeUpdatedPtNodeParams->getHeadPos(), &writingPos)) { in updateAllPositionFields()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_reader.cpp60 const int parentPos = in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() local
100 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(parentPos, newSiblingNodePos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
102 return PtNodeParams(headPos, flags, parentPos, codePointCount, codePoints, in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_node_writer.cpp271 int parentPos = toBeUpdatedPtNodeParams->getParentPos(); in updateAllPositionFields() local
272 if (parentPos != NOT_A_DICT_POS) { in updateAllPositionFields()
274 dictPositionRelocationMap->mPtNodePositionRelocationMap.find(parentPos); in updateAllPositionFields()
276 parentPos = it->second; in updateAllPositionFields()
283 parentPos, toBeUpdatedPtNodeParams->getHeadPos(), &writingPos)) { in updateAllPositionFields()