Lines Matching refs:query

69     private static final String ARG_QUERY =  ARG_PREFIX + ".query";
83 * an ObjectAdapter that will contain the results to future updates of the search query.</p>
93 * <p>Method invoked when the search query is updated.</p>
95 * <p>This is called as soon as the query changes; it is up to the application to add a
101 * @param newQuery The current search query.
102 * @return whether the results changed as a result of the new query.
107 * Method invoked when the search query is submitted, either by dismissing the keyboard,
108 * pressing search or next on the keyboard or when voice has detected the end of the query.
110 * @param query The query entered.
111 * @return whether the results changed as a result of the query.
113 public boolean onQueryTextSubmit(String query);
220 public static Bundle createArgs(Bundle args, String query) {
221 return createArgs(args, query, null);
224 public static Bundle createArgs(Bundle args, String query, String title) {
228 args.putString(ARG_QUERY, query);
234 * Creates a search fragment with a given search query.
237 * pre-filled query.
239 * @param query The search query to begin with.
242 public static SearchSupportFragment newInstance(String query) {
244 Bundle args = createArgs(null, query);
266 public void onSearchQueryChange(String query) {
267 if (DEBUG) Log.v(TAG, String.format("onSearchQueryChange %s %s", query,
270 retrieveResults(query);
272 mPendingQuery = query;
277 public void onSearchQuerySubmit(String query) {
278 if (DEBUG) Log.v(TAG, String.format("onSearchQuerySubmit %s", query));
279 submitQuery(query);
283 public void onKeyboardDismiss(String query) {
284 if (DEBUG) Log.v(TAG, String.format("onKeyboardDismiss %s", query));
394 * search query.
473 * a list of query completions that the system will show in the IME.
497 * Sets the text of the search query and optionally submits the query. Either
502 * @param query The search query to set.
503 * @param submit Whether to submit the query.
505 public void setSearchQuery(String query, boolean submit) {
506 if (DEBUG) Log.v(TAG, "setSearchQuery " + query + " submit " + submit);
507 if (query == null) {
510 mExternalQuery = new ExternalQuery(query, submit);
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.
567 private void submitQuery(String query) {
570 mProvider.onQueryTextSubmit(query);
624 String query = mPendingQuery;
626 retrieveResults(query);
654 private void setSearchQuery(String query) {
655 mSearchBar.setSearchQuery(query);
662 ExternalQuery(String query, boolean submit) {
663 mQuery = query;