/external/libese/esed/pn81a/tests/ |
apdu_test.cpp | 23 #include "../apdu.h" 31 const CommandApdu apdu{1, 2, 3, 4}; 33 ASSERT_EQ(expected.size(), apdu.size()); 34 ASSERT_TRUE(std::equal(apdu.begin(), apdu.end(), expected.begin(), expected.end())); 38 const CommandApdu apdu{4, 3, 2, 1, 0, 3}; 40 ASSERT_EQ(expected.size(), apdu.size()); 41 ASSERT_TRUE(std::equal(apdu.begin(), apdu.end(), expected.begin(), expected.end())); 45 const CommandApdu apdu{4, 3, 2, 1, 0, 256} [all...] |
/cts/apps/CtsVerifier/res/xml/ |
access_prefix_aid_list.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 3 </host-apdu-service>
|
empty_aid_list.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 3 </host-apdu-service>
|
transport_prefix_aid_list_1.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 3 </host-apdu-service>
|
transport_prefix_aid_list_2.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 3 </host-apdu-service>
|
access_aid_list.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 6 </host-apdu-service>
|
throughput_aid_list.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 6 </host-apdu-service>
|
transport_aid_list_1.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 6 </host-apdu-service>
|
transport_aid_list_2.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 6 </host-apdu-service>
|
offhost_aid_list.xml | 1 <offhost-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 9 </offhost-apdu-service>
|
payment_aid_list_1.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 10 </host-apdu-service>
|
payment_aid_list_2.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 9 </host-apdu-service>
|
payment_empty_aid_list.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 9 </host-apdu-service>
|
payment_prefix_aid_list.xml | 1 <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 11 </host-apdu-service>
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
CommandApdu.java | 10 public CommandApdu(String apdu, boolean reachable) { 11 mApdu = apdu; 32 String apdu = source.readString(); 34 return new CommandApdu(apdu, reachable);
|
SimpleReaderActivity.java | 108 for (CommandApdu apdu: mApdus) { 109 sb.append("Request APDU:\n"); 110 sb.append(apdu.getApdu() + "\n\n"); 112 byte[] response = isoDep.transceive(HceUtils.hexStringToBytes(apdu.getApdu())); 114 sb.append("Response APDU (in " + Long.toString(apduEndTime - apduStartTime) + 121 Log.d(TAG, HceUtils.getHexBytes("APDU response: ", response)); 123 Log.d(TAG, "Unexpected APDU response: " + HceUtils.getHexBytes("", response)); 130 sb.insert(0, "Total APDU exchange time: " + 140 sb.insert(0, "FAIL. Total APDU exchange time: " + 148 builder.setMessage("An unexpected response APDU was received, or no APDUs were received at all.") [all...] |
ThroughputEmulatorActivity.java | 55 "( " + Long.toString(timePerApdu) + " ms per APDU roundtrip)."); 59 "(" + Long.toString(timePerApdu) + " ms per APDU roundtrip)." + 60 " Require <= 60ms per APDU roundtrip.");
|
/external/libese/examples/ |
ese_nxp_sample.c | 27 /* APDU: CLA INS P1-P2 Lc Data Le */ 28 struct Apdu { 37 const struct Apdu *apdus[]; 42 const struct Apdu kSelectCardManager = { 49 const struct Apdu kGetCplc = { 73 const struct Apdu kSelectJcopIdentify = { 101 const struct Apdu *apdu = kSessions[s]->apdus[apdu_index]; local 102 printf("Sending APDU %u: %s\n", apdu_index, apdu->desc) [all...] |
/external/libese/libese-hw/tests/ |
ese_hw_echo_tests.cpp | 43 std::vector<uint8_t> apdu; local 46 apdu.resize(apdu_len, 'A'); 48 EXPECT_EQ(apdu_len, ese_transceive(&ese_, apdu.data(), apdu_len, apdu_reply.data(), apdu_reply.size())); 50 EXPECT_EQ(apdu, apdu_reply);
|
/hardware/ril/librilutils/proto/ |
sap-api.options | 22 #RIL_SIM_SAP_REQUEST.apdu type:FT_POINTER 23 #RIL_SIM_SAP_RESPONSE.apdu type:FT_POINTER
|
/external/libese/esed/pn81a/ |
utils.h | 25 #include "apdu.h" 105 // Check for ISO 7816-4 APDU response format errors 106 ResponseApdu apdu{responseBuffer}; 107 if (!apdu.ok()) { 114 return handler(apdu); 121 * Checks that the amount of data in the response APDU matches the expected 125 T checkLength(const ResponseApdu& apdu, const size_t size) { 126 if (apdu.dataSize() != size) { 134 * Checks that the response APDU does no encode an error and that the amount of 138 T checkNoErrorAndLength(const ResponseApdu& apdu, const size_t size) [all...] |
/developers/build/prebuilts/gradle/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
CardService.java | 26 * This is a sample APDU Service which demonstrates how to interface with the card emulation support 50 // "UNKNOWN" status word sent in response to invalid APDU command (0x0000) 65 * This method will be called when a command APDU has been received from a remote device. A 66 * response APDU can be provided directly by returning a byte-array in this method. In general 75 * cannot return a response APDU immediately, return null and use the {@link 78 * @param commandApdu The APDU that received from the remote device 80 * @return a byte-array containing the response APDU, or null if no response APDU can be sent 86 Log.i(TAG, "Received APDU: " + ByteArrayToHexString(commandApdu)); 87 // If the APDU matches the SELECT AID command for this service [all...] |
/developers/samples/android/connectivity/nfc/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
CardService.java | 26 * This is a sample APDU Service which demonstrates how to interface with the card emulation support 50 // "UNKNOWN" status word sent in response to invalid APDU command (0x0000) 65 * This method will be called when a command APDU has been received from a remote device. A 66 * response APDU can be provided directly by returning a byte-array in this method. In general 75 * cannot return a response APDU immediately, return null and use the {@link 78 * @param commandApdu The APDU that received from the remote device 80 * @return a byte-array containing the response APDU, or null if no response APDU can be sent 86 Log.i(TAG, "Received APDU: " + ByteArrayToHexString(commandApdu)); 87 // If the APDU matches the SELECT AID command for this service [all...] |
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/ |
CardService.java | 26 * This is a sample APDU Service which demonstrates how to interface with the card emulation support 50 // "UNKNOWN" status word sent in response to invalid APDU command (0x0000) 65 * This method will be called when a command APDU has been received from a remote device. A 66 * response APDU can be provided directly by returning a byte-array in this method. In general 75 * cannot return a response APDU immediately, return null and use the {@link 78 * @param commandApdu The APDU that received from the remote device 80 * @return a byte-array containing the response APDU, or null if no response APDU can be sent 86 Log.i(TAG, "Received APDU: " + ByteArrayToHexString(commandApdu)); 87 // If the APDU matches the SELECT AID command for this service [all...] |
/frameworks/base/core/java/android/nfc/cardemulation/ |
HostApduService.java | 53 * "SELECT AID" APDU as defined in the ISO/IEC 7816-4 specification. 109 * <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" 115 * </host-apdu-service> 118 * <p>The {@link android.R.styleable#HostApduService <host-apdu-service>} is required 126 * <p>The {@link android.R.styleable#HostApduService <host-apdu-service>} must 145 * <p>Once the platform has resolved a "SELECT AID" command APDU to a specific 146 * service component, the "SELECT AID" command APDU and all subsequent 151 * <li>A "SELECT AID" APDU is received which resolves to another service</li> 199 * a 7816-4 command APDU has been received. 207 * a response APDU back to the remote device [all...] |