Searched refs:ANY_LOCALE (Results 1 – 2 of 2) sorted by relevance
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | PersonalDictionaryLookupTest.java | 19 import static com.android.inputmethod.latin.PersonalDictionaryLookup.ANY_LOCALE; 159 assertTrue(lookup.getShortcutsForLocale(ANY_LOCALE).isEmpty()); in testShortcutMatchesInputCountry() 165 assertNull(lookup.expandShortcut("shortcut", ANY_LOCALE)); in testShortcutMatchesInputCountry() 178 assertTrue(lookup.getShortcutsForLocale(ANY_LOCALE).isEmpty()); in testShortcutMatchesInputLanguage() 184 assertNull(lookup.expandShortcut("shortcut", ANY_LOCALE)); in testShortcutMatchesInputLanguage() 190 PersonalDictionaryLookup lookup = setUpShortcut(PersonalDictionaryLookup.ANY_LOCALE); in testShortcutMatchesAnyLocale() 196 verifyWordExists(lookup.getShortcutsForLocale(ANY_LOCALE), "shortcut"); in testShortcutMatchesAnyLocale() 202 assertEquals("Expansion", lookup.expandShortcut("shortcut", ANY_LOCALE)); in testShortcutMatchesAnyLocale() 215 verifyWordDoesNotExist(lookup.getWordsForLocale(ANY_LOCALE), "foo"); in testExactLocaleMatch() 229 assertFalse(lookup.isValidWord("foo", ANY_LOCALE)); in testExactLocaleMatch() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | PersonalDictionaryLookup.java | 94 static final Locale ANY_LOCALE = new Locale(""); field in PersonalDictionaryLookup 230 mDictionaryStats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER, 0)); in PersonalDictionaryLookup() 231 mDictionaryStats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER_SHORTCUT, 0)); in PersonalDictionaryLookup() 376 final Map<String, String> globalShortcuts = shortcutsPerLocale.get(ANY_LOCALE); in getShortcutsForLocale() 501 final String expansionForGlobal = expandShortcut(shortcutsPerLocale, shortcut, ANY_LOCALE); in expandShortcut() 631 stats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER, dictWords.size())); in loadPersonalDictionary() 636 stats.add(new DictionaryStats(ANY_LOCALE, Dictionary.TYPE_USER_SHORTCUT, numShortcuts)); in loadPersonalDictionary()
|