/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /var/tmp/code-browser-generator/android_android_9.0.0_r358833596918674107602/combined/android/se/omapi/ISecureElementService.aidl
 */
package android.se.omapi;
SecureElement service interface.
@hide
/** * SecureElement service interface. * @hide */
public interface ISecureElementService extends android.os.IInterface {
Local-side IPC implementation stub class.
/** Local-side IPC implementation stub class. */
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";
Construct the stub at attach it to the interface.
/** Construct the stub at attach it to the interface. */
public Stub() { this.attachInterface(this, DESCRIPTOR); }
Cast an IBinder object into an android.se.omapi.ISecureElementService interface, generating a proxy if needed.
/** * Cast an IBinder object into an android.se.omapi.ISecureElementService interface, * generating a proxy if needed. */
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; }
Returns SecureElement Service reader object to the given name.
/** * Returns SecureElement Service reader object to the given name. */
@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; }
Checks if the application defined by the package name is allowed to receive NFC transaction events for the defined AID.
/** * Checks if the application defined by the package name is allowed to * receive NFC transaction events for the defined AID. */
@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;
Returns SecureElement Service reader object to the given name.
/** * Returns SecureElement Service reader object to the given name. */
public android.se.omapi.ISecureElementReader getReader(java.lang.String reader) throws android.os.RemoteException;
Checks if the application defined by the package name is allowed to receive NFC transaction events for the defined AID.
/** * Checks if the application defined by the package name is allowed to * receive NFC transaction events for the defined AID. */
public boolean[] isNFCEventAllowed(java.lang.String reader, byte[] aid, java.lang.String[] packageNames) throws android.os.RemoteException; }