/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
ver4_patricia_trie_node_reader.h | 41 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { 42 return fetchPtNodeInfoFromBufferAndProcessMovedPtNode(ptNodePos, 51 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
|
ver4_patricia_trie_node_reader.cpp | 31 const int ptNodePos, const int siblingNodePos) const { 32 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) { 35 ptNodePos, mBuffer->getTailPosition()); 39 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos); 41 int pos = ptNodePos; 42 const int headPos = ptNodePos;
|
ver4_patricia_trie_node_writer.h | 98 bool updatePtNodeFlags(const int ptNodePos, const bool isTerminal, const bool hasMultipleChars);
|
ver4_patricia_trie_policy.cpp | 75 const int ptNodePos = 77 readingHelper.initWithPtNodePos(ptNodePos); 91 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), 97 if (ptNodePos == NOT_A_DICT_POS) { 100 const PtNodeParams ptNodeParams = mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); 169 const int ptNodePos = 171 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); 234 AKLOGE("Cannot add new shortcut target. PtNodePos: %d, length: %zd, " 256 const int ptNodePos = 258 const PtNodeParams ptNodeParams = mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); [all...] |
ver4_patricia_trie_node_writer.cpp | 58 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */); 126 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */)) { 340 bool Ver4PatriciaTrieNodeWriter::updatePtNodeFlags(const int ptNodePos, const bool isTerminal, 347 if (!DynamicPtWritingUtils::writeFlags(mTrieBuffer, nodeFlags, ptNodePos)) { 348 AKLOGE("Cannot write PtNode flags. flags: %x, pos: %d", nodeFlags, ptNodePos);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
ver2_patricia_trie_node_reader.cpp | 24 const int ptNodePos) const { 25 if (ptNodePos < 0 || ptNodePos >= static_cast<int>(mBuffer.size())) { 28 ptNodePos, mBuffer.size()); 40 PatriciaTrieReadingUtils::readPtNodeInfo(mBuffer.data(), ptNodePos, mShortcutPolicy, 48 return PtNodeParams(ptNodePos, flags, mergedNodeCodePointCount, mergedNodeCodePoints,
|
patricia_trie_policy.cpp | 85 const int ptNodePos = getTerminalPtNodePosFromWordId(wordId); 122 if (ptNodePos == startPos) { 169 if (childrenPos > ptNodePos) { 273 // If we have looked through all the PtNodes and found no match, the ptNodePos is 284 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), 290 return getWordIdFromTerminalPtNodePos(ptNodePos); 299 const int ptNodePos = getTerminalPtNodePosFromWordId(wordId); 301 mPtNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); 344 const int ptNodePos = getTerminalPtNodePosFromWordId(wordId); 346 mPtNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); [all...] |
ver2_patricia_trie_node_reader.h | 41 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const;
|
patricia_trie_policy.h | 169 int getShortcutPositionOfPtNode(const int ptNodePos) const; 170 int getBigramsPositionOfPtNode(const int ptNodePos) const; 171 int createAndGetLeavingChildNode(const DicNode *const dicNode, const int ptNodePos, 173 int getWordIdFromTerminalPtNodePos(const int ptNodePos) const;
|
/packages/inputmethods/LatinIME/native/jni/src/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 | 136 /* static */ void PtReadingUtils::readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos, 142 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;
|
patricia_trie_reading_utils.h | 108 static void readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos,
|
/packages/inputmethods/LatinIME/native/jni/src/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 | 40 const int ptNodePos, const int siblingNodePos) const { 41 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) { 44 ptNodePos, mBuffer->getTailPosition()); 48 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos); 50 int pos = ptNodePos; 51 const int headPos = ptNodePos;
|
ver4_patricia_trie_policy.cpp | 94 const int ptNodePos = getTerminalPtNodePosFromWordId(wordId); 95 readingHelper.initWithPtNodePos(ptNodePos); 109 const int ptNodePos = readingHelper.getTerminalPtNodePositionOfWord(wordCodePoints.data(), 115 return getWordIdFromTerminalPtNodePos(ptNodePos); 124 const int ptNodePos = getTerminalPtNodePosFromWordId(wordId); 125 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); 165 const int ptNodePos = getTerminalPtNodePosFromWordId(wordId); 166 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); 186 if (bigramsIt.getBigramPos() == ptNodePos 242 int Ver4PatriciaTriePolicy::getShortcutPositionOfPtNode(const int ptNodePos) const [all...] |
ver4_patricia_trie_policy.h | 169 int getBigramsPositionOfPtNode(const int ptNodePos) const; 170 int getShortcutPositionOfPtNode(const int ptNodePos) const; 171 int getWordIdFromTerminalPtNodePos(const int ptNodePos) const;
|
ver4_patricia_trie_node_writer.h | 133 bool updatePtNodeFlags(const int ptNodePos, const bool isBlacklisted, const bool isNotAWord,
|
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_writing_helper.cpp | 227 const int ptNodePos = priorityQueue.top().getDictPos(); 230 ptNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); 235 AKLOGE("Cannot mark PtNode as willBecomeNonterminal. PtNode pos: %d", ptNodePos);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
AbstractDictDecoder.java | 87 public PtNodeInfo readPtNode(final int ptNodePos) {
|
BinaryDictIOUtils.java | 183 final int ptNodePos = dictDecoder.getPosition(); 184 final PtNodeInfo currentInfo = dictDecoder.readPtNode(ptNodePos); 199 return currentInfo.isTerminal() ? ptNodePos : FormatSpec.NOT_VALID_WORD;
|
DictDecoder.java | 45 * Reads PtNode from ptNodePos. 46 * @param ptNodePos the position of PtNode. 49 public PtNodeInfo readPtNode(final int ptNodePos);
|