Home
last modified time | relevance | path

Searched refs:apdu (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/secure_element/sample_applet/src/com/android/cts/omapi/test/
DCtsAndroidOmapiTestApplet.java101 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/
DOmapiTest.java434 private byte[] internalTransmitApdu(Reader reader, byte[] apdu) throws IOException { in internalTransmitApdu() argument
447 transmitResponse = channel.transmit(apdu); in internalTransmitApdu()
455 private byte[] internalTransmitApduWithoutP2(Reader reader, byte[] apdu) throws IOException { in internalTransmitApduWithoutP2() argument
468 transmitResponse = channel.transmit(apdu); in internalTransmitApduWithoutP2()
489 for (byte[] apdu : NO_DATA_APDU) { in testTransmitApdu()
490 byte[] response = internalTransmitApdu(reader, apdu); in testTransmitApdu()
496 for (byte[] apdu : DATA_APDU) { in testTransmitApdu()
497 byte[] response = internalTransmitApdu(reader, apdu); in testTransmitApdu()
524 for (byte[] apdu : SW_62xx_NO_DATA_APDU) { in testStatusWordTransmit()
526 apdu[2] = (byte)(i+1); in testStatusWordTransmit()
[all …]
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/
DAccessControlTest.java217 for (byte[] apdu : AUTHORIZED_APDU_AID_40) { in testAuthorizedAPDUAID40()
218 testTransmitAPDU(AID_40, apdu); in testAuthorizedAPDUAID40()
224 for (byte[] apdu : UNAUTHORIZED_APDU_AID_40) { in testUnauthorisedAPDUAID40()
225 testUnauthorisedAPDU(AID_40, apdu); in testUnauthorisedAPDUAID40()
231 for (byte[] apdu : AUTHORIZED_APDU_AID_41) { in testAuthorizedAPDUAID41()
232 testTransmitAPDU(AID_41, apdu); in testAuthorizedAPDUAID41()
238 for (byte[] apdu : UNAUTHORIZED_APDU_AID_41) { in testUnauthorisedAPDUAID41()
239 testUnauthorisedAPDU(AID_41, apdu); in testUnauthorisedAPDUAID41()
298 private void testTransmitAPDU(byte[] aid, byte[] apdu) { in testTransmitAPDU() argument
316 byte[] apduResponse = channel.transmit(apdu); in testTransmitAPDU()
[all …]
/cts/tests/tests/secure_element/access_control/AccessControlApp1/src/android/omapi/accesscontrol1/cts/
DAccessControlTest.java218 for (byte[] apdu : AUTHORIZED_APDU_AID_40) { in testAuthorizedAPDUAID40()
219 testTransmitAPDU(AID_40, apdu); in testAuthorizedAPDUAID40()
225 for (byte[] apdu : UNAUTHORIZED_APDU_AID_40) { in testUnauthorisedAPDUAID40()
226 testUnauthorisedAPDU(AID_40, apdu); in testUnauthorisedAPDUAID40()
232 for (byte[] apdu : AUTHORIZED_APDU_AID_41) { in testAuthorizedAPDUAID41()
233 testTransmitAPDU(AID_41, apdu); in testAuthorizedAPDUAID41()
239 for (byte[] apdu : UNAUTHORIZED_APDU_AID_41) { in testUnauthorisedAPDUAID41()
240 testUnauthorisedAPDU(AID_41, apdu); in testUnauthorisedAPDUAID41()
299 private void testTransmitAPDU(byte[] aid, byte[] apdu) { in testTransmitAPDU() argument
317 byte[] apduResponse = channel.transmit(apdu); in testTransmitAPDU()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DCommandApdu.java10 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);
DHceUtils.java68 public static final CommandApdu buildCommandApdu(String apdu, boolean reachable) { in buildCommandApdu() argument
69 return new CommandApdu(apdu, reachable); in buildCommandApdu()
DSimpleReaderActivity.java108 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/
DAccessControlTest.java227 for (byte[] apdu : AUTHORIZED_APDU_AID_40) { in testAuthorizedAPDUAID40()
228 testTransmitAPDU(AID_40, apdu); in testAuthorizedAPDUAID40()
234 for (byte[] apdu : AUTHORIZED_APDU_AID_41) { in testAuthorizedAPDUAID41()
235 testTransmitAPDU(AID_41, apdu); in testAuthorizedAPDUAID41()
241 for (byte[] apdu : UNAUTHORIZED_APDU_AID_41) { in testUnauthorisedAPDUAID41()
242 testUnauthorisedAPDU(AID_41, apdu); in testUnauthorisedAPDUAID41()
301 private void testTransmitAPDU(byte[] aid, byte[] apdu) { in testTransmitAPDU() argument
319 byte[] apduResponse = channel.transmit(apdu); in testTransmitAPDU()
331 private void testUnauthorisedAPDU(byte[] aid, byte[] apdu) { in testUnauthorisedAPDU() argument
350 channel.transmit(apdu); in testUnauthorisedAPDU()