HomeSort by relevance Sort by last modified time
    Searched refs:dictDecoder (Results 1 - 12 of 12) sorted by null

  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
Ver3DictDecoderTests.java 20 import com.android.inputmethod.latin.makedict.DictDecoder.DictionaryBufferFactory;
21 import com.android.inputmethod.latin.makedict.DictDecoder.DictionaryBufferFromByteArrayFactory;
22 import com.android.inputmethod.latin.makedict.DictDecoder.
24 import com.android.inputmethod.latin.makedict.DictDecoder.
71 final Ver3DictDecoder dictDecoder = new Ver3DictDecoder(testFile, factory);
73 dictDecoder.openDictBuffer();
81 dictDecoder.openDictBuffer();
86 assertEquals(testFile.length(), dictDecoder.getDictBuffer().capacity());
113 final Ver3DictDecoder dictDecoder = new Ver3DictDecoder(testFile, factory);
117 dictDecoder.getDictBuffer())
    [all...]
BinaryDictIOUtilsTests.java 113 private static void printNode(final Ver3DictDecoder dictDecoder,
115 final DictBuffer dictBuffer = dictDecoder.getDictBuffer();
120 final PtNodeInfo currentInfo = dictDecoder.readPtNode(dictBuffer.position(),
131 private static void printBinaryFile(final Ver3DictDecoder dictDecoder)
133 final FileHeader fileHeader = dictDecoder.readHeader();
134 final DictBuffer dictBuffer = dictDecoder.getDictBuffer();
136 printNode(dictDecoder, fileHeader.mFormatOptions);
144 final Ver3DictDecoder dictDecoder = new Ver3DictDecoder(file,
145 DictDecoder.USE_READONLY_BYTEBUFFER);
146 position = dictDecoder.getTerminalPosition(word)
    [all...]
BinaryDictDecoderEncoderTests.java 270 private DictDecoder getDictDecoder(final File file, final int bufferType,
290 final DictDecoder dictDecoder = getDictDecoder(file, bufferType, formatOptions,
293 dict = dictDecoder.readDictionaryBinary(null, false /* deleteDictIfBroken */);
451 final DictDecoder dictDecoder = getDictDecoder(file, bufferType, formatOptions,
454 dictDecoder.readUnigramsAndBigramsBinary(resultWords, resultFreqs, resultBigrams);
541 private String getWordFromBinary(final DictDecoder dictDecoder, final int address) {
542 if (dictDecoder.getPosition() != 0) dictDecoder.setPosition(0)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
BinaryDictDecoderUtils.java 338 * @param dictDecoder the dict decoder.
344 /* package for tests */ static WeightedString getWordAtPosition(final DictDecoder dictDecoder,
347 final int originalPos = dictDecoder.getPosition();
348 dictDecoder.setPosition(pos);
351 result = getWordAtPositionWithParentAddress(dictDecoder, pos, formatOptions);
353 result = getWordAtPositionWithoutParentAddress(dictDecoder, headerSize, pos,
357 dictDecoder.setPosition(originalPos);
362 private static WeightedString getWordAtPositionWithParentAddress(final DictDecoder dictDecoder,
    [all...]
BinaryDictIOUtils.java 64 private static void readUnigramsAndBigramsBinaryInner(final DictDecoder dictDecoder,
85 if (dictDecoder.getPosition() != p.mAddress) dictDecoder.setPosition(p.mAddress);
89 p.mNumOfPtNode = dictDecoder.readPtNodeCount();
97 PtNodeInfo info = dictDecoder.readPtNode(p.mAddress, formatOptions);
117 dictDecoder.readAndFollowForwardLink();
118 if (hasValidForwardLinkAddress && dictDecoder.hasNextPtNodeArray()) {
121 p.mAddress = dictDecoder.getPosition();
130 p.mAddress = dictDecoder.getPosition()
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
BinaryDictOffdeviceUtilsTests.java 19 import com.android.inputmethod.latin.makedict.DictDecoder;
72 final DictDecoder dictDecoder = FormatSpec.getDictDecoder(decodeSpec.mFile);
73 final FusionDictionary resultDict = dictDecoder.readDictionaryBinary(
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DecayingExpandableBinaryDictionaryBase.java 28 import com.android.inputmethod.latin.makedict.DictDecoder;
188 final DictDecoder dictDecoder = FormatSpec.getDictDecoder(dictFile,
189 DictDecoder.USE_BYTEARRAY);
190 if (dictDecoder == null) {
197 dictDecoder.openDictBuffer();
198 UserHistoryDictIOUtils.readDictionaryBinary(dictDecoder, listener);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
UserHistoryDictIOUtilsTests.java 24 import com.android.inputmethod.latin.makedict.DictDecoder;
146 final DictDecoder dictDecoder = FormatSpec.getDictDecoder(file, DictDecoder.USE_BYTEARRAY);
148 dictDecoder.openDictBuffer();
154 UserHistoryDictIOUtils.readDictionaryBinary(dictDecoder, listener);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
BinaryDictionaryGetter.java 24 import com.android.inputmethod.latin.makedict.DictDecoder;
232 final DictDecoder dictDecoder = FormatSpec.getDictDecoder(f);
233 final FileHeader header = dictDecoder.readHeader();
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
UserHistoryDictIOUtils.java 23 import com.android.inputmethod.latin.makedict.DictDecoder;
137 public static void readDictionaryBinary(final DictDecoder dictDecoder,
143 dictDecoder.readUnigramsAndBigramsBinary(unigrams, frequencies, bigrams);
  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
BinaryDictOffdeviceUtils.java 20 import com.android.inputmethod.latin.makedict.DictDecoder;
194 final DictDecoder dictDecoder = FormatSpec.getDictDecoder(decodedSpec.mFile,
195 DictDecoder.USE_BYTEARRAY);
201 return dictDecoder.readDictionaryBinary(null, false /* deleteDictIfBroken */);
DictionaryMaker.java 20 import com.android.inputmethod.latin.makedict.DictDecoder;
270 final DictDecoder dictDecoder = FormatSpec.getDictDecoder(file);
271 return dictDecoder.readDictionaryBinary(null, false /* deleteDictIfBroken */);

Completed in 57 milliseconds