/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/android/service/wallpaper/IWallpaperEngine.aidl */ package android.service.wallpaper; /** * @hide */ public interface IWallpaperEngine extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.service.wallpaper.IWallpaperEngine { private static final java.lang.String DESCRIPTOR = "android.service.wallpaper.IWallpaperEngine"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.service.wallpaper.IWallpaperEngine interface, * generating a proxy if needed. */ public static android.service.wallpaper.IWallpaperEngine 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.service.wallpaper.IWallpaperEngine))) { return ((android.service.wallpaper.IWallpaperEngine)iin); } return new android.service.wallpaper.IWallpaperEngine.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_setDesiredSize: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); this.setDesiredSize(_arg0, _arg1); return true; } case TRANSACTION_setVisibility: { data.enforceInterface(DESCRIPTOR); boolean _arg0; _arg0 = (0!=data.readInt()); this.setVisibility(_arg0); return true; } case TRANSACTION_dispatchPointer: { data.enforceInterface(DESCRIPTOR); android.view.MotionEvent _arg0; if ((0!=data.readInt())) { _arg0 = android.view.MotionEvent.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.dispatchPointer(_arg0); return true; } case TRANSACTION_dispatchWallpaperCommand: { data.enforceInterface(DESCRIPTOR); java.lang.String _arg0; _arg0 = data.readString(); int _arg1; _arg1 = data.readInt(); int _arg2; _arg2 = data.readInt(); int _arg3; _arg3 = data.readInt(); android.os.Bundle _arg4; if ((0!=data.readInt())) { _arg4 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg4 = null; } this.dispatchWallpaperCommand(_arg0, _arg1, _arg2, _arg3, _arg4); return true; } case TRANSACTION_destroy: { data.enforceInterface(DESCRIPTOR); this.destroy(); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.service.wallpaper.IWallpaperEngine { 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 setDesiredSize(int width, int height) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(width); _data.writeInt(height); mRemote.transact(Stub.TRANSACTION_setDesiredSize, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void setVisibility(boolean visible) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((visible)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setVisibility, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void dispatchPointer(android.view.MotionEvent 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_dispatchPointer, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void dispatchWallpaperCommand(java.lang.String action, int x, int y, int z, android.os.Bundle extras) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(action); _data.writeInt(x); _data.writeInt(y); _data.writeInt(z); if ((extras!=null)) { _data.writeInt(1); extras.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_dispatchWallpaperCommand, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } public void destroy() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_destroy, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } } static final int TRANSACTION_setDesiredSize = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_setVisibility = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_dispatchPointer = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_dispatchWallpaperCommand = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_destroy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); } public void setDesiredSize(int width, int height) throws android.os.RemoteException; public void setVisibility(boolean visible) throws android.os.RemoteException; public void dispatchPointer(android.view.MotionEvent event) throws android.os.RemoteException; public void dispatchWallpaperCommand(java.lang.String action, int x, int y, int z, android.os.Bundle extras) throws android.os.RemoteException; public void destroy() throws android.os.RemoteException; }