Code example for IBinder

Methods: queryLocalInterface

0
public static edu.ucla.cens.accelservice.IAccelService asInterface(android.os.IBinder obj)
{ 
if ((obj==null)) {
return null; 
} 
android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof edu.ucla.cens.accelservice.IAccelService))) {
return ((edu.ucla.cens.accelservice.IAccelService)iin);
} 
return new edu.ucla.cens.accelservice.IAccelService.Stub.Proxy(obj);
} 
public android.os.IBinder asBinder()
{ 
return this;
} 
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{ 
switch (code)
{ 
case INTERFACE_TRANSACTION:
{