android.os
Class Binder
java.lang.Object
android.os.Binder
- All Implemented Interfaces:
- IBinder
public class Binder
- extends Object
- implements IBinder
Method Summary |
void |
attachInterface(IInterface owner,
String descriptor)
|
static long |
clearCallingIdentity()
|
protected void |
dump(FileDescriptor fd,
PrintWriter fout,
String[] args)
|
void |
dump(FileDescriptor fd,
String[] args)
|
protected void |
finalize()
|
static void |
flushPendingCommands()
|
static int |
getCallingPid()
|
static int |
getCallingUid()
|
String |
getInterfaceDescriptor()
|
boolean |
isBinderAlive()
|
static void |
joinThreadPool()
|
void |
linkToDeath(IBinder.DeathRecipient recipient,
int flags)
|
protected boolean |
onTransact(int code,
Parcel data,
Parcel reply,
int flags)
|
boolean |
pingBinder()
|
IInterface |
queryLocalInterface(String descriptor)
|
static void |
restoreCallingIdentity(long token)
|
boolean |
transact(int code,
Parcel data,
Parcel reply,
int flags)
|
boolean |
unlinkToDeath(IBinder.DeathRecipient recipient,
int flags)
|
Binder
public Binder()
getCallingPid
public static final int getCallingPid()
getCallingUid
public static final int getCallingUid()
clearCallingIdentity
public static final long clearCallingIdentity()
restoreCallingIdentity
public static final void restoreCallingIdentity(long token)
flushPendingCommands
public static final void flushPendingCommands()
joinThreadPool
public static final void joinThreadPool()
attachInterface
public void attachInterface(IInterface owner,
String descriptor)
getInterfaceDescriptor
public String getInterfaceDescriptor()
- Specified by:
getInterfaceDescriptor
in interface IBinder
pingBinder
public boolean pingBinder()
- Specified by:
pingBinder
in interface IBinder
isBinderAlive
public boolean isBinderAlive()
- Specified by:
isBinderAlive
in interface IBinder
queryLocalInterface
public IInterface queryLocalInterface(String descriptor)
- Specified by:
queryLocalInterface
in interface IBinder
onTransact
protected boolean onTransact(int code,
Parcel data,
Parcel reply,
int flags)
throws RemoteException
- Throws:
RemoteException
dump
public void dump(FileDescriptor fd,
String[] args)
- Specified by:
dump
in interface IBinder
dump
protected void dump(FileDescriptor fd,
PrintWriter fout,
String[] args)
transact
public final boolean transact(int code,
Parcel data,
Parcel reply,
int flags)
throws RemoteException
- Specified by:
transact
in interface IBinder
- Throws:
RemoteException
linkToDeath
public void linkToDeath(IBinder.DeathRecipient recipient,
int flags)
- Specified by:
linkToDeath
in interface IBinder
unlinkToDeath
public boolean unlinkToDeath(IBinder.DeathRecipient recipient,
int flags)
- Specified by:
unlinkToDeath
in interface IBinder
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
Copyright © 2008-2010. All Rights Reserved.