/cts/tests/tests/secure_element/sample_applet/src/com/android/cts/omapi/test/ |
D | CtsAndroidOmapiTestApplet.java | 101 public void process(APDU apdu) { in process() argument 102 byte[] buf = apdu.getBuffer(); in process() 116 le = apdu.setOutgoing(); in process() 117 apdu.setOutgoingLength((short)sendLen); in process() 119 apdu.sendBytesLong(buf, respBuffOffset, sendLen); in process() 129 apdu.setIncomingAndReceive(); in process() 132 le = apdu.setOutgoing(); in process() 133 apdu.setOutgoingLength((short)sendLen); in process() 135 apdu.sendBytesLong(buf, respBuffOffset, sendLen); in process() 138 apdu.setIncomingAndReceive(); in process() [all …]
|
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/ |
D | OmapiTest.java | 517 private byte[] internalTransmitApdu(Reader reader, byte[] apdu) throws IOException { in internalTransmitApdu() argument 530 transmitResponse = channel.transmit(apdu); in internalTransmitApdu() 538 private byte[] internalTransmitApduWithoutP2(Reader reader, byte[] apdu) throws IOException { in internalTransmitApduWithoutP2() argument 551 transmitResponse = channel.transmit(apdu); in internalTransmitApduWithoutP2() 573 for (byte[] apdu : NO_DATA_APDU) { in testTransmitApdu() 574 byte[] response = internalTransmitApdu(reader, apdu); in testTransmitApdu() 580 for (byte[] apdu : DATA_APDU) { in testTransmitApdu() 581 byte[] response = internalTransmitApdu(reader, apdu); in testTransmitApdu() 609 for (byte[] apdu : SW_62xx_NO_DATA_APDU) { in testStatusWordTransmit() 611 apdu[2] = (byte)(i+1); in testStatusWordTransmit() [all …]
|
/cts/tests/tests/secure_element/access_control/AccessControlApp1/src/android/omapi/accesscontrol1/cts/ |
D | AccessControlTest.java | 236 for (byte[] apdu : AUTHORIZED_APDU_AID_40) { in testAuthorizedAPDUAID40() 237 testTransmitAPDU(AID_40, apdu); in testAuthorizedAPDUAID40() 243 for (byte[] apdu : UNAUTHORIZED_APDU_AID_40) { in testUnauthorisedAPDUAID40() 244 testUnauthorisedAPDU(AID_40, apdu); in testUnauthorisedAPDUAID40() 250 for (byte[] apdu : AUTHORIZED_APDU_AID_41) { in testAuthorizedAPDUAID41() 251 testTransmitAPDU(AID_41, apdu); in testAuthorizedAPDUAID41() 257 for (byte[] apdu : UNAUTHORIZED_APDU_AID_41) { in testUnauthorisedAPDUAID41() 258 testUnauthorisedAPDU(AID_41, apdu); in testUnauthorisedAPDUAID41() 317 private void testTransmitAPDU(byte[] aid, byte[] apdu) { in testTransmitAPDU() argument 335 byte[] apduResponse = channel.transmit(apdu); in testTransmitAPDU() [all …]
|
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/ |
D | AccessControlTest.java | 235 for (byte[] apdu : AUTHORIZED_APDU_AID_40) { in testAuthorizedAPDUAID40() 236 testTransmitAPDU(AID_40, apdu); in testAuthorizedAPDUAID40() 242 for (byte[] apdu : UNAUTHORIZED_APDU_AID_40) { in testUnauthorisedAPDUAID40() 243 testUnauthorisedAPDU(AID_40, apdu); in testUnauthorisedAPDUAID40() 249 for (byte[] apdu : AUTHORIZED_APDU_AID_41) { in testAuthorizedAPDUAID41() 250 testTransmitAPDU(AID_41, apdu); in testAuthorizedAPDUAID41() 256 for (byte[] apdu : UNAUTHORIZED_APDU_AID_41) { in testUnauthorisedAPDUAID41() 257 testUnauthorisedAPDU(AID_41, apdu); in testUnauthorisedAPDUAID41() 316 private void testTransmitAPDU(byte[] aid, byte[] apdu) { in testTransmitAPDU() argument 334 byte[] apduResponse = channel.transmit(apdu); in testTransmitAPDU() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | CommandApdu.java | 10 public CommandApdu(String apdu, boolean reachable) { in CommandApdu() argument 11 mApdu = apdu; in CommandApdu() 32 String apdu = source.readString(); 34 return new CommandApdu(apdu, reachable);
|
D | HceUtils.java | 71 public static final CommandApdu buildCommandApdu(String apdu, boolean reachable) { in buildCommandApdu() argument 72 return new CommandApdu(apdu, reachable); in buildCommandApdu()
|
D | SimpleReaderActivity.java | 108 for (CommandApdu apdu: mApdus) { in onTagDiscovered() 110 sb.append(apdu.getApdu() + "\n\n"); in onTagDiscovered() 112 byte[] response = isoDep.transceive(HceUtils.hexStringToBytes(apdu.getApdu())); in onTagDiscovered()
|
/cts/tests/tests/secure_element/access_control/AccessControlApp3/src/android/omapi/accesscontrol3/cts/ |
D | AccessControlTest.java | 245 for (byte[] apdu : AUTHORIZED_APDU_AID_40) { in testAuthorizedAPDUAID40() 246 testTransmitAPDU(AID_40, apdu); in testAuthorizedAPDUAID40() 252 for (byte[] apdu : AUTHORIZED_APDU_AID_41) { in testAuthorizedAPDUAID41() 253 testTransmitAPDU(AID_41, apdu); in testAuthorizedAPDUAID41() 259 for (byte[] apdu : UNAUTHORIZED_APDU_AID_41) { in testUnauthorisedAPDUAID41() 260 testUnauthorisedAPDU(AID_41, apdu); in testUnauthorisedAPDUAID41() 319 private void testTransmitAPDU(byte[] aid, byte[] apdu) { in testTransmitAPDU() argument 337 byte[] apduResponse = channel.transmit(apdu); in testTransmitAPDU() 349 private void testUnauthorisedAPDU(byte[] aid, byte[] apdu) { in testUnauthorisedAPDU() argument 368 channel.transmit(apdu); in testUnauthorisedAPDU()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/offhost/ |
D | SimpleOffhostReaderActivity.java | 129 for (CommandApdu apdu: mApdus) { in onTagDiscovered() 131 sb.append(apdu.getApdu() + "\n\n"); in onTagDiscovered() 133 byte[] response = isoDep.transceive(HceUtils.hexStringToBytes(apdu.getApdu())); in onTagDiscovered()
|
/cts/tests/tests/nfc/src/android/nfc/cts/ |
D | CtsMyHostApduService.java | 8 public byte[] processCommandApdu(byte[] apdu, Bundle extras) { in processCommandApdu() argument
|