/*
* This file is auto-generated. DO NOT MODIFY.
* Original file: F:\\program2\\AIDLServiceDemo\\AIDLServiceClient\\src\\com\\example\\server\\IPerson.aidl
*/
package com.example.server;
public interface IPerson extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.example.server.IPerson
{
private static final java.lang.String DESCRIPTOR = "com.example.server.IPerson";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
* Cast an IBinder object into an com.example.server.IPerson interface,
* generating a proxy if needed.
*/
public static com.example.server.IPerson asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.example.server.IPerson))) {
return ((com.example.server.IPerson)iin);
}
return new com.example.server.IPerson.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_setValue:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
this.setValue(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getValue:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.getValue();
reply.writeNoException();
reply.writeString(_result);
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.example.server.IPerson
{
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 setValue(java.lang.String name) 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(name);
mRemote.transact(Stub.TRANSACTION_setValue, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public java.lang.String getValue() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getValue, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_setValue = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_getValue = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
}
public void setValue(java.lang.String name) throws android.os.RemoteException;
public java.lang.String getValue() throws android.os.RemoteException;
}
没有合适的资源?快使用搜索试试~ 我知道了~
Android IPC进程间通信AIDL方式Demo
共106个文件
class:33个
xml:22个
png:16个
需积分: 9 17 下载量 67 浏览量
2016-01-10
14:07:48
上传
评论
收藏 387KB RAR 举报
温馨提示
这是一个IPC进程间AIDL方式通信的简单Demo。包括服务端和客户端。目的在于协助该博客讲解binder与service之间跨进程通信机制。所有大家读源码时务必同时读该博客。 http://blog.csdn.net/chenliqiang12345678/article/details/50487284
资源推荐
资源详情
资源评论
收起资源包目录
Android IPC进程间通信AIDL方式Demo (106个子文件)
IPerson.aidl 101B
IPerson.aidl 101B
IPerson.aidl 101B
IPerson.aidl 101B
IPerson.aidl 101B
IPerson.aidl 101B
IPerson.aidl 101B
IPerson.aidl 99B
resources.ap_ 40KB
resources.ap_ 40KB
AIDLServiceServer.apk 46KB
AIDLServiceClient.apk 46KB
jarlist.cache 120B
MainActivity.class 2KB
IPerson$Stub.class 2KB
IPerson$Stub.class 2KB
MainActivity$1.class 2KB
IPerson$Stub$Proxy.class 2KB
IPerson$Stub$Proxy.class 2KB
MainActivity$1.class 2KB
MainActivity.class 2KB
MainActivity$2.class 1KB
MyService.class 684B
Person.class 683B
R.class 673B
R.class 673B
R$id.class 488B
R$string.class 472B
R$string.class 472B
R$dimen.class 461B
R$dimen.class 461B
R$id.class 457B
R$style.class 431B
R$style.class 431B
R$drawable.class 407B
R$drawable.class 407B
R$layout.class 403B
R$layout.class 403B
R$menu.class 388B
R$menu.class 388B
IPerson.class 368B
IPerson.class 368B
BuildConfig.class 345B
BuildConfig.class 345B
R$attr.class 340B
R$attr.class 340B
.classpath 475B
.classpath 475B
classes.dex 10KB
classes.dex 9KB
annotations-f7ffc590867e07c6c14b91aafa9cd700.jar 943B
annotations-f7ffc590867e07c6c14b91aafa9cd700.jar 943B
IPerson.java 3KB
IPerson.java 3KB
R.java 3KB
R.java 3KB
MainActivity.java 2KB
MainActivity.java 2KB
Person.java 443B
MyService.java 366B
BuildConfig.java 160B
BuildConfig.java 160B
ic_launcher.png 24KB
ic_launcher.png 24KB
ic_launcher.png 17KB
ic_launcher.png 17KB
ic_launcher.png 12KB
ic_launcher.png 12KB
ic_launcher.png 9KB
ic_launcher.png 9KB
ic_launcher.png 7KB
ic_launcher.png 7KB
ic_launcher.png 6KB
ic_launcher.png 6KB
ic_launcher.png 4KB
ic_launcher.png 4KB
ic_launcher.png 3KB
ic_launcher.png 3KB
org.eclipse.jdt.core.prefs 177B
org.eclipse.jdt.core.prefs 177B
.project 853B
.project 853B
project.properties 563B
project.properties 563B
activity_main.xml 1KB
AndroidManifest.xml 1KB
AndroidManifest.xml 1KB
activity_main.xml 1KB
AndroidManifest.xml 893B
AndroidManifest.xml 893B
styles.xml 697B
styles.xml 697B
styles.xml 391B
styles.xml 391B
styles.xml 334B
styles.xml 334B
dimens.xml 277B
dimens.xml 277B
main.xml 263B
main.xml 263B
共 106 条
- 1
- 2
资源评论
leach-chen
- 粉丝: 553
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功