Searched refs:UserHistoryDictionary (Results 1 – 5 of 5) sorted by relevance
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
D | PersonalizationHelper.java | 40 private static final ConcurrentHashMap<String, SoftReference<UserHistoryDictionary>> 44 public static UserHistoryDictionary getUserHistoryDictionary( in getUserHistoryDictionary() 52 final SoftReference<UserHistoryDictionary> ref = in getUserHistoryDictionary() 54 final UserHistoryDictionary dict = ref == null ? null : ref.get(); in getUserHistoryDictionary() 63 final UserHistoryDictionary dict = new UserHistoryDictionary( in getUserHistoryDictionary() 72 for (final ConcurrentHashMap.Entry<String, SoftReference<UserHistoryDictionary>> entry in removeAllUserHistoryDictionaries() 75 final UserHistoryDictionary dict = entry.getValue().get(); in removeAllUserHistoryDictionaries() 88 filesDir, new DictFilter(UserHistoryDictionary.NAME)); in removeAllUserHistoryDictionaries() 91 + ", dictNamePrefix: " + UserHistoryDictionary.NAME); in removeAllUserHistoryDictionaries()
|
D | UserHistoryDictionary.java | 43 public class UserHistoryDictionary extends ExpandableBinaryDictionary { class 44 static final String NAME = UserHistoryDictionary.class.getSimpleName(); 47 UserHistoryDictionary(final Context context, final Locale locale, in UserHistoryDictionary() method in UserHistoryDictionary 85 public static UserHistoryDictionary getDictionary(final Context context, final Locale locale, in getDictionary()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/ |
D | UserHistoryDictionaryTests.java | 63 private static void assertDictionaryExists(final UserHistoryDictionary dict, in assertDictionaryExists() 111 private static void clearHistory(final UserHistoryDictionary dict) { in clearHistory() 122 final String dictName = UserHistoryDictionary.getUserHistoryDictName( in doTestRandomWords() 123 UserHistoryDictionary.NAME, fakeLocale, in doTestRandomWords() 128 final UserHistoryDictionary dict = PersonalizationHelper.getUserHistoryDictionary( in doTestRandomWords() 165 final UserHistoryDictionary dicts[] = new UserHistoryDictionary[numberOfLanguages]; in doTestStressTestForSwitchingLanguagesAndAddingWords() 174 final String dictName = UserHistoryDictionary.getUserHistoryDictName( in doTestStressTestForSwitchingLanguagesAndAddingWords() 175 UserHistoryDictionary.NAME, fakeLocale, null /* dictFile */, in doTestStressTestForSwitchingLanguagesAndAddingWords() 219 final String dictName = UserHistoryDictionary.getUserHistoryDictName( in doTestAddManyWords() 220 UserHistoryDictionary.NAME, fakeLocale, null /* dictFile */, testAccount); in doTestAddManyWords() [all …]
|
D | UserHistoryDictionaryTestsHelper.java | 59 return filename.startsWith(UserHistoryDictionary.NAME + "." + filter); in removeAllTestDictFiles() 77 public static boolean addAndWriteRandomWords(final UserHistoryDictionary dict, in addAndWriteRandomWords() 100 private static void addWordsToDictionary(final UserHistoryDictionary dict, in addWordsToDictionary() 105 UserHistoryDictionary.addToDictionary(dict, ngramContext, word, true, timestamp); in addWordsToDictionary()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | DictionaryFacilitatorImpl.java | 33 import com.android.inputmethod.latin.personalization.UserHistoryDictionary; 80 DICT_TYPE_TO_CLASS.put(Dictionary.TYPE_USER_HISTORY, UserHistoryDictionary.class); in DICT_TYPE_TO_CLASS.put() 589 UserHistoryDictionary.addToDictionary(userHistoryDictionary, ngramContext, secondWord, in addWordToUserHistory()
|