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
| public interface IInputService extends android.os.IInterface { public static class Default implements com.nightmare.neo.IInputService { @Override public void destroy() throws android.os.RemoteException { } @Override public void exit() throws android.os.RemoteException { } @Override public void injectEvent(int action, long pointerId, int x, int y, int width, int height, float pressure, int actionButton, int buttons, int source, int displayId) throws android.os.RemoteException { } @Override public android.os.IBinder asBinder() { return null; } } public static abstract class Stub extends android.os.Binder implements com.nightmare.neo.IInputService { public Stub() { this.attachInterface(this, DESCRIPTOR); }
public static com.nightmare.neo.IInputService asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof com.nightmare.neo.IInputService))) { return ((com.nightmare.neo.IInputService)iin); } return new com.nightmare.neo.IInputService.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; if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) { data.enforceInterface(descriptor); } switch (code) { case INTERFACE_TRANSACTION: { reply.writeString(descriptor); return true; } } switch (code) { case TRANSACTION_destroy: { this.destroy(); reply.writeNoException(); break; } case TRANSACTION_exit: { this.exit(); reply.writeNoException(); break; } case TRANSACTION_injectEvent: { int _arg0; _arg0 = data.readInt(); long _arg1; _arg1 = data.readLong(); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); int _arg4; _arg4 = data.readInt(); int _arg5; _arg5 = data.readInt(); float _arg6; _arg6 = data.readFloat(); int _arg7; _arg7 = data.readInt(); int _arg8; _arg8 = data.readInt(); int _arg9; _arg9 = data.readInt(); int _arg10; _arg10 = data.readInt(); this.injectEvent(_arg0, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); reply.writeNoException(); break; } default: { return super.onTransact(code, data, reply, flags); } } return true; } private static class Proxy implements com.nightmare.neo.IInputService { 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 void destroy() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_destroy, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void exit() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); boolean _status = mRemote.transact(Stub.TRANSACTION_exit, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } @Override public void injectEvent(int action, long pointerId, int x, int y, int width, int height, float pressure, int actionButton, int buttons, int source, int displayId) 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(action); _data.writeLong(pointerId); _data.writeInt(x); _data.writeInt(y); _data.writeInt(width); _data.writeInt(height); _data.writeFloat(pressure); _data.writeInt(actionButton); _data.writeInt(buttons); _data.writeInt(source); _data.writeInt(displayId); boolean _status = mRemote.transact(Stub.TRANSACTION_injectEvent, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_destroy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16777114); static final int TRANSACTION_exit = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_injectEvent = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); } public static final java.lang.String DESCRIPTOR = "com.nightmare.neo.IInputService"; public void destroy() throws android.os.RemoteException; public void exit() throws android.os.RemoteException; public void injectEvent(int action, long pointerId, int x, int y, int width, int height, float pressure, int actionButton, int buttons, int source, int displayId) throws android.os.RemoteException; }
|