/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);
|
/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.
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
UserDictionaryCompatUtils.java | 33 final String shortcut, final Locale locale) { 35 CompatUtils.invoke(Words.class, null, METHOD_addWord, context, word, freq, shortcut,
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
DictionaryBackupAgent.java | 72 Words.SHORTCUT 166 String shortcut = cursor.getString(COLUMN_SHORTCUT); local 167 if (TextUtils.isEmpty(shortcut)) shortcut = ""; 170 + SEPARATOR + shortcut; 224 String shortcut = null; local 228 if (st.hasMoreTokens()) shortcut = st.nextToken(); 229 if (TextUtils.isEmpty(shortcut)) shortcut = null; 239 cv.put(Words.SHORTCUT, shortcut) [all...] |
/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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
Constants.java | 203 case CODE_SHORTCUT: return "shortcut";
|
UserBinaryDictionary.java | 46 // TODO: use Words.SHORTCUT when we target JellyBean or above 47 final static String SHORTCUT = "shortcut"; 53 SHORTCUT, 246 final int indexShortcut = hasShortcutColumn ? cursor.getColumnIndex(SHORTCUT) : 0; 250 final String shortcut = hasShortcutColumn ? cursor.getString(indexShortcut) : null; local 257 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) { 258 super.addWord(shortcut, word, adjustedFrequency, true /* isNotAWord */);
|
/frameworks/base/core/java/android/provider/ |
UserDictionary.java | 94 * An optional shortcut for this word. When the shortcut is typed, supporting IMEs should 97 public static final String SHORTCUT = "shortcut"; 153 * @param shortcut optional shortcut spelling for this word. When the shortcut 159 int frequency, String shortcut, Locale locale) { 176 values.put(SHORTCUT, shortcut); [all...] |
/packages/apps/Settings/src/com/android/settings/ |
UserDictionarySettings.java | 57 UserDictionary.Words._ID, UserDictionary.Words.WORD, UserDictionary.Words.SHORTCUT 60 // The index of the shortcut in the above array. 71 + "=? AND " + UserDictionary.Words.SHORTCUT + "=?"; 73 + "=? AND " + UserDictionary.Words.SHORTCUT + " is null OR " 74 + UserDictionary.Words.SHORTCUT + "=''"; 156 new String[] { UserDictionary.Words.WORD, UserDictionary.Words.SHORTCUT }, 163 final String shortcut = getShortcut(position); local 165 showAddOrEditDialog(word, shortcut); 190 * @param editingShortcut the shortcut for this entry, or null if none. 224 mCursor.getColumnIndexOrThrow(UserDictionary.Words.SHORTCUT)); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
UserDictionarySettings.java | 57 { UserDictionary.Words._ID, UserDictionary.Words.WORD, UserDictionary.Words.SHORTCUT}; 62 // The index of the shortcut in the above array. 70 UserDictionary.Words.WORD, UserDictionary.Words.SHORTCUT 95 + "=? AND " + UserDictionary.Words.SHORTCUT + "=?"; 97 + "=? AND " + UserDictionary.Words.SHORTCUT + " is null OR " 98 + UserDictionary.Words.SHORTCUT + "=''"; 189 final String shortcut = getShortcut(position); local 191 showAddOrEditDialog(word, shortcut); 202 // with the shortcut API. 225 * @param editingShortcut the shortcut for this entry, or null if none [all...] |
UserDictionaryAddWordContents.java | 48 public static final String EXTRA_SHORTCUT = "shortcut"; 81 final String shortcut; local 83 shortcut = args.getString(EXTRA_SHORTCUT); 84 if (null != shortcut && null != mShortcutEditText) { 85 mShortcutEditText.setText(shortcut); 89 shortcut = null; 150 // If there is no shortcut, and the word already exists in the database, then we 151 // should not insert, because either A. the word exists with no shortcut, in which 153 // exists with at least one shortcut, in which case it has priority on our word. 156 // Disallow duplicates. If the same word with no shortcut is defined, remove it; i [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
UserDictionary_WordsTest.java | 88 private void assertWord(String word, int frequency, String shortcut, Locale locale, 91 UserDictionary.Words.addWord(mContext, word, frequency, shortcut, locale);
|
/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];
|