Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface IStudyCallbackClient extends android.os.IInterface {
- /** Default implementation for IStudyCallbackClient. */
- public static class Default implements com.example.proxytest.IStudyCallbackClient {
- /**
- * Demonstrates some basic types that you can use as parameters and return
- * values in AIDL.
- */
- @Override
- public void sendPoint(int x, int y) throws android.os.RemoteException {
- }
- @Override
- public android.os.IBinder asBinder() {
- return null;
- }
- }
- /** Local-side IPC implementation stub class. */
- public static abstract class Stub extends android.os.Binder implements com.example.proxytest.IStudyCallbackClient {
- private static final java.lang.String DESCRIPTOR = "***.IStudyCallbackClient";
- /** Construct the stub at attach it to the interface. */
- public Stub() {
- this.attachInterface(this, DESCRIPTOR);
- }
- /**
- * Cast an IBinder object into an com.example.proxytest.IStudyCallbackClient
- * interface, generating a proxy if needed.
- */
- public static com.example.proxytest.IStudyCallbackClient asInterface(android.os.IBinder obj) {
- if ((obj == null)) {
- return null;
- }
- android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
- if (((iin != null) && (iin instanceof com.example.proxytest.IStudyCallbackClient))) {
- return ((com.example.proxytest.IStudyCallbackClient) iin);
- }
- return new com.example.proxytest.IStudyCallbackClient.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 {
- java.lang.String descriptor = DESCRIPTOR;
- switch (code) {
- case INTERFACE_TRANSACTION: {
- reply.writeString(descriptor);
- return true;
- }
- case TRANSACTION_sendPoint: {
- data.enforceInterface(descriptor);
- int _arg0;
- _arg0 = data.readInt();
- int _arg1;
- _arg1 = data.readInt();
- this.sendPoint(_arg0, _arg1);
- reply.writeNoException();
- return true;
- }
- default: {
- return super.onTransact(code, data, reply, flags);
- }
- }
- }
- private static class Proxy implements com.example.proxytest.IStudyCallbackClient {
- 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 void sendPoint(int x, int y) 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.writeInt(x);
- _data.writeInt(y);
- boolean _status = mRemote.transact(Stub.TRANSACTION_sendPoint, _data, _reply, 0);
- if (!_status && getDefaultImpl() != null) {
- getDefaultImpl().sendPoint(x, y);
- return;
- }
- _reply.readException();
- } finally {
- _reply.recycle();
- _data.recycle();
- }
- }
- public static com.example.proxytest.IStudyCallbackClient sDefaultImpl;
- }
- static final int TRANSACTION_sendPoint = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
- public static boolean setDefaultImpl(com.example.proxytest.IStudyCallbackClient impl) {
- if (Stub.Proxy.sDefaultImpl == null && impl != null) {
- Stub.Proxy.sDefaultImpl = impl;
- return true;
- }
- return false;
- }
- public static com.example.proxytest.IStudyCallbackClient getDefaultImpl() {
- return Stub.Proxy.sDefaultImpl;
- }
- }
- /**
- * Demonstrates some basic types that you can use as parameters and return
- * values in AIDL.
- */
- public void sendPoint(int x, int y) throws android.os.RemoteException;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement