/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictEncoderUtils.java | 78 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 …]
|
D | Ver2DictEncoder.java | 209 private void writePtNodeFlags(final PtNode ptNode, in writePtNodeFlags() argument 211 final int childrenPos = BinaryDictEncoderUtils.getChildrenPosition(ptNode, in writePtNodeFlags() 214 BinaryDictEncoderUtils.makePtNodeFlags(ptNode, childrenPos), in writePtNodeFlags() 234 private void writeChildrenPosition(final PtNode ptNode, in writeChildrenPosition() argument 236 final int childrenPos = BinaryDictEncoderUtils.getChildrenPosition(ptNode, in writeChildrenPosition() 271 public void writePtNode(final PtNode ptNode, final FusionDictionary dict, in writePtNode() argument 273 writePtNodeFlags(ptNode, codePointToOneByteCodeMap); in writePtNode() 274 writeCharacters(ptNode.mChars, ptNode.hasSeveralChars(), codePointToOneByteCodeMap); in writePtNode() 275 writeFrequency(ptNode.getProbability()); in writePtNode() 276 writeChildrenPosition(ptNode, codePointToOneByteCodeMap); in writePtNode() [all …]
|
D | FusionDictionary.java | 558 PtNode ptNode = nodeArray.mData.get(i); in countPtNodes() local 559 if (null != ptNode.mChildren) in countPtNodes() 560 size += countPtNodes(ptNode.mChildren); in countPtNodes()
|
D | BinaryDictDecoderEncoderTests.java | 189 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); in checkDictionary() local 190 assertNotNull(ptNode); in checkDictionary() 197 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, in checkDictionary() local 199 assertNotNull(words.get(w1) + "," + words.get(w2), ptNode.getBigram(words.get(w2))); in checkDictionary()
|
D | DictEncoder.java | 37 public void writePtNode(final PtNode ptNode, final FusionDictionary dict, in writePtNode() argument
|
D | Ver4DictEncoder.java | 130 public void writePtNode(PtNode ptNode, FusionDictionary dict, in writePtNode() argument
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/ |
D | offdevice_intermediate_dict.cpp | 37 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()
|
D | offdevice_intermediate_dict_pt_node.h | 45 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/ |
D | Info.java | 59 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); in showWordInfo() local 60 if (null == ptNode) { in showWordInfo() 65 System.out.println(" Freq: " + ptNode.getProbability()); in showWordInfo() 66 if (ptNode.getIsNotAWord()) { in showWordInfo() 69 if (ptNode.getIsPossiblyOffensive()) { in showWordInfo() 72 final ArrayList<WeightedString> bigrams = ptNode.getBigrams(); in showWordInfo()
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/ |
D | FusionDictionaryTest.java | 76 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); in checkDictionary() 77 assertNotNull(ptNode); in checkDictionary()
|