package android.app;
public interface ITaskStackListener extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.app.ITaskStackListener
{
private static final java.lang.String DESCRIPTOR = "android.app.ITaskStackListener";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.app.ITaskStackListener asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.app.ITaskStackListener))) {
return ((android.app.ITaskStackListener)iin);
}
return new android.app.ITaskStackListener.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_onTaskStackChanged:
{
data.enforceInterface(descriptor);
this.onTaskStackChanged();
return true;
}
case TRANSACTION_onActivityPinned:
{
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();
this.onActivityPinned(_arg0, _arg1, _arg2, _arg3);
return true;
}
case TRANSACTION_onActivityUnpinned:
{
data.enforceInterface(descriptor);
this.onActivityUnpinned();
return true;
}
case TRANSACTION_onPinnedActivityRestartAttempt:
{
data.enforceInterface(descriptor);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.onPinnedActivityRestartAttempt(_arg0);
return true;
}
case TRANSACTION_onPinnedStackAnimationStarted:
{
data.enforceInterface(descriptor);
this.onPinnedStackAnimationStarted();
return true;
}
case TRANSACTION_onPinnedStackAnimationEnded:
{
data.enforceInterface(descriptor);
this.onPinnedStackAnimationEnded();
return true;
}
case TRANSACTION_onActivityForcedResizable:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
this.onActivityForcedResizable(_arg0, _arg1, _arg2);
return true;
}
case TRANSACTION_onActivityDismissingDockedStack:
{
data.enforceInterface(descriptor);
this.onActivityDismissingDockedStack();
return true;
}
case TRANSACTION_onActivityLaunchOnSecondaryDisplayFailed:
{
data.enforceInterface(descriptor);
this.onActivityLaunchOnSecondaryDisplayFailed();
return true;
}
case TRANSACTION_onTaskCreated:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
android.content.ComponentName _arg1;
if ((0!=data.readInt())) {
_arg1 = android.content.ComponentName.CREATOR.createFromParcel(data);
}
else {
_arg1 = null;
}
this.onTaskCreated(_arg0, _arg1);
return true;
}
case TRANSACTION_onTaskRemoved:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
this.onTaskRemoved(_arg0);
return true;
}
case TRANSACTION_onTaskMovedToFront:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
this.onTaskMovedToFront(_arg0);
return true;
}
case TRANSACTION_onTaskDescriptionChanged:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
android.app.ActivityManager.TaskDescription _arg1;
if ((0!=data.readInt())) {
_arg1 = android.app.ActivityManager.TaskDescription.CREATOR.createFromParcel(data);
}
else {
_arg1 = null;
}
this.onTaskDescriptionChanged(_arg0, _arg1);
return true;
}
case TRANSACTION_onActivityRequestedOrientationChanged:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
this.onActivityRequestedOrientationChanged(_arg0, _arg1);
return true;
}
case TRANSACTION_onTaskRemovalStarted:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
this.onTaskRemovalStarted(_arg0);
return true;
}
case TRANSACTION_onTaskProfileLocked:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
this.onTaskProfileLocked(_arg0, _arg1);
return true;
}
case TRANSACTION_onTaskSnapshotChanged:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
android.app.ActivityManager.TaskSnapshot _arg1;
if ((0!=data.readInt())) {
_arg1 = android.app.ActivityManager.TaskSnapshot.CREATOR.createFromParcel(data);
}
else {
_arg1 = null;
}
this.onTaskSnapshotChanged(_arg0, _arg1);
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.app.ITaskStackListener
{
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 onTaskStackChanged() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onTaskStackChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onActivityPinned(java.lang.String packageName, int userId, int taskId, int stackId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(packageName);
_data.writeInt(userId);
_data.writeInt(taskId);
_data.writeInt(stackId);
mRemote.transact(Stub.TRANSACTION_onActivityPinned, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onActivityUnpinned() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onActivityUnpinned, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onPinnedActivityRestartAttempt(boolean clearedTask) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((clearedTask)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_onPinnedActivityRestartAttempt, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onPinnedStackAnimationStarted() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onPinnedStackAnimationStarted, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onPinnedStackAnimationEnded() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onPinnedStackAnimationEnded, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onActivityForcedResizable(java.lang.String packageName, int taskId, int reason) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(packageName);
_data.writeInt(taskId);
_data.writeInt(reason);
mRemote.transact(Stub.TRANSACTION_onActivityForcedResizable, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onActivityDismissingDockedStack() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onActivityDismissingDockedStack, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onActivityLaunchOnSecondaryDisplayFailed() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_onActivityLaunchOnSecondaryDisplayFailed, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onTaskCreated(int taskId, android.content.ComponentName componentName) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
if ((componentName!=null)) {
_data.writeInt(1);
componentName.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_onTaskCreated, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onTaskRemoved(int taskId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
mRemote.transact(Stub.TRANSACTION_onTaskRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onTaskMovedToFront(int taskId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
mRemote.transact(Stub.TRANSACTION_onTaskMovedToFront, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onTaskDescriptionChanged(int taskId, android.app.ActivityManager.TaskDescription td) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
if ((td!=null)) {
_data.writeInt(1);
td.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_onTaskDescriptionChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
_data.writeInt(requestedOrientation);
mRemote.transact(Stub.TRANSACTION_onActivityRequestedOrientationChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onTaskRemovalStarted(int taskId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
mRemote.transact(Stub.TRANSACTION_onTaskRemovalStarted, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onTaskProfileLocked(int taskId, int userId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
_data.writeInt(userId);
mRemote.transact(Stub.TRANSACTION_onTaskProfileLocked, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void onTaskSnapshotChanged(int taskId, android.app.ActivityManager.TaskSnapshot snapshot) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
if ((snapshot!=null)) {
_data.writeInt(1);
snapshot.writeToParcel(_data, 0);
}
else {
_data.writeInt(0);
}
mRemote.transact(Stub.TRANSACTION_onTaskSnapshotChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
}
static final int TRANSACTION_onTaskStackChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_onActivityPinned = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_onActivityUnpinned = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_onPinnedActivityRestartAttempt = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_onPinnedStackAnimationStarted = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_onPinnedStackAnimationEnded = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_onActivityForcedResizable = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_onActivityDismissingDockedStack = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_onActivityLaunchOnSecondaryDisplayFailed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_onTaskCreated = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_onTaskRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
static final int TRANSACTION_onTaskMovedToFront = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
static final int TRANSACTION_onTaskDescriptionChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12);
static final int TRANSACTION_onActivityRequestedOrientationChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13);
static final int TRANSACTION_onTaskRemovalStarted = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14);
static final int TRANSACTION_onTaskProfileLocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15);
static final int TRANSACTION_onTaskSnapshotChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16);
}
public static final int FORCED_RESIZEABLE_REASON_SPLIT_SCREEN = 1;
public static final int FORCED_RESIZEABLE_REASON_SECONDARY_DISPLAY = 2;
public void onTaskStackChanged() throws android.os.RemoteException;
public void onActivityPinned(java.lang.String packageName, int userId, int taskId, int stackId) throws android.os.RemoteException;
public void onActivityUnpinned() throws android.os.RemoteException;
public void onPinnedActivityRestartAttempt(boolean clearedTask) throws android.os.RemoteException;
public void onPinnedStackAnimationStarted() throws android.os.RemoteException;
public void onPinnedStackAnimationEnded() throws android.os.RemoteException;
public void onActivityForcedResizable(java.lang.String packageName, int taskId, int reason) throws android.os.RemoteException;
public void onActivityDismissingDockedStack() throws android.os.RemoteException;
public void onActivityLaunchOnSecondaryDisplayFailed() throws android.os.RemoteException;
public void onTaskCreated(int taskId, android.content.ComponentName componentName) throws android.os.RemoteException;
public void onTaskRemoved(int taskId) throws android.os.RemoteException;
public void onTaskMovedToFront(int taskId) throws android.os.RemoteException;
public void onTaskDescriptionChanged(int taskId, android.app.ActivityManager.TaskDescription td) throws android.os.RemoteException;
public void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) throws android.os.RemoteException;
public void onTaskRemovalStarted(int taskId) throws android.os.RemoteException;
public void onTaskProfileLocked(int taskId, int userId) throws android.os.RemoteException;
public void onTaskSnapshotChanged(int taskId, android.app.ActivityManager.TaskSnapshot snapshot) throws android.os.RemoteException;
}