Home
last modified time | relevance | path

Searched refs:DictionaryHeader (Results 1 – 21 of 21) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictUtils.java41 options.mAttributes.put(DictionaryHeader.DICTIONARY_LOCALE_KEY, "en_US"); in makeDictionaryOptions()
42 options.mAttributes.put(DictionaryHeader.DICTIONARY_ID_KEY, id); in makeDictionaryOptions()
43 options.mAttributes.put(DictionaryHeader.DICTIONARY_VERSION_KEY, version); in makeDictionaryOptions()
45 options.mAttributes.put(DictionaryHeader.HAS_HISTORICAL_INFO_KEY, in makeDictionaryOptions()
46 DictionaryHeader.ATTRIBUTE_VALUE_TRUE); in makeDictionaryOptions()
47 options.mAttributes.put(DictionaryHeader.USES_FORGETTING_CURVE_KEY, in makeDictionaryOptions()
48 DictionaryHeader.ATTRIBUTE_VALUE_TRUE); in makeDictionaryOptions()
DVer4DictDecoder.java42 public DictionaryHeader readHeader() throws IOException, UnsupportedFormatException { in readHeader()
48 final DictionaryHeader header = binaryDictionary.getHeader(); in readHeader()
64 final DictionaryHeader header = readHeader(); in readDictionaryBinary()
DVer4DictEncoder.java61 dict.mOptions.mAttributes.get(DictionaryHeader.DICTIONARY_LOCALE_KEY)), in writeDictionary()
69 DictionaryHeader.DICTIONARY_LOCALE_KEY)), in writeDictionary()
DBinaryDictDecoderEncoderTests.java283 final String codePointTableAttribute = DictionaryHeader.CODE_POINT_TABLE_KEY; in testCharacterTableIsPresent()
301 final DictionaryHeader fileHeader = dictDecoder.readHeader(); in testCharacterTableIsPresent()
494 DictionaryHeader fileHeader = null;
DDictDecoder.java42 public DictionaryHeader readHeader() throws IOException, UnsupportedFormatException; in readHeader()
DBinaryDictIOUtils.java153 final DictionaryHeader header = dictDecoder.readHeader(); in readUnigramsAndBigramsBinary()
DBinaryDictEncoderUtils.java793 CharEncoding.writeString(headerBuffer, DictionaryHeader.CODE_POINT_TABLE_KEY, null); in writeDictionaryHeader()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java28 import com.android.inputmethod.latin.makedict.DictionaryHeader;
84 testOptions.mAttributes.put(DictionaryHeader.DICTIONARY_VERSION_KEY, VERSION); in testGetRawDictWorks()
85 testOptions.mAttributes.put(DictionaryHeader.DICTIONARY_LOCALE_KEY, LOCALE); in testGetRawDictWorks()
86 testOptions.mAttributes.put(DictionaryHeader.DICTIONARY_ID_KEY, ID); in testGetRawDictWorks()
116 DictionaryHeader.DICTIONARY_VERSION_KEY)); in testGetRawDictWorks()
118 DictionaryHeader.DICTIONARY_LOCALE_KEY)); in testGetRawDictWorks()
120 DictionaryHeader.DICTIONARY_ID_KEY)); in testGetRawDictWorks()
197 final DecoderChainSpec<DictionaryHeader> spec = in runTestHeaderReaderProcessorWithOneSpec()
201 final DictionaryHeader header = spec.mResult; in runTestHeaderReaderProcessorWithOneSpec()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionary.java29 import com.android.inputmethod.latin.makedict.DictionaryHeader;
119 attributeMap.put(DictionaryHeader.USES_FORGETTING_CURVE_KEY, in getHeaderAttributeMap()
120 DictionaryHeader.ATTRIBUTE_VALUE_TRUE); in getHeaderAttributeMap()
121 attributeMap.put(DictionaryHeader.HAS_HISTORICAL_INFO_KEY, in getHeaderAttributeMap()
122 DictionaryHeader.ATTRIBUTE_VALUE_TRUE); in getHeaderAttributeMap()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DBinaryDictionaryUtils.java22 import com.android.inputmethod.latin.makedict.DictionaryHeader;
49 public static DictionaryHeader getHeader(final File dictFile) in getHeader()
54 public static DictionaryHeader getHeaderWithOffsetAndLength(final File dictFile, in getHeaderWithOffsetAndLength()
61 final DictionaryHeader header = binaryDictionary.getHeader(); in getHeaderWithOffsetAndLength()
DCombinedFormatUtils.java19 import com.android.inputmethod.latin.makedict.DictionaryHeader;
43 if (attributeMap.containsKey(DictionaryHeader.DICTIONARY_ID_KEY)) { in formatAttributeMap()
44 builder.append(attributeMap.get(DictionaryHeader.DICTIONARY_ID_KEY)); in formatAttributeMap()
47 if (key.equals(DictionaryHeader.DICTIONARY_ID_KEY)) { in formatAttributeMap()
DDictionaryHeaderUtils.java20 import com.android.inputmethod.latin.makedict.DictionaryHeader;
27 final DictionaryHeader header = DictionaryInfoUtils.getDictionaryFileHeaderOrNull( in getContentVersion()
DDictionaryInfoUtils.java36 import com.android.inputmethod.latin.makedict.DictionaryHeader;
406 public static DictionaryHeader getDictionaryFileHeaderOrNull(final File file,
409 final DictionaryHeader header =
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DHeader.java20 import com.android.inputmethod.latin.makedict.DictionaryHeader;
51 final DecoderChainSpec<DictionaryHeader> spec = in run()
59 final DictionaryHeader header = spec.mResult; in run()
DBinaryDictOffdeviceUtils.java22 import com.android.inputmethod.latin.makedict.DictionaryHeader;
149 public static class HeaderReaderProcessor implements InputProcessor<DictionaryHeader> {
154 public DictionaryHeader process(final InputStream input) throws IOException, in process()
190 return new DictionaryHeader(totalHeaderSize, new DictionaryOptions(attributes), in process()
DPackage.java19 import com.android.inputmethod.latin.makedict.DictionaryHeader;
82 final BinaryDictOffdeviceUtils.DecoderChainSpec<DictionaryHeader> decodedSpec = in run()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java27 import com.android.inputmethod.latin.makedict.DictionaryHeader;
213 attributeMap.put(DictionaryHeader.DICTIONARY_ID_KEY, mDictName); in getHeaderAttributeMap()
214 attributeMap.put(DictionaryHeader.DICTIONARY_LOCALE_KEY, mLocale.toString()); in getHeaderAttributeMap()
215 attributeMap.put(DictionaryHeader.DICTIONARY_VERSION_KEY, in getHeaderAttributeMap()
700 final DictionaryHeader header = binaryDictionary.getHeader(); in dumpAllWordsForDebug()
DBinaryDictionary.java30 import com.android.inputmethod.latin.makedict.DictionaryHeader;
243 public DictionaryHeader getHeader() throws UnsupportedFormatException { in getHeader()
261 final boolean hasHistoricalInfo = DictionaryHeader.ATTRIBUTE_VALUE_TRUE.equals( in getHeader()
262 attributes.get(DictionaryHeader.HAS_HISTORICAL_INFO_KEY)); in getHeader()
263 return new DictionaryHeader(outHeaderSize[0], new DictionaryOptions(attributes), in getHeader()
DBinaryDictionaryGetter.java26 import com.android.inputmethod.latin.makedict.DictionaryHeader;
208 final DictionaryHeader header = BinaryDictionaryUtils.getHeader(file); in hackCanUseDictionaryFile()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DDictionaryHeader.java28 public final class DictionaryHeader { class
60 public DictionaryHeader(final int headerSize, in DictionaryHeader() method in DictionaryHeader
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java34 import com.android.inputmethod.latin.makedict.DictionaryHeader;
529 attributeMap.put(DictionaryHeader.MAX_UNIGRAM_COUNT_KEY, String.valueOf(maxUnigramCount)); in testRandomOperationsAndFlashWithGC()
530 attributeMap.put(DictionaryHeader.MAX_BIGRAM_COUNT_KEY, String.valueOf(maxBigramCount)); in testRandomOperationsAndFlashWithGC()
660 attributeMap.put(DictionaryHeader.MAX_UNIGRAM_COUNT_KEY, String.valueOf(maxUnigramCount)); in testUnigramAndBigramCount()
661 attributeMap.put(DictionaryHeader.MAX_BIGRAM_COUNT_KEY, String.valueOf(maxBigramCount)); in testUnigramAndBigramCount()