Home
last modified time | relevance | path

Searched refs:shortcutId (Results 1 – 19 of 19) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSourceShortcutRefresher.java54 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 …]
DShortcutCursor.java98 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()
DSearchableSource.java323 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()
DShortcutRefresher.java34 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
DShortcutRepositoryImplLog.java281 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()
DShortcutsProvider.java165 String shortcutId = shortcut.getAsString(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID); in makeSuggestion() local
182 suggestion.setShortcutId(shortcutId); in makeSuggestion()
DSuggestionData.java191 public SuggestionData setShortcutId(String shortcutId) { in setShortcutId() argument
192 mShortcutId = shortcutId; in setShortcutId()
DShortcutRepository.java85 void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed); in updateShortcut() argument
DSource.java158 SuggestionCursor refreshShortcut(String shortcutId, String extraData); in refreshShortcut() argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSourceShortcutRefresherTest.java106 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()
DMockShortcutRefresher.java28 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()
DShortcutRepositoryTest.java803 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()
DMockShortcutRepository.java62 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { in updateShortcut() argument
DMockSource.java185 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { in refreshShortcut() argument
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
DApplicationsProvider.java344 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/
DGoogleSuggestionProvider.java82 String shortcutId = getQuery(uri); in query() local
85 return new SuggestionCursorBackedCursor(mSource.refreshShortcut(shortcutId, extraData)); in query()
DGoogleSource.java27 SuggestionCursor refreshShortcut(String shortcutId, String extraData); in refreshShortcut() argument
DAbstractGoogleSource.java51 public abstract SuggestionCursor refreshShortcut(String shortcutId, String extraData); in refreshShortcut() argument
DGoogleSuggestClient.java144 public SuggestionCursor refreshShortcut(String shortcutId, String oldExtraData) { in refreshShortcut() argument