Home
last modified time | relevance | path

Searched refs:dictName (Results 1 – 14 of 14) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java240 final String dictName = "runReadAndWrite"; in runReadAndWrite() local
242 final File file = BinaryDictUtils.getDictFile(dictName, dictVersion, formatOptions, in runReadAndWrite()
246 BinaryDictUtils.makeDictionaryOptions(dictName, dictVersion, formatOptions)); in runReadAndWrite()
281 final String dictName = "codePointTableTest"; in testCharacterTableIsPresent() local
284 final File file = BinaryDictUtils.getDictFile(dictName, dictVersion, in testCharacterTableIsPresent()
294 BinaryDictUtils.makeDictionaryOptions(dictName, dictVersion, formatOptions)); in testCharacterTableIsPresent()
433 final String dictName = "runReadUnigrams";
435 final File file = BinaryDictUtils.getDictFile(dictName, dictVersion, formatOptions,
440 BinaryDictUtils.makeDictionaryOptions(dictName, dictVersion, formatOptions));
529 final String dictName = "testGetTerminalPosition";
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DDebugSettingsFragment.java62 for (final String dictName : DictionaryFacilitatorImpl.DICT_TYPE_TO_CLASS.keySet()) { in onCreate()
63 final Preference pref = new DictDumpPreference(getActivity(), dictName); in onCreate()
95 public DictDumpPreference(final Context context, final String dictName) { in DictDumpPreference() argument
97 setKey(PREF_KEY_DUMP_DICT_PREFIX + dictName); in DictDumpPreference()
98 setTitle("Dump " + dictName + " dictionary"); in DictDumpPreference()
99 mDictName = dictName; in DictDumpPreference()
108 final String dictName = dictDumpPref.mDictName; in onPreferenceClick() local
111 intent.putExtra(DictionaryDumpBroadcastReceiver.DICTIONARY_NAME_KEY, dictName); in onPreferenceClick()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java142 public ExpandableBinaryDictionary(final Context context, final String dictName, in ExpandableBinaryDictionary() argument
145 mDictName = dictName; in ExpandableBinaryDictionary()
147 mDictFile = getDictFile(context, dictName, dictFile); in ExpandableBinaryDictionary()
154 public static File getDictFile(final Context context, final String dictName, in getDictFile() argument
157 : new File(context.getFilesDir(), dictName + DICT_FILE_EXTENSION); in getDictFile()
651 final String dictName = mDictName; in getDictionaryStats() local
658 result.set(new DictionaryStats(mLocale, dictName, dictName, dictFile, 0)); in getDictionaryStats()
690 final String dictName = mDictName; in dumpAllWordsForDebug() local
694 Log.d(tag, "Dump dictionary: " + dictName + " for " + mLocale); in dumpAllWordsForDebug()
DDictionaryFacilitatorImpl.java463 public ExpandableBinaryDictionary getSubDictForTesting(final String dictName) { in getSubDictForTesting() argument
464 return mDictionaryGroup.getSubDict(dictName); in getSubDictForTesting()
593 private void removeWord(final String dictName, final String word) { in removeWord() argument
594 final ExpandableBinaryDictionary dictionary = mDictionaryGroup.getSubDict(dictName); in removeWord()
696 private boolean clearSubDictionary(final String dictName) { in clearSubDictionary() argument
697 final ExpandableBinaryDictionary dictionary = mDictionaryGroup.getSubDict(dictName); in clearSubDictionary()
711 public void dumpDictionaryForDebug(final String dictName) { in dumpDictionaryForDebug() argument
712 final ExpandableBinaryDictionary dictToDump = mDictionaryGroup.getSubDict(dictName); in dumpDictionaryForDebug()
714 Log.e(TAG, "Cannot dump " + dictName + ". " in dumpDictionaryForDebug()
DDictionaryDumpBroadcastReceiver.java41 final String dictName = intent.getStringExtra(DICTIONARY_NAME_KEY); in onReceive() local
42 if (dictName == null) { in onReceive()
47 mLatinIme.dumpDictionaryForDebug(dictName); in onReceive()
DDictionaryFacilitator.java136 ExpandableBinaryDictionary getSubDictForTesting(final String dictName); in getSubDictForTesting() argument
173 void dumpDictionaryForDebug(final String dictName); in dumpDictionaryForDebug() argument
DLatinIME.java1935 public void dumpDictionaryForDebug(final String dictName) { in dumpDictionaryForDebug() argument
1939 mDictionaryFacilitator.dumpDictionaryForDebug(dictName); in dumpDictionaryForDebug()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryTests.java122 final String dictName = UserHistoryDictionary.getUserHistoryDictName( in doTestRandomWords() local
127 getContext(), dictName, null /* dictFile */); in doTestRandomWords()
174 final String dictName = UserHistoryDictionary.getUserHistoryDictName( in doTestStressTestForSwitchingLanguagesAndAddingWords() local
178 getContext(), dictName, null /* dictFile */); in doTestStressTestForSwitchingLanguagesAndAddingWords()
219 final String dictName = UserHistoryDictionary.getUserHistoryDictName( in doTestAddManyWords() local
222 getContext(), dictName, null /* dictFile */); in doTestAddManyWords()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.cpp76 char dictName[dictNameBufSize]; in flushHeaderAndDictBuffers() local
77 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in flushHeaderAndDictBuffers()
78 const int dictPathBufSize = FileUtils::getFilePathBufSize(tmpDirPath, dictName); in flushHeaderAndDictBuffers()
80 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); in flushHeaderAndDictBuffers()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_dict_buffers.cpp92 char dictName[dictNameBufSize]; in flushHeaderAndDictBuffers() local
93 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in flushHeaderAndDictBuffers()
94 const int dictPathBufSize = FileUtils::getFilePathBufSize(tmpDirPath, dictName); in flushHeaderAndDictBuffers()
96 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); in flushHeaderAndDictBuffers()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java156 final String dictName = "testHeaderReaderProcessor"; in runTestHeaderReaderProcessorWithOneSpec() local
178 File file = File.createTempFile(dictName, ".tmp"); in runTestHeaderReaderProcessorWithOneSpec()
184 file = File.createTempFile(dictName + ".compress", ".tmp"); in runTestHeaderReaderProcessorWithOneSpec()
191 file = File.createTempFile(dictName + ".crypt", ".tmp"); in runTestHeaderReaderProcessorWithOneSpec()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionary.java75 String dictName = name + "." + locale.toString(); in getUserHistoryDictNamePerAccount() local
77 dictName += "." + account; in getUserHistoryDictNamePerAccount()
79 return dictName; in getUserHistoryDictNamePerAccount()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
Ddictionary_structure_with_buffer_policy_factory.cpp203 char dictName[dictNameBufSize]; in getHeaderFilePathInDictDir() local
204 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in getHeaderFilePathInDictDir()
206 dictName, Ver4DictConstants::HEADER_FILE_EXTENSION); in getHeaderFilePathInDictDir()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DBinaryDictionaryUtils.java73 final String dictName = dictFile.getName(); in renameDict() local
84 Pattern.quote(dictName), Matcher.quoteReplacement(newDictName)); in renameDict()