Build 1.0_r1(from source)

android.os
Interface IServiceManager

All Superinterfaces:
IInterface
All Known Implementing Classes:
ServiceManagerNative, ServiceManagerProxy

public interface IServiceManager
extends IInterface

Basic interface for finding and publishing system services. An implementation of this interface is usually published as the global context object, which can be retrieved via BinderNative.getContextObject(). An easy way to retrieve this is with the static method BnServiceManager.getDefault().


Field Summary
static int ADD_SERVICE_TRANSACTION
           
static int CHECK_SERVICE_TRANSACTION
           
static int CHECK_SERVICES_TRANSACTION
           
static String descriptor
           
static int GET_SERVICE_TRANSACTION
           
static int LIST_SERVICES_TRANSACTION
           
static int SET_PERMISSION_CONTROLLER_TRANSACTION
           
 
Method Summary
 void addService(String name, IBinder service)
          Place a new @a service called @a name into the service manager.
 IBinder checkService(String name)
          Retrieve an existing service called @a name from the service manager.
 IBinder getService(String name)
          Retrieve an existing service called @a name from the service manager.
 String[] listServices()
          Return a list of all currently running services.
 void setPermissionController(IPermissionController controller)
          Assign a permission controller to the service manager.
 
Methods inherited from interface android.os.IInterface
asBinder
 

Field Detail

descriptor

static final String descriptor
See Also:
Constant Field Values

GET_SERVICE_TRANSACTION

static final int GET_SERVICE_TRANSACTION
See Also:
Constant Field Values

CHECK_SERVICE_TRANSACTION

static final int CHECK_SERVICE_TRANSACTION
See Also:
Constant Field Values

ADD_SERVICE_TRANSACTION

static final int ADD_SERVICE_TRANSACTION
See Also:
Constant Field Values

LIST_SERVICES_TRANSACTION

static final int LIST_SERVICES_TRANSACTION
See Also:
Constant Field Values

CHECK_SERVICES_TRANSACTION

static final int CHECK_SERVICES_TRANSACTION
See Also:
Constant Field Values

SET_PERMISSION_CONTROLLER_TRANSACTION

static final int SET_PERMISSION_CONTROLLER_TRANSACTION
See Also:
Constant Field Values
Method Detail

getService

IBinder getService(String name)
                   throws RemoteException
Retrieve an existing service called @a name from the service manager. Blocks for a few seconds waiting for it to be published if it does not already exist.

Throws:
RemoteException

checkService

IBinder checkService(String name)
                     throws RemoteException
Retrieve an existing service called @a name from the service manager. Non-blocking.

Throws:
RemoteException

addService

void addService(String name,
                IBinder service)
                throws RemoteException
Place a new @a service called @a name into the service manager.

Throws:
RemoteException

listServices

String[] listServices()
                      throws RemoteException
Return a list of all currently running services.

Throws:
RemoteException

setPermissionController

void setPermissionController(IPermissionController controller)
                             throws RemoteException
Assign a permission controller to the service manager. After set, this interface is checked before any services are added.

Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature