Searched defs:shortcutId (Results 1 - 17 of 17) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DShortcutRefresher.java30 * @param shortcutId the id of the shortcut.
34 void onShortcutRefreshed(Source source, String shortcutId, argument
49 boolean shouldRefresh(Source source, String shortcutId); argument
54 public void markShortcutRefreshed(Source source, String shortcutId); argument
H A DShortcutCursor.java98 final String shortcutId, final SuggestionCursor refreshed) {
99 if (DBG) Log.d(TAG, "Shortcut refreshed: " + shortcutId);
100 mShortcutRepo.updateShortcut(source, shortcutId, refreshed);
103 refresh(source, shortcutId, refreshed);
115 private void refresh(Source source, String shortcutId, SuggestionCursor refreshed) { argument
116 if (DBG) Log.d(TAG, "refresh " + shortcutId);
128 if (shortcutId.equals(getShortcutId()) && source.equals(getSuggestionSource())) {
H A DShortcutRepository.java82 * @param shortcutId The ID of the shortcut that's been refershed
85 void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed); argument
H A DSource.java153 * @param shortcutId The id of the shortcut to update.
158 SuggestionCursor refreshShortcut(String shortcutId, String extraData); argument
H A DSourceShortcutRefresher.java54 String shortcutId = shortcut.getShortcutId();
55 if (shouldRefresh(source, shortcutId) && !isRefreshing(source, shortcutId)) {
57 Log.d(TAG, "Refreshing shortcut " + shortcutId + " '" +
60 markShortcutRefreshing(source, shortcutId);
63 source, shortcutId, extraData, listener);
71 public boolean shouldRefresh(Source source, String shortcutId) { argument
72 return source != null && shortcutId != null
73 && !mRefreshed.contains(makeKey(source, shortcutId));
76 public boolean isRefreshing(Source source, String shortcutId) { argument
81 markShortcutRefreshing(Source source, String shortcutId) argument
88 markShortcutRefreshed(Source source, String shortcutId) argument
101 makeKey(Source source, String shortcutId) argument
120 ShortcutRefreshTask(Source source, String shortcutId, String extraData, Listener listener) argument
[all...]
H A DSearchableSource.java323 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { argument
326 cursor = getValidationCursor(getContext(), mSearchable, shortcutId, extraData);
327 if (DBG) Log.d(TAG, toString() + "[" + shortcutId + "] returned.");
333 Log.e(TAG, toString() + "[" + shortcutId + "] failed", ex);
411 String shortcutId, String extraData) {
429 uriBuilder.appendPath(shortcutId);
410 getValidationCursor(Context context, SearchableInfo searchable, String shortcutId, String extraData) argument
H A DSuggestionData.java191 public SuggestionData setShortcutId(String shortcutId) { argument
192 mShortcutId = shortcutId;
H A DShortcutRepositoryImplLog.java281 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { argument
282 refreshShortcut(source, shortcutId, refreshed);
343 void refreshShortcut(Source source, final String shortcutId, argument
346 if (shortcutId == null) throw new NullPointerException("shortcutId");
348 final String[] whereArgs = { shortcutId, source.getName() };
361 if (DBG) Log.d(TAG, "Deleting shortcut: " + shortcutId);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DGoogleSource.java27 SuggestionCursor refreshShortcut(String shortcutId, String extraData); argument
H A DAbstractGoogleSource.java51 public abstract SuggestionCursor refreshShortcut(String shortcutId, String extraData); argument
H A DGoogleSuggestClient.java144 public SuggestionCursor refreshShortcut(String shortcutId, String oldExtraData) { argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DMockShortcutRefresher.java28 public void markShortcutRefreshed(Source source, String shortcutId) { argument
37 public boolean shouldRefresh(Source source, String shortcutId) { argument
38 return shortcutId != null;
H A DMockShortcutRepository.java62 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { argument
H A DSourceShortcutRefresherTest.java106 public void onShortcutRefreshed(Source source, String shortcutId, argument
109 mRefreshedShortcutId = shortcutId;
120 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { argument
121 if ("null_refresh".equals(shortcutId)) {
123 } else if ("empty_refresh".equals(shortcutId)) {
H A DMockSource.java185 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { argument
H A DShortcutRepositoryTest.java803 protected void invalidateShortcut(Source source, String shortcutId) { argument
804 refreshShortcut(source, shortcutId, null);
807 protected void refreshShortcut(Source source, String shortcutId, SuggestionData suggestion) { argument
810 mRepo.refreshShortcut(source, shortcutId, refreshed);
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
H A DApplicationsProvider.java344 String shortcutId = null;
346 shortcutId = uri.getLastPathSegment();
348 return refreshShortcut(shortcutId, projectionIn);
378 * @param shortcutId Flattened component name of an activity.
380 private Cursor refreshShortcut(String shortcutId, String[] projectionIn) { argument
381 ComponentName component = ComponentName.unflattenFromString(shortcutId);
383 Log.w(TAG, "Bad shortcut id: " + shortcutId);

Completed in 114 milliseconds