|
| 1 | +/* |
| 2 | + * This file is auto-generated. DO NOT MODIFY. |
| 3 | + * Original file: D:\\AndroidWorkSpace\\AndroidBlog\\03_AndroidAIDL_Client_Blog\\src\\com\\fendou\\aidl\\MyIPerson.aidl |
| 4 | + */ |
| 5 | +package com.fendou.aidl; |
| 6 | +public interface MyIPerson extends android.os.IInterface |
| 7 | +{ |
| 8 | +/** Local-side IPC implementation stub class. */ |
| 9 | +public static abstract class Stub extends android.os.Binder implements com.fendou.aidl.MyIPerson |
| 10 | +{ |
| 11 | +private static final java.lang.String DESCRIPTOR = "com.fendou.aidl.MyIPerson"; |
| 12 | +/** Construct the stub at attach it to the interface. */ |
| 13 | +public Stub() |
| 14 | +{ |
| 15 | +this.attachInterface(this, DESCRIPTOR); |
| 16 | +} |
| 17 | +/** |
| 18 | + * Cast an IBinder object into an com.fendou.aidl.MyIPerson interface, |
| 19 | + * generating a proxy if needed. |
| 20 | + */ |
| 21 | +public static com.fendou.aidl.MyIPerson asInterface(android.os.IBinder obj) |
| 22 | +{ |
| 23 | +if ((obj==null)) { |
| 24 | +return null; |
| 25 | +} |
| 26 | +android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); |
| 27 | +if (((iin!=null)&&(iin instanceof com.fendou.aidl.MyIPerson))) { |
| 28 | +return ((com.fendou.aidl.MyIPerson)iin); |
| 29 | +} |
| 30 | +return new com.fendou.aidl.MyIPerson.Stub.Proxy(obj); |
| 31 | +} |
| 32 | +@Override public android.os.IBinder asBinder() |
| 33 | +{ |
| 34 | +return this; |
| 35 | +} |
| 36 | +@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException |
| 37 | +{ |
| 38 | +switch (code) |
| 39 | +{ |
| 40 | +case INTERFACE_TRANSACTION: |
| 41 | +{ |
| 42 | +reply.writeString(DESCRIPTOR); |
| 43 | +return true; |
| 44 | +} |
| 45 | +case TRANSACTION_getPerson: |
| 46 | +{ |
| 47 | +data.enforceInterface(DESCRIPTOR); |
| 48 | +com.fendou.aidl.Person _arg0; |
| 49 | +if ((0!=data.readInt())) { |
| 50 | +_arg0 = com.fendou.aidl.Person.CREATOR.createFromParcel(data); |
| 51 | +} |
| 52 | +else { |
| 53 | +_arg0 = null; |
| 54 | +} |
| 55 | +java.lang.String _result = this.getPerson(_arg0); |
| 56 | +reply.writeNoException(); |
| 57 | +reply.writeString(_result); |
| 58 | +return true; |
| 59 | +} |
| 60 | +} |
| 61 | +return super.onTransact(code, data, reply, flags); |
| 62 | +} |
| 63 | +private static class Proxy implements com.fendou.aidl.MyIPerson |
| 64 | +{ |
| 65 | +private android.os.IBinder mRemote; |
| 66 | +Proxy(android.os.IBinder remote) |
| 67 | +{ |
| 68 | +mRemote = remote; |
| 69 | +} |
| 70 | +@Override public android.os.IBinder asBinder() |
| 71 | +{ |
| 72 | +return mRemote; |
| 73 | +} |
| 74 | +public java.lang.String getInterfaceDescriptor() |
| 75 | +{ |
| 76 | +return DESCRIPTOR; |
| 77 | +} |
| 78 | +@Override public java.lang.String getPerson(com.fendou.aidl.Person mPerson) throws android.os.RemoteException |
| 79 | +{ |
| 80 | +android.os.Parcel _data = android.os.Parcel.obtain(); |
| 81 | +android.os.Parcel _reply = android.os.Parcel.obtain(); |
| 82 | +java.lang.String _result; |
| 83 | +try { |
| 84 | +_data.writeInterfaceToken(DESCRIPTOR); |
| 85 | +if ((mPerson!=null)) { |
| 86 | +_data.writeInt(1); |
| 87 | +mPerson.writeToParcel(_data, 0); |
| 88 | +} |
| 89 | +else { |
| 90 | +_data.writeInt(0); |
| 91 | +} |
| 92 | +mRemote.transact(Stub.TRANSACTION_getPerson, _data, _reply, 0); |
| 93 | +_reply.readException(); |
| 94 | +_result = _reply.readString(); |
| 95 | +} |
| 96 | +finally { |
| 97 | +_reply.recycle(); |
| 98 | +_data.recycle(); |
| 99 | +} |
| 100 | +return _result; |
| 101 | +} |
| 102 | +} |
| 103 | +static final int TRANSACTION_getPerson = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); |
| 104 | +} |
| 105 | +public java.lang.String getPerson(com.fendou.aidl.Person mPerson) throws android.os.RemoteException; |
| 106 | +} |
0 commit comments