/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
H A D | QuickLaunchSettings.java | 50 * and allows choosing a new bookmark for a shortcut. 81 /** Preference category to hold the shortcut preferences. */ 83 /** Mapping of a shortcut to its preference. */ 86 /** The bookmark title of the shortcut that is being cleared. */ 89 /** The shortcut that is being cleared. */ 144 // Create the dialog for clearing a shortcut 182 // Clear the shortcut 189 private void clearShortcut(char shortcut) { argument 191 new String[] { String.valueOf((int) shortcut) }); 198 // Open the screen to pick a bookmark for this shortcut 238 updateShortcut(char shortcut, Intent intent) argument 245 getOrCreatePreference(char shortcut) argument 255 createPreference(char shortcut) argument [all...] |
H A D | ShortcutPreference.java | 29 * Preference type for a shortcut in {@link QuickLaunchSettings}. 49 public ShortcutPreference(Context context, char shortcut) { argument 65 mShortcut = shortcut; 74 public void setShortcut(char shortcut) { argument 75 if (shortcut != mShortcut) { 76 mShortcut = shortcut; 106 TextView shortcutView = (TextView) view.findViewById(R.id.shortcut);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | ShortcutsProvider.java | 99 private void addShortcut(final ContentValues shortcut) { argument 100 String sourceName = shortcut.getAsString(EXTRA_SHORTCUT_SOURCE); 107 Log.w(TAG, "Got shortcut for " + sourceComponent + " from a different process"); 113 storeShortcut(sourceComponent, shortcut); 119 private void storeShortcut(ComponentName sourceComponent, ContentValues shortcut) { argument 120 if (DBG) Log.d(TAG, "Adding (PID: " + Binder.getCallingPid() + "): " + shortcut); 124 Log.w(TAG, "Unknown shortcut source " + sourceComponent); 128 String userQuery = shortcut.getAsString(SearchManager.USER_QUERY); 132 cursor.add(makeSuggestion(source, shortcut)); 147 private SuggestionData makeSuggestion(Source source, ContentValues shortcut) { argument [all...] |
H A D | WebCorpus.java | 86 SuggestionData shortcut = new SuggestionData(mWebSearchSource); 88 shortcut.setIntentAction(Intent.ACTION_VIEW); 89 shortcut.setIcon1(String.valueOf(R.drawable.globe)); 90 shortcut.setText1(query); 92 shortcut.setSuggestionQuery(query); 93 shortcut.setIntentData(URLUtil.guessUrl(query)); 95 shortcut.setIntentAction(Intent.ACTION_WEB_SEARCH); 96 shortcut.setIcon1(String.valueOf(R.drawable.magnifying_glass)); 97 shortcut.setText1(query); 98 shortcut [all...] |
H A D | ShortcutRefresher.java | 29 * Called by the ShortcutRefresher when a shortcut has been refreshed. 31 * @param source source of this shortcut. 32 * @param shortcutId the id of the shortcut. 33 * @param refreshed the updated shortcut, or {@code null} if the shortcut 41 * Starts a task to refresh a single shortcut. 43 * @param shortcut The shortcut to be refreshed. 46 void refresh(Suggestion shortcut, Listener listener); argument 49 * Returns true if the given shortcut require [all...] |
H A D | SourceShortcutRefresher.java | 49 public void refresh(Suggestion shortcut, Listener listener) { argument 50 Source source = shortcut.getSuggestionSource(); 54 String shortcutId = shortcut.getShortcutId(); 57 Log.d(TAG, "Refreshing shortcut " + shortcutId + " '" + 58 shortcut.getSuggestionText1() + "'"); 61 String extraData = shortcut.getSuggestionIntentExtraData(); 69 * Returns true if the given shortcut requires refreshing. 86 * Indicate that the shortcut no longer requires refreshing. 102 * Cancel any pending shortcut refresh requests. 113 * Refreshes a shortcut wit [all...] |
H A D | ShortcutCursor.java | 74 if (DBG) Log.d(TAG, "Skipping shortcut " + i); 80 * Refresh a shortcut from this cursor. 82 * @param shortcut The shortcut to refresh. Should be a shortcut taken from this cursor. 84 public void refresh(Suggestion shortcut) { argument 85 mRefresher.refresh(shortcut, new ShortcutRefresher.Listener() {
|
H A D | EventLogLogger.java | 121 String shortcut = cursor.isSuggestionShortcut() ? "shortcut" : ""; 122 sb.append(source).append(':').append(type).append(':').append(shortcut);
|
H A D | ShortcutRepositoryImplLog.java | 43 * A shortcut repository implementation that uses a log of every click. 163 // Order by sum of hit times (seconds since cutoff) for the clicks for each shortcut. 173 if (DBG) Log.d(TAG, "Empty shortcut query:\n" + mEmptyQueryShortcutQuery); 180 if (DBG) Log.d(TAG, "Empty shortcut:\n" + mShortcutQuery); 307 final ContentValues shortcut; 309 shortcut = null; 312 shortcut = makeShortcutRow(refreshed); 318 if (shortcut == null) { 319 if (DBG) Log.d(TAG, "Deleting shortcut: " + shortcutId); 322 if (DBG) Log.d(TAG, "Updating shortcut [all...] |
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | MockShortcutRefresher.java | 31 public void refresh(Suggestion shortcut, Listener listener) { argument
|
/packages/apps/IM/src/com/android/im/app/ |
H A D | ChatSwitcher.java | 402 // If there is a shortcut assigned to this chat, then show it, otherwise 403 // hide the shortcut text view. 404 long shortcut = c.getLong(mShortcutColumn); 405 TextView shortcutView = (TextView) view.findViewById(R.id.shortcut); 408 if (shortcut >= 0 && shortcut < 10) { 409 shortcutView.setText(mMenuPlus + shortcut); 641 long shortcut = c.getLong(mShortcutColumn); 642 if (shortcut >= 0 && shortcut < 1 [all...] |
/packages/apps/Music/src/com/android/music/ |
H A D | PlaylistBrowserActivity.java | 369 final Intent shortcut = new Intent(); 370 shortcut.setAction(Intent.ACTION_VIEW); 371 shortcut.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/playlist"); 372 shortcut.putExtra("playlist", String.valueOf(id)); 375 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcut);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Launcher.java | 482 // set the accessibility text to "Select shortcut" 797 * Creates a view representing a shortcut. 799 * @param info The data structure describing the shortcut. 809 * Creates a view representing a shortcut inflated from the specified resource. 811 * @param layoutResId The id of the XML layout used to create the shortcut. 812 * @param parent The group the shortcut belongs to. 813 * @param info The data structure describing the shortcut. 831 * Add an application shortcut to the workspace. 834 * @param cellInfo The position on screen where to create the shortcut. 854 * Add a shortcut t [all...] |
/packages/apps/Browser/src/com/android/browser/ |
H A D | BrowserActivity.java | 601 * was identified as plain search terms and not URL/shortcut. 1282 // The user has already fired a shortcut with this hold down of the 1290 // The shortcut action consumes the MENU. Even if it is still down, 1291 // it won't trigger the next shortcut action. In the case of the 1292 // shortcut action triggering a new activity, like Bookmarks, we 1465 // allow them to chord to get a shortcut. 1469 // whether the matching shortcut key will function. 2067 // the Activity's shortcut keys are only handled when WebView 3635 int shortcut = parseUrlShortcut(inUrl); 3636 if (shortcut ! [all...] |