/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | FusionDictionaryTests.java | 21 import com.android.inputmethod.latin.makedict.FusionDictionary; 22 import com.android.inputmethod.latin.makedict.FusionDictionary.Node; 31 FusionDictionary dict = new FusionDictionary(new Node(), in testFindWordInTree() 32 new FusionDictionary.DictionaryOptions(new HashMap<String,String>(), false, false)); in testFindWordInTree() 35 assertNull(FusionDictionary.findWordInTree(dict.mRoot, "aaa")); in testFindWordInTree() 36 assertNotNull(FusionDictionary.findWordInTree(dict.mRoot, "abc")); in testFindWordInTree() 39 assertNull(FusionDictionary.findWordInTree(dict.mRoot, "aaa")); in testFindWordInTree() 40 assertNotNull(FusionDictionary.findWordInTree(dict.mRoot, "aa")); in testFindWordInTree() 44 assertNull(FusionDictionary.findWordInTree(dict.mRoot, "ba")); in testFindWordInTree() 45 assertNotNull(FusionDictionary.findWordInTree(dict.mRoot, "babcd")); in testFindWordInTree() [all …]
|
D | UserHistoryDictIOUtilsTests.java | 23 import com.android.inputmethod.latin.makedict.FusionDictionary; 24 import com.android.inputmethod.latin.makedict.FusionDictionary.CharGroup; 85 private void checkWordInFusionDict(final FusionDictionary dict, final String word, in checkWordInFusionDict() 87 final CharGroup group = FusionDictionary.findWordInTree(dict.mRoot, word); in checkWordInFusionDict() 96 private void checkWordsInFusionDict(final FusionDictionary dict, in checkWordsInFusionDict() 180 final FusionDictionary fusionDict = in testGenerateFusionDictionary()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictIOTests.java | 23 import com.android.inputmethod.latin.makedict.FusionDictionary.CharGroup; 24 import com.android.inputmethod.latin.makedict.FusionDictionary.Node; 25 import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString; 155 private void addUnigrams(final int number, final FusionDictionary dict, in addUnigrams() 170 private void addBigrams(final FusionDictionary dict, in addBigrams() 181 private long timeWritingDictToFile(final File file, final FusionDictionary dict, in timeWritingDictToFile() 204 private void checkDictionary(final FusionDictionary dict, final List<String> words, in checkDictionary() 210 final CharGroup cg = FusionDictionary.findWordInTree(dict.mRoot, word); in checkDictionary() 218 final CharGroup cg = FusionDictionary.findWordInTree(dict.mRoot, words.get(w1)); in checkDictionary() 226 final CharGroup group = FusionDictionary.findWordInTree(dict.mRoot, entry.getKey()); in checkDictionary() [all …]
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/ |
D | BinaryDictInputOutputTest.java | 19 import com.android.inputmethod.latin.makedict.FusionDictionary.DictionaryOptions; 20 import com.android.inputmethod.latin.makedict.FusionDictionary.Node; 43 final FusionDictionary dict = new FusionDictionary(new Node(), in testFlattenNodes()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | UserHistoryDictIOUtils.java | 25 import com.android.inputmethod.latin.makedict.FusionDictionary; 26 import com.android.inputmethod.latin.makedict.FusionDictionary.Node; 118 final FusionDictionary fusionDict = constructFusionDictionary(dict, bigrams); in writeDictionaryBinary() 132 /* packages for test */ static FusionDictionary constructFusionDictionary( in constructFusionDictionary() 134 final FusionDictionary fusionDict = new FusionDictionary(new Node(), in constructFusionDictionary() 135 new FusionDictionary.DictionaryOptions(new HashMap<String, String>(), false, in constructFusionDictionary() 158 if (FusionDictionary.findWordInTree(fusionDict.mRoot, word1) == null) { in constructFusionDictionary()
|
D | ExpandableBinaryDictionary.java | 25 import com.android.inputmethod.latin.makedict.FusionDictionary; 26 import com.android.inputmethod.latin.makedict.FusionDictionary.Node; 27 import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString; 78 private FusionDictionary mFusionDictionary; 168 mFusionDictionary = new FusionDictionary(new Node(), in clearFusionDictionary() 169 new FusionDictionary.DictionaryOptions(attributes, false, false)); in clearFusionDictionary()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/android/inputmethod/latin/dicttool/ |
D | XmlDictInputOutput.java | 19 import com.android.inputmethod.latin.makedict.FusionDictionary; 20 import com.android.inputmethod.latin.makedict.FusionDictionary.DictionaryOptions; 21 import com.android.inputmethod.latin.makedict.FusionDictionary.Node; 22 import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString; 73 FusionDictionary mDictionary; 92 public FusionDictionary getFinalDictionary() { in getFinalDictionary() 93 final FusionDictionary dict = mDictionary; in getFinalDictionary() 128 mDictionary = new FusionDictionary(new Node(), new DictionaryOptions(attributes, in startElement() 277 public static FusionDictionary readDictionaryXml(final InputStream unigrams, in readDictionaryXml() 293 final FusionDictionary dict = unigramHandler.getFinalDictionary(); in readDictionaryXml() [all …]
|
D | DictionaryMaker.java | 21 import com.android.inputmethod.latin.makedict.FusionDictionary; 207 FusionDictionary dictionary = readInputFromParsedArgs(parsedArgs); in main() 217 private static FusionDictionary readInputFromParsedArgs(final Arguments args) in readInputFromParsedArgs() 238 private static FusionDictionary readBinaryFile(final String binaryFilename) in readBinaryFile() 272 private static FusionDictionary readXmlFile(final String unigramXmlFilename, in readXmlFile() 292 private static void writeOutputToParsedArgs(final Arguments args, final FusionDictionary dict) in writeOutputToParsedArgs() 313 final FusionDictionary dict, final int version) in writeBinaryDictionary() 330 final FusionDictionary dict) throws FileNotFoundException, IOException { in writeXmlDictionary()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictInputOutput.java | 21 import com.android.inputmethod.latin.makedict.FusionDictionary.CharGroup; 22 import com.android.inputmethod.latin.makedict.FusionDictionary.DictionaryOptions; 23 import com.android.inputmethod.latin.makedict.FusionDictionary.Node; 24 import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString; 467 final int treeSize = FusionDictionary.countCharGroups(root); in flattenTree() 507 private static int findAddressOfWord(final FusionDictionary dict, final String word) { in findAddressOfWord() 508 return FusionDictionary.findWordInTree(dict.mRoot, word).mCachedAddress; in findAddressOfWord() 526 private static boolean computeActualNodeSize(final Node node, final FusionDictionary dict, in computeActualNodeSize() 618 private static ArrayList<Node> computeAddresses(final FusionDictionary dict, in computeAddresses() 845 private static final int makeOptionsValue(final FusionDictionary dictionary, in makeOptionsValue() [all …]
|
D | CharGroupInfo.java | 19 import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString;
|
D | FormatSpec.java | 20 import com.android.inputmethod.latin.makedict.FusionDictionary.DictionaryOptions;
|
D | Word.java | 19 import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString;
|
D | BinaryDictIOUtils.java | 23 import com.android.inputmethod.latin.makedict.FusionDictionary.CharGroup; 94 && info.mFrequency != FusionDictionary.CharGroup.NOT_A_TERMINAL) {// found word in readUnigramsAndBigramsBinaryInner()
|
D | FusionDictionary.java | 31 public final class FusionDictionary implements Iterable<Word> { class 270 public FusionDictionary(final Node root, final DictionaryOptions options) { in FusionDictionary() method in FusionDictionary
|