WEB开发网
开发学院手机开发Android 开发 解析 Android 的 AIDL 介面 阅读

解析 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.

{

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

{

android.os.Parcel _data = android.os.Parcel.obtain();

上一页  1 2 3 4 5  下一页

Tags:解析 Android AIDL

编辑录入:coldstar [复制链接] [打 印]
赞助商链接