package android.net.lowpan;
public interface ILowpanManager extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.net.lowpan.ILowpanManager
{
private static final java.lang.String DESCRIPTOR = "android.net.lowpan.ILowpanManager";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.net.lowpan.ILowpanManager asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.net.lowpan.ILowpanManager))) {
return ((android.net.lowpan.ILowpanManager)iin);
}
return new android.net.lowpan.ILowpanManager.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_getInterface:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
android.net.lowpan.ILowpanInterface _result = this.getInterface(_arg0);
reply.writeNoException();
reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null)));
return true;
}
case TRANSACTION_getInterfaceList:
{
data.enforceInterface(descriptor);
java.lang.String[] _result = this.getInterfaceList();
reply.writeNoException();
reply.writeStringArray(_result);
return true;
}
case TRANSACTION_addListener:
{
data.enforceInterface(descriptor);
android.net.lowpan.ILowpanManagerListener _arg0;
_arg0 = android.net.lowpan.ILowpanManagerListener.Stub.asInterface(data.readStrongBinder());
this.addListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_removeListener:
{
data.enforceInterface(descriptor);
android.net.lowpan.ILowpanManagerListener _arg0;
_arg0 = android.net.lowpan.ILowpanManagerListener.Stub.asInterface(data.readStrongBinder());
this.removeListener(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_addInterface:
{
data.enforceInterface(descriptor);
android.net.lowpan.ILowpanInterface _arg0;
_arg0 = android.net.lowpan.ILowpanInterface.Stub.asInterface(data.readStrongBinder());
this.addInterface(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_removeInterface:
{
data.enforceInterface(descriptor);
android.net.lowpan.ILowpanInterface _arg0;
_arg0 = android.net.lowpan.ILowpanInterface.Stub.asInterface(data.readStrongBinder());
this.removeInterface(_arg0);
reply.writeNoException();
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.net.lowpan.ILowpanManager
{
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 android.net.lowpan.ILowpanInterface getInterface(java.lang.String name) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.net.lowpan.ILowpanInterface _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(name);
mRemote.transact(Stub.TRANSACTION_getInterface, _data, _reply, 0);
_reply.readException();
_result = android.net.lowpan.ILowpanInterface.Stub.asInterface(_reply.readStrongBinder());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public java.lang.String[] getInterfaceList() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String[] _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getInterfaceList, _data, _reply, 0);
_reply.readException();
_result = _reply.createStringArray();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void addListener(android.net.lowpan.ILowpanManagerListener listener) 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.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_addListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void removeListener(android.net.lowpan.ILowpanManagerListener listener) 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.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_removeListener, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void addInterface(android.net.lowpan.ILowpanInterface lowpan_interface) 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.writeStrongBinder((((lowpan_interface!=null))?(lowpan_interface.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_addInterface, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void removeInterface(android.net.lowpan.ILowpanInterface lowpan_interface) 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.writeStrongBinder((((lowpan_interface!=null))?(lowpan_interface.asBinder()):(null)));
mRemote.transact(Stub.TRANSACTION_removeInterface, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_getInterface = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_getInterfaceList = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_addListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_removeListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_addInterface = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_removeInterface = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
}
public static final String LOWPAN_SERVICE_NAME = "lowpan";
public android.net.lowpan.ILowpanInterface getInterface(java.lang.String name) throws android.os.RemoteException;
public java.lang.String[] getInterfaceList() throws android.os.RemoteException;
public void addListener(android.net.lowpan.ILowpanManagerListener listener) throws android.os.RemoteException;
public void removeListener(android.net.lowpan.ILowpanManagerListener listener) throws android.os.RemoteException;
public void addInterface(android.net.lowpan.ILowpanInterface lowpan_interface) throws android.os.RemoteException;
public void removeInterface(android.net.lowpan.ILowpanInterface lowpan_interface) throws android.os.RemoteException;
}