Home
last modified time | relevance | path

Searched refs:apdu (Results 1 – 10 of 10) 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.java517 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/
DAccessControlTest.java236 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/
DAccessControlTest.java235 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/
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.java71 public static final CommandApdu buildCommandApdu(String apdu, boolean reachable) { in buildCommandApdu() argument
72 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.java245 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/
DSimpleOffhostReaderActivity.java129 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/
DCtsMyHostApduService.java8 public byte[] processCommandApdu(byte[] apdu, Bundle extras) { in processCommandApdu() argument