/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);
|
/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/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...] |
firefox2_importer.h | 85 // <DT><A HREF="url" SHORTCUTURL="shortcut" ADD_DATE="11213014"...>name</A> 102 string16* shortcut,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
Keyboard.java | 230 case CODE_SHORTCUT: return "shortcut";
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
UserBinaryDictionary.java | 40 // TODO: use Words.SHORTCUT when we target JellyBean or above 41 final static String SHORTCUT = "shortcut"; 48 SHORTCUT, 210 final int indexShortcut = hasShortcutColumn ? cursor.getColumnIndex(SHORTCUT) : 0; 214 final String shortcut = hasShortcutColumn ? cursor.getString(indexShortcut) : null; local 220 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) { 221 super.addWord(shortcut, word, frequency);
|
/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...] |
/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];
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
FusionDictionary.java | 60 * This represents an "attribute", that is either a bigram or a shortcut. 85 * A group of characters, with a frequency, shortcut targets, bigrams, and children. 103 boolean mIsNotAWord; // Only a shortcut 167 * Gets the shortcut target for the given word. Returns null if the word is not in the 168 * shortcut list. 175 WeightedString shortcut = mShortcutTargets.get(i); local 176 if (shortcut.mWord.equals(word)) { 177 return shortcut; 203 * Updates the CharGroup with the given properties. Adds the shortcut and bigram lists to 204 * the existing ones if any. Note: unigram, bigram, and shortcut frequencies are onl 219 final WeightedString shortcut = shortcutTargets.get(i); local [all...] |