Home
last modified time | relevance | path

Searched refs:DictionaryInfoUtils (Results 1 – 7 of 7) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtilsTests.java50 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("aochaueo", sp)); in testLooksValidForDictionaryInsertion()
51 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("", sp)); in testLooksValidForDictionaryInsertion()
52 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("ao-ch'aueo", sp)); in testLooksValidForDictionaryInsertion()
53 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("2908743256", sp)); in testLooksValidForDictionaryInsertion()
54 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("31aochaueo", sp)); in testLooksValidForDictionaryInsertion()
55 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("akeo raeoch oerch .", in testLooksValidForDictionaryInsertion()
57 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("!!!", sp)); in testLooksValidForDictionaryInsertion()
63 DictionaryInfoUtils.getMainDictId(LocaleUtils.constructLocaleFromString("en"))); in testGetMainDictId()
65 DictionaryInfoUtils.getMainDictId(LocaleUtils.constructLocaleFromString("en_US"))); in testGetMainDictId()
67 DictionaryInfoUtils.getMainDictId(LocaleUtils.constructLocaleFromString("en_GB"))); in testGetMainDictId()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryGetter.java29 import com.android.inputmethod.latin.utils.DictionaryInfoUtils;
76 final String safeId = DictionaryInfoUtils.replaceFileNameDangerousCharacters(id); in getTempFileName()
77 final File directory = new File(DictionaryInfoUtils.getWordListTempDirectory(context)); in getTempFileName()
167 final File[] directoryList = DictionaryInfoUtils.getCachedDirectoryList(context); in getCachedWordLists()
173 DictionaryInfoUtils.getWordListIdFromFileName(directory.getName()); in getCachedWordLists()
180 DictionaryInfoUtils.getCategoryFromFileName(wordList.getName()); in getCachedWordLists()
245 final boolean hasDefaultWordList = DictionaryInfoUtils.isDictionaryAvailable( in getDictionaryFiles()
255 DictionaryInfoUtils.moveStagingFilesIfExists(context); in getDictionaryFiles()
258 final String mainDictId = DictionaryInfoUtils.getMainDictId(locale); in getDictionaryFiles()
265 final String wordListId = DictionaryInfoUtils.getWordListIdFromFileName(f.getName()); in getDictionaryFiles()
[all …]
DDictionaryFactory.java24 import com.android.inputmethod.latin.utils.DictionaryInfoUtils;
100 DictionaryInfoUtils.getWordListIdFromFileName(new File(f.mFilename).getName()); in killDictionary()
131 final int resId = DictionaryInfoUtils.getMainDictionaryResourceIdIfAvailableForLocale( in createReadOnlyBinaryDictionary()
DBinaryDictionaryFileDumper.java35 import com.android.inputmethod.latin.utils.DictionaryInfoUtils;
36 import com.android.inputmethod.latin.utils.DictionaryInfoUtils.DictionaryInfo;
251 DictionaryInfoUtils.getStagingFileName(wordlistId, locale, context); in installWordListToStaging()
516 DictionaryInfoUtils.getCurrentDictionaryFileNameAndVersionInfo(context); in reinitializeClientRecordInDictionaryContentProvider()
528 "raw", DictionaryInfoUtils.RESOURCE_PACKAGE_NAME); in reinitializeClientRecordInDictionaryContentProvider()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtils.java55 public class DictionaryInfoUtils { class
56 private static final String TAG = DictionaryInfoUtils.class.getSimpleName();
115 private DictionaryInfoUtils() { in DictionaryInfoUtils() method in DictionaryInfoUtils
146 if (DictionaryInfoUtils.isFileNameCharacter(codePoint)) { in replaceFileNameDangerousCharacters()
203 return new File(DictionaryInfoUtils.getWordListCacheDirectory(context)).listFiles(); in getCachedDirectoryList()
207 return new File(DictionaryInfoUtils.getWordListStagingDirectory(context)).listFiles(); in getStagingDirectoryList()
292 final File[] stagingFiles = DictionaryInfoUtils.getStagingDirectoryList(context);
506 if (!DictionaryInfoUtils.isMainWordListId(wordListId)) {
549 DictionaryInfoUtils.getMainDictionaryResourceIdIfAvailableForLocale(
DDictionaryHeaderUtils.java27 final DictionaryHeader header = DictionaryInfoUtils.getDictionaryFileHeaderOrNull( in getContentVersion()
DWordInputEventForPersonalization.java72 if (!DictionaryInfoUtils.looksValidForDictionaryInsertion( in createInputEventFrom()