Home
last modified time | relevance | path

Searched refs:ptNode (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java78 private static int getPtNodeCharactersSize(final PtNode ptNode, in getPtNodeCharactersSize() argument
80 return getPtNodeCharactersSize(ptNode.mChars, codePointToOneByteCodeMap); in getPtNodeCharactersSize()
98 private static int getPtNodeMaximumSize(final PtNode ptNode, in getPtNodeMaximumSize() argument
100 int size = getNodeHeaderSize(ptNode, codePointToOneByteCodeMap); in getPtNodeMaximumSize()
101 if (ptNode.isTerminal()) { in getPtNodeMaximumSize()
106 if (null != ptNode.mBigrams) { in getPtNodeMaximumSize()
109 * ptNode.mBigrams.size(); in getPtNodeMaximumSize()
137 private static int getNodeHeaderSize(final PtNode ptNode, in getNodeHeaderSize() argument
139 return FormatSpec.PTNODE_FLAGS_SIZE + getPtNodeCharactersSize(ptNode, in getNodeHeaderSize()
241 for (PtNode ptNode : branches) { in flattenTreeInner()
[all …]
DDictEncoder.java37 public void writePtNode(final PtNode ptNode, final FusionDictionary dict, in writePtNode() argument
DFusionDictionary.java558 PtNode ptNode = nodeArray.mData.get(i); in countPtNodes() local
559 if (null != ptNode.mChildren) in countPtNodes()
560 size += countPtNodes(ptNode.mChildren); in countPtNodes()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/
Doffdevice_intermediate_dict.cpp37 const auto &ptNode = *ptNodeIt; in addWordInner() local
38 const CodePointArrayView ptNodeCodePoints = ptNode->getPtNodeCodePoints(); in addWordInner()
50 ptNode->getChildrenPtNodeArray()); in addWordInner()
58 if (ptNode->getWordProperty()) { in addWordInner()
63 std::make_shared<OffdeviceIntermediateDictPtNode>(wordProperty, *ptNode)); in addWordInner()
78 ptNodeCodePoints.skip(i), *ptNode)); in addWordInner()
96 for (const auto ptNode : ptNodeArray->getPtNodeList()) { in getWordProperty() local
97 const CodePointArrayView ptNodeCodePoints = ptNode->getPtNodeCodePoints(); in getWordProperty()
112 return ptNode->getWordProperty(); in getWordProperty()
114 ptNodeArray = &ptNode->getChildrenPtNodeArray(); in getWordProperty()
Doffdevice_intermediate_dict_pt_node.h45 const OffdeviceIntermediateDictPtNode &ptNode) in OffdeviceIntermediateDictPtNode() argument
47 mChildrenPtNodeArray(ptNode.mChildrenPtNodeArray), in OffdeviceIntermediateDictPtNode()
48 mWortProperty(new WordProperty(*ptNode.mWortProperty)) {} in OffdeviceIntermediateDictPtNode()
52 const OffdeviceIntermediateDictPtNode &ptNode) in OffdeviceIntermediateDictPtNode() argument
53 : mPtNodeCodePoints(ptNode.mPtNodeCodePoints), in OffdeviceIntermediateDictPtNode()
54 mChildrenPtNodeArray(ptNode.mChildrenPtNodeArray), in OffdeviceIntermediateDictPtNode()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DInfo.java68 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); in showWordInfo() local
69 if (null == ptNode) { in showWordInfo()
74 System.out.println(" Freq: " + ptNode.getProbability()); in showWordInfo()
75 if (ptNode.getIsNotAWord()) { in showWordInfo()
78 if (ptNode.getIsPossiblyOffensive()) { in showWordInfo()
81 final ArrayList<WeightedString> shortcutTargets = ptNode.getShortcutTargets(); in showWordInfo()
92 final ArrayList<WeightedString> bigrams = ptNode.getBigrams(); in showWordInfo()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
DFusionDictionaryTest.java76 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); in checkDictionary()
77 assertNotNull(ptNode); in checkDictionary()