Home
last modified time | relevance | path

Searched refs:PtNodeArray (Results 1 – 9 of 9) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java22 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
88 private static int getPtNodeCountSize(final PtNodeArray nodeArray) { in getPtNodeCountSize()
121 private static void calculatePtNodeArrayMaximumSize(final PtNodeArray ptNodeArray, in calculatePtNodeArrayMaximumSize()
212 /* package for tests */ static ArrayList<PtNodeArray> flattenTree( in flattenTree()
213 final PtNodeArray rootNodeArray) { in flattenTree()
216 final ArrayList<PtNodeArray> flatTree = new ArrayList<>(treeSize); in flattenTree()
220 private static ArrayList<PtNodeArray> flattenTreeInner(final ArrayList<PtNodeArray> list, in flattenTreeInner()
221 final PtNodeArray ptNodeArray) { in flattenTreeInner()
263 private static int getOffsetToTargetNodeArrayDuringUpdate(final PtNodeArray currentNodeArray, in getOffsetToTargetNodeArrayDuringUpdate()
264 final int offsetFromStartOfCurrentNodeArray, final PtNodeArray targetNodeArray) { in getOffsetToTargetNodeArrayDuringUpdate()
[all …]
DFusionDictionary.java46 public static final class PtNodeArray { class in FusionDictionary
59 public PtNodeArray() { in PtNodeArray() method in FusionDictionary.PtNodeArray
62 public PtNodeArray(ArrayList<PtNode> data) { in PtNodeArray() method in FusionDictionary.PtNodeArray
89 PtNodeArray mChildren;
116 final boolean isPossiblyOffensive, final PtNodeArray children) { in PtNode()
127 mChildren = new PtNodeArray(); in addChild()
231 public final PtNodeArray mRootNodeArray;
233 public FusionDictionary(final PtNodeArray rootNodeArray, final DictionaryOptions options) { in FusionDictionary()
285 private static void checkStack(PtNodeArray ptNodeArray) { in checkStack()
341 PtNodeArray currentNodeArray = mRootNodeArray; in add()
[all …]
DVer2DictEncoder.java24 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
160 ArrayList<PtNodeArray> flatNodes = BinaryDictEncoderUtils.flattenTree(dict.mRootNodeArray); in writeDictionary()
169 final PtNodeArray lastNodeArray = flatNodes.get(flatNodes.size() - 1); in writeDictionary()
175 for (PtNodeArray nodeArray : flatNodes) { in writeDictionary()
DBinaryDictDecoderEncoderTests.java31 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
245 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), in runReadAndWrite()
293 final FusionDictionary sourcedict = new FusionDictionary(new PtNodeArray(), in testCharacterTableIsPresent()
439 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(),
534 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(),
607 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(),
632 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(),
DVer4DictDecoder.java66 new FusionDictionary(new FusionDictionary.PtNodeArray(), header.mDictionaryOptions); in readDictionaryBinary()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderFlattenTreeTests.java20 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
34 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), in testFlattenNodes()
46 final ArrayList<PtNodeArray> result = in testFlattenNodes()
50 final PtNodeArray n = result.remove(0); in testFlattenNodes()
DFusionDictionaryTest.java22 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
99 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), in testFusion()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java33 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
87 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), testOptions); in testGetRawDictWorks()
169 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), in runTestHeaderReaderProcessorWithOneSpec()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java22 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
95 new FusionDictionary(new PtNodeArray(), new DictionaryOptions(attributes)); in readDictionaryCombined()