Lines Matching refs:query

85      * to obtain the query string from Intent.ACTION_SEARCH.
87 public final static String QUERY = "query";
93 * to obtain the query string typed in by the user.
125 * to obtain the keycode that the user used to trigger this query. It will be zero if the
140 * the initial query should be selected when the global search activity is started, so
141 * that the user can easily replace it with another query.
177 * Flag to specify that the entry can be used for query refinement, i.e., the query text
178 * in the search field can be replaced with the text in this entry, when a query refinement
335 * used when forming the suggestion's query.
583 * @param selectInitialQuery If true, the intial query will be preselected, which means that
585 * query is being inserted. If false, the selection point will be placed at the end of the
586 * inserted query. This is useful when the inserted query is text that the user entered,
730 * Similar to {@link #startSearch} but actually fires off the search query after invoking
733 * @param query The query to trigger. If empty, request will be ignored.
742 public void triggerSearch(String query,
749 if (query == null || TextUtils.getTrimmedLength(query) == 0) {
750 Log.w(TAG, "triggerSearch called with empty query, ignoring.");
753 startSearch(query, false, launchActivity, appSearchData, false);
871 * @param query The search text entered (so far).
872 * @return a cursor with suggestions, or <code>null</null> the suggestion query failed.
876 public Cursor getSuggestions(SearchableInfo searchable, String query) {
877 return getSuggestions(searchable, query, -1);
884 * @param query The search text entered (so far).
885 * @param limit The query limit to pass to the suggestion provider. This is advisory,
887 * @return a cursor with suggestions, or <code>null</null> the suggestion query failed.
891 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) {
904 .query("") // TODO: Remove, workaround for a bug in Uri.writeToParcel()
913 // append standard suggestion query path
916 // get the query selection, may be null
918 // inject query, either as selection args or inline
921 selArgs = new String[] { query };
923 uriBuilder.appendPath(query);
932 // finally, make the query
933 return mContext.getContentResolver().query(uri, null, selection, selArgs, null);