public class SearchManagerService
extends ISearchManager.Stub
Modifier and Type | Class and Description |
---|---|
static class |
SearchManagerService.Lifecycle |
Constructor and Description |
---|
SearchManagerService(Context context)
Initializes the Search Manager service in the provided system context.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
List<ResolveInfo> |
getGlobalSearchActivities() |
ComponentName |
getGlobalSearchActivity()
Gets the name of the global search activity.
|
SearchableInfo |
getSearchableInfo(ComponentName launchActivity)
Returns the SearchableInfo for a given activity.
|
List<SearchableInfo> |
getSearchablesInGlobalSearch()
Returns a list of the searchable activities that can be included in global search.
|
ComponentName |
getWebSearchActivity()
Gets the name of the web search activity.
|
void |
launchAssist(Bundle args) |
boolean |
launchLegacyAssist(String hint,
int userHandle,
Bundle args) |
public SearchManagerService(Context context)
context
- to use for accessing DB, window manager, etc.public SearchableInfo getSearchableInfo(ComponentName launchActivity)
launchActivity
- The activity from which we're launching this search.public List<SearchableInfo> getSearchablesInGlobalSearch()
public List<ResolveInfo> getGlobalSearchActivities()
public ComponentName getGlobalSearchActivity()
public ComponentName getWebSearchActivity()
public void launchAssist(Bundle args)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)