資源簡介
AIDL例子源碼AIDL例子源碼AIDL例子源碼

代碼片段和文件信息
/*
?*?This?file?is?auto-generated.??DO?NOT?MODIFY.
?*?Original?file:?/root/workspace/AidlDemo/src/com/pekall/aidl/DemoService.aidl
?*/
package?com.pekall.aidl;
public?interface?DemoService?extends?android.os.IInterface
{
/**?Local-side?IPC?implementation?stub?class.?*/
public?static?abstract?class?Stub?extends?android.os.Binder?implements?com.pekall.aidl.DemoService
{
private?static?final?java.lang.String?DEscriptOR?=?“com.pekall.aidl.DemoService“;
/**?Construct?the?stub?at?attach?it?to?the?interface.?*/
public?Stub()
{
this.attachInterface(this?DEscriptOR);
}
/**
?*?Cast?an?IBinder?object?into?an?com.pekall.aidl.DemoService?interface
?*?generating?a?proxy?if?needed.
?*/
public?static?com.pekall.aidl.DemoService?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?com.pekall.aidl.DemoService)))?{
return?((com.pekall.aidl.DemoService)iin);
}
return?new?com.pekall.aidl.DemoService.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:
{
reply.writeString(DEscriptOR);
return?true;
}
case?TRANSACTION_write:
{
data.enforceInterface(DEscriptOR);
java.lang.String?_arg0;
_arg0?=?data.readString();
this.write(_arg0);
reply.writeNoException();
return?true;
}
}
return?super.onTransact(code?data?reply?flags);
}
private?static?class?Proxy?implements?com.pekall.aidl.DemoService
{
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?void?write(java.lang.String?content)?throws?android.os.RemoteException
{
android.os.Parcel?_data?=?android.os.Parcel.obtain();
android.os.Parcel?_reply?=?android.os.Parcel.obtain();
try?{
_data.writeInterfaceToken(DEscriptOR);
_data.writeString(content);
mRemote.transact(Stub.TRANSACTION_write?_data?_reply?0);
_reply.readException();
}
finally?{
_reply.recycle();
_data.recycle();
}
}
}
static?final?int?TRANSACTION_write?=?(android.os.IBinder.FIRST_CALL_TRANSACTION?+?0);
}
public?void?write(java.lang.String?content)?throws?android.os.RemoteException;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-09-02?02:26??AidlDemo\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\gen\
?????目錄???????????0??2011-09-02?02:51??AidlDemo\src\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\assets\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\res\
?????目錄???????????0??2011-09-02?03:03??AidlDemo\bin\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\gen\com\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\src\com\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\res\values\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\res\layout\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\res\drawable-ldpi\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\res\drawable-mdpi\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\res\drawable-hdpi\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\bin\com\
?????目錄???????????0??2011-09-02?02:33??AidlDemo\gen\com\pekall\
?????目錄???????????0??2011-09-02?02:32??AidlDemo\src\com\pekall\
?????目錄???????????0??2011-09-02?02:32??AidlDemo\bin\com\pekall\
?????目錄???????????0??2011-09-02?02:34??AidlDemo\gen\com\pekall\aidl\
?????目錄???????????0??2011-09-02?02:26??AidlDemo\gen\com\pekall\aidlDemo\
?????目錄???????????0??2011-09-02?02:51??AidlDemo\src\com\pekall\aidl\
?????目錄???????????0??2011-09-02?02:53??AidlDemo\src\com\pekall\aidlDemo\
?????目錄???????????0??2011-09-02?02:51??AidlDemo\bin\com\pekall\aidl\
?????目錄???????????0??2011-09-02?02:53??AidlDemo\bin\com\pekall\aidlDemo\
?????目錄???????????0??2011-09-02?02:57??AidlDemoClient\
?????目錄???????????0??2011-09-02?02:57??AidlDemoClient\gen\
?????目錄???????????0??2011-09-02?02:57??AidlDemoClient\src\
?????目錄???????????0??2011-09-02?02:57??AidlDemoClient\assets\
?????目錄???????????0??2011-09-02?02:57??AidlDemoClient\res\
?????目錄???????????0??2011-09-02?03:10??AidlDemoClient\bin\
?????目錄???????????0??2011-09-02?02:57??AidlDemoClient\gen\com\
?????目錄???????????0??2011-09-02?02:57??AidlDemoClient\src\com\
............此處省略72個文件信息
- 上一篇:Memcached相關程序
- 下一篇:區(qū)塊鏈積分系統(tǒng)功能模塊拆分
評論
共有 條評論