Searched defs:shortcut (Results 1 - 6 of 6) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DUserDictionaryCompatUtils.java29 final int freq, final String shortcut, final Locale locale) {
31 addWordWithShortcut(context, word, freq, shortcut, locale);
45 final int freq, final String shortcut, final Locale locale) {
46 UserDictionary.Words.addWord(context, word, freq, shortcut, locale);
28 addWord(final Context context, final String word, final int freq, final String shortcut, final Locale locale) argument
44 addWordWithShortcut(final Context context, final String word, final int freq, final String shortcut, final Locale locale) argument
/packages/apps/Launcher3/src/com/android/launcher3/
H A DStats.java129 public void recordLaunch(View v, Intent intent, ShortcutInfo shortcut) { argument
136 if (shortcut != null) {
137 broadcastIntent.putExtra(EXTRA_CONTAINER, shortcut.container)
138 .putExtra(EXTRA_SCREEN, shortcut.screenId)
139 .putExtra(EXTRA_CELLX, shortcut.cellX)
140 .putExtra(EXTRA_CELLY, shortcut.cellY);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DPersonalDictionaryLookupTest.java82 private Uri addWord(final String word, final Locale locale, int frequency, String shortcut) { argument
84 UserDictionary.Words.addWord(mContext, word, frequency, shortcut, locale);
120 // Insert "shortcut" => "Expansion" in the personal dictionary for the given locale.
121 addWord("Expansion", locale, 17, "shortcut");
142 assertEquals("Expansion", lookup.expandShortcut("shortcut", Locale.US));
155 verifyWordExists(lookup.getShortcutsForLocale(Locale.US), "shortcut");
161 assertEquals("Expansion", lookup.expandShortcut("shortcut", Locale.US));
162 assertNull(lookup.expandShortcut("shortcut", Locale.UK));
163 assertNull(lookup.expandShortcut("shortcut", Locale.ENGLISH));
164 assertNull(lookup.expandShortcut("shortcut", Local
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DUserDictionarySettings.java52 // The index of the shortcut in the above array.
153 final String shortcut = getShortcut(position);
155 showAddOrEditDialog(word, shortcut);
180 * @param editingShortcut the shortcut for this entry, or null if none.
216 public static void deleteWord(final String word, final String shortcut, argument
218 if (TextUtils.isEmpty(shortcut)) {
225 new String[] { word, shortcut });
238 final String shortcut = c.getString(INDEX_SHORTCUT);
239 if (TextUtils.isEmpty(shortcut)) {
242 ((TextView)v).setText(shortcut);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DPersonalDictionaryLookup.java205 * We store a map from a shortcut to a word for each locale.
346 * Note that this method returns shortcut keys, not expanded words. Words are handled
360 // First look for the country-specific shortcut: en_US, en_UK, fr_FR, etc.
367 // Next look for the language-specific shortcut: en, fr, etc.
375 // If all else fails, look for a global shortcut.
451 * Expands the given shortcut for the given locale.
453 * @param shortcut the shortcut to expand
454 * @param inputLocale the locale in which to expand the shortcut
455 * @return expanded shortcut if
457 expandShortcut( @onnull final String shortcut, @Nonnull final Locale inputLocale) argument
508 expandShortcut( @ullable final HashMap<Locale, HashMap<String, String>> shortcutsPerLocale, @Nonnull final String shortcut, @Nonnull final Locale locale) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionarySettings.java62 // The index of the shortcut in the above array.
208 final String shortcut = getShortcut(position);
210 showAddOrEditDialog(word, shortcut);
221 // with the shortcut API.
244 * @param editingShortcut the shortcut for this entry, or null if none.
281 public static void deleteWord(final String word, final String shortcut, argument
286 } else if (TextUtils.isEmpty(shortcut)) {
293 new String[] { word, shortcut });
309 final String shortcut = c.getString(INDEX_SHORTCUT);
310 if (TextUtils.isEmpty(shortcut)) {
[all...]

Completed in 374 milliseconds