HomeSort by relevance Sort by last modified time
    Searched refs:shortcut (Results 1 - 25 of 36) sorted by null

1 2

  /frameworks/base/policy/src/com/android/internal/policy/impl/
ShortcutManager.java 34 * <li> Returning a shortcut-matching intent to clients
43 Settings.Bookmarks.SHORTCUT, Settings.Bookmarks.INTENT
48 /** Map of a shortcut to its intent. */
58 /** Observes the provider of shortcut+intents */
80 int shortcut = c.getInt(COLUMN_SHORTCUT); local
81 if (shortcut == 0) continue;
87 Log.w(TAG, "Intent URI for shortcut invalid.", e);
90 mShortcutIntents.put(shortcut, intent);
95 * Gets the shortcut intent for a given keycode+modifier. Make sure you
97 * if 'Sym+A' should invoke a shortcut on 'A', you should strip th
111 int shortcut = kcm.get(keyCode, modifiers); local
    [all...]
  /packages/apps/Settings/src/com/android/settings/quicklaunch/
QuickLaunchSettings.java 50 * and allows choosing a new bookmark for a shortcut.
67 Bookmarks.SHORTCUT, Bookmarks.TITLE, Bookmarks.INTENT
69 private static final String sShortcutSelection = Bookmarks.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) {
230 char shortcut = data.getCharExtra(BookmarkPicker.EXTRA_SHORTCUT, (char) 0); local
242 Bookmarks.add(getContentResolver(), intent, "", DEFAULT_BOOKMARK_FOLDER, shortcut, 0); local
271 char shortcut = (char) Character.toLowerCase(keyMap.getDisplayLabel(keyCode)); local
302 char shortcut = Character.toLowerCase((char) c.getInt(COLUMN_SHORTCUT)); local
343 char shortcut = (char) noLongerBookmarkedShortcuts.keyAt(i); local
    [all...]
ShortcutPreference.java 29 * Preference type for a shortcut in {@link QuickLaunchSettings}.
49 public ShortcutPreference(Context context, char shortcut) {
65 mShortcut = shortcut;
74 public void setShortcut(char shortcut) {
75 if (shortcut != mShortcut) {
76 mShortcut = shortcut;
106 TextView shortcutView = (TextView) view.findViewById(R.id.shortcut);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
TableLayout8.java 61 TextView shortcut = new TextView(this); local
62 shortcut.setText(R.string.table_layout_8_ctrlq);
63 shortcut.setPadding(3, 3, 3, 3);
64 shortcut.setGravity(Gravity.RIGHT | Gravity.TOP);
67 row.addView(shortcut, new TableRow.LayoutParams());
TableLayout7.java 70 TextView shortcut = new TextView(this); local
71 shortcut.setText(R.string.table_layout_7_ctrlq);
72 shortcut.setPadding(3, 3, 3, 3);
73 shortcut.setGravity(Gravity.RIGHT | Gravity.TOP);
76 row.addView(shortcut, new TableRow.LayoutParams());
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
ShortcutsProvider.java 99 private void addShortcut(final ContentValues shortcut) {
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) {
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) {
    [all...]
WebCorpus.java 86 SuggestionData shortcut = new SuggestionData(mWebSearchSource); local
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.setSuggestionQuery(query)
    [all...]
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);
49 * Returns true if the given shortcut requires refreshing
    [all...]
SourceShortcutRefresher.java 49 public void refresh(Suggestion shortcut, Listener listener) {
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 with a source and reports the result to
    [all...]
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) {
85 mRefresher.refresh(shortcut, new ShortcutRefresher.Listener() {
88 if (DBG) Log.d(TAG, "Shortcut refreshed: " + shortcutId);
EventLogLogger.java 121 String shortcut = cursor.isSuggestionShortcut() ? "shortcut" : ""; local
122 sb.append(source).append(':').append(type).append(':').append(shortcut);
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; local
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: " + shortcut)
535 final ContentValues shortcut = makeShortcutRow(suggestion); local
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
MockShortcutRefresher.java 31 public void refresh(Suggestion shortcut, Listener listener) {
  /external/webkit/WebCore/inspector/front-end/
CallStackSidebarPane.js 32 var shortcut = WebInspector.KeyboardShortcut.makeKey(WebInspector.KeyboardShortcut.KeyCodes.Period,
34 this._shortcuts[shortcut] = this._selectNextCallFrameOnStack.bind(this);
36 var shortcut = WebInspector.KeyboardShortcut.makeKey(WebInspector.KeyboardShortcut.KeyCodes.Comma,
38 this._shortcuts[shortcut] = this._selectPreviousCallFrameOnStack.bind(this);
114 var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event);
115 var handler = this._shortcuts[shortcut];
ScriptsPanel.js 163 var handler, shortcut;
168 shortcut = WebInspector.KeyboardShortcut.makeKey(WebInspector.KeyboardShortcut.KeyCodes.F8);
169 this._shortcuts[shortcut] = handler;
170 shortcut = WebInspector.KeyboardShortcut.makeKey(WebInspector.KeyboardShortcut.KeyCodes.Slash, platformSpecificModifier);
171 this._shortcuts[shortcut] = handler;
175 shortcut = WebInspector.KeyboardShortcut.makeKey(WebInspector.KeyboardShortcut.KeyCodes.F10);
176 this._shortcuts[shortcut] = handler;
177 shortcut = WebInspector.KeyboardShortcut.makeKey(WebInspector.KeyboardShortcut.KeyCodes.SingleQuote, platformSpecificModifier);
178 this._shortcuts[shortcut] = handler;
182 shortcut = WebInspector.KeyboardShortcut.makeKey(WebInspector.KeyboardShortcut.KeyCodes.F11)
    [all...]
ConsoleView.js 94 var shortcut;
97 shortcut = WebInspector.KeyboardShortcut.makeKey("k", WebInspector.KeyboardShortcut.Modifiers.Meta);
98 this._shortcuts[shortcut] = clearConsoleHandler;
99 this._shortcuts[shortcut].isMacOnly = true;
100 shortcut = WebInspector.KeyboardShortcut.makeKey("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl);
101 this._shortcuts[shortcut] = clearConsoleHandler;
437 var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event); variable
438 var handler = this._shortcuts[shortcut];
440 if (!this._shortcuts[shortcut].isMacOnly || WebInspector.isMac()) {
    [all...]
  /frameworks/base/services/java/com/android/server/
DemoDataSet.java 134 private final Uri addShortcut(String shortcut, Intent intent)
136 if (Config.LOGV) Slog.v(LOG_TAG, "addShortcut: shortcut=" + shortcut + ", intent=" + intent);
138 shortcut != null ? shortcut.charAt(0) : 0, 0);
  /frameworks/base/core/java/com/android/internal/view/menu/
MenuItemImpl.java 264 * @return The active shortcut (based on QWERTY-mode of the menu).
271 * @return The label to show for the shortcut. This includes the chording
277 char shortcut = getShortcut(); local
278 if (shortcut == 0) {
283 switch (shortcut) {
298 sb.append(shortcut);
308 * a shortcut defined)
311 // Show shortcuts if the menu is supposed to show shortcuts AND this item has a shortcut
316 * Refreshes the shortcut shown on the ItemViews. This method retrieves current
317 * shortcut state (mode and shown) from the menu that contains this item
    [all...]
IconMenuItemView.java 135 * shortcut+title being shown. Instead, re-set the shortcut caption
145 void setCaptionMode(boolean shortcut) {
154 mShortcutCaptionMode = shortcut && (mItemData.shouldShowShortcut());
295 * Shortcut has changed and we're showing it right now, need to
  /packages/apps/Music/src/com/android/music/
PlaylistBrowserActivity.java 369 final Intent shortcut = new Intent(); local
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);
  /external/webkit/WebKit/win/
AccessibleBase.cpp 346 HRESULT STDMETHODCALLTYPE AccessibleBase::get_accKeyboardShortcut(VARIANT vChild, BSTR* shortcut)
348 if (!shortcut)
351 *shortcut = 0;
367 // Ctrl+Alt+Shift+Meta+key. MSDN states that keyboard shortcut strings
378 *shortcut = BString(accessKeyModifiers + accessKey).release();
  /external/chromium/base/
file_util.h 214 // Resolve Windows shortcut (.LNK file)
215 // This methods tries to resolve a shortcut .LNK file. If the |path| is valid
220 // Create a Windows shortcut (.LNK file)
221 // This method creates a shortcut link using the information given. Ensure
227 // resource id. 'app_id' is the app model id for the shortcut on Win7.
228 // Note that if the shortcut exists it will overwrite it.
234 // Update a Windows shortcut (.LNK file). This method assumes the shortcut
238 // is NULL no changes are made to the shortcut). 'destination' is the link
239 // file to be updated. 'app_id' is the app model id for the shortcut on Win7
    [all...]
  /external/webkit/WebKitTools/DumpRenderTree/win/
LayoutTestControllerWin.cpp 492 // Do we have a shortcut?
498 // We have a shortcut, find its target.
499 COMPtr<IShellLink> shortcut(Create, CLSID_ShellLink);
500 if (!shortcut)
502 COMPtr<IPersistFile> persistFile(Query, shortcut);
503 if (!shortcut)
507 if (FAILED(shortcut->Resolve(0, 0)))
511 if (FAILED(shortcut->GetPath(targetPath, targetPathLen, 0, 0)))
    [all...]
  /frameworks/base/core/java/android/provider/
Settings.java     [all...]
  /external/libvpx/vp8/encoder/
encodemb.c 320 int shortcut=0; local
361 shortcut = 1;
363 shortcut = 0;
365 if(shortcut)
414 if(shortcut)

Completed in 920 milliseconds

1 2