/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/view/IRemoteAnimationRunner.aidl
 */
package android.view;
Interface that is used to callback from window manager to the process that runs a remote animation to start or cancel it. {@hide}
/** * Interface that is used to callback from window manager to the process that runs a remote * animation to start or cancel it. * * {@hide} */
public interface IRemoteAnimationRunner 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.view.IRemoteAnimationRunner { private static final java.lang.String DESCRIPTOR = "android.view.IRemoteAnimationRunner";
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.view.IRemoteAnimationRunner interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.view.IRemoteAnimationRunner interface, * generating a proxy if needed. */
public static android.view.IRemoteAnimationRunner asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.view.IRemoteAnimationRunner))) { return ((android.view.IRemoteAnimationRunner)iin); } return new android.view.IRemoteAnimationRunner.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_onAnimationStart: { data.enforceInterface(descriptor); android.view.RemoteAnimationTarget[] _arg0; _arg0 = data.createTypedArray(android.view.RemoteAnimationTarget.CREATOR); android.view.IRemoteAnimationFinishedCallback _arg1; _arg1 = android.view.IRemoteAnimationFinishedCallback.Stub.asInterface(data.readStrongBinder()); this.onAnimationStart(_arg0, _arg1); return true; } case TRANSACTION_onAnimationCancelled: { data.enforceInterface(descriptor); this.onAnimationCancelled(); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements android.view.IRemoteAnimationRunner { 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; }
Called when the process needs to start the remote animation.
Params:
  • apps – The list of apps to animate.
  • finishedCallback – The callback to invoke when the animation is finished.
/** * Called when the process needs to start the remote animation. * * @param apps The list of apps to animate. * @param finishedCallback The callback to invoke when the animation is finished. */
@Override public void onAnimationStart(android.view.RemoteAnimationTarget[] apps, android.view.IRemoteAnimationFinishedCallback finishedCallback) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeTypedArray(apps, 0); _data.writeStrongBinder((((finishedCallback!=null))?(finishedCallback.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_onAnimationStart, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } }
Called when the animation was cancelled. From this point on, any updates onto the leashes won't have any effect anymore.
/** * Called when the animation was cancelled. From this point on, any updates onto the leashes * won't have any effect anymore. */
@Override public void onAnimationCancelled() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_onAnimationCancelled, _data, null, android.os.IBinder.FLAG_ONEWAY); } finally { _data.recycle(); } } } static final int TRANSACTION_onAnimationStart = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_onAnimationCancelled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); }
Called when the process needs to start the remote animation.
Params:
  • apps – The list of apps to animate.
  • finishedCallback – The callback to invoke when the animation is finished.
/** * Called when the process needs to start the remote animation. * * @param apps The list of apps to animate. * @param finishedCallback The callback to invoke when the animation is finished. */
public void onAnimationStart(android.view.RemoteAnimationTarget[] apps, android.view.IRemoteAnimationFinishedCallback finishedCallback) throws android.os.RemoteException;
Called when the animation was cancelled. From this point on, any updates onto the leashes won't have any effect anymore.
/** * Called when the animation was cancelled. From this point on, any updates onto the leashes * won't have any effect anymore. */
public void onAnimationCancelled() throws android.os.RemoteException; }