package android.hardware.hdmi;
public interface IHdmiRecordListener extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.hardware.hdmi.IHdmiRecordListener
{
private static final java.lang.String DESCRIPTOR = "android.hardware.hdmi.IHdmiRecordListener";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.hardware.hdmi.IHdmiRecordListener asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.hardware.hdmi.IHdmiRecordListener))) {
return ((android.hardware.hdmi.IHdmiRecordListener)iin);
}
return new android.hardware.hdmi.IHdmiRecordListener.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_getOneTouchRecordSource:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
byte[] _result = this.getOneTouchRecordSource(_arg0);
reply.writeNoException();
reply.writeByteArray(_result);
return true;
}
case TRANSACTION_onOneTouchRecordResult:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
this.onOneTouchRecordResult(_arg0, _arg1);
reply.writeNoException();
return true;
}
case TRANSACTION_onTimerRecordingResult:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
this.onTimerRecordingResult(_arg0, _arg1);
reply.writeNoException();
return true;
}
case TRANSACTION_onClearTimerRecordingResult:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
this.onClearTimerRecordingResult(_arg0, _arg1);
reply.writeNoException();
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.hardware.hdmi.IHdmiRecordListener
{
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 byte[] getOneTouchRecordSource(int recorderAddress) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
byte[] _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(recorderAddress);
mRemote.transact(Stub.TRANSACTION_getOneTouchRecordSource, _data, _reply, 0);
_reply.readException();
_result = _reply.createByteArray();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public void onOneTouchRecordResult(int recorderAddress, int result) 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.writeInt(recorderAddress);
_data.writeInt(result);
mRemote.transact(Stub.TRANSACTION_onOneTouchRecordResult, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void onTimerRecordingResult(int recorderAddress, int result) 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.writeInt(recorderAddress);
_data.writeInt(result);
mRemote.transact(Stub.TRANSACTION_onTimerRecordingResult, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
@Override public void onClearTimerRecordingResult(int recorderAddress, int result) 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.writeInt(recorderAddress);
_data.writeInt(result);
mRemote.transact(Stub.TRANSACTION_onClearTimerRecordingResult, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_getOneTouchRecordSource = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_onOneTouchRecordResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_onTimerRecordingResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_onClearTimerRecordingResult = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
}
public byte[] getOneTouchRecordSource(int recorderAddress) throws android.os.RemoteException;
public void onOneTouchRecordResult(int recorderAddress, int result) throws android.os.RemoteException;
public void onTimerRecordingResult(int recorderAddress, int result) throws android.os.RemoteException;
public void onClearTimerRecordingResult(int recorderAddress, int result) throws android.os.RemoteException;
}