Home | History | Annotate | Download | only in app

Lines Matching refs:query

74     private static final String ARG_QUERY =  ARG_PREFIX + ".query";
90 * an ObjectAdapter that will contain the results to future updates of the search query.</p>
100 * <p>Method invoked when the search query is updated.</p>
102 * <p>This is called as soon as the query changes; it is up to the application to add a
108 * @param newQuery The current search query.
109 * @return whether the results changed as a result of the new query.
114 * Method invoked when the search query is submitted, either by dismissing the keyboard,
115 * pressing search or next on the keyboard or when voice has detected the end of the query.
117 * @param query The query entered.
118 * @return whether the results changed as a result of the query.
120 public boolean onQueryTextSubmit(String query);
254 public static Bundle createArgs(Bundle args, String query) {
255 return createArgs(args, query, null);
258 public static Bundle createArgs(Bundle args, String query, String title) {
262 args.putString(ARG_QUERY, query);
268 * Creates a search fragment with a given search query.
271 * pre-filled query.
273 * @param query The search query to begin with.
276 public static SearchSupportFragment newInstance(String query) {
278 Bundle args = createArgs(null, query);
300 public void onSearchQueryChange(String query) {
301 if (DEBUG) Log.v(TAG, String.format("onSearchQueryChange %s %s", query,
304 retrieveResults(query);
306 mPendingQuery = query;
311 public void onSearchQuerySubmit(String query) {
312 if (DEBUG) Log.v(TAG, String.format("onSearchQuerySubmit %s", query));
313 submitQuery(query);
317 public void onKeyboardDismiss(String query) {
318 if (DEBUG) Log.v(TAG, String.format("onKeyboardDismiss %s", query));
456 * search query.
557 * a list of query completions that the system will show in the IME.
568 * a list of query completions that the system will show in the IME.
595 * Sets the text of the search query and optionally submits the query. Either
600 * @param query The search query to set.
601 * @param submit Whether to submit the query.
603 public void setSearchQuery(String query, boolean submit) {
604 if (DEBUG) Log.v(TAG, "setSearchQuery " + query + " submit " + submit);
605 if (query == null) {
608 mExternalQuery = new ExternalQuery(query, submit);
617 * Sets the text of the search query based on the {@link RecognizerIntent#EXTRA_RESULTS} in
618 * the given intent, and optionally submit the query. If more than one result is present
622 * @param submit Whether to submit the query.
665 void submitQuery(String query) {
668 mProvider.onQueryTextSubmit(query);
727 String query = mPendingQuery;
729 retrieveResults(query);
757 private void setSearchQuery(String query) {
758 mSearchBar.setSearchQuery(query);
765 ExternalQuery(String query, boolean submit) {
766 mQuery = query;