Home | History | Annotate | Download | only in browser

Lines Matching refs:query

74     public void startSearch(Context context, String query, Bundle appData, String extraData) {
75 if (DBG) Log.d(TAG, "startSearch(" + query + ")");
82 mWrapped.startSearch(context, query, appData, extraData);
86 mSearchBox.setQuery(query);
118 public synchronized void onSuggestionsReceived(String query, List<String> suggestions) {
119 if (DBG) Log.d(TAG, "onSuggestionsReceived(" + query + ")");
121 if (!TextUtils.isEmpty(query)) {
122 mSuggestions.put(query, suggestions);
129 public synchronized List<String> tryWaitForSuggestions(String query) {
130 if (DBG) Log.d(TAG, "tryWait(" + query + ")");
137 // suggestions for a given query.
138 while (mSuggestions.get(query) == null) {
152 List<String> suggestions = mSuggestions.get(query);
237 public Cursor getSuggestions(Context context, String query) {
238 if (DBG) Log.d(TAG, "getSuggestions(" + query + ")");
239 if (query == null) {
252 return mWrapped.getSuggestions(context, query);
258 if (TextUtils.isEmpty(query)) {
264 mSearchBox.setQuery(query);
267 // Don't bother waiting for suggestions for an empty query. We still
268 // set the query so that the SRP clears itself.
269 if (TextUtils.isEmpty(query)) {
272 return new SuggestionsCursor(mListener.tryWaitForSuggestions(query));