/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictUtils.java | 41 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()
|
D | Ver4DictDecoder.java | 42 public DictionaryHeader readHeader() throws IOException, UnsupportedFormatException { in readHeader() 48 final DictionaryHeader header = binaryDictionary.getHeader(); in readHeader() 64 final DictionaryHeader header = readHeader(); in readDictionaryBinary()
|
D | Ver4DictEncoder.java | 61 dict.mOptions.mAttributes.get(DictionaryHeader.DICTIONARY_LOCALE_KEY)), in writeDictionary() 69 DictionaryHeader.DICTIONARY_LOCALE_KEY)), in writeDictionary()
|
D | BinaryDictDecoderEncoderTests.java | 283 final String codePointTableAttribute = DictionaryHeader.CODE_POINT_TABLE_KEY; in testCharacterTableIsPresent() 301 final DictionaryHeader fileHeader = dictDecoder.readHeader(); in testCharacterTableIsPresent() 494 DictionaryHeader fileHeader = null;
|
D | DictDecoder.java | 42 public DictionaryHeader readHeader() throws IOException, UnsupportedFormatException; in readHeader()
|
D | BinaryDictIOUtils.java | 153 final DictionaryHeader header = dictDecoder.readHeader(); in readUnigramsAndBigramsBinary()
|
D | BinaryDictEncoderUtils.java | 793 CharEncoding.writeString(headerBuffer, DictionaryHeader.CODE_POINT_TABLE_KEY, null); in writeDictionaryHeader()
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtilsTests.java | 28 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/ |
D | UserHistoryDictionary.java | 29 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/ |
D | BinaryDictionaryUtils.java | 22 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()
|
D | CombinedFormatUtils.java | 19 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()
|
D | DictionaryHeaderUtils.java | 20 import com.android.inputmethod.latin.makedict.DictionaryHeader; 27 final DictionaryHeader header = DictionaryInfoUtils.getDictionaryFileHeaderOrNull( in getContentVersion()
|
D | DictionaryInfoUtils.java | 36 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/ |
D | Header.java | 20 import com.android.inputmethod.latin.makedict.DictionaryHeader; 51 final DecoderChainSpec<DictionaryHeader> spec = in run() 59 final DictionaryHeader header = spec.mResult; in run()
|
D | BinaryDictOffdeviceUtils.java | 22 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()
|
D | Package.java | 19 import com.android.inputmethod.latin.makedict.DictionaryHeader; 82 final BinaryDictOffdeviceUtils.DecoderChainSpec<DictionaryHeader> decodedSpec = in run()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ExpandableBinaryDictionary.java | 27 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()
|
D | BinaryDictionary.java | 30 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()
|
D | BinaryDictionaryGetter.java | 26 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/ |
D | DictionaryHeader.java | 28 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/ |
D | BinaryDictionaryTests.java | 34 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()
|