Lines Matching refs:query

67     private static final String ARG_QUERY =  ARG_PREFIX + ".query";
81 * an ObjectAdapter that will contain the results to future updates of the search query.</p>
91 * <p>Method invoked when the search query is updated.</p>
93 * <p>This is called as soon as the query changes; it is up to the application to add a
99 * @param newQuery The current search query.
100 * @return whether the results changed as a result of the new query.
105 * Method invoked when the search query is submitted, either by dismissing the keyboard,
106 * pressing search or next on the keyboard or when voice has detected the end of the query.
108 * @param query The query entered.
109 * @return whether the results changed as a result of the query.
111 public boolean onQueryTextSubmit(String query);
218 public static Bundle createArgs(Bundle args, String query) {
219 return createArgs(args, query, null);
222 public static Bundle createArgs(Bundle args, String query, String title) {
226 args.putString(ARG_QUERY, query);
232 * Creates a search fragment with a given search query.
235 * pre-filled query.
237 * @param query The search query to begin with.
240 public static SearchFragment newInstance(String query) {
242 Bundle args = createArgs(null, query);
264 public void onSearchQueryChange(String query) {
265 if (DEBUG) Log.v(TAG, String.format("onSearchQueryChange %s %s", query,
268 retrieveResults(query);
270 mPendingQuery = query;
275 public void onSearchQuerySubmit(String query) {
276 if (DEBUG) Log.v(TAG, String.format("onSearchQuerySubmit %s", query));
277 submitQuery(query);
281 public void onKeyboardDismiss(String query) {
282 if (DEBUG) Log.v(TAG, String.format("onKeyboardDismiss %s", query));
392 * search query.
471 * a list of query completions that the system will show in the IME.
495 * Sets the text of the search query and optionally submits the query. Either
500 * @param query The search query to set.
501 * @param submit Whether to submit the query.
503 public void setSearchQuery(String query, boolean submit) {
504 if (DEBUG) Log.v(TAG, "setSearchQuery " + query + " submit " + submit);
505 if (query == null) {
508 mExternalQuery = new ExternalQuery(query, submit);
517 * Sets the text of the search query based on the {@link RecognizerIntent#EXTRA_RESULTS} in
518 * the given intent, and optionally submit the query. If more than one result is present
522 * @param submit Whether to submit the query.
565 private void submitQuery(String query) {
568 mProvider.onQueryTextSubmit(query);
622 String query = mPendingQuery;
624 retrieveResults(query);
652 private void setSearchQuery(String query) {
653 mSearchBar.setSearchQuery(query);
660 ExternalQuery(String query, boolean submit) {
661 mQuery = query;