/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/android/accessibilityservice/IEventListener.aidl */ package android.accessibilityservice; /** * Top-level interface to accessibility service component (implemented in Service). * * @hide */ public interface IEventListener extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.accessibilityservice.IEventListener { private static final java.lang.String DESCRIPTOR = "android.accessibilityservice.IEventListener"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.accessibilityservice.IEventListener interface, * generating a proxy if needed. */ public static android.accessibilityservice.IEventListener asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.accessibilityservice.IEventListener))) { return ((android.accessibilityservice.IEventListener)iin); } return new android.accessibilityservice.IEventListener.Stub.Proxy(obj); } 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_setConnection: { data.enforceInterface(DESCRIPTOR); android.accessibilityservice.IAccessibilityServiceConnection _arg0; _arg0 = android.accessibilityservice.IAccessibilityServiceConnection.Stub.asInterface(data.readStrongBinder()); this.setConnection(_arg0); return true; } case TRANSACTION_onAccessibilityEvent: { data.enforceInterface(DESCRIPTOR); android.view.accessibility.AccessibilityEvent _arg0; if ((0!=data.readInt())) { _arg0 = android.view.accessibility.AccessibilityEvent.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.onAccessibilityEvent(_arg0); return true; } case TRANSACTION_onInterrupt: { data.enforceInterface(DESCRIPTOR); this.onInterrupt(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.accessibilityservice.IEventListener { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } public void setConnection(android.accessibilityservice.IAccessibilityServiceConnection connection) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeStrongBinder((((connection!=null))?(connection.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_setConnection, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onAccessibilityEvent(android.view.accessibility.AccessibilityEvent event) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((event!=null)) { _data.writeInt(1); event.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_onAccessibilityEvent, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void onInterrupt() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_onInterrupt, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } } static final int TRANSACTION_setConnection = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onAccessibilityEvent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_onInterrupt = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); } public void setConnection(android.accessibilityservice.IAccessibilityServiceConnection connection) throws android.os.RemoteException; public void onAccessibilityEvent(android.view.accessibility.AccessibilityEvent event) throws android.os.RemoteException; public void onInterrupt() throws android.os.RemoteException; }