@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(name); dest.writeStrongBinder(readerControl.asBinder()); }
public String getFirmware() throws AcrReaderException { byte[] response; try { response = readerControl.getFirmware(); } catch (RemoteException e) { throw new AcrReaderException(e); } return readString(response); }
@Override public byte[] transmit(int slotNum, byte[] command) { byte[] response; try { response = readerControl.transmit(slotNum, command); } catch (RemoteException e) { throw new AcrReaderException(e); } return readByteArray(response); }
public List<AcrPICC> getPICC() { byte[] response; try { response = readerControl.getPICC(); } catch (RemoteException e) { throw new AcrReaderException(e); } int operation = readInteger(response); ArrayList<AcrPICC> values = new ArrayList<AcrPICC>(); if((operation & POLL_TOPAZ) != 0) { values.add(AcrPICC.POLL_TOPAZ); } if((operation & POLL_FELICA_424K) != 0) { values.add(AcrPICC.POLL_FELICA_424K); } if((operation & POLL_FELICA_212K) != 0) { values.add(AcrPICC.POLL_FELICA_212K); } if((operation & POLL_ISO14443_TYPE_B) != 0) { values.add(AcrPICC.POLL_ISO14443_TYPE_B); } if((operation & POLL_ISO14443_TYPE_A) != 0) { values.add(AcrPICC.POLL_ISO14443_TYPE_A); } return values; }
@Override public byte[] control(int slotNum, int controlCode, byte[] command) { byte[] response; try { response = readerControl.control(slotNum, controlCode, command); } catch (RemoteException e) { throw new AcrReaderException(e); } return readByteArray(response); }
response = readerControl.setPICC(picc); } catch (RemoteException e) { throw new AcrReaderException(e);