Lines Matching refs:query

68     private static final String ARG_QUERY =  ARG_PREFIX + ".query";
79 * an ObjectAdapter that will contain the results to future updates of the search query.</p>
89 * <p>Method invoked when the search query is updated.</p>
91 * <p>This is called as soon as the query changes; it is up to the application to add a
97 * @param newQuery The current search query.
98 * @return whether the results changed as a result of the new query.
103 * Method invoked when the search query is submitted, either by dismissing the keyboard,
104 * pressing search or next on the keyboard or when voice has detected the end of the query.
106 * @param query The query entered.
107 * @return whether the results changed as a result of the query.
109 public boolean onQueryTextSubmit(String query);
192 public static Bundle createArgs(Bundle args, String query) {
193 return createArgs(args, query, null);
196 public static Bundle createArgs(Bundle args, String query, String title) {
200 args.putString(ARG_QUERY, query);
206 * Create a search fragment with a given search query.
209 * pre-filled query.
211 * @param query The search query to begin with.
214 public static SearchFragment newInstance(String query) {
216 Bundle args = createArgs(null, query);
235 public void onSearchQueryChange(String query) {
236 if (DEBUG) Log.v(TAG, String.format("onSearchQueryChange %s %s", query,
239 retrieveResults(query);
241 mPendingQuery = query;
246 public void onSearchQuerySubmit(String query) {
247 if (DEBUG) Log.v(TAG, String.format("onSearchQuerySubmit %s", query));
250 mProvider.onQueryTextSubmit(query);
255 public void onKeyboardDismiss(String query) {
256 if (DEBUG) Log.v(TAG, String.format("onKeyboardDismiss %s", query));
382 * search query.
478 * a list of query completions that the system will show in the IME.
502 * Sets the text of the search query and optionally submits the query. Either
507 * @param query The search query to set.
508 * @param submit Whether to submit the query.
510 public void setSearchQuery(String query, boolean submit) {
512 mSearchBar.setSearchQuery(query);
514 mProvider.onQueryTextSubmit(query);
519 * Sets the text of the search query based on the {@link RecognizerIntent#EXTRA_RESULTS} in
520 * the given intent, and optionally submit the query. If more than one result is present
524 * @param submit Whether to submit the query.
606 String query = mPendingQuery;
608 retrieveResults(query);
625 private void setSearchQuery(String query) {
626 mSearchBar.setSearchQuery(query);