Searched refs:shortcut (Results 1 - 23 of 23) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DShortcutsProvider.java100 private void addShortcut(final ContentValues shortcut) { argument
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) { argument
131 if (DBG) Log.d(TAG, "Adding (PID: " + Binder.getCallingPid() + "): " + shortcut);
135 Log.w(TAG, "Unknown shortcut source " + sourceComponent);
139 String userQuery = shortcut
158 makeSuggestion(Source source, ContentValues shortcut) argument
[all...]
H A DShortcutRefresher.java27 * 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); argument
47 * Returns true if the given shortcut require
[all...]
H A DSourceShortcutRefresher.java49 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.
106 * Refreshes a shortcut with a source and reports the result to a
116 * @param source The source that should validate the shortcut
[all...]
H A DEventLogLogger.java121 String shortcut = cursor.isSuggestionShortcut() ? "shortcut" : "";
122 sb.append(source).append(':').append(type).append(':').append(shortcut);
H A DShortcutCursor.java79 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) { argument
96 mRefresher.refresh(shortcut, new ShortcutRefresher.Listener() {
H A DShortcutRepositoryImplLog.java49 * 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;
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
[all...]
/packages/apps/Settings/src/com/android/settings/quicklaunch/
H A DQuickLaunchSettings.java50 * 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 DShortcutPreference.java29 * 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/tests/src/com/android/quicksearchbox/
H A DMockShortcutRefresher.java31 public void refresh(Suggestion shortcut, Listener listener) { argument
H A DRankAwarePromoterTest.java67 // (e.g. a shortcut) into the promoted suggestions list, and the current
74 Suggestion shortcut = new SuggestionPosition(corpora2);
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/
H A DDictionaryBackupAgent.java166 String shortcut = cursor.getString(COLUMN_SHORTCUT);
167 if (TextUtils.isEmpty(shortcut)) shortcut = "";
170 + SEPARATOR + shortcut;
224 String shortcut = null;
228 if (st.hasMoreTokens()) shortcut = st.nextToken();
229 if (TextUtils.isEmpty(shortcut)) shortcut = null;
239 cv.put(Words.SHORTCUT, shortcut);
242 + Words.SHORTCUT + "=?", new String[] {word, shortcut});
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboard.java230 case CODE_SHORTCUT: return "shortcut";
/packages/apps/Settings/src/com/android/settings/
H A DUserDictionarySettings.java60 // The index of the shortcut in the above array.
163 final String shortcut = getShortcut(position);
165 showAddOrEditDialog(word, shortcut);
190 * @param editingShortcut the shortcut for this entry, or null if none.
227 public static void deleteWord(final String word, final String shortcut, argument
229 if (TextUtils.isEmpty(shortcut)) {
236 new String[] { word, shortcut });
248 final String shortcut = c.getString(INDEX_SHORTCUT);
249 if (TextUtils.isEmpty(shortcut)) {
252 ((TextView)v).setText(shortcut);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DUserBinaryDictionary.java43 final static String SHORTCUT = "shortcut";
246 final String shortcut = hasShortcutColumn ? cursor.getString(indexShortcut) : null;
252 if (null != shortcut && shortcut.length() < MAX_WORD_LENGTH) {
253 super.addWord(shortcut, word, frequency);
H A DExpandableDictionary.java316 // If node.mShortcutOnly is true, then it exists as a shortcut but not as a word,
319 // a shortcut, but this does not matter), so it's a valid word.
405 final char[] shortcut = node.mShortcutTargets.get(shortcutIndex);
406 suggestions.add(new SuggestedWordInfo(new String(shortcut, 0, shortcut.length),
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DFusionDictionary.java60 * 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);
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 frequencie
[all...]
H A DBinaryDictInputOutput.java321 * Compute the size of a shortcut in bytes.
323 private static int getShortcutSize(final WeightedString shortcut) { argument
325 final String word = shortcut.mWord;
336 * Compute the size of a shortcut list in bytes.
344 for (final WeightedString shortcut : shortcutList) {
345 size += getShortcutSize(shortcut);
752 throw new RuntimeException("0-sized shortcut list must be null");
856 * Makes the flag value for a shortcut.
/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DUserDictionaryAddWordContents.java44 public static final String EXTRA_SHORTCUT = "shortcut";
69 final String shortcut = args.getString(EXTRA_SHORTCUT);
70 if (null != shortcut && null != mShortcutEditText) {
71 mShortcutEditText.setText(shortcut);
129 // If there is no shortcut, and the word already exists in the database, then we
130 // should not insert, because either A. the word exists with no shortcut, in which
132 // exists with at least one shortcut, in which case it has priority on our word.
135 // Disallow duplicates. If the same word with no shortcut is defined, remove it; if
136 // the same word with the same shortcut is defined, remove it; but we don't mind if
137 // there is the same word with a different, non-empty shortcut
[all...]
/packages/apps/Music/src/com/android/music/
H A DPlaylistBrowserActivity.java378 final Intent shortcut = new Intent();
379 shortcut.setAction(Intent.ACTION_VIEW);
380 shortcut.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/playlist");
381 shortcut.putExtra("playlist", String.valueOf(id));
384 intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcut);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherModel.java272 ShortcutInfo shortcut = (ShortcutInfo) item;
273 if (modelShortcut.title.toString().equals(shortcut.title.toString()) &&
274 modelShortcut.intent.filterEquals(shortcut.intent) &&
275 modelShortcut.id == shortcut.id &&
276 modelShortcut.itemType == shortcut.itemType &&
277 modelShortcut.container == shortcut.container &&
278 modelShortcut.screen == shortcut.screen &&
279 modelShortcut.cellX == shortcut.cellX &&
280 modelShortcut.cellY == shortcut.cellY &&
281 modelShortcut.spanX == shortcut
[all...]
H A DLauncher.java157 "com.android.launcher.intent.extra.shortcut.INGORE_LAUNCH_ANIMATION";
203 // How long to wait before the new-shortcut animation automatically pans the workspace
612 // Before adding this resetAddInfo(), after a shortcut was added to a workspace screen,
978 * Creates a view representing a shortcut.
980 * @param info The data structure describing the shortcut.
990 * Creates a view representing a shortcut inflated from the specified resource.
992 * @param layoutResId The id of the XML layout used to create the shortcut.
993 * @param parent The group the shortcut belongs to.
994 * @param info The data structure describing the shortcut.
1006 * Add an application shortcut t
[all...]
H A DWorkspace.java2207 // If the item being dropped is a shortcut and the nearest drop
2208 // cell also contains a shortcut, then create a folder with the two shortcuts.
2219 // Aside from the special case where we're dropping a shortcut onto a shortcut,
3199 // Now we animate the dragView, (ie. the widget or shortcut preview) into its final
3777 BubbleTextView shortcut = (BubbleTextView) view;
3780 shortcut.applyFromShortcutInfo(info, mIconCache);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictIOTests.java161 for (final String shortcut : shortcutMap.get(word)) {
162 shortcuts.add(new WeightedString(shortcut, UNIGRAM_FREQ));
223 // check shortcut
228 assertNotNull("shortcut not found: " + entry.getKey() + ", " + word,

Completed in 422 milliseconds