Home
last modified time | relevance | path

Searched refs:formatOptions (Results 1 – 8 of 8) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java176 final FormatSpec.FormatOptions formatOptions) { in timeWritingDictToFile() argument
181 final DictEncoder dictEncoder = BinaryDictUtils.getDictEncoder(file, formatOptions); in timeWritingDictToFile()
187 dictEncoder.writeDictionary(dict, formatOptions); in timeWritingDictToFile()
234 final FormatSpec.FormatOptions formatOptions) { in outputOptions() argument
237 return result + " : version = " + formatOptions.mVersion; in outputOptions()
267 final int bufferType, final FormatSpec.FormatOptions formatOptions, in runReadAndWrite() argument
272 final File file = BinaryDictUtils.getDictFile(dictName, dictVersion, formatOptions, in runReadAndWrite()
276 BinaryDictUtils.makeDictionaryOptions(dictName, dictVersion, formatOptions)); in runReadAndWrite()
281 final long write = timeWritingDictToFile(file, dict, formatOptions); in runReadAndWrite()
285 + " : " + outputOptions(bufferType, formatOptions); in runReadAndWrite()
[all …]
DBinaryDictUtils.java39 final FormatSpec.FormatOptions formatOptions) { in makeDictionaryOptions() argument
44 if (formatOptions.mHasTimestamp) { in makeDictionaryOptions()
54 final FormatOptions formatOptions, final File directory) { in getDictFile() argument
55 if (formatOptions.mVersion == FormatSpec.VERSION2) { in getDictFile()
57 } else if (formatOptions.mVersion == FormatSpec.VERSION4) { in getDictFile()
61 + formatOptions.mVersion); in getDictFile()
65 public static DictEncoder getDictEncoder(final File file, final FormatOptions formatOptions) { in getDictEncoder() argument
66 if (formatOptions.mVersion == FormatSpec.VERSION4) { in getDictEncoder()
71 } else if (formatOptions.mVersion == FormatSpec.VERSION2) { in getDictEncoder()
75 + formatOptions.mVersion); in getDictEncoder()
DVer2DictEncoder.java72 public void writeDictionary(final FusionDictionary dict, final FormatOptions formatOptions) in writeDictionary() argument
74 if (formatOptions.mVersion > FormatSpec.VERSION2) { in writeDictionary()
77 + formatOptions.mVersion); in writeDictionary()
83 BinaryDictEncoderUtils.writeDictionaryHeader(mOutStream, dict, formatOptions); in writeDictionary()
DVer4DictEncoder.java49 public void writeDictionary(FusionDictionary dict, FormatOptions formatOptions) in writeDictionary() argument
51 if (formatOptions.mVersion != FormatSpec.VERSION4) { in writeDictionary()
53 + formatOptions.mVersion); in writeDictionary()
DBinaryDictEncoderUtils.java823 final FusionDictionary dict, final FormatOptions formatOptions) in writeDictionaryHeader() argument
825 final int version = formatOptions.mVersion; in writeDictionaryHeader()
DDictEncoder.java30 public void writeDictionary(final FusionDictionary dict, final FormatOptions formatOptions) in writeDictionary() argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DDictionaryHeader.java52 final FormatOptions formatOptions) throws UnsupportedFormatException { in DictionaryHeader() argument
54 mFormatOptions = formatOptions; in DictionaryHeader()
55 mBodyOffset = formatOptions.mVersion < FormatSpec.VERSION4 ? headerSize : 0; in DictionaryHeader()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDictionaryMaker.java361 final FormatSpec.FormatOptions formatOptions = new FormatSpec.FormatOptions(version); in writeBinaryDictionary() local
368 dictEncoder.writeDictionary(dict, formatOptions); in writeBinaryDictionary()