/* * This file is auto-generated. DO NOT MODIFY. * Original file: D:\\1_android\\project\\DlnaServer\\src\\com\\lge\\dlnaserver\\IDlnaEnabler.aidl */ package com.lge.dlnaserver; /** @hide */ public interface IDlnaEnabler extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements com.lge.dlnaserver.IDlnaEnabler { private static final java.lang.String DESCRIPTOR = "com.lge.dlnaserver.IDlnaEnabler"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an com.lge.dlnaserver.IDlnaEnabler interface, * generating a proxy if needed. */ public static com.lge.dlnaserver.IDlnaEnabler 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 com.lge.dlnaserver.IDlnaEnabler))) { return ((com.lge.dlnaserver.IDlnaEnabler)iin); } return new com.lge.dlnaserver.IDlnaEnabler.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_registerListener: { data.enforceInterface(DESCRIPTOR); com.lge.dlnaserver.IDlnaEnablerListener _arg0; _arg0 = com.lge.dlnaserver.IDlnaEnablerListener.Stub.asInterface(data.readStrongBinder()); this.registerListener(_arg0); reply.writeNoException(); return true; } case TRANSACTION_unregisterListener: { data.enforceInterface(DESCRIPTOR); com.lge.dlnaserver.IDlnaEnablerListener _arg0; _arg0 = com.lge.dlnaserver.IDlnaEnablerListener.Stub.asInterface(data.readStrongBinder()); this.unregisterListener(_arg0); reply.writeNoException(); return true; } case TRANSACTION_startShare: { data.enforceInterface(DESCRIPTOR); this.startShare(); reply.writeNoException(); return true; } case TRANSACTION_stopShare: { data.enforceInterface(DESCRIPTOR); this.stopShare(); reply.writeNoException(); return true; } case TRANSACTION_getState: { data.enforceInterface(DESCRIPTOR); int _result = this.getState(); reply.writeNoException(); reply.writeInt(_result); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements com.lge.dlnaserver.IDlnaEnabler { 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 void registerListener(com.lge.dlnaserver.IDlnaEnablerListener 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_registerListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void unregisterListener(com.lge.dlnaserver.IDlnaEnablerListener 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_unregisterListener, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void startShare() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_startShare, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public void stopShare() throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); try { _data.writeInterfaceToken(DESCRIPTOR); mRemote.transact(Stub.TRANSACTION_stopShare, _data, _reply, 0); _reply.readException(); } finally { _reply.recycle(); _data.recycle(); } } public int getState() 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); mRemote.transact(Stub.TRANSACTION_getState, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_registerListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); static final int TRANSACTION_unregisterListener = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1); static final int TRANSACTION_startShare = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2); static final int TRANSACTION_stopShare = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3); static final int TRANSACTION_getState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4); } public void registerListener(com.lge.dlnaserver.IDlnaEnablerListener listener) throws android.os.RemoteException; public void unregisterListener(com.lge.dlnaserver.IDlnaEnablerListener listener) throws android.os.RemoteException; public void startShare() throws android.os.RemoteException; public void stopShare() throws android.os.RemoteException; public int getState() throws android.os.RemoteException; }