|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.os.BinderProxy
final class BinderProxy
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface android.os.IBinder |
|---|
IBinder.DeathRecipient |
| Field Summary |
|---|
| Fields inherited from interface android.os.IBinder |
|---|
DUMP_TRANSACTION, FIRST_CALL_TRANSACTION, FLAG_ONEWAY, INTERFACE_TRANSACTION, LAST_CALL_TRANSACTION, PING_TRANSACTION |
| Constructor Summary | |
|---|---|
BinderProxy()
|
|
| Method Summary | |
|---|---|
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
String |
getInterfaceDescriptor()
Get the canonical name of the interface supported by this binder. |
boolean |
isBinderAlive()
Check to see if the process that the binder is in is still alive. |
void |
linkToDeath(IBinder.DeathRecipient recipient,
int flags)
Register the recipient for a notification if this binder goes away. |
boolean |
pingBinder()
Check to see if the object still exists. |
IInterface |
queryLocalInterface(String descriptor)
Attempt to retrieve a local implementation of an interface for this Binder object. |
boolean |
transact(int code,
Parcel data,
Parcel reply,
int flags)
Perform a generic operation with the object. |
boolean |
unlinkToDeath(IBinder.DeathRecipient recipient,
int flags)
Remove a previously registered death notification. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
BinderProxy()
| Method Detail |
|---|
public boolean pingBinder()
IBinder
pingBinder in interface IBinderpublic boolean isBinderAlive()
IBinder
isBinderAlive in interface IBinderpublic IInterface queryLocalInterface(String descriptor)
IBinder
queryLocalInterface in interface IBinder
public String getInterfaceDescriptor()
throws RemoteException
IBinder
getInterfaceDescriptor in interface IBinderRemoteException
public boolean transact(int code,
Parcel data,
Parcel reply,
int flags)
throws RemoteException
IBinder
transact in interface IBindercode - The action to perform. This should
be a number between IBinder.FIRST_CALL_TRANSACTION and
IBinder.LAST_CALL_TRANSACTION.data - Marshalled data to send to the target. Most not be null.
If you are not sending any data, you must create an empty Parcel
that is given here.reply - Marshalled data to be received from the target. May be
null if you are not interested in the return value.flags - Additional operation flags. Either 0 for a normal
RPC, or IBinder.FLAG_ONEWAY for a one-way RPC.
RemoteException
public void linkToDeath(IBinder.DeathRecipient recipient,
int flags)
throws RemoteException
IBinderIBinder.DeathRecipient's
DeathRecipient.binderDied() method
will be called.
You will only receive death notifications for remote binders, as local binders by definition can't die without you dying as well.
linkToDeath in interface IBinderRemoteExceptionIBinder.unlinkToDeath(android.os.IBinder.DeathRecipient, int)
public boolean unlinkToDeath(IBinder.DeathRecipient recipient,
int flags)
IBinder
unlinkToDeath in interface IBinderDeathRecipient.binderDied() method
will not be called. Returns false if the target IBinder has already
died, meaning the method has been (or soon will be) called.
protected void finalize()
throws Throwable
ObjectNote: The virtual machine assumes that the implementation in class Object is empty.
finalize in class ObjectThrowable - The virtual machine ignores any exceptions which are
thrown during finalization.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||