/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | ShortcutRefresher.java | 30 * @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 D | ShortcutCursor.java | 98 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 D | ShortcutRepository.java | 82 * @param shortcutId The ID of the shortcut that's been refershed 85 void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed); argument
|
H A D | Source.java | 153 * @param shortcutId The id of the shortcut to update. 158 SuggestionCursor refreshShortcut(String shortcutId, String extraData); argument
|
H A D | SourceShortcutRefresher.java | 54 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 D | SearchableSource.java | 323 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 D | SuggestionData.java | 191 public SuggestionData setShortcutId(String shortcutId) { argument 192 mShortcutId = shortcutId;
|
H A D | ShortcutRepositoryImplLog.java | 281 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 D | GoogleSource.java | 27 SuggestionCursor refreshShortcut(String shortcutId, String extraData); argument
|
H A D | AbstractGoogleSource.java | 51 public abstract SuggestionCursor refreshShortcut(String shortcutId, String extraData); argument
|
H A D | GoogleSuggestClient.java | 144 public SuggestionCursor refreshShortcut(String shortcutId, String oldExtraData) { argument
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | MockShortcutRefresher.java | 28 public void markShortcutRefreshed(Source source, String shortcutId) { argument 37 public boolean shouldRefresh(Source source, String shortcutId) { argument 38 return shortcutId != null;
|
H A D | MockShortcutRepository.java | 62 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { argument
|
H A D | SourceShortcutRefresherTest.java | 106 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 D | MockSource.java | 185 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { argument
|
H A D | ShortcutRepositoryTest.java | 803 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 D | ApplicationsProvider.java | 344 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);
|