/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/service/wallpaper/IWallpaperEngine.aidl
 */
package android.service.wallpaper;
@hide
/** * @hide */
public interface IWallpaperEngine extends android.os.IInterface {
Local-side IPC implementation stub class.
/** 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.
/** 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.
/** * 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 = 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); } @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_setDesiredSize: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); int _arg1; _arg1 = data.readInt(); this.setDesiredSize(_arg0, _arg1); return true; } case TRANSACTION_setDisplayPadding: { data.enforceInterface(descriptor); android.graphics.Rect _arg0; if ((0!=data.readInt())) { _arg0 = android.graphics.Rect.CREATOR.createFromParcel(data); } else { _arg0 = null; } this.setDisplayPadding(_arg0); return true; } case TRANSACTION_setVisibility: { data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setVisibility(_arg0); return true; } case TRANSACTION_setInAmbientMode: { data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); boolean _arg1; _arg1 = (0!=data.readInt()); this.setInAmbientMode(_arg0, _arg1); 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_requestWallpaperColors: { data.enforceInterface(descriptor); this.requestWallpaperColors(); return true; } case TRANSACTION_destroy: { data.enforceInterface(descriptor); this.destroy(); return true; } default: { 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; } @Override public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } @Override 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(); } } @Override public void setDisplayPadding(android.graphics.Rect padding) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); if ((padding!=null)) { _data.writeInt(1); padding.writeToParcel(_data, 0); } else { _data.writeInt(0); } mRemote.transact(Stub.TRANSACTION_setDisplayPadding, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } @Override 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(); } } @Override public void setInAmbientMode(boolean inAmbientDisplay, boolean animated) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(((inAmbientDisplay)?(1):(0))); _data.writeInt(((animated)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setInAmbientMode, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } @Override 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(); } } @Override 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(); } } @Override public void requestWallpaperColors() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_requestWallpaperColors, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } @Override 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_setDisplayPadding = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_setVisibility = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_setInAmbientMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_dispatchPointer = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_dispatchWallpaperCommand = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); static final int TRANSACTION_requestWallpaperColors = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6); static final int TRANSACTION_destroy = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7); } public void setDesiredSize(int width, int height) throws android.os.RemoteException; public void setDisplayPadding(android.graphics.Rect padding) throws android.os.RemoteException; public void setVisibility(boolean visible) throws android.os.RemoteException; public void setInAmbientMode(boolean inAmbientDisplay, boolean animated) 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 requestWallpaperColors() throws android.os.RemoteException; public void destroy() throws android.os.RemoteException; }