FileDocCategorySizeDatePackage
IServiceManager.javaAPI DocAndroid 1.5 API2555Wed May 06 22:41:56 BST 2009android.os

IServiceManager

public interface IServiceManager implements 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().
hide

Fields Summary
static final String
descriptor
int
GET_SERVICE_TRANSACTION
int
CHECK_SERVICE_TRANSACTION
int
ADD_SERVICE_TRANSACTION
int
LIST_SERVICES_TRANSACTION
int
CHECK_SERVICES_TRANSACTION
int
SET_PERMISSION_CONTROLLER_TRANSACTION
Constructors Summary
Methods Summary
public voidaddService(java.lang.String name, IBinder service)
Place a new @a service called @a name into the service manager.

public IBindercheckService(java.lang.String name)
Retrieve an existing service called @a name from the service manager. Non-blocking.

public IBindergetService(java.lang.String name)
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.

public java.lang.String[]listServices()
Return a list of all currently running services.

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