HomeSort by relevance Sort by last modified time
    Searched full:dictfile (Results 1 - 13 of 13) sorted by null

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
BinaryDictionaryUtils.java 49 public static DictionaryHeader getHeader(final File dictFile)
51 return getHeaderWithOffsetAndLength(dictFile, 0 /* offset */, dictFile.length());
54 public static DictionaryHeader getHeaderWithOffsetAndLength(final File dictFile,
58 dictFile.getAbsolutePath(), offset, length,
69 public static boolean renameDict(final File dictFile, final File newDictFile) {
70 if (dictFile.isFile()) {
71 return dictFile.renameTo(newDictFile);
72 } else if (dictFile.isDirectory()) {
73 final String dictName = dictFile.getName()
    [all...]
  /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/
DictionaryStats.java 40 @Nullable final File dictFile,
44 mDictFileSize = (dictFile == null || !dictFile.exists()) ? 0 : dictFile.length();
ContactsBinaryDictionary.java 54 final File dictFile, final String name) {
55 super(context, getDictName(name, locale, dictFile), locale, Dictionary.TYPE_CONTACTS,
56 dictFile);
66 final File dictFile, final String dictNamePrefix, @Nullable final String account) {
67 return new ContactsBinaryDictionary(context, locale, dictFile, dictNamePrefix + NAME);
UserBinaryDictionary.java 60 final File dictFile, final String name) {
61 super(context, getDictName(name, locale, dictFile), locale, Dictionary.TYPE_USER, dictFile);
96 final Context context, final Locale locale, final File dictFile,
100 dictFile, dictNamePrefix + NAME);
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...]
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);
  /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/
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...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
UserHistoryDictionary.java 49 super(context, getUserHistoryDictName(NAME, locale, null /* dictFile */, account), locale, Dictionary.TYPE_USER_HISTORY, null);
60 @Nullable final File dictFile, @Nullable final String account) {
62 return getDictName(name, locale, dictFile);
64 return getUserHistoryDictNamePerAccount(name, locale, dictFile, account);
71 @Nullable final File dictFile, @Nullable final String account) {
72 if (dictFile != null) {
73 return dictFile.getName();
86 final File dictFile, final String dictNamePrefix, @Nullable final String account) {
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
BinaryDictIOUtils.java 40 * @param dictFile the dictionary file.
44 public static DictDecoder getDictDecoder(final File dictFile, final long offset,
46 return new Ver4DictDecoder(dictFile);
49 public static DictDecoder getDictDecoder(final File dictFile, final long offset,
51 return new Ver4DictDecoder(dictFile);
54 public static DictDecoder getDictDecoder(final File dictFile, final long offset,
56 return getDictDecoder(dictFile, offset, length, DictDecoder.USE_READONLY_BYTEBUFFER);
  /external/srtp/test/
rtpw.c 126 char *dictfile = DICT_FILE; local
423 dict = fopen (dictfile, "r");
425 fprintf(stderr, "%s: couldn't open file %s\n", argv[0], dictfile);

Completed in 3310 milliseconds