package android.se.omapi;
public interface ISecureElementService extends android.os.IInterface
{
public static abstract class Stub extends android.os.Binder implements android.se.omapi.ISecureElementService
{
private static final java.lang.String DESCRIPTOR = "android.se.omapi.ISecureElementService";
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
public static android.se.omapi.ISecureElementService asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof android.se.omapi.ISecureElementService))) {
return ((android.se.omapi.ISecureElementService)iin);
}
return new android.se.omapi.ISecureElementService.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_getReaders:
{
data.enforceInterface(descriptor);
java.lang.String[] _result = this.getReaders();
reply.writeNoException();
reply.writeStringArray(_result);
return true;
}
case TRANSACTION_getReader:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
android.se.omapi.ISecureElementReader _result = this.getReader(_arg0);
reply.writeNoException();
reply.writeStrongBinder((((_result!=null))?(_result.asBinder()):(null)));
return true;
}
case TRANSACTION_isNFCEventAllowed:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
byte[] _arg1;
_arg1 = data.createByteArray();
java.lang.String[] _arg2;
_arg2 = data.createStringArray();
boolean[] _result = this.isNFCEventAllowed(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeBooleanArray(_result);
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements android.se.omapi.ISecureElementService
{
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 java.lang.String[] getReaders() 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_getReaders, _data, _reply, 0);
_reply.readException();
_result = _reply.createStringArray();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public android.se.omapi.ISecureElementReader getReader(java.lang.String reader) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
android.se.omapi.ISecureElementReader _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(reader);
mRemote.transact(Stub.TRANSACTION_getReader, _data, _reply, 0);
_reply.readException();
_result = android.se.omapi.ISecureElementReader.Stub.asInterface(_reply.readStrongBinder());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public boolean[] isNFCEventAllowed(java.lang.String reader, byte[] aid, java.lang.String[] packageNames) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean[] _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(reader);
_data.writeByteArray(aid);
_data.writeStringArray(packageNames);
mRemote.transact(Stub.TRANSACTION_isNFCEventAllowed, _data, _reply, 0);
_reply.readException();
_result = _reply.createBooleanArray();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_getReaders = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_getReader = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_isNFCEventAllowed = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
}
public java.lang.String[] getReaders() throws android.os.RemoteException;
public android.se.omapi.ISecureElementReader getReader(java.lang.String reader) throws android.os.RemoteException;
public boolean[] isNFCEventAllowed(java.lang.String reader, byte[] aid, java.lang.String[] packageNames) throws android.os.RemoteException;
}