public interface IServiceManager extends IInterface
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
void |
addService(String name,
IBinder service,
boolean allowIsolated)
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.
|
asBinder
static final String descriptor
static final int GET_SERVICE_TRANSACTION
static final int CHECK_SERVICE_TRANSACTION
static final int ADD_SERVICE_TRANSACTION
static final int LIST_SERVICES_TRANSACTION
static final int CHECK_SERVICES_TRANSACTION
static final int SET_PERMISSION_CONTROLLER_TRANSACTION
IBinder getService(String name) throws RemoteException
RemoteException
IBinder checkService(String name) throws RemoteException
RemoteException
void addService(String name, IBinder service, boolean allowIsolated) throws RemoteException
RemoteException
String[] listServices() throws RemoteException
RemoteException
void setPermissionController(IPermissionController controller) throws RemoteException
RemoteException