Build 1.0_r1(from source)

android.server.search
Class SearchManagerService

java.lang.Object
  extended by android.os.Binder
      extended by android.app.ISearchManager.Stub
          extended by 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).


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.app.ISearchManager
ISearchManager.Stub
 
Nested classes/interfaces inherited from interface android.os.IBinder
IBinder.DeathRecipient
 
Field Summary
 
Fields inherited from interface android.os.IBinder
DUMP_TRANSACTION, FIRST_CALL_TRANSACTION, FLAG_ONEWAY, INTERFACE_TRANSACTION, LAST_CALL_TRANSACTION, PING_TRANSACTION
 
Constructor Summary
SearchManagerService(Context context)
          Initialize the Search Manager service in the provided system context.
 
Method Summary
 SearchableInfo getSearchableInfo(ComponentName launchActivity, boolean globalSearch)
          Return the searchableinfo for a given activity
 
Methods inherited from class android.app.ISearchManager.Stub
asBinder, asInterface, onTransact
 
Methods inherited from class android.os.Binder
attachInterface, clearCallingIdentity, dump, finalize, flushPendingCommands, getCallingPid, getCallingUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, transact, unlinkToDeath
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature