Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java161 final FormatSpec.FormatOptions formatOptions) { in timeWritingDictToFile() argument
166 final DictEncoder dictEncoder = BinaryDictUtils.getDictEncoder(file, formatOptions); in timeWritingDictToFile()
172 dictEncoder.writeDictionary(dict, formatOptions); in timeWritingDictToFile()
205 final FormatSpec.FormatOptions formatOptions) { in outputOptions() argument
208 return result + " : version = " + formatOptions.mVersion; in outputOptions()
237 final int bufferType, final FormatSpec.FormatOptions formatOptions, in runReadAndWrite() argument
242 final File file = BinaryDictUtils.getDictFile(dictName, dictVersion, formatOptions, in runReadAndWrite()
246 BinaryDictUtils.makeDictionaryOptions(dictName, dictVersion, formatOptions)); in runReadAndWrite()
251 final long write = timeWritingDictToFile(file, dict, formatOptions); in runReadAndWrite()
255 + " : " + 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()
56 || formatOptions.mVersion == FormatSpec.VERSION201 in getDictFile()
57 || formatOptions.mVersion == FormatSpec.VERSION202) { in getDictFile()
59 } else if (formatOptions.mVersion == FormatSpec.VERSION4) { in getDictFile()
63 + formatOptions.mVersion); in getDictFile()
67 public static DictEncoder getDictEncoder(final File file, final FormatOptions formatOptions) { in getDictEncoder() argument
68 if (formatOptions.mVersion == FormatSpec.VERSION4) { in getDictEncoder()
[all …]
DVer2DictEncoder.java125 public void writeDictionary(final FusionDictionary dict, final FormatOptions formatOptions) in writeDictionary() argument
128 if (formatOptions.mVersion != FormatSpec.VERSION202) { in writeDictionary()
131 + formatOptions.mVersion); in writeDictionary()
141 if (mCodePointTableMode == CODE_POINT_TABLE_OFF || formatOptions.mVersion in writeDictionary()
148 BinaryDictEncoderUtils.writeDictionaryHeader(mOutStream, dict, formatOptions, in writeDictionary()
DVer4DictEncoder.java50 public void writeDictionary(FusionDictionary dict, FormatOptions formatOptions) in writeDictionary() argument
52 if (formatOptions.mVersion != FormatSpec.VERSION4) { in writeDictionary()
54 + formatOptions.mVersion); in writeDictionary()
DDictEncoder.java31 public void writeDictionary(final FusionDictionary dict, final FormatOptions formatOptions) in writeDictionary() argument
DBinaryDictEncoderUtils.java743 final FusionDictionary dict, final FormatOptions formatOptions, in writeDictionaryHeader() argument
746 final int version = formatOptions.mVersion; in writeDictionaryHeader()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DDictionaryHeader.java62 @Nonnull final FormatOptions formatOptions) throws UnsupportedFormatException { in DictionaryHeader() argument
64 mFormatOptions = formatOptions; in DictionaryHeader()
65 mBodyOffset = formatOptions.mVersion < FormatSpec.VERSION4 ? headerSize : 0; in DictionaryHeader()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java157 final FormatOptions formatOptions = BinaryDictUtils.STATIC_OPTIONS; in runTestHeaderReaderProcessorWithOneSpec() local
179 final DictEncoder dictEncoder = BinaryDictUtils.getDictEncoder(file, formatOptions); in runTestHeaderReaderProcessorWithOneSpec()
180 dictEncoder.writeDictionary(dict, formatOptions); in runTestHeaderReaderProcessorWithOneSpec()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDictionaryMaker.java290 final FormatSpec.FormatOptions formatOptions = new FormatSpec.FormatOptions(version); in writeBinaryDictionary() local
298 dictEncoder.writeDictionary(dict, formatOptions); in writeBinaryDictionary()