/* * This file is auto-generated. DO NOT MODIFY. * Original file: frameworks/base/core/java/android/content/IIntentSender.aidl */ package android.content; /** @hide */ public interface IIntentSender extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements android.content.IIntentSender { private static final java.lang.String DESCRIPTOR = "android.content.IIntentSender"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an android.content.IIntentSender interface, * generating a proxy if needed. */ public static android.content.IIntentSender 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.content.IIntentSender))) { return ((android.content.IIntentSender)iin); } return new android.content.IIntentSender.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_send: { data.enforceInterface(DESCRIPTOR); int _arg0; _arg0 = data.readInt(); android.content.Intent _arg1; if ((0!=data.readInt())) { _arg1 = android.content.Intent.CREATOR.createFromParcel(data); } else { _arg1 = null; } java.lang.String _arg2; _arg2 = data.readString(); android.content.IIntentReceiver _arg3; _arg3 = android.content.IIntentReceiver.Stub.asInterface(data.readStrongBinder()); java.lang.String _arg4; _arg4 = data.readString(); int _result = this.send(_arg0, _arg1, _arg2, _arg3, _arg4); reply.writeNoException(); reply.writeInt(_result); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements android.content.IIntentSender { 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 int send(int code, android.content.Intent intent, java.lang.String resolvedType, android.content.IIntentReceiver finishedReceiver, java.lang.String requiredPermission) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeInt(code); if ((intent!=null)) { _data.writeInt(1); intent.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeString(resolvedType); _data.writeStrongBinder((((finishedReceiver!=null))?(finishedReceiver.asBinder()):(null))); _data.writeString(requiredPermission); mRemote.transact(Stub.TRANSACTION_send, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_send = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); } public int send(int code, android.content.Intent intent, java.lang.String resolvedType, android.content.IIntentReceiver finishedReceiver, java.lang.String requiredPermission) throws android.os.RemoteException; }