Searched refs:ANY_LOCALE (Results 1 - 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DPersonalDictionaryLookupTest.java19 import static com.android.inputmethod.latin.PersonalDictionaryLookup.ANY_LOCALE;
159 assertTrue(lookup.getShortcutsForLocale(ANY_LOCALE).isEmpty());
165 assertNull(lookup.expandShortcut("shortcut", ANY_LOCALE));
178 assertTrue(lookup.getShortcutsForLocale(ANY_LOCALE).isEmpty());
184 assertNull(lookup.expandShortcut("shortcut", ANY_LOCALE));
190 PersonalDictionaryLookup lookup = setUpShortcut(PersonalDictionaryLookup.ANY_LOCALE);
196 verifyWordExists(lookup.getShortcutsForLocale(ANY_LOCALE), "shortcut");
202 assertEquals("Expansion", lookup.expandShortcut("shortcut", ANY_LOCALE));
215 verifyWordDoesNotExist(lookup.getWordsForLocale(ANY_LOCALE), "foo");
229 assertFalse(lookup.isValidWord("foo", ANY_LOCALE));
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DPersonalDictionaryLookup.java94 static final Locale ANY_LOCALE = new Locale(""); field in class:PersonalDictionaryLookup
206 * Shortcuts that apply to any locale are keyed by {@link #ANY_LOCALE}.
230 mDictionaryStats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER, 0));
231 mDictionaryStats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER_SHORTCUT, 0));
376 final Map<String, String> globalShortcuts = shortcutsPerLocale.get(ANY_LOCALE);
501 final String expansionForGlobal = expandShortcut(shortcutsPerLocale, shortcut, ANY_LOCALE);
631 stats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER, dictWords.size()));
636 stats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER_SHORTCUT, numShortcuts));

Completed in 138 milliseconds