/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/ |
ver2_patricia_trie_node_reader.cpp | 24 const int ptNodePos) const { 25 if (ptNodePos < 0 || ptNodePos >= mDictSize) { 28 ptNodePos, mDictSize); 40 PatriciaTrieReadingUtils::readPtNodeInfo(mDictBuffer, ptNodePos, mShortuctPolicy, 48 return PtNodeParams(ptNodePos, flags, mergedNodeCodePointCount, mergedNodeCodePoints,
|
patricia_trie_policy.cpp | 71 * ptNodePos: the byte position of the terminal PtNode of the word we are searching for (this is 79 const int ptNodePos, const int maxCodePointCount, int *const outCodePoints, 115 if (ptNodePos == startPos) { 158 if (childrenPos > ptNodePos) { 264 // If we have looked through all the PtNodes and found no match, the ptNodePos is 275 const int ptNodePos = 281 return ptNodePos; 301 const int ptNodePos) const { 302 if (ptNodePos == NOT_A_DICT_POS) { 306 mPtNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); [all...] |
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,
|
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/ |
ver4_patricia_trie_node_reader.h | 44 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { 45 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(ptNodePos, 56 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
|
ver4_patricia_trie_node_reader.cpp | 30 const int ptNodePos, const int siblingNodePos) const { 31 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) { 34 ptNodePos, mBuffer->getTailPosition()); 38 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos); 40 int pos = ptNodePos; 41 const int headPos = ptNodePos;
|
ver4_patricia_trie_policy.cpp | 83 const int ptNodePos, const int maxCodePointCount, int *const outCodePoints, 86 readingHelper.initWithPtNodePos(ptNodePos); 100 const int ptNodePos = 106 return ptNodePos; 126 const int ptNodePos) const { 127 if (ptNodePos == NOT_A_DICT_POS) { 130 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); 139 if (bigramsIt.getBigramPos() == ptNodePos 162 int Ver4PatriciaTriePolicy::getShortcutPositionOfPtNode(const int ptNodePos) const { 163 if (ptNodePos == NOT_A_DICT_POS) [all...] |
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;
|
ver4_patricia_trie_node_writer.h | 108 bool updatePtNodeFlags(const int ptNodePos, const bool isBlacklisted, const bool isNotAWord,
|
ver4_patricia_trie_writing_helper.cpp | 215 const int ptNodePos = priorityQueue.top().getDictPos(); 218 ptNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); 223 AKLOGE("Cannot mark PtNode as willBecomeNonterminal. PtNode pos: %d", ptNodePos);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/ |
pt_node_reader.h | 31 const int ptNodePos) const = 0;
|
dynamic_pt_reading_utils.cpp | 48 const int ptNodePos) { 52 return ptNodePos; 54 return parentOffset + ptNodePos;
|
dynamic_pt_reading_utils.h | 42 static int getParentPtNodePos(const int parentOffset, const int ptNodePos);
|
patricia_trie_reading_utils.cpp | 135 /* static */ void PtReadingUtils::readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos, 141 int readingPos = ptNodePos;
|
dynamic_pt_reading_helper.h | 108 AK_FORCE_INLINE void initWithPtNodePos(const int ptNodePos) { 109 if (ptNodePos == NOT_A_DICT_POS) { 113 mReadingState.mPos = ptNodePos;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/ |
ver4_patricia_trie_node_reader.h | 61 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { 62 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(ptNodePos, 73 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
|
ver4_patricia_trie_node_reader.cpp | 39 const int ptNodePos, const int siblingNodePos) const { 40 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) { 43 ptNodePos, mBuffer->getTailPosition()); 47 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos); 49 int pos = ptNodePos; 50 const int headPos = ptNodePos;
|
ver4_patricia_trie_policy.cpp | 93 const int ptNodePos, const int maxCodePointCount, int *const outCodePoints, 96 readingHelper.initWithPtNodePos(ptNodePos); 110 const int ptNodePos = 116 return ptNodePos; 136 const int ptNodePos) const { 137 if (ptNodePos == NOT_A_DICT_POS) { 140 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); 149 if (bigramsIt.getBigramPos() == ptNodePos 172 int Ver4PatriciaTriePolicy::getShortcutPositionOfPtNode(const int ptNodePos) const { 173 if (ptNodePos == NOT_A_DICT_POS) [all...] |
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;
|
ver4_patricia_trie_node_writer.cpp | 68 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */); 135 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */)) { 241 const int ptNodePos = 244 mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); 413 bool Ver4PatriciaTrieNodeWriter::updatePtNodeFlags(const int ptNodePos, 421 if (!DynamicPtWritingUtils::writeFlags(mTrieBuffer, nodeFlags, ptNodePos)) { 422 AKLOGE("Cannot write PtNode flags. flags: %x, pos: %d", nodeFlags, ptNodePos);
|
ver4_patricia_trie_node_writer.h | 128 bool updatePtNodeFlags(const int ptNodePos, const bool isBlacklisted, const bool isNotAWord,
|
ver4_patricia_trie_writing_helper.cpp | 224 const int ptNodePos = priorityQueue.top().getDictPos(); 227 ptNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); 232 AKLOGE("Cannot mark PtNode as willBecomeNonterminal. PtNode pos: %d", ptNodePos);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
dic_node_vector.h | 61 void pushLeavingChild(const DicNode *const dicNode, const int ptNodePos, 67 mDicNodes.back().initAsChild(dicNode, ptNodePos, childrenPtNodeArrayPos, probability,
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
AbstractDictDecoder.java | 87 public PtNodeInfo readPtNode(final int ptNodePos) {
|
BinaryDictIOUtils.java | 193 final int ptNodePos = dictDecoder.getPosition(); 194 final PtNodeInfo currentInfo = dictDecoder.readPtNode(ptNodePos); 212 return ptNodePos;
|