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

  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
Header.java 50 final File dictFile = new File(filename);
52 BinaryDictOffdeviceUtils.decodeDictionaryForProcess(dictFile,
60 System.out.println("Dictionary : " + dictFile.getAbsolutePath());
61 System.out.println("Size : " + dictFile.length() + " bytes");
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
UserHistoryDictionaryTests.java 49 final File dictFile) {
52 if (!dictFile.exists()) {
54 Log.d(TAG, dictFile + " is not existing. Wait "
56 printAllFiles(dictFile.getParentFile());
62 assertTrue("Following dictionary file doesn't exist: " + dictFile, dictFile.exists());
111 null /* dictFile */,
113 final File dictFile = ExpandableBinaryDictionary.getDictFile(
114 mContext, dictName, null /* dictFile */);
123 assertDictionaryExists(dict, dictFile);
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
BinaryDictionary.java 531 final File dictFile = new File(mDictFilePath);
535 loadDictionary(dictFile.getAbsolutePath(), 0 /* startOffset */,
536 dictFile.length(), mIsUpdatable);
609 final File dictFile = new File(mDictFilePath);
611 if (!FileUtils.deleteRecursively(dictFile)) {
614 if (!BinaryDictionaryUtils.renameDict(tmpDictFile, dictFile)) {
617 loadDictionary(dictFile.getAbsolutePath(), 0 /* startOffset */,
618 dictFile.length(), mIsUpdatable);
DictionaryFacilitatorImpl.java 252 final Context context, final Locale locale, final File dictFile,
263 new Object[] { context, locale, dictFile, dictNamePrefix, account });
340 subDict = getSubDict(subDictType, context, newLocale, null /* dictFile */,
433 final File dictFile = dictionaryFiles.get(dictType);
435 dictType, context, locale, dictFile, "" /* dictNamePrefix */, account);
ExpandableBinaryDictionary.java 57 * getDictionary(Context context, Locale locale, File dictFile, String dictNamePrefix)
139 * @param dictFile dictionary file path. if null, use default dictionary path based on
143 final Locale locale, final String dictType, final File dictFile) {
147 mDictFile = getDictFile(context, dictName, dictFile);
155 final File dictFile) {
156 return (dictFile != null) ? dictFile
161 final File dictFile) {
162 return dictFile != null ? dictFile.getName() : name + "." + locale.toString()
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java 57 for (final File dictFile : mDictFilesToBeDeleted) {
58 dictFile.delete();
72 final File dictFile = createEmptyVer4DictionaryAndGetFile(formatVersion,
74 mDictFilesToBeDeleted.add(dictFile);
75 return dictFile;
96 private static BinaryDictionary getBinaryDictionary(final File dictFile) {
97 return new BinaryDictionary(dictFile.getAbsolutePath(),
98 0 /* offset */, dictFile.length(), true /* useFullEditDistance */,
103 final File dictFile = createEmptyDictionaryAndGetFile(formatVersion);
104 return new BinaryDictionary(dictFile.getAbsolutePath()
    [all...]

Completed in 2291 milliseconds