Home
last modified time | relevance | path

Searched refs:shortcut (Results 1 – 25 of 30) sorted by relevance

12

/packages/inputmethods/LatinIME/dictionaries/
Den_emoji.combined.gz
Dfr_emoji.combined.gz ... =true 24 shortcut=♩,f=14 25 shortcut=♪,f=14 26 shortcut=♬,f ...
Dsample.combined17 # into the dictionary is to add shortcut targets and maybe a whitelist
20 # Each word may or may not have any number of shortcut target lines
21 # starting with a `shortcut' entry and having at least a `f' frequency
34 word=shortcut,f=176
35 shortcut=target,f=10
37 shortcut=whitelisted,f=whitelist
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java170 String shortcut = cursor.getString(COLUMN_SHORTCUT); in getDictionary() local
171 if (TextUtils.isEmpty(shortcut)) shortcut = ""; in getDictionary()
174 + SEPARATOR + shortcut; in getDictionary()
229 String shortcut = null; in restoreDictionary() local
233 if (st.hasMoreTokens()) shortcut = st.nextToken(); in restoreDictionary()
234 if (TextUtils.isEmpty(shortcut)) shortcut = null; in restoreDictionary()
246 && Objects.equals(shortcut, previousShortcut)) in restoreDictionary()
251 previousShortcut = shortcut; in restoreDictionary()
258 cv.put(Words.SHORTCUT, shortcut); in restoreDictionary()
260 if (null != shortcut) { in restoreDictionary()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DShortcutInfo.java291 final ShortcutInfo shortcut = new ShortcutInfo(); in fromActivityInfo() local
292 shortcut.user = info.getUser(); in fromActivityInfo()
293 shortcut.title = Utilities.trim(info.getLabel()); in fromActivityInfo()
294 shortcut.contentDescription = UserManagerCompat.getInstance(context) in fromActivityInfo()
296 shortcut.customIcon = false; in fromActivityInfo()
297 shortcut.intent = AppInfo.makeLaunchIntent(context, info, info.getUser()); in fromActivityInfo()
298 shortcut.itemType = LauncherSettings.Favorites.ITEM_TYPE_APPLICATION; in fromActivityInfo()
299 shortcut.flags = AppInfo.initFlags(info); in fromActivityInfo()
300 return shortcut; in fromActivityInfo()
DStats.java129 public void recordLaunch(View v, Intent intent, ShortcutInfo shortcut) { in recordLaunch() argument
136 if (shortcut != null) { in recordLaunch()
137 broadcastIntent.putExtra(EXTRA_CONTAINER, shortcut.container) in recordLaunch()
138 .putExtra(EXTRA_SCREEN, shortcut.screenId) in recordLaunch()
139 .putExtra(EXTRA_CELLX, shortcut.cellX) in recordLaunch()
140 .putExtra(EXTRA_CELLY, shortcut.cellY); in recordLaunch()
DLauncherModel.java638 ShortcutInfo shortcut = (ShortcutInfo) item; in checkItemInfoLocked() local
639 if (modelShortcut.title.toString().equals(shortcut.title.toString()) && in checkItemInfoLocked()
640 modelShortcut.intent.filterEquals(shortcut.intent) && in checkItemInfoLocked()
641 modelShortcut.id == shortcut.id && in checkItemInfoLocked()
642 modelShortcut.itemType == shortcut.itemType && in checkItemInfoLocked()
643 modelShortcut.container == shortcut.container && in checkItemInfoLocked()
644 modelShortcut.screenId == shortcut.screenId && in checkItemInfoLocked()
645 modelShortcut.cellX == shortcut.cellX && in checkItemInfoLocked()
646 modelShortcut.cellY == shortcut.cellY && in checkItemInfoLocked()
647 modelShortcut.spanX == shortcut.spanX && in checkItemInfoLocked()
[all …]
DLauncher.java2651 final ShortcutInfo shortcut = (ShortcutInfo) tag; in onClickAppShortcut() local
2653 if (shortcut.isDisabled != 0) { in onClickAppShortcut()
2654 if ((shortcut.isDisabled & ShortcutInfo.FLAG_DISABLED_SUSPENDED) != 0 in onClickAppShortcut()
2655 || (shortcut.isDisabled & ShortcutInfo.FLAG_DISABLED_QUIET_USER) != 0) { in onClickAppShortcut()
2659 if ((shortcut.isDisabled & ShortcutInfo.FLAG_DISABLED_SAFEMODE) != 0) { in onClickAppShortcut()
2669 && shortcut.isPromise() in onClickAppShortcut()
2670 && !shortcut.hasStatusFlag(ShortcutInfo.FLAG_INSTALL_SESSION_ACTIVE)) { in onClickAppShortcut()
2672 shortcut.getTargetComponent().getPackageName(), in onClickAppShortcut()
2691 final ShortcutInfo shortcut; in startAppShortcutOrInfoActivity() local
2694 shortcut = (ShortcutInfo) tag; in startAppShortcutOrInfoActivity()
[all …]
/packages/apps/Settings/src/com/android/settings/
DUserDictionarySettings.java153 final String shortcut = getShortcut(position); in onListItemClick() local
155 showAddOrEditDialog(word, shortcut); in onListItemClick()
216 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument
218 if (TextUtils.isEmpty(shortcut)) { in deleteWord()
225 new String[] { word, shortcut }); in deleteWord()
238 final String shortcut = c.getString(INDEX_SHORTCUT);
239 if (TextUtils.isEmpty(shortcut)) {
242 ((TextView)v).setText(shortcut);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DUserDictionaryCompatUtils.java29 final int freq, final String shortcut, final Locale locale) { in addWord() argument
31 addWordWithShortcut(context, word, freq, shortcut, locale); in addWord()
45 final int freq, final String shortcut, final Locale locale) { in addWordWithShortcut() argument
46 UserDictionary.Words.addWord(context, word, freq, shortcut, locale); in addWordWithShortcut()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionarySettings.java208 final String shortcut = getShortcut(position); in onListItemClick() local
210 showAddOrEditDialog(word, shortcut); in onListItemClick()
281 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument
286 } else if (TextUtils.isEmpty(shortcut)) { in deleteWord()
293 new String[] { word, shortcut }); in deleteWord()
309 final String shortcut = c.getString(INDEX_SHORTCUT);
310 if (TextUtils.isEmpty(shortcut)) {
313 ((TextView)v).setText(shortcut);
DUserDictionaryAddWordContents.java87 final String shortcut; in UserDictionaryAddWordContents() local
89 shortcut = args.getString(EXTRA_SHORTCUT); in UserDictionaryAddWordContents()
90 if (null != shortcut && null != mShortcutEditText) { in UserDictionaryAddWordContents()
91 mShortcutEditText.setText(shortcut); in UserDictionaryAddWordContents()
95 shortcut = null; in UserDictionaryAddWordContents()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPersonalDictionaryLookup.java458 @Nonnull final String shortcut, @Nonnull final Locale inputLocale) { in expandShortcut()
460 Log.d(mTag, "expandShortcut() : Shortcut [" + shortcut + "] for [" + inputLocale + "]"); in expandShortcut()
477 shortcutsPerLocale, shortcut, inputLocale); in expandShortcut()
491 shortcutsPerLocale, shortcut, languageOnlyLocale); in expandShortcut()
501 final String expansionForGlobal = expandShortcut(shortcutsPerLocale, shortcut, ANY_LOCALE); in expandShortcut()
510 @Nonnull final String shortcut, in expandShortcut() argument
519 return localeShortcuts.get(shortcut); in expandShortcut()
611 final String shortcut = cursor.getString(shortcutIndex); in loadPersonalDictionary() local
612 if (shortcut == null) { in loadPersonalDictionary()
626 localeShortcuts.put(shortcut, rawDictWord); in loadPersonalDictionary()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp195 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() local
196 if (shortcut.getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addUnigramEntry()
198 shortcut.getTargetCodePoints()->size()); in addUnigramEntry()
230 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() local
232 CodePointArrayView(*shortcut.getTargetCodePoints()), in addUnigramEntry()
233 shortcut.getProbability())) { in addUnigramEntry()
235 "probability: %d", wordPos, shortcut.getTargetCodePoints()->size(), in addUnigramEntry()
236 shortcut.getProbability()); in addUnigramEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp282 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() local
283 if (shortcut.getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addUnigramEntry()
285 shortcut.getTargetCodePoints()->size()); in addUnigramEntry()
316 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry() local
318 CodePointArrayView(*shortcut.getTargetCodePoints()), in addUnigramEntry()
319 shortcut.getProbability())) { in addUnigramEntry()
321 "probability: %d", wordPos, shortcut.getTargetCodePoints()->size(), in addUnigramEntry()
322 shortcut.getProbability()); in addUnigramEntry()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java152 String shortcut = null; in readDictionaryCombined() local
158 shortcut = params[1]; in readDictionaryCombined()
165 if (null != shortcut) { in readDictionaryCombined()
166 shortcuts.add(new WeightedString(shortcut, shortcutFreq)); in readDictionaryCombined()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp98 for (const auto &shortcut : unigramProperty.getShortcuts()) { in outputWordProperty() local
99 const std::vector<int> *const targetCodePoints = shortcut.getTargetCodePoints(); in outputWordProperty()
107 shortcut.getProbability()); in outputWordProperty()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DWorkspaceAccessibilityHelper.java157 for (ShortcutInfo shortcut : folder.contents) { in getDescriptionForDropOver()
158 if (firstItem == null || firstItem.rank > shortcut.rank) { in getDescriptionForDropOver()
159 firstItem = shortcut; in getDescriptionForDropOver()
/packages/apps/Dialer/src/com/android/dialer/list/
DDialerPhoneNumberListAdapter.java80 final int shortcut = getShortcutTypeFromPosition(position); in getItemViewType() local
81 if (shortcut >= 0) { in getItemViewType()
83 return super.getViewTypeCount() + shortcut; in getItemViewType()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java287 ShortcutInfo shortcut = (ShortcutInfo) item; in checkItemInfoLocked() local
288 if (modelShortcut.title.toString().equals(shortcut.title.toString()) && in checkItemInfoLocked()
289 modelShortcut.intent.filterEquals(shortcut.intent) && in checkItemInfoLocked()
290 modelShortcut.id == shortcut.id && in checkItemInfoLocked()
291 modelShortcut.itemType == shortcut.itemType && in checkItemInfoLocked()
292 modelShortcut.container == shortcut.container && in checkItemInfoLocked()
293 modelShortcut.screen == shortcut.screen && in checkItemInfoLocked()
294 modelShortcut.cellX == shortcut.cellX && in checkItemInfoLocked()
295 modelShortcut.cellY == shortcut.cellY && in checkItemInfoLocked()
296 modelShortcut.spanX == shortcut.spanX && in checkItemInfoLocked()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DEventLogLogger.java105 String shortcut = cursor.isSuggestionShortcut() ? "shortcut" : ""; in getSuggestions() local
106 sb.append(source).append(':').append(type).append(':').append(shortcut); in getSuggestions()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordContents.java73 final String shortcut = args.getString(EXTRA_SHORTCUT); in UserDictionaryAddWordContents() local
74 if (null != shortcut && null != mShortcutEditText) { in UserDictionaryAddWordContents()
75 mShortcutEditText.setText(shortcut); in UserDictionaryAddWordContents()
/packages/apps/Music/src/com/android/music/
DPlaylistBrowserActivity.java378 final Intent shortcut = new Intent(); in onListItemClick() local
379 shortcut.setAction(Intent.ACTION_VIEW); in onListItemClick()
380 shortcut.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/playlist"); in onListItemClick()
381 shortcut.putExtra("playlist", String.valueOf(id)); in onListItemClick()
384 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcut); in onListItemClick()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DPersonalDictionaryLookupTest.java82 private Uri addWord(final String word, final Locale locale, int frequency, String shortcut) { in addWord() argument
84 UserDictionary.Words.addWord(mContext, word, frequency, shortcut, locale); in addWord()
/packages/inputmethods/LatinIME/native/jni/
DNativeFileList.mk36 shortcut/shortcut_list_reading_utils.cpp) \

12