1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
| package cn.frewen.wang.carinfo;
public interface ICarInfo extends android.os.IInterface {
public static abstract class Stub extends android.os.Binder implements cn.sh.changxing.carinfo.ICarInfo { private static final java.lang.String DESCRIPTOR = "wang.frewen.carinfo.ICarInfo"; public Stub() { this.attachInterface(this, DESCRIPTOR); }
public static frewen.wang.carinfo.ICarInfo asInterface(android.os.IBinder obj) { if ((obj == null)) { return null; }
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin != null) && (iin instanceof cn.sh.changxing.carinfo.ICarInfo))) { return ((cn.sh.changxing.carinfo.ICarInfo) iin); } return new cn.sh.changxing.carinfo.ICarInfo.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_getCarSpeed: { data.enforceInterface(DESCRIPTOR); int _result = this.getCarSpeed(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getCarGear: { data.enforceInterface(DESCRIPTOR); int _result = this.getCarGear(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_getCarDoorLock: { data.enforceInterface(DESCRIPTOR); int _result = this.getCarDoorLock(); reply.writeNoException(); reply.writeInt(_result); return true; } case TRANSACTION_registerCallBack: { data.enforceInterface(DESCRIPTOR); cn.sh.changxing.carinfo.ICarInfoCallback _arg0; _arg0 = cn.sh.changxing.carinfo.ICarInfoCallback.Stub.asInterface(data.readStrongBinder()); this.registerCallBack(_arg0); reply.writeNoException(); return true; } case TRANSACTION_unregisterCallBack: { data.enforceInterface(DESCRIPTOR); cn.sh.changxing.carinfo.ICarInfoCallback _arg0; _arg0 = cn.sh.changxing.carinfo.ICarInfoCallback.Stub.asInterface(data.readStrongBinder()); this.unregisterCallBack(_arg0); reply.writeNoException(); return true; } } return super.onTransact(code, data, reply, flags); }
private static class Proxy implements cn.sh.changxing.carinfo.ICarInfo { 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 int getCarSpeed() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getCarSpeed, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; }
@Override public int getCarGear() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getCarGear, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; }
@Override public int getCarDoorLock() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_getCarDoorLock, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; }
@Override public void registerCallBack(cn.sh.changxing.carinfo.ICarInfoCallback cb) 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.writeStrongBinder((((cb != null)) ? (cb.asBinder()) : (null))); mRemote.transact(Stub.TRANSACTION_registerCallBack, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
@Override public void unregisterCallBack(cn.sh.changxing.carinfo.ICarInfoCallback cb) 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.writeStrongBinder((((cb != null)) ? (cb.asBinder()) : (null))); mRemote.transact(Stub.TRANSACTION_unregisterCallBack, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } }
static final int TRANSACTION_getCarSpeed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_getCarGear = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_getCarDoorLock = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_registerCallBack = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_unregisterCallBack = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); }
public int getCarSpeed() throws android.os.RemoteException;
public int getCarGear() throws android.os.RemoteException;
public int getCarDoorLock() throws android.os.RemoteException;
public void registerCallBack(cn.sh.changxing.carinfo.ICarInfoCallback cb) throws android.os.RemoteException;
public void unregisterCallBack(cn.sh.changxing.carinfo.ICarInfoCallback cb) throws android.os.RemoteException; }
|