Build 1.0_r1(from source)

android.os
Class ServiceManagerProxy

java.lang.Object
  extended by android.os.ServiceManagerProxy
All Implemented Interfaces:
IInterface, IServiceManager

 class ServiceManagerProxy
extends Object
implements IServiceManager


Field Summary
 
Fields inherited from interface android.os.IServiceManager
ADD_SERVICE_TRANSACTION, CHECK_SERVICE_TRANSACTION, CHECK_SERVICES_TRANSACTION, descriptor, GET_SERVICE_TRANSACTION, LIST_SERVICES_TRANSACTION, SET_PERMISSION_CONTROLLER_TRANSACTION
 
Constructor Summary
ServiceManagerProxy(IBinder remote)
           
 
Method Summary
 void addService(String name, IBinder service)
          Place a new @a service called @a name into the service manager.
 IBinder asBinder()
          Retrieve the Binder object associated with this interface.
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManagerProxy

public ServiceManagerProxy(IBinder remote)
Method Detail

asBinder

public IBinder asBinder()
Description copied from interface: IInterface
Retrieve the Binder object associated with this interface. You must use this instead of a plain cast, so that proxy objects can return the correct result.

Specified by:
asBinder in interface IInterface

getService

public IBinder getService(String name)
                   throws RemoteException
Description copied from interface: IServiceManager
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.

Specified by:
getService in interface IServiceManager
Throws:
RemoteException

checkService

public IBinder checkService(String name)
                     throws RemoteException
Description copied from interface: IServiceManager
Retrieve an existing service called @a name from the service manager. Non-blocking.

Specified by:
checkService in interface IServiceManager
Throws:
RemoteException

addService

public void addService(String name,
                       IBinder service)
                throws RemoteException
Description copied from interface: IServiceManager
Place a new @a service called @a name into the service manager.

Specified by:
addService in interface IServiceManager
Throws:
RemoteException

listServices

public String[] listServices()
                      throws RemoteException
Description copied from interface: IServiceManager
Return a list of all currently running services.

Specified by:
listServices in interface IServiceManager
Throws:
RemoteException

setPermissionController

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

Specified by:
setPermissionController in interface IServiceManager
Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature