AIDL双向通信


http://blog.csdn.net/qq_26787115/article/details/78590063
资源截图
代码片段和文件信息
/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: D:\AndroidProject\AIDLClient\AIDLService\src\main\aidl\com\android\openimpl\IMyLifestyleInterface.aidl
 */
package com.android.openimpl;
public interface IMyLifestyleInterface extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.android.openimpl.IMyLifestyleInterface
{
private static final java.lang.String DEscriptOR = “com.android.openimpl.IMyLifestyleInterface“;
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this DEscriptOR);
}
/**
 * Cast an IBinder object into an com.android.openimpl.IMyLifestyleInterface interface
 * generating a proxy if needed.
 */
public static com.android.openimpl.IMyLifestyleInterface asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DEscriptOR);
if (((iin!=null)&&(iin instanceof com.android.openimpl.IMyLifestyleInterface))) {
return ((com.android.openimpl.IMyLifestyleInterface)iin);
}
return new com.android.openimpl.IMyLifestyleInterface.Stub.Proxy(obj);
}
@Override 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_sum:
{
data.enforceInterface(DEscriptOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
this.sum(_arg0 _arg1);
reply.writeNoException();
return true;
}
case TRANSACTION_sleep:
{
data.enforceInterface(DEscriptOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.sleep(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_registerCallback:
{
data.enforceInterface(DEscriptOR);
com.android.openimpl.IMyLifestyleListener _arg0;
_arg0 = com.android.openimpl.IMyLifestyleListener.Stub.asInterface(data.readStrongBinder());
this.registerCallback(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_unregisterCallback:
{
data.enforceInterface(DEscriptOR);
com.android.openimpl.IMyLifestyleListener _arg0;
_arg0 = com.android.openimpl.IMyLifestyleListener.Stub.asInterface(data.readStrongBinder());
this.unregisterCallback(_arg0);
reply.writeNoException();
return true;
}
}
return super.onTransact(code data reply flags);
}
private static class Proxy implements com.android.openimpl.IMyLifestyleInterface
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DEscriptOR;
}
//计算

@Override public void sum(int a int b) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-11-21 10:14  AIDLClient
     文件         127  2017-11-21 09:58  AIDLClient.gitignore
     目录           0  2017-11-21 09:58  AIDLClient.gradle
     目录           0  2017-11-21 10:14  AIDLClient.gradle4.1
     目录           0  2017-11-21 09:58  AIDLClient.gradle4.1fileChanges
     文件           1  2017-11-21 10:43  AIDLClient.gradle4.1fileChangeslast-build.bin
     目录           0  2017-11-21 10:14  AIDLClient.gradle4.1fileContent
     文件          17  2017-11-21 10:43  AIDLClient.gradle4.1fileContentfileContent.lock
     目录           0  2017-11-21 09:58  AIDLClient.gradle4.1fileHashes
     文件      493841  2017-11-21 10:43  AIDLClient.gradle4.1fileHashesfileHashes.bin
     文件          17  2017-11-21 10:43  AIDLClient.gradle4.1fileHashesfileHashes.lock
     文件       19925  2017-11-21 10:14  AIDLClient.gradle4.1fileHashes
esourceHashesCache.bin
     目录           0  2017-11-21 10:14  AIDLClient.gradle4.1javaCompile
     文件      791471  2017-11-21 10:43  AIDLClient.gradle4.1javaCompileclassAnalysis.bin
     文件      321993  2017-11-21 10:14  AIDLClient.gradle4.1javaCompilejarAnalysis.bin
     文件          17  2017-11-21 10:43  AIDLClient.gradle4.1javaCompilejavaCompile.lock
     文件      145987  2017-11-21 10:43  AIDLClient.gradle4.1javaCompile askHistory.bin
     文件       23903  2017-11-21 10:43  AIDLClient.gradle4.1javaCompile askJars.bin
     目录           0  2017-11-21 09:58  AIDLClient.gradle4.1 askHistory
     文件     4532292  2017-11-21 10:43  AIDLClient.gradle4.1 askHistoryfileSnapshots.bin
     文件      141834  2017-11-21 10:43  AIDLClient.gradle4.1 askHistory askHistory.bin
     文件          17  2017-11-21 10:43  AIDLClient.gradle4.1 askHistory askHistory.lock
     目录           0  2017-11-21 09:58  AIDLClient.gradleuildOutputCleanup
     文件           0  2017-11-21 09:58  AIDLClient.gradleuildOutputCleanupuilt.bin
     文件          51  2017-11-21 09:58  AIDLClient.gradleuildOutputCleanupcache.properties
     文件           2  2017-11-21 10:43  AIDLClient.gradleuildOutputCleanupcache.properties.lock
     目录           0  2017-11-21 11:01  AIDLClient.idea
     文件         683  2017-11-21 09:59  AIDLClient.ideagradle.xml
     目录           0  2017-11-21 09:59  AIDLClient.idealibraries
     文件         533  2017-11-21 09:59  AIDLClient.idealibrariesandroid_arch_core_common_1_0_0_jar.xml
     文件         548  2017-11-21 09:59  AIDLClient.idealibrariesandroid_arch_lifecycle_common_1_0_0_jar.xml
............此处省略4309个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)