解析 Android 的 AIDL 介面
2010-07-21 01:11:00 来源:WEB开发网{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_EvDigitPress:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
java.lang.String _result = this.EvDigitPress(_arg0);
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_EvCPress:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.EvCPress();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_EvPlusPress:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.EvPlusPress();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_EvAssignPress:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.EvAssignPress();
reply.writeNoException();
reply.writeString(_result);
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.misoo.gx06.calInterface
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
public java.lang.String EvDigitPress(int d) throws android.os.RemoteException
{
更多精彩
赞助商链接