/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/view/IRecentsAnimationController.aidl
 */
package android.view;
Passed to the IRecentsAnimationRunner in order for the runner to control to let the runner control certain aspects of the recents animation, and to notify window manager when the animation has completed. {@hide}
/** * Passed to the {@link IRecentsAnimationRunner} in order for the runner to control to let the * runner control certain aspects of the recents animation, and to notify window manager when the * animation has completed. * * {@hide} */
public interface IRecentsAnimationController 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.IRecentsAnimationController { private static final java.lang.String DESCRIPTOR = "android.view.IRecentsAnimationController";
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.IRecentsAnimationController interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.view.IRecentsAnimationController interface, * generating a proxy if needed. */
public static android.view.IRecentsAnimationController asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof android.view.IRecentsAnimationController))) { return ((android.view.IRecentsAnimationController)iin); } return new android.view.IRecentsAnimationController.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_screenshotTask: { data.enforceInterface(descriptor); int _arg0; _arg0 = data.readInt(); android.app.ActivityManager.TaskSnapshot _result = this.screenshotTask(_arg0); reply.writeNoException(); if ((_result!=null)) { reply.writeInt(1); _result.writeToParcel(reply, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE); } else { reply.writeInt(0); } return true; } case TRANSACTION_finish: { data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.finish(_arg0); reply.writeNoException(); return true; } case TRANSACTION_setInputConsumerEnabled: { data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setInputConsumerEnabled(_arg0); reply.writeNoException(); return true; } case TRANSACTION_setAnimationTargetsBehindSystemBars: { data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setAnimationTargetsBehindSystemBars(_arg0); reply.writeNoException(); return true; } case TRANSACTION_setSplitScreenMinimized: { data.enforceInterface(descriptor); boolean _arg0; _arg0 = (0!=data.readInt()); this.setSplitScreenMinimized(_arg0); reply.writeNoException(); return true; } case TRANSACTION_hideCurrentInputMethod: { data.enforceInterface(descriptor); this.hideCurrentInputMethod(); reply.writeNoException(); return true; } default: { return super.onTransact(code, data, reply, flags); } } } private static class Proxy implements android.view.IRecentsAnimationController { 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; }
Takes a screenshot of the task associated with the given {@param taskId}. Only valid for the current set of task ids provided to the handler.
/** * Takes a screenshot of the task associated with the given {@param taskId}. Only valid for the * current set of task ids provided to the handler. */
@Override public android.app.ActivityManager.TaskSnapshot screenshotTask(int taskId) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); android.app.ActivityManager.TaskSnapshot _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(taskId); mRemote.transact(Stub.TRANSACTION_screenshotTask, _data, _reply, 0); _reply.readException(); if ((0!=_reply.readInt())) { _result = android.app.ActivityManager.TaskSnapshot.CREATOR.createFromParcel(_reply); } else { _result = null; } } finally { _reply.recycle(); _data.recycle(); } return _result; }
Notifies to the system that the animation into Recents should end, and all leashes associated with remote animation targets should be relinquished. If {@param moveHomeToTop} is true, then the home activity should be moved to the top. Otherwise, the home activity is hidden and the user is returned to the app.
/** * Notifies to the system that the animation into Recents should end, and all leashes associated * with remote animation targets should be relinquished. If {@param moveHomeToTop} is true, then * the home activity should be moved to the top. Otherwise, the home activity is hidden and the * user is returned to the app. */
@Override public void finish(boolean moveHomeToTop) 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(((moveHomeToTop)?(1):(0))); mRemote.transact(Stub.TRANSACTION_finish, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Called by the handler to indicate that the recents animation input consumer should be enabled. This is currently used to work around an issue where registering an input consumer mid-animation causes the existing motion event chain to be canceled. Instead, the caller may register the recents animation input consumer prior to starting the recents animation and then enable it mid-animation to start receiving touch events.
/** * Called by the handler to indicate that the recents animation input consumer should be * enabled. This is currently used to work around an issue where registering an input consumer * mid-animation causes the existing motion event chain to be canceled. Instead, the caller * may register the recents animation input consumer prior to starting the recents animation * and then enable it mid-animation to start receiving touch events. */
@Override public void setInputConsumerEnabled(boolean enabled) 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(((enabled)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setInputConsumerEnabled, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Informs the system whether the animation targets passed into IRecentsAnimationRunner.onAnimationStart are currently behind the system bars. If they are, they can control the SystemUI flags, otherwise the SystemUI flags from home activity will be taken.
/** * Informs the system whether the animation targets passed into * IRecentsAnimationRunner.onAnimationStart are currently behind the system bars. If they are, * they can control the SystemUI flags, otherwise the SystemUI flags from home activity will be * taken. */
@Override public void setAnimationTargetsBehindSystemBars(boolean behindSystemBars) 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(((behindSystemBars)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setAnimationTargetsBehindSystemBars, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Informs the system that the primary split-screen stack should be minimized.
/** * Informs the system that the primary split-screen stack should be minimized. */
@Override public void setSplitScreenMinimized(boolean minimized) 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(((minimized)?(1):(0))); mRemote.transact(Stub.TRANSACTION_setSplitScreenMinimized, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } }
Hides the current input method if one is showing.
/** * Hides the current input method if one is showing. */
@Override public void hideCurrentInputMethod() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_hideCurrentInputMethod, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } } static final int TRANSACTION_screenshotTask = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_finish = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_setInputConsumerEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_setAnimationTargetsBehindSystemBars = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_setSplitScreenMinimized = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); static final int TRANSACTION_hideCurrentInputMethod = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5); }
Takes a screenshot of the task associated with the given {@param taskId}. Only valid for the current set of task ids provided to the handler.
/** * Takes a screenshot of the task associated with the given {@param taskId}. Only valid for the * current set of task ids provided to the handler. */
public android.app.ActivityManager.TaskSnapshot screenshotTask(int taskId) throws android.os.RemoteException;
Notifies to the system that the animation into Recents should end, and all leashes associated with remote animation targets should be relinquished. If {@param moveHomeToTop} is true, then the home activity should be moved to the top. Otherwise, the home activity is hidden and the user is returned to the app.
/** * Notifies to the system that the animation into Recents should end, and all leashes associated * with remote animation targets should be relinquished. If {@param moveHomeToTop} is true, then * the home activity should be moved to the top. Otherwise, the home activity is hidden and the * user is returned to the app. */
public void finish(boolean moveHomeToTop) throws android.os.RemoteException;
Called by the handler to indicate that the recents animation input consumer should be enabled. This is currently used to work around an issue where registering an input consumer mid-animation causes the existing motion event chain to be canceled. Instead, the caller may register the recents animation input consumer prior to starting the recents animation and then enable it mid-animation to start receiving touch events.
/** * Called by the handler to indicate that the recents animation input consumer should be * enabled. This is currently used to work around an issue where registering an input consumer * mid-animation causes the existing motion event chain to be canceled. Instead, the caller * may register the recents animation input consumer prior to starting the recents animation * and then enable it mid-animation to start receiving touch events. */
public void setInputConsumerEnabled(boolean enabled) throws android.os.RemoteException;
Informs the system whether the animation targets passed into IRecentsAnimationRunner.onAnimationStart are currently behind the system bars. If they are, they can control the SystemUI flags, otherwise the SystemUI flags from home activity will be taken.
/** * Informs the system whether the animation targets passed into * IRecentsAnimationRunner.onAnimationStart are currently behind the system bars. If they are, * they can control the SystemUI flags, otherwise the SystemUI flags from home activity will be * taken. */
public void setAnimationTargetsBehindSystemBars(boolean behindSystemBars) throws android.os.RemoteException;
Informs the system that the primary split-screen stack should be minimized.
/** * Informs the system that the primary split-screen stack should be minimized. */
public void setSplitScreenMinimized(boolean minimized) throws android.os.RemoteException;
Hides the current input method if one is showing.
/** * Hides the current input method if one is showing. */
public void hideCurrentInputMethod() throws android.os.RemoteException; }