/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SourceShortcutRefresher.java | 54 String shortcutId = shortcut.getShortcutId(); in refresh() local 55 if (shouldRefresh(source, shortcutId) && !isRefreshing(source, shortcutId)) { in refresh() 57 Log.d(TAG, "Refreshing shortcut " + shortcutId + " '" + in refresh() 60 markShortcutRefreshing(source, shortcutId); in refresh() 63 source, shortcutId, extraData, listener); in refresh() 71 public boolean shouldRefresh(Source source, String shortcutId) { in shouldRefresh() argument 72 return source != null && shortcutId != null in shouldRefresh() 73 && !mRefreshed.contains(makeKey(source, shortcutId)); in shouldRefresh() 76 public boolean isRefreshing(Source source, String shortcutId) { in isRefreshing() argument 77 return source != null && shortcutId != null in isRefreshing() [all …]
|
D | ShortcutCursor.java | 98 final String shortcutId, final SuggestionCursor refreshed) { in refresh() 99 if (DBG) Log.d(TAG, "Shortcut refreshed: " + shortcutId); in refresh() 100 mShortcutRepo.updateShortcut(source, shortcutId, refreshed); in refresh() 103 refresh(source, shortcutId, refreshed); in refresh() 115 private void refresh(Source source, String shortcutId, SuggestionCursor refreshed) { in refresh() argument 116 if (DBG) Log.d(TAG, "refresh " + shortcutId); in refresh() 128 if (shortcutId.equals(getShortcutId()) && source.equals(getSuggestionSource())) { in refresh()
|
D | SearchableSource.java | 323 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { in refreshShortcut() argument 326 cursor = getValidationCursor(getContext(), mSearchable, shortcutId, extraData); in refreshShortcut() 327 if (DBG) Log.d(TAG, toString() + "[" + shortcutId + "] returned."); in refreshShortcut() 333 Log.e(TAG, toString() + "[" + shortcutId + "] failed", ex); in refreshShortcut() 411 String shortcutId, String extraData) { in getValidationCursor() argument 429 uriBuilder.appendPath(shortcutId); in getValidationCursor()
|
D | ShortcutRefresher.java | 34 void onShortcutRefreshed(Source source, String shortcutId, in onShortcutRefreshed() argument 49 boolean shouldRefresh(Source source, String shortcutId); in shouldRefresh() argument 54 public void markShortcutRefreshed(Source source, String shortcutId); in markShortcutRefreshed() argument
|
D | ShortcutRepositoryImplLog.java | 281 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { in updateShortcut() argument 282 refreshShortcut(source, shortcutId, refreshed); in updateShortcut() 343 void refreshShortcut(Source source, final String shortcutId, in refreshShortcut() argument 346 if (shortcutId == null) throw new NullPointerException("shortcutId"); in refreshShortcut() 348 final String[] whereArgs = { shortcutId, source.getName() }; in refreshShortcut() 361 if (DBG) Log.d(TAG, "Deleting shortcut: " + shortcutId); in refreshShortcut()
|
D | ShortcutsProvider.java | 165 String shortcutId = shortcut.getAsString(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID); in makeSuggestion() local 182 suggestion.setShortcutId(shortcutId); in makeSuggestion()
|
D | SuggestionData.java | 191 public SuggestionData setShortcutId(String shortcutId) { in setShortcutId() argument 192 mShortcutId = shortcutId; in setShortcutId()
|
D | ShortcutRepository.java | 85 void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed); in updateShortcut() argument
|
D | Source.java | 158 SuggestionCursor refreshShortcut(String shortcutId, String extraData); in refreshShortcut() argument
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | SourceShortcutRefresherTest.java | 106 public void onShortcutRefreshed(Source source, String shortcutId, in onShortcutRefreshed() argument 109 mRefreshedShortcutId = shortcutId; in onShortcutRefreshed() 120 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { in refreshShortcut() argument 121 if ("null_refresh".equals(shortcutId)) { in refreshShortcut() 123 } else if ("empty_refresh".equals(shortcutId)) { in refreshShortcut()
|
D | MockShortcutRefresher.java | 28 public void markShortcutRefreshed(Source source, String shortcutId) { in markShortcutRefreshed() argument 37 public boolean shouldRefresh(Source source, String shortcutId) { in shouldRefresh() argument 38 return shortcutId != null; in shouldRefresh()
|
D | ShortcutRepositoryTest.java | 803 protected void invalidateShortcut(Source source, String shortcutId) { in invalidateShortcut() argument 804 refreshShortcut(source, shortcutId, null); in invalidateShortcut() 807 protected void refreshShortcut(Source source, String shortcutId, SuggestionData suggestion) { in refreshShortcut() argument 810 mRepo.refreshShortcut(source, shortcutId, refreshed); in refreshShortcut()
|
D | MockShortcutRepository.java | 62 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { in updateShortcut() argument
|
D | MockSource.java | 185 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { in refreshShortcut() argument
|
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ |
D | ApplicationsProvider.java | 344 String shortcutId = null; in query() local 346 shortcutId = uri.getLastPathSegment(); in query() 348 return refreshShortcut(shortcutId, projectionIn); in query() 380 private Cursor refreshShortcut(String shortcutId, String[] projectionIn) { in refreshShortcut() argument 381 ComponentName component = ComponentName.unflattenFromString(shortcutId); in refreshShortcut() 383 Log.w(TAG, "Bad shortcut id: " + shortcutId); in refreshShortcut()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | GoogleSuggestionProvider.java | 82 String shortcutId = getQuery(uri); in query() local 85 return new SuggestionCursorBackedCursor(mSource.refreshShortcut(shortcutId, extraData)); in query()
|
D | GoogleSource.java | 27 SuggestionCursor refreshShortcut(String shortcutId, String extraData); in refreshShortcut() argument
|
D | AbstractGoogleSource.java | 51 public abstract SuggestionCursor refreshShortcut(String shortcutId, String extraData); in refreshShortcut() argument
|
D | GoogleSuggestClient.java | 144 public SuggestionCursor refreshShortcut(String shortcutId, String oldExtraData) { in refreshShortcut() argument
|