Home
last modified time | relevance | path

Searched refs:FusionDictionary (Results 1 – 16 of 16) sorted by relevance

/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDiff.java19 import com.android.inputmethod.latin.makedict.FusionDictionary;
20 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
55 final FusionDictionary dict0 = in run()
58 final FusionDictionary dict1 = in run()
76 private static boolean languageDiffers(final FusionDictionary dict0, in languageDiffers()
77 final FusionDictionary dict1) { in languageDiffers()
86 private static void diffHeaders(final FusionDictionary dict0, final FusionDictionary dict1) { in diffHeaders()
108 private static void diffWords(final FusionDictionary dict0, final FusionDictionary dict1) { in diffWords()
111 final PtNode word1PtNode = FusionDictionary.findWordInTree(dict1.mRootNodeArray, in diffWords()
142 final PtNode word0PtNode = FusionDictionary.findWordInTree(dict0.mRootNodeArray, in diffWords()
DInfo.java20 import com.android.inputmethod.latin.makedict.FusionDictionary;
21 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
39 private static void showInfo(final FusionDictionary dict, final boolean plumbing) { in showInfo()
58 private static void showWordInfo(final FusionDictionary dict, final String word) { in showWordInfo()
59 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); in showWordInfo()
100 final FusionDictionary dict = BinaryDictOffdeviceUtils.getDictionary(filename, in run()
DDictionaryMaker.java24 import com.android.inputmethod.latin.makedict.FusionDictionary;
201 FusionDictionary dictionary = readInputFromParsedArgs(parsedArgs); in main()
211 private static FusionDictionary readInputFromParsedArgs(final Arguments args) in readInputFromParsedArgs()
231 private static FusionDictionary readBinaryFile(final String binaryFilename) in readBinaryFile()
246 private static FusionDictionary readCombinedFile(final String combinedFilename) in readCombinedFile()
264 private static void writeOutputToParsedArgs(final Arguments args, final FusionDictionary dict) in writeOutputToParsedArgs()
287 final FusionDictionary dict, final int version, final int codePointTableMode) in writeBinaryDictionary()
310 final FusionDictionary dict) throws FileNotFoundException, IOException { in writeCombinedDictionary()
DCombinedInputOutput.java21 import com.android.inputmethod.latin.makedict.FusionDictionary;
22 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
77 public static FusionDictionary readDictionaryCombined(final BufferedReader reader) in readDictionaryCombined()
94 final FusionDictionary dict = in readDictionaryCombined()
95 new FusionDictionary(new PtNodeArray(), new DictionaryOptions(attributes)); in readDictionaryCombined()
199 final FusionDictionary dict) throws IOException { in writeDictionaryCombined()
DBinaryDictOffdeviceUtils.java26 import com.android.inputmethod.latin.makedict.FusionDictionary;
264 static FusionDictionary getDictionary(final String filename, final boolean report) { in getDictionary()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
DFusionDictionaryTest.java20 import com.android.inputmethod.latin.makedict.FusionDictionary;
21 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
22 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
70 private static void checkDictionary(final FusionDictionary dict, final ArrayList<String> words, in checkDictionary()
76 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); in checkDictionary()
90 private static void dumpDict(final FusionDictionary dict) { in dumpDict()
99 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), in testFusion()
DBinaryDictEncoderFlattenTreeTests.java20 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
34 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), in testFlattenNodes()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java30 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
31 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
131 private static void addUnigrams(final int number, final FusionDictionary dict, in addUnigrams()
141 private static void addBigrams(final FusionDictionary dict, in addBigrams()
160 private static long timeWritingDictToFile(final File file, final FusionDictionary dict, in timeWritingDictToFile()
183 private static void checkDictionary(final FusionDictionary dict, final List<String> words, in checkDictionary()
189 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word); in checkDictionary()
197 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, in checkDictionary()
217 FusionDictionary dict = null; in timeReadingAndCheckDict()
245 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), in runReadAndWrite()
[all …]
DVer2DictEncoder.java23 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
24 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
82 static CodePointTable makeCodePointTable(final FusionDictionary dict) { in makeCodePointTable()
125 public void writeDictionary(final FusionDictionary dict, final FormatOptions formatOptions) in writeDictionary()
249 final FusionDictionary dict) { in writeBigrams()
256 FusionDictionary.findWordInTree(dict.mRootNodeArray, bigram.mWord); in writeBigrams()
271 public void writePtNode(final PtNode ptNode, final FusionDictionary dict, in writePtNode()
DVer4DictDecoder.java57 public FusionDictionary readDictionaryBinary(final boolean deleteDictIfBroken) in readDictionaryBinary()
65 final FusionDictionary fusionDict = in readDictionaryBinary()
66 new FusionDictionary(new FusionDictionary.PtNodeArray(), header.mDictionaryOptions); in readDictionaryBinary()
DBinaryDictEncoderUtils.java21 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
22 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
214 final int treeSize = FusionDictionary.countPtNodes(rootNodeArray); in flattenTree()
320 final FusionDictionary dict, in computeActualPtNodeArraySize()
341 FusionDictionary.findWordInTree(dict.mRootNodeArray, bigram.mWord)); in computeActualPtNodeArraySize()
406 /* package */ static ArrayList<PtNodeArray> computeAddresses(final FusionDictionary dict, in computeAddresses()
652 /* package */ static void writePlacedPtNodeArray(final FusionDictionary dict, in writePlacedPtNodeArray()
743 final FusionDictionary dict, final FormatOptions formatOptions, in writeDictionaryHeader()
DDictEncoder.java21 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
31 public void writeDictionary(final FusionDictionary dict, final FormatOptions formatOptions) in writeDictionary()
37 public void writePtNode(final PtNode ptNode, final FusionDictionary dict, in writePtNode()
DVer4DictEncoder.java25 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNode;
50 public void writeDictionary(FusionDictionary dict, FormatOptions formatOptions) in writeDictionary()
130 public void writePtNode(PtNode ptNode, FusionDictionary dict, in writePtNode()
DDictDecoder.java62 public FusionDictionary readDictionaryBinary(final boolean deleteDictIfBroken) in readDictionaryBinary()
DFusionDictionary.java33 public final class FusionDictionary implements Iterable<WordProperty> { class
233 public FusionDictionary(final PtNodeArray rootNodeArray, final DictionaryOptions options) { in FusionDictionary() method in FusionDictionary
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java32 import com.android.inputmethod.latin.makedict.FusionDictionary;
33 import com.android.inputmethod.latin.makedict.FusionDictionary.PtNodeArray;
87 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), testOptions); in testGetRawDictWorks()
113 final FusionDictionary resultDict = in testGetRawDictWorks()
122 FusionDictionary.findWordInTree(resultDict.mRootNodeArray, "foo").getProbability(), in testGetRawDictWorks()
169 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), in runTestHeaderReaderProcessorWithOneSpec()