Home | History | Annotate | Download | only in providers

Lines Matching refs:query

57      * Minimum length of query before we start showing contacts suggestions.
66 public Cursor query(String query) {
74 if (query != null) {
75 // Tokenize the query.
76 String[] tokens = TextUtils.split(query,
78 // There are multiple tokens, so query on the last token only.
80 query = tokens[tokens.length - 1];
91 query = query.trim();
94 // Pass query; at this point it is either the last term OR the
96 final Cursor c = super.query(query);
101 if (query.length() >= MIN_QUERY_LENGTH_FOR_CONTACTS) {
102 cursors.add(new ContactsCursor().query(query));
121 * Searches over the contacts cursor with the specified query as the starting characters to
123 * @param query
124 * @return a cursor over the contacts database with the contacts matching the query.
126 public ContactsCursor query(String query) {
128 ContactsContract.CommonDataKinds.Email.CONTENT_FILTER_URI, Uri.encode(query));
129 final Cursor cursor = mContext.getContentResolver().query(
157 final StringBuilder query = new StringBuilder();
161 query.append(token).append(QUERY_TOKEN_SEPARATOR);
166 query.append(inMatch);
170 // If the user taps "test@tester.com", the query passed with
173 // If the user taps "test@other.com", the query passed with
176 return query.toString();