Home
last modified time | relevance | path

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

/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/QuickSearchBox/src/com/android/quicksearchbox/
DShortcutsProvider.java100 private void addShortcut(final ContentValues shortcut) { in addShortcut() argument
101 String sourceName = shortcut.getAsString(EXTRA_SHORTCUT_SOURCE); in addShortcut()
107 String sourceAction = shortcut.getAsString(SearchManager.SUGGEST_COLUMN_INTENT_ACTION); in addShortcut()
124 storeShortcut(sourceComponent, shortcut); in addShortcut()
130 private void storeShortcut(ComponentName sourceComponent, ContentValues shortcut) { in storeShortcut() argument
131 if (DBG) Log.d(TAG, "Adding (PID: " + Binder.getCallingPid() + "): " + shortcut); in storeShortcut()
139 String userQuery = shortcut.getAsString(SearchManager.USER_QUERY); in storeShortcut()
143 cursor.add(makeSuggestion(source, shortcut)); in storeShortcut()
158 private SuggestionData makeSuggestion(Source source, ContentValues shortcut) { in makeSuggestion() argument
159 String format = shortcut.getAsString(SearchManager.SUGGEST_COLUMN_FORMAT); in makeSuggestion()
[all …]
DSourceShortcutRefresher.java49 public void refresh(Suggestion shortcut, Listener listener) { in refresh() argument
50 Source source = shortcut.getSuggestionSource(); in refresh()
54 String shortcutId = shortcut.getShortcutId(); in refresh()
58 shortcut.getSuggestionText1() + "'"); in refresh()
61 String extraData = shortcut.getSuggestionIntentExtraData(); in refresh()
DShortcutRepositoryImplLog.java349 final ContentValues shortcut; in refreshShortcut() local
351 shortcut = null; in refreshShortcut()
354 shortcut = makeShortcutRow(refreshed); in refreshShortcut()
360 if (shortcut == null) { in refreshShortcut()
364 if (DBG) Log.d(TAG, "Updating shortcut: " + shortcut); in refreshShortcut()
365 db.updateWithOnConflict(Shortcuts.TABLE_NAME, shortcut, in refreshShortcut()
664 final ContentValues shortcut = makeShortcutRow(suggestion); in reportClickAtTime() local
665 String intentKey = shortcut.getAsString(Shortcuts.intent_key.name()); in reportClickAtTime()
677 if (DBG) Log.d(TAG, "Adding shortcut: " + shortcut); in reportClickAtTime()
678 db.replaceOrThrow(Shortcuts.TABLE_NAME, null, shortcut); in reportClickAtTime()
DShortcutCursor.java95 public void refresh(Suggestion shortcut) { in refresh() argument
96 mRefresher.refresh(shortcut, new ShortcutRefresher.Listener() { in refresh()
DEventLogLogger.java121 String shortcut = cursor.isSuggestionShortcut() ? "shortcut" : ""; in getSuggestions() local
122 sb.append(source).append(':').append(type).append(':').append(shortcut); in getSuggestions()
DShortcutRefresher.java44 void refresh(Suggestion shortcut, Listener listener); in refresh() argument
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java166 String shortcut = cursor.getString(COLUMN_SHORTCUT); in getDictionary() local
167 if (TextUtils.isEmpty(shortcut)) shortcut = ""; in getDictionary()
170 + SEPARATOR + shortcut; in getDictionary()
224 String shortcut = null; in restoreDictionary() local
228 if (st.hasMoreTokens()) shortcut = st.nextToken(); in restoreDictionary()
229 if (TextUtils.isEmpty(shortcut)) shortcut = null; in restoreDictionary()
239 cv.put(Words.SHORTCUT, shortcut); in restoreDictionary()
242 + Words.SHORTCUT + "=?", new String[] {word, shortcut}); in restoreDictionary()
/packages/apps/Settings/src/com/android/settings/
DUserDictionarySettings.java163 final String shortcut = getShortcut(position); in onListItemClick() local
165 showAddOrEditDialog(word, shortcut); in onListItemClick()
227 public static void deleteWord(final String word, final String shortcut, in deleteWord() argument
229 if (TextUtils.isEmpty(shortcut)) { in deleteWord()
236 new String[] { word, shortcut }); in deleteWord()
248 final String shortcut = c.getString(INDEX_SHORTCUT);
249 if (TextUtils.isEmpty(shortcut)) {
252 ((TextView)v).setText(shortcut);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserBinaryDictionary.java193 String shortcut = cursor.getString(indexShortcut); in addWords() local
199 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) { in addWords()
200 super.addWord(shortcut, word, frequency); in addWords()
DUserDictionary.java211 String shortcut = cursor.getString(indexShortcut); in addWords() local
218 if (null != shortcut && shortcut.length() < maxWordLength) { in addWords()
219 super.addWord(shortcut, word, frequency); in addWords()
DExpandableDictionary.java384 final char[] shortcut = node.mShortcutTargets.get(shortcutIndex);
385 if (!callback.addWord(shortcut, 0, shortcut.length, finalFreq, mDicTypeId,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java168 WeightedString shortcut = mShortcutTargets.get(i); in getShortcut() local
169 if (shortcut.mWord.equals(word)) { in getShortcut()
170 return shortcut; in getShortcut()
211 final WeightedString shortcut = shortcutTargets.get(i); in update() local
212 final WeightedString existingShortcut = getShortcut(shortcut.mWord); in update()
214 mShortcutTargets.add(shortcut); in update()
215 } else if (existingShortcut.mFrequency < shortcut.mFrequency) { in update()
216 existingShortcut.mFrequency = shortcut.mFrequency; in update()
DBinaryDictInputOutput.java385 private static int getShortcutSize(final WeightedString shortcut) { in getShortcutSize() argument
387 final String word = shortcut.mWord; in getShortcutSize()
406 for (final WeightedString shortcut : shortcutList) { in getShortcutListSize()
407 size += getShortcutSize(shortcut); in getShortcutListSize()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordContents.java67 final String shortcut = args.getString(EXTRA_SHORTCUT); in UserDictionaryAddWordContents() local
68 if (null != shortcut && null != mShortcutEditText) { in UserDictionaryAddWordContents()
69 mShortcutEditText.setText(shortcut); in UserDictionaryAddWordContents()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DRankAwarePromoterTest.java74 Suggestion shortcut = new SuggestionPosition(corpora2); in testWhenPromotingAlreadyPromotedResults() local
75 promoted.add(shortcut); in testWhenPromotingAlreadyPromotedResults()
DMockShortcutRefresher.java31 public void refresh(Suggestion shortcut, Listener listener) { in refresh() argument
/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/Launcher2/src/com/android/launcher2/
DLauncher.java3197 View shortcut = createShortcut(info); in bindItems() local
3198 workspace.addInScreen(shortcut, item.container, item.screen, item.cellX, in bindItems()
3208 shortcut.setAlpha(0f); in bindItems()
3209 shortcut.setScaleX(0f); in bindItems()
3210 shortcut.setScaleY(0f); in bindItems()
3212 if (!mNewShortcutAnimateViews.contains(shortcut)) { in bindItems()
3213 mNewShortcutAnimateViews.add(shortcut); in bindItems()
DWorkspace.java3724 BubbleTextView shortcut = (BubbleTextView) view;
3727 shortcut.applyFromShortcutInfo(info, mIconCache);