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

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
FormatSpec.java 410 * @param dictFile the dictionary file.
414 public static DictDecoder getDictDecoder(final File dictFile, final int bufferType) {
415 if (dictFile.isDirectory()) {
416 return new Ver4DictDecoder(dictFile, bufferType);
417 } else if (dictFile.isFile()) {
418 return new Ver3DictDecoder(dictFile, bufferType);
423 public static DictDecoder getDictDecoder(final File dictFile,
425 if (dictFile.isDirectory()) {
426 return new Ver4DictDecoder(dictFile, factory);
427 } else if (dictFile.isFile())
    [all...]
Ver3DictUpdater.java 37 public Ver3DictUpdater(final File dictFile, final int factoryType) {
39 super(dictFile, ((factoryType & MASK_DICTBUFFER) == USE_BYTEARRAY)
Ver3DictEncoder.java 43 public Ver3DictEncoder(final File dictFile) {
44 mDictFile = dictFile;
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java 66 File dictFile = null;
68 dictFile = createEmptyDictionaryAndGetFile("TestBinaryDictionary");
72 BinaryDictionary binaryDictionary = new BinaryDictionary(dictFile.getAbsolutePath(),
73 0 /* offset */, dictFile.length(), true /* useFullEditDistance */,
80 dictFile.delete();
81 binaryDictionary = new BinaryDictionary(dictFile.getAbsolutePath(), 0 /* offset */,
82 dictFile.length(), true /* useFullEditDistance */, Locale.getDefault(),
90 File dictFile = null;
92 dictFile = createEmptyDictionaryAndGetFile("TestBinaryDictionary");
96 BinaryDictionary binaryDictionary = new BinaryDictionary(dictFile.getAbsolutePath()
    [all...]
BinaryDictionaryDecayingTests.java 92 File dictFile = null;
94 dictFile = createEmptyDictionaryAndGetFile("TestBinaryDictionary");
98 BinaryDictionary binaryDictionary = new BinaryDictionary(dictFile.getAbsolutePath(),
99 0 /* offset */, dictFile.length(), true /* useFullEditDistance */,
135 dictFile.delete();
139 File dictFile = null;
141 dictFile = createEmptyDictionaryAndGetFile("TestBinaryDictionary");
145 BinaryDictionary binaryDictionary = new BinaryDictionary(dictFile.getAbsolutePath(),
146 0 /* offset */, dictFile.length(), true /* useFullEditDistance */,
189 dictFile.delete()
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
UserHistoryDictionaryTests.java 159 final File dictFile = new File(getContext().getFilesDir(), fileName);
160 if (dictFile != null) {
161 assertTrue(dictFile.exists());
162 assertTrue(dictFile.length() >= MIN_USER_HISTORY_DICTIONARY_FILE_SIZE);
163 dictFile.delete();
230 final File dictFile = new File(getContext().getFilesDir(), fileName);
231 if (dictFile != null) {
232 assertTrue(dictFile.exists());
233 assertTrue(dictFile.length() >= MIN_USER_HISTORY_DICTIONARY_FILE_SIZE);
234 dictFile.delete()
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DecayingExpandableBinaryDictionaryBase.java 187 final File dictFile = new File(mContext.getFilesDir(), mFileName);
188 final DictDecoder dictDecoder = FormatSpec.getDictDecoder(dictFile,
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
BinaryDictionary.java 308 final File dictFile = new File(mDictFilePath);
309 mNativeDict = openNative(dictFile.getAbsolutePath(), 0 /* startOffset */,
310 dictFile.length(), true /* isUpdatable */);

Completed in 148 milliseconds