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

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
PersonalizationHelper.java 34 * Helps handle and manage personalized dictionaries such as {@link UserHistoryDictionary}.
40 private static final ConcurrentHashMap<String, SoftReference<UserHistoryDictionary>>
44 public static UserHistoryDictionary getUserHistoryDictionary(
52 final SoftReference<UserHistoryDictionary> ref =
54 final UserHistoryDictionary dict = ref == null ? null : ref.get();
57 Log.d(TAG, "Use cached UserHistoryDictionary with lookup: " + lookupStr);
63 final UserHistoryDictionary dict = new UserHistoryDictionary(
72 for (final ConcurrentHashMap.Entry<String, SoftReference<UserHistoryDictionary>> entry
75 final UserHistoryDictionary dict = entry.getValue().get()
    [all...]
UserHistoryDictionary.java 43 public class UserHistoryDictionary extends ExpandableBinaryDictionary {
44 static final String NAME = UserHistoryDictionary.class.getSimpleName();
47 UserHistoryDictionary(final Context context, final Locale locale,
56 * @returns the name of the {@link UserHistoryDictionary}.
85 public static UserHistoryDictionary getDictionary(final Context context, final Locale locale,
93 * @param userHistoryDictionary the user history dictionary
99 public static void addToDictionary(final ExpandableBinaryDictionary userHistoryDictionary,
105 userHistoryDictionary.updateEntriesForWord(ngramContext, word,
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
UserHistoryDictionaryTests.java 31 * Unit tests for UserHistoryDictionary
48 private static void assertDictionaryExists(final UserHistoryDictionary dict,
98 private static void clearHistory(final UserHistoryDictionary dict) {
107 Log.d(TAG, "Usage: please set UserHistoryDictionary.PROFILE_SAVE_RESTORE to true.");
109 final String dictName = UserHistoryDictionary.getUserHistoryDictName(
110 UserHistoryDictionary.NAME, dummyLocale,
115 final UserHistoryDictionary dict = PersonalizationHelper.getUserHistoryDictionary(
148 final UserHistoryDictionary dicts[] = new UserHistoryDictionary[numberOfLanguages];
157 final String dictName = UserHistoryDictionary.getUserHistoryDictName
    [all...]
UserHistoryDictionaryTestsHelper.java 35 * Utility class for helping while running tests involving {@link UserHistoryDictionary}.
59 return filename.startsWith(UserHistoryDictionary.NAME + "." + filter);
70 * @param dict {@link UserHistoryDictionary} to which words should be added.
77 public static boolean addAndWriteRandomWords(final UserHistoryDictionary dict,
100 private static void addWordsToDictionary(final UserHistoryDictionary dict,
105 UserHistoryDictionary.addToDictionary(dict, ngramContext, word, true, timestamp);
  /packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/define/
ProductionFlags.java 54 * When {@code true}, the IME maintains per account {@link UserHistoryDictionary}.
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DictionaryFacilitatorImpl.java 33 import com.android.inputmethod.latin.personalization.UserHistoryDictionary;
80 DICT_TYPE_TO_CLASS.put(Dictionary.TYPE_USER_HISTORY, UserHistoryDictionary.class);
545 final ExpandableBinaryDictionary userHistoryDictionary =
547 if (userHistoryDictionary == null || !isForLocale(userHistoryDictionary.mLocale)) {
589 UserHistoryDictionary.addToDictionary(userHistoryDictionary, ngramContext, secondWord,

Completed in 178 milliseconds