package com.android.ims.internal;
public interface IImsServiceFeatureCallback extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements com.android.ims.internal.IImsServiceFeatureCallback
{
private static final java.lang.String DESCRIPTOR = "com.android.ims.internal.IImsServiceFeatureCallback";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static com.android.ims.internal.IImsServiceFeatureCallback asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.android.ims.internal.IImsServiceFeatureCallback))) {
return ((com.android.ims.internal.IImsServiceFeatureCallback)iin);
}
return new com.android.ims.internal.IImsServiceFeatureCallback.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_imsFeatureCreated:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
this.imsFeatureCreated(_arg0, _arg1);
return true;
}
case TRANSACTION_imsFeatureRemoved:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
this.imsFeatureRemoved(_arg0, _arg1);
return true;
}
case TRANSACTION_imsStatusChanged:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
int _arg2;
_arg2 = data.readInt();
this.imsStatusChanged(_arg0, _arg1, _arg2);
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements com.android.ims.internal.IImsServiceFeatureCallback
{
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 imsFeatureCreated(int slotId, int feature) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slotId);
_data.writeInt(feature);
mRemote.transact(Stub.TRANSACTION_imsFeatureCreated, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void imsFeatureRemoved(int slotId, int feature) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slotId);
_data.writeInt(feature);
mRemote.transact(Stub.TRANSACTION_imsFeatureRemoved, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void imsStatusChanged(int slotId, int feature, int status) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slotId);
_data.writeInt(feature);
_data.writeInt(status);
mRemote.transact(Stub.TRANSACTION_imsStatusChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
}
static final int TRANSACTION_imsFeatureCreated = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_imsFeatureRemoved = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_imsStatusChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
}
public void imsFeatureCreated(int slotId, int feature) throws android.os.RemoteException;
public void imsFeatureRemoved(int slotId, int feature) throws android.os.RemoteException;
public void imsStatusChanged(int slotId, int feature, int status) throws android.os.RemoteException;
}