Home
last modified time | relevance | path

Searched refs:shortcut (Results 1 – 25 of 35) 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/apps/Settings/src/com/android/settings/quicklaunch/
DQuickLaunchSettings.java189 private void clearShortcut(char shortcut) { in clearShortcut() argument
191 new String[] { String.valueOf((int) shortcut) }); in clearShortcut()
230 char shortcut = data.getCharExtra(BookmarkPicker.EXTRA_SHORTCUT, (char) 0); in onActivityResult() local
231 updateShortcut(shortcut, data); in onActivityResult()
238 private void updateShortcut(char shortcut, Intent intent) { in updateShortcut() argument
242 Bookmarks.add(getContentResolver(), intent, "", DEFAULT_BOOKMARK_FOLDER, shortcut, 0); in updateShortcut() local
245 private ShortcutPreference getOrCreatePreference(char shortcut) { in getOrCreatePreference() argument
246 ShortcutPreference pref = mShortcutToPreference.get(shortcut); in getOrCreatePreference()
250 Log.w(TAG, "Unknown shortcut '" + shortcut + "', creating preference anyway"); in getOrCreatePreference()
251 return createPreference(shortcut); in getOrCreatePreference()
[all …]
DShortcutPreference.java49 public ShortcutPreference(Context context, char shortcut) { in ShortcutPreference() argument
65 mShortcut = shortcut; in ShortcutPreference()
74 public void setShortcut(char shortcut) { in setShortcut() argument
75 if (shortcut != mShortcut) { in setShortcut()
76 mShortcut = shortcut; in setShortcut()
106 TextView shortcutView = (TextView) view.findViewById(R.id.shortcut); in onBindView()
/packages/apps/Launcher3/src/com/android/launcher3/
DStats.java110 public void recordLaunch(Intent intent, ShortcutInfo shortcut) { in recordLaunch() argument
117 if (shortcut != null) { in recordLaunch()
118 broadcastIntent.putExtra(EXTRA_CONTAINER, shortcut.container) in recordLaunch()
119 .putExtra(EXTRA_SCREEN, shortcut.screenId) in recordLaunch()
120 .putExtra(EXTRA_CELLX, shortcut.cellX) in recordLaunch()
121 .putExtra(EXTRA_CELLY, shortcut.cellY); in recordLaunch()
135 if (shortcut == null) { in recordLaunch()
141 mLog.writeShort((short) shortcut.container); in recordLaunch()
142 mLog.writeShort((short) shortcut.screenId); in recordLaunch()
143 mLog.writeShort((short) shortcut.cellX); in recordLaunch()
[all …]
DDeleteDropTarget.java268 ShortcutInfo shortcut = (ShortcutInfo) d.dragInfo; in isUninstallFromWorkspace() local
270 return !InstallShortcutReceiver.isValidShortcutLaunchIntent(shortcut.intent); in isUninstallFromWorkspace()
284 ShortcutInfo shortcut = (ShortcutInfo) item; in completeDrop() local
285 if (shortcut.intent != null && shortcut.intent.getComponent() != null) { in completeDrop()
286 final ComponentName componentName = shortcut.intent.getComponent(); in completeDrop()
DLauncherModel.java536 ShortcutInfo shortcut = (ShortcutInfo) item; in checkItemInfoLocked() local
537 if (modelShortcut.title.toString().equals(shortcut.title.toString()) && in checkItemInfoLocked()
538 modelShortcut.intent.filterEquals(shortcut.intent) && in checkItemInfoLocked()
539 modelShortcut.id == shortcut.id && in checkItemInfoLocked()
540 modelShortcut.itemType == shortcut.itemType && in checkItemInfoLocked()
541 modelShortcut.container == shortcut.container && in checkItemInfoLocked()
542 modelShortcut.screenId == shortcut.screenId && in checkItemInfoLocked()
543 modelShortcut.cellX == shortcut.cellX && in checkItemInfoLocked()
544 modelShortcut.cellY == shortcut.cellY && in checkItemInfoLocked()
545 modelShortcut.spanX == shortcut.spanX && in checkItemInfoLocked()
[all …]
DLauncher.java2373 final ShortcutInfo shortcut = (ShortcutInfo) tag; in onClick() local
2374 final Intent intent = shortcut.intent; in onClick()
2400 mStats.recordLaunch(intent, shortcut); in onClick()
3921 View shortcut = createShortcut(info); in bindItems() local
3933 … workspace.addInScreenFromBind(shortcut, item.container, item.screenId, item.cellX, in bindItems()
3937 shortcut.setAlpha(0f); in bindItems()
3938 shortcut.setScaleX(0f); in bindItems()
3939 shortcut.setScaleY(0f); in bindItems()
3940 bounceAnims.add(createNewAppBounceAnimation(shortcut, i)); in bindItems()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java169 String shortcut = cursor.getString(COLUMN_SHORTCUT); in getDictionary() local
170 if (TextUtils.isEmpty(shortcut)) shortcut = ""; in getDictionary()
173 + SEPARATOR + shortcut; in getDictionary()
228 String shortcut = null; in restoreDictionary() local
232 if (st.hasMoreTokens()) shortcut = st.nextToken(); in restoreDictionary()
233 if (TextUtils.isEmpty(shortcut)) shortcut = null; in restoreDictionary()
243 cv.put(Words.SHORTCUT, shortcut); in restoreDictionary()
246 + Words.SHORTCUT + "=?", new String[] {word, shortcut}); in restoreDictionary()
/packages/apps/Settings/src/com/android/settings/
DUserDictionarySettings.java158 final String shortcut = getShortcut(position); in onListItemClick() local
160 showAddOrEditDialog(word, shortcut); in onListItemClick()
222 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument
224 if (TextUtils.isEmpty(shortcut)) { in deleteWord()
231 new String[] { word, shortcut }); in deleteWord()
244 final String shortcut = c.getString(INDEX_SHORTCUT);
245 if (TextUtils.isEmpty(shortcut)) {
248 ((TextView)v).setText(shortcut);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionarySettings.java191 final String shortcut = getShortcut(position); in onListItemClick() local
193 showAddOrEditDialog(word, shortcut); in onListItemClick()
264 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument
269 } else if (TextUtils.isEmpty(shortcut)) { in deleteWord()
276 new String[] { word, shortcut }); in deleteWord()
293 final String shortcut = c.getString(INDEX_SHORTCUT);
294 if (TextUtils.isEmpty(shortcut)) {
297 ((TextView)v).setText(shortcut);
DUserDictionaryAddWordContents.java85 final String shortcut; in UserDictionaryAddWordContents() local
87 shortcut = args.getString(EXTRA_SHORTCUT); in UserDictionaryAddWordContents()
88 if (null != shortcut && null != mShortcutEditText) { in UserDictionaryAddWordContents()
89 mShortcutEditText.setText(shortcut); in UserDictionaryAddWordContents()
93 shortcut = null; in UserDictionaryAddWordContents()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java227 WeightedString shortcut = mShortcutTargets.get(i); in getShortcut() local
228 if (shortcut.mWord.equals(word)) { in getShortcut()
229 return shortcut; in getShortcut()
271 final WeightedString shortcut = shortcutTargets.get(i); in update() local
272 final WeightedString existingShortcut = getShortcut(shortcut.mWord); in update()
274 mShortcutTargets.add(shortcut); in update()
275 } else if (existingShortcut.mFrequency < shortcut.mFrequency) { in update()
276 existingShortcut.mFrequency = shortcut.mFrequency; in update()
DBinaryDictEncoderUtils.java93 private static int getShortcutSize(final WeightedString shortcut) { in getShortcutSize() argument
95 final String word = shortcut.mWord; in getShortcutSize()
114 for (final WeightedString shortcut : shortcutList) { in getShortcutListSize()
115 size += getShortcutSize(shortcut); in getShortcutListSize()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java277 ShortcutInfo shortcut = (ShortcutInfo) item; in checkItemInfoLocked() local
278 if (modelShortcut.title.toString().equals(shortcut.title.toString()) && in checkItemInfoLocked()
279 modelShortcut.intent.filterEquals(shortcut.intent) && in checkItemInfoLocked()
280 modelShortcut.id == shortcut.id && in checkItemInfoLocked()
281 modelShortcut.itemType == shortcut.itemType && in checkItemInfoLocked()
282 modelShortcut.container == shortcut.container && in checkItemInfoLocked()
283 modelShortcut.screen == shortcut.screen && in checkItemInfoLocked()
284 modelShortcut.cellX == shortcut.cellX && in checkItemInfoLocked()
285 modelShortcut.cellY == shortcut.cellY && in checkItemInfoLocked()
286 modelShortcut.spanX == shortcut.spanX && in checkItemInfoLocked()
[all …]
DLauncher.java3452 View shortcut = createShortcut(info); in bindItems() local
3453 workspace.addInScreen(shortcut, item.container, item.screen, item.cellX, in bindItems()
3463 shortcut.setAlpha(0f); in bindItems()
3464 shortcut.setScaleX(0f); in bindItems()
3465 shortcut.setScaleY(0f); in bindItems()
3467 if (!mNewShortcutAnimateViews.contains(shortcut)) { in bindItems()
3468 mNewShortcutAnimateViews.add(shortcut); in bindItems()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserBinaryDictionary.java244 final String shortcut = hasShortcutColumn ? cursor.getString(indexShortcut) : null; in addWords() local
252 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) { in addWords()
253 super.addWord(shortcut, word, adjustedFrequency, USER_DICT_SHORTCUT_FREQUENCY, in addWords()
DExpandableDictionary.java376 final char[] shortcut = node.mShortcutTargets.get(shortcutIndex); local
377 suggestions.add(new SuggestedWordInfo(new String(shortcut, 0, shortcut.length),
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java154 String shortcut = null; in readDictionaryCombined() local
160 shortcut = params[1]; in readDictionaryCombined()
167 if (null != shortcut) { in readDictionaryCombined()
168 shortcuts.add(new WeightedString(shortcut, shortcutFreq)); in readDictionaryCombined()
/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/apps/Dialer/src/com/android/dialer/list/
DDialerPhoneNumberListAdapter.java65 final int shortcut = getShortcutTypeFromPosition(position); in getItemViewType() local
66 if (shortcut >= 0) { in getItemViewType()
68 return super.getViewTypeCount() + shortcut; in getItemViewType()
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DUserDictionaryCompatUtils.java33 final String shortcut, final Locale locale) { in addWord() argument
35 CompatUtils.invoke(Words.class, null, METHOD_addWord, context, word, freq, shortcut, in addWord()
/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()

12