/frameworks/base/policy/src/com/android/internal/policy/impl/ |
ShortcutManager.java | 35 * <li> Returning a shortcut-matching intent to clients 44 Settings.Bookmarks.SHORTCUT, Settings.Bookmarks.INTENT 49 /** Map of a shortcut to its intent. */ 59 /** Observes the provider of shortcut+intents */ 81 int shortcut = c.getInt(COLUMN_SHORTCUT); local 82 if (shortcut == 0) continue; 88 Log.w(TAG, "Intent URI for shortcut invalid.", e); 91 mShortcutIntents.put(shortcut, intent); 96 * Gets the shortcut intent for a given keycode+modifier. Make sure you 98 * if 'Sym+A' should invoke a shortcut on 'A', you should strip th 114 int shortcut = kcm.get(keyCode, metaState); local [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
ShortcutsProvider.java | 100 private void addShortcut(final ContentValues shortcut) { 101 String sourceName = shortcut.getAsString(EXTRA_SHORTCUT_SOURCE); 107 String sourceAction = shortcut.getAsString(SearchManager.SUGGEST_COLUMN_INTENT_ACTION); 110 Log.d(TAG, "Ignoring shortcut from " + sourceName + 118 Log.w(TAG, "Got shortcut for " + sourceComponent + " from a different process"); 124 storeShortcut(sourceComponent, shortcut); 130 private void storeShortcut(ComponentName sourceComponent, ContentValues shortcut) { 131 if (DBG) Log.d(TAG, "Adding (PID: " + Binder.getCallingPid() + "): " + shortcut); 135 Log.w(TAG, "Unknown shortcut source " + sourceComponent); 139 String userQuery = shortcut.getAsString(SearchManager.USER_QUERY) [all...] |
ShortcutRefresher.java | 27 * Called by the ShortcutRefresher when a shortcut has been refreshed. 29 * @param source source of this shortcut. 30 * @param shortcutId the id of the shortcut. 31 * @param refreshed the updated shortcut, or {@code null} if the shortcut 39 * Starts a task to refresh a single shortcut. 41 * @param shortcut The shortcut to be refreshed. 44 void refresh(Suggestion shortcut, Listener listener); 47 * 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. 106 * Refreshes a shortcut with a source and reports the result to a 116 * @param source The source that should validate the shortcut [all...] |
EventLogLogger.java | 121 String shortcut = cursor.isSuggestionShortcut() ? "shortcut" : ""; local 122 sb.append(source).append(':').append(type).append(':').append(shortcut);
|
ShortcutCursor.java | 79 if (DBG) Log.d(TAG, "Skipping shortcut " + i); 91 * Refresh a shortcut from this cursor. 93 * @param shortcut The shortcut to refresh. Should be a shortcut taken from this cursor. 95 public void refresh(Suggestion shortcut) { 96 mRefresher.refresh(shortcut, new ShortcutRefresher.Listener() { 99 if (DBG) Log.d(TAG, "Shortcut refreshed: " + shortcutId);
|
ShortcutRepositoryImplLog.java | 49 * A shortcut repository implementation that uses a log of every click. 162 // Order by sum of hit times (seconds since cutoff) for the clicks for each shortcut. 172 if (DBG) Log.d(TAG, "Empty shortcut query:\n" + mEmptyQueryShortcutQuery); 179 if (DBG) Log.d(TAG, "Empty shortcut:\n" + mShortcutQuery); 349 final ContentValues shortcut; local 351 shortcut = null; 354 shortcut = makeShortcutRow(refreshed); 360 if (shortcut == null) { 361 if (DBG) Log.d(TAG, "Deleting shortcut: " + shortcutId); 364 if (DBG) Log.d(TAG, "Updating shortcut: " + shortcut) 664 final ContentValues shortcut = makeShortcutRow(suggestion); 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/tests/src/com/android/quicksearchbox/ |
MockShortcutRefresher.java | 31 public void refresh(Suggestion shortcut, Listener listener) {
|
RankAwarePromoterTest.java | 67 // (e.g. a shortcut) into the promoted suggestions list, and the current 74 Suggestion shortcut = new SuggestionPosition(corpora2); local 75 promoted.add(shortcut); 80 // The shortcut at the top of the list. 88 // The shortcut at the top of the list.
|
/external/chromium/chrome/browser/importer/ |
firefox_importer_unittest.cc | 104 // Unicode characters in title and shortcut. 107 string16 shortcut; local 113 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); 117 EXPECT_EQ(L"\x4E2D", UTF16ToWide(shortcut)); 121 // No shortcut, and url contains %22 ('"' character). 124 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); 128 EXPECT_EQ(ASCIIToUTF16(""), shortcut); 134 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); 138 EXPECT_EQ(ASCIIToUTF16(""), shortcut); 145 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data) [all...] |
firefox2_importer.cc | 119 string16 shortcut; local 123 &favicon, &shortcut, &add_date, 139 // Otherwise, we use the shortcut. 187 string16 shortcut; local 195 &url, &favicon, &shortcut, &add_date, 235 // If there is a SHORTCUT attribute for this bookmark, we 237 TemplateURL* t_url = CreateTemplateURL(title, shortcut, url); 470 string16* shortcut, 476 shortcut->clear(); 520 base::OnStringConversionError::SKIP, shortcut); [all...] |
firefox2_importer.h | 85 // <DT><A HREF="url" SHORTCUTURL="shortcut" ADD_DATE="11213014"...>name</A> 102 string16* shortcut,
|
/external/webkit/Source/WebCore/inspector/front-end/ |
StylesSidebarPane.js | 534 var shortcut = WebInspector.KeyboardShortcut; variable 536 shortcut.shortcutToString(shortcut.Keys.Tab), 537 shortcut.shortcutToString(shortcut.Keys.Tab, shortcut.Modifiers.Shift) 541 shortcut.shortcutToString(shortcut.Keys.Up), 542 shortcut.shortcutToString(shortcut.Keys.Down [all...] |
ConsoleView.js | 489 var shortcut = WebInspector.KeyboardShortcut; variable 490 var shortcutK = shortcut.makeDescriptor("k", WebInspector.KeyboardShortcut.Modifiers.Meta); 491 // This case requires a separate bound function as its isMacOnly property should not be shared among different shortcut handlers. 496 var shortcutL = shortcut.makeDescriptor("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl); 504 shortcut.shortcutToString(shortcut.Keys.Tab), 505 shortcut.shortcutToString(shortcut.Keys.Tab, shortcut.Modifiers.Shift) 508 section.addKey(shortcut.shortcutToString(shortcut.Keys.Right), WebInspector.UIString("Accept suggestion")) 530 var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event); variable [all...] |
CallStackSidebarPane.js | 88 var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event); 89 var handler = this._shortcuts[shortcut];
|
ElementsPanel.js | [all...] |
inspector.js | 668 var shortcut = WebInspector.KeyboardShortcut; 671 shortcut.shortcutToString("]", shortcut.Modifiers.CtrlOrMeta), 672 shortcut.shortcutToString("[", shortcut.Modifiers.CtrlOrMeta) 675 section.addKey(shortcut.shortcutToString(shortcut.Keys.Esc), WebInspector.UIString("Toggle console")); 676 section.addKey(shortcut.shortcutToString("f", shortcut.Modifiers.CtrlOrMeta), WebInspector.UIString("Search")); 679 shortcut.shortcutToString("g", shortcut.Modifiers.Meta) [all...] |
/external/chromium/chrome/browser/ |
shell_integration_win.cc | 85 // Get expected app id for given chrome shortcut. 86 // Returns true if the shortcut point to chrome and expected app id is 91 // Get app id associated with given shortcut. 154 for (FilePath shortcut = shortcuts_enum.Next(); !shortcut.empty(); 155 shortcut = shortcuts_enum.Next()) { 156 // Load the shortcut. 167 FAILED(persist_file->Load(shortcut.value().c_str(), STGM_READ))) { 172 // Get expected app id from shortcut. 178 // Get existing app id from shortcut if any [all...] |
/external/chromium/chrome/browser/resources/ |
keyboard_overlay.js | 75 * Returns shortcut data. 78 return keyboardOverlayData['shortcut']; 161 * Returns an ID of the shortcut text. 164 return identifier + '-shortcut-text-' + i; 296 classes.push('is-shortcut'); 382 shortcutText.className = 'keyboard-overlay-shortcut-text';
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
MenuItemImpl.java | 263 * @return The active shortcut (based on QWERTY-mode of the menu). 270 * @return The label to show for the shortcut. This includes the chording 276 char shortcut = getShortcut(); local 277 if (shortcut == 0) { 282 switch (shortcut) { 297 sb.append(shortcut); 307 * a shortcut defined) 310 // Show shortcuts if the menu is supposed to show shortcuts AND this item has a shortcut
|
ActionMenu.java | 169 final char shortcut = qwerty ? item.getAlphabeticShortcut() : local 171 if (keyCode == shortcut) {
|