android.server.search
Class SearchManagerService
java.lang.Object
android.os.Binder
android.app.ISearchManager.Stub
android.server.search.SearchManagerService
- All Implemented Interfaces:
- ISearchManager, IBinder, IInterface
public class SearchManagerService
- extends ISearchManager.Stub
This is a simplified version of the Search Manager service. It no longer handles
presentation (UI). Its function is to maintain the map & list of "searchable"
items, which provides a mapping from individual activities (where a user might have
invoked search) to specific searchable activities (where the search will be dispatched).
| Methods inherited from class android.os.Binder |
attachInterface, clearCallingIdentity, dump, finalize, flushPendingCommands, getCallingPid, getCallingUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, transact, unlinkToDeath |
SearchManagerService
public SearchManagerService(Context context)
- Initialize the Search Manager service in the provided system context.
Only one instance of this object should be created!
- Parameters:
context - to use for accessing DB, window manager, etc.
getSearchableInfo
public SearchableInfo getSearchableInfo(ComponentName launchActivity,
boolean globalSearch)
- Return the searchableinfo for a given activity
- Parameters:
launchActivity - The activity from which we're launching this search.globalSearch - If false, this will only launch the search that has been specifically
defined by the application (which is usually defined as a local search). If no default
search is defined in the current application or activity, no search will be launched.
If true, this will always launch a platform-global (e.g. web-based) search instead.
- Returns:
- Returns a SearchableInfo record describing the parameters of the search,
or null if no searchable metadata was available.
Please submit a feedback, bug or feature