public class

GlobalSearchSupport

extends Object
java.lang.Object
   ↳ com.android.providers.contacts.GlobalSearchSupport

Class Overview

Support for global search integration for Contacts.

Summary

Public Constructors
GlobalSearchSupport(ContactsProvider2 contactsProvider)
Public Methods
Cursor handleSearchShortcutRefresh(SQLiteDatabase db, String lookupKey, String[] projection)
Returns a search suggestions cursor for the contact bearing the provided lookup key.
Cursor handleSearchSuggestionsQuery(SQLiteDatabase db, Uri uri, String limit)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GlobalSearchSupport (ContactsProvider2 contactsProvider)

Public Methods

public Cursor handleSearchShortcutRefresh (SQLiteDatabase db, String lookupKey, String[] projection)

Returns a search suggestions cursor for the contact bearing the provided lookup key. If the lookup key cannot be found in the database, the contact name is decoded from the lookup key and used to re-identify the contact. If the contact still cannot be found, an empty cursor is returned.

Note that if lookupKey is not a valid lookup key, an empty cursor is returned silently. This would occur with old-style shortcuts that were created using the contact id instead of the lookup key.

public Cursor handleSearchSuggestionsQuery (SQLiteDatabase db, Uri uri, String limit)