/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: C:\\Users\\h\\Desktop\\AIDLDemo\\aidlclient\\src\\main\\aidl\\com\\yuqirong\\aidldemo\\IMyAidlInterface.aidl
 */
package com.yuqirong.aidldemo;
public interface IMyAidlInterface extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.yuqirong.aidldemo.IMyAidlInterface
{
private static final java.lang.String DESCRIPTOR = "com.yuqirong.aidldemo.IMyAidlInterface";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an com.yuqirong.aidldemo.IMyAidlInterface interface,
 * generating a proxy if needed.
 */
public static com.yuqirong.aidldemo.IMyAidlInterface asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.yuqirong.aidldemo.IMyAidlInterface))) {
return ((com.yuqirong.aidldemo.IMyAidlInterface)iin);
}
return new com.yuqirong.aidldemo.IMyAidlInterface.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_addPerson:
{
data.enforceInterface(DESCRIPTOR);
com.yuqirong.aidldemo.Person _arg0;
if ((0!=data.readInt())) {
_arg0 = com.yuqirong.aidldemo.Person.CREATOR.createFromParcel(data);
}
else {
_arg0 = null;
}
java.util.List<com.yuqirong.aidldemo.Person> _result = this.addPerson(_arg0);
reply.writeNoException();
reply.writeTypedList(_result);
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.yuqirong.aidldemo.IMyAidlInterface
{
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;
}
/**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
@Override public java.util.List<com.yuqirong.aidldemo.Person> addPerson(com.yuqirong.aidldemo.Person person) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.util.List<com.yuqirong.aidldemo.Person> _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
if ((person!=null)) {
_data.writeInt(1);
person.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_addPerson, _data, _reply, 0);
_reply.readException();
_result = _reply.createTypedArrayList(com.yuqirong.aidldemo.Person.CREATOR);
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_addPerson = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
}
/**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
public java.util.List<com.yuqirong.aidldemo.Person> addPerson(com.yuqirong.aidldemo.Person person) throws android.os.RemoteException;
}
