android.os
Class ServiceManagerNative
java.lang.Object
android.os.Binder
android.os.ServiceManagerNative
- All Implemented Interfaces:
- IBinder, IInterface, IServiceManager
public abstract class ServiceManagerNative
- extends Binder
- implements IServiceManager
Native implementation of the service manager. Most clients will only
care about getDefault() and possibly asInterface().
| Methods inherited from class android.os.Binder |
attachInterface, clearCallingIdentity, dump, finalize, flushPendingCommands, getCallingPid, getCallingUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, transact, unlinkToDeath |
ServiceManagerNative
public ServiceManagerNative()
asInterface
public static IServiceManager asInterface(IBinder obj)
- Cast a Binder object into a service manager interface, generating
a proxy if needed.
onTransact
public boolean onTransact(int code,
Parcel data,
Parcel reply,
int flags)
- Description copied from class:
Binder
- Default implementation is a stub that returns false. You will want
to override this to do the appropriate unmarshalling of transactions.
If you want to call this, call transact().
- Overrides:
onTransact in class Binder
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
Please submit a feedback, bug or feature