package android.telephony;
public interface INetworkService extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.telephony.INetworkService
{
private static final java.lang.String DESCRIPTOR = "android.telephony.INetworkService";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.telephony.INetworkService asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.telephony.INetworkService))) {
return ((android.telephony.INetworkService)iin);
}
return new android.telephony.INetworkService.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_createNetworkServiceProvider:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
this.createNetworkServiceProvider(_arg0);
return true;
}
case TRANSACTION_removeNetworkServiceProvider:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
this.removeNetworkServiceProvider(_arg0);
return true;
}
case TRANSACTION_getNetworkRegistrationState:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
android.telephony.INetworkServiceCallback _arg2;
_arg2 = android.telephony.INetworkServiceCallback.Stub.asInterface(data.readStrongBinder());
this.getNetworkRegistrationState(_arg0, _arg1, _arg2);
return true;
}
case TRANSACTION_registerForNetworkRegistrationStateChanged:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
android.telephony.INetworkServiceCallback _arg1;
_arg1 = android.telephony.INetworkServiceCallback.Stub.asInterface(data.readStrongBinder());
this.registerForNetworkRegistrationStateChanged(_arg0, _arg1);
return true;
}
case TRANSACTION_unregisterForNetworkRegistrationStateChanged:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
android.telephony.INetworkServiceCallback _arg1;
_arg1 = android.telephony.INetworkServiceCallback.Stub.asInterface(data.readStrongBinder());
this.unregisterForNetworkRegistrationStateChanged(_arg0, _arg1);
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.telephony.INetworkService
{
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 createNetworkServiceProvider(int slotId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slotId);
mRemote.transact(Stub.TRANSACTION_createNetworkServiceProvider, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void removeNetworkServiceProvider(int slotId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slotId);
mRemote.transact(Stub.TRANSACTION_removeNetworkServiceProvider, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void getNetworkRegistrationState(int slotId, int domain, android.telephony.INetworkServiceCallback callback) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slotId);
_data.writeInt(domain);
_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_getNetworkRegistrationState, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void registerForNetworkRegistrationStateChanged(int slotId, android.telephony.INetworkServiceCallback callback) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slotId);
_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_registerForNetworkRegistrationStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
@Override public void unregisterForNetworkRegistrationStateChanged(int slotId, android.telephony.INetworkServiceCallback callback) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slotId);
_data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_unregisterForNetworkRegistrationStateChanged, _data, null, android.os.IBinder.FLAG_ONEWAY);
}
finally {
_data.recycle();
}
}
}
static final int TRANSACTION_createNetworkServiceProvider = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_removeNetworkServiceProvider = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_getNetworkRegistrationState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_registerForNetworkRegistrationStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_unregisterForNetworkRegistrationStateChanged = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
}
public void createNetworkServiceProvider(int slotId) throws android.os.RemoteException;
public void removeNetworkServiceProvider(int slotId) throws android.os.RemoteException;
public void getNetworkRegistrationState(int slotId, int domain, android.telephony.INetworkServiceCallback callback) throws android.os.RemoteException;
public void registerForNetworkRegistrationStateChanged(int slotId, android.telephony.INetworkServiceCallback callback) throws android.os.RemoteException;
public void unregisterForNetworkRegistrationStateChanged(int slotId, android.telephony.INetworkServiceCallback callback) throws android.os.RemoteException;
}