Home
last modified time | relevance | path

Searched refs:HceUtils (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Nfc/testutils/src/com/android/nfc/reader/
DNfcReaderDeviceSnippet.java28 import com.android.nfc.utils.HceUtils;
61 HceUtils.COMMAND_APDUS_BY_SERVICE.get(TransportService1.class.getName()), in startSingleNonPaymentReaderActivity()
62 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(TransportService1.class.getName())); in startSingleNonPaymentReaderActivity()
73 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PaymentService1.class.getName()), in startSinglePaymentReaderActivity()
74 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PaymentService1.class.getName())); in startSinglePaymentReaderActivity()
85 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PaymentService1.class.getName()), in startDualPaymentReaderActivity()
86 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PaymentService1.class.getName())); in startDualPaymentReaderActivity()
97 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PaymentService2.class.getName()), in startForegroundPaymentReaderActivity()
98 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PaymentService2.class.getName())); in startForegroundPaymentReaderActivity()
109 HceUtils.COMMAND_APDUS_BY_SERVICE.get( in startDynamicAidReaderActivity()
[all …]
DSimpleReaderActivity.java28 import com.android.nfc.utils.HceUtils;
102 byte[] response = isoDep.transceive(HceUtils.hexStringToBytes(apdu.getApdu())); in onTagDiscovered()
107 sb.append(HceUtils.getHexBytes(null, response)); in onTagDiscovered()
111 byte[] expectedResponse = HceUtils.hexStringToBytes(mResponses[count]); in onTagDiscovered()
112 Log.d(TAG, HceUtils.getHexBytes("APDU response: ", response)); in onTagDiscovered()
114 Log.d(TAG, "Unexpected APDU response: " + HceUtils.getHexBytes("", response) in onTagDiscovered()
DProtocolParamsReaderActivity.java25 import com.android.nfc.utils.HceUtils;
50 sb.append("UID: " + HceUtils.getHexBytes(null, uid) + "\n\n"); in parseProtocolParameters()
67 sb.append("ATQA: " + HceUtils.getHexBytes(null, atqa) + "\n"); in parseProtocolParameters()
70 sb.append("ATS: " + HceUtils.getHexBytes(null, ats) + "\n"); in parseProtocolParameters()
169 "\n(OK) Historical bytes: " + HceUtils.getHexBytes(null, historical_bytes)); in parseProtocolParameters()
/packages/apps/Nfc/testutils/src/com/android/nfc/service/
DHceService.java24 import com.android.nfc.utils.HceUtils;
116 HceUtils.hexStringToBytes(mCommandApdus[mApduIndex].getApdu()), arg0)) { in processCommandApdu()
117 Log.d(TAG, "Unexpected command APDU: " + HceUtils.getHexBytes("", arg0)); in processCommandApdu()
121 byte[] responseApdu = HceUtils.hexStringToBytes(mResponseApdus[mApduIndex]); in processCommandApdu()
DPrefixPaymentService1.java18 import com.android.nfc.utils.HceUtils;
29 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PrefixPaymentService1.class.getName()), in PrefixPaymentService1()
30 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PrefixPaymentService1.class.getName())); in PrefixPaymentService1()
DAccessService.java18 import com.android.nfc.utils.HceUtils;
28 HceUtils.COMMAND_APDUS_BY_SERVICE.get(AccessService.class.getName()), in AccessService()
29 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(AccessService.class.getName())); in AccessService()
DTransportService2.java18 import com.android.nfc.utils.HceUtils;
28 HceUtils.COMMAND_APDUS_BY_SERVICE.get(TransportService2.class.getName()), in TransportService2()
29 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(TransportService2.class.getName())); in TransportService2()
DScreenOffPaymentService.java18 import com.android.nfc.utils.HceUtils;
29 HceUtils.COMMAND_APDUS_BY_SERVICE.get(ScreenOffPaymentService.class.getName()), in ScreenOffPaymentService()
30 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(ScreenOffPaymentService.class.getName())); in ScreenOffPaymentService()
DPaymentService2.java18 import com.android.nfc.utils.HceUtils;
28 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PaymentService2.class.getName()), in PaymentService2()
29 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PaymentService2.class.getName())); in PaymentService2()
DLargeNumAidsService.java18 import com.android.nfc.utils.HceUtils;
28 HceUtils.COMMAND_APDUS_BY_SERVICE.get(LargeNumAidsService.class.getName()), in LargeNumAidsService()
29 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(LargeNumAidsService.class.getName())); in LargeNumAidsService()
DOffHostService.java18 import com.android.nfc.utils.HceUtils;
28 HceUtils.COMMAND_APDUS_BY_SERVICE.get(OffHostService.class.getName()), in OffHostService()
29 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(OffHostService.class.getName())); in OffHostService()
DThroughputService.java18 import com.android.nfc.utils.HceUtils;
29 HceUtils.COMMAND_APDUS_BY_SERVICE.get(ThroughputService.class.getName()), in ThroughputService()
30 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(ThroughputService.class.getName())); in ThroughputService()
DPrefixTransportService1.java18 import com.android.nfc.utils.HceUtils;
29 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PrefixTransportService1.class.getName()), in PrefixTransportService1()
30 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PrefixTransportService1.class.getName())); in PrefixTransportService1()
DPaymentService1.java19 import com.android.nfc.utils.HceUtils;
29 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PaymentService1.class.getName()), in PaymentService1()
30 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PaymentService1.class.getName())); in PaymentService1()
DPaymentServiceDynamicAids.java18 import com.android.nfc.utils.HceUtils;
27 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PaymentServiceDynamicAids.class.getName()), in PaymentServiceDynamicAids()
28 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PaymentServiceDynamicAids.class.getName())); in PaymentServiceDynamicAids()
DPrefixAccessService.java18 import com.android.nfc.utils.HceUtils;
28 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PrefixAccessService.class.getName()), in PrefixAccessService()
29 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PrefixAccessService.class.getName())); in PrefixAccessService()
DPrefixTransportService2.java18 import com.android.nfc.utils.HceUtils;
29 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PrefixTransportService2.class.getName()), in PrefixTransportService2()
30 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PrefixTransportService2.class.getName())); in PrefixTransportService2()
DTransportService1.java19 import com.android.nfc.utils.HceUtils;
30 HceUtils.COMMAND_APDUS_BY_SERVICE.get(TransportService1.class.getName()), in TransportService1()
31 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(TransportService1.class.getName())); in TransportService1()
DPrefixPaymentService2.java18 import com.android.nfc.utils.HceUtils;
29 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PrefixPaymentService2.class.getName()), in PrefixPaymentService2()
30 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PrefixPaymentService2.class.getName())); in PrefixPaymentService2()
DPollingLoopService.java24 import com.android.nfc.utils.HceUtils;
43 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PollingLoopService.class.getName()), in PollingLoopService()
44 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PollingLoopService.class.getName())); in PollingLoopService()
DPollingLoopService2.java24 import com.android.nfc.utils.HceUtils;
43 HceUtils.COMMAND_APDUS_BY_SERVICE.get(PollingLoopService.class.getName()), in PollingLoopService2()
44 HceUtils.RESPONSE_APDUS_BY_SERVICE.get(PollingLoopService.class.getName())); in PollingLoopService2()
/packages/apps/Nfc/testutils/src/com/android/nfc/emulator/
DDynamicAidEmulatorActivity.java23 import com.android.nfc.utils.HceUtils;
43 paymentAids.add(HceUtils.PPSE_AID); in onServicesSetup()
44 paymentAids.add(HceUtils.VISA_AID); in onServicesSetup()
DLargeNumAidsEmulatorActivity.java23 import com.android.nfc.utils.HceUtils;
52 HceUtils.LARGE_NUM_AIDS_PREFIX in onServicesSetup()
54 + HceUtils.LARGE_NUM_AIDS_POSTFIX); in onServicesSetup()
DDualNonPaymentPrefixEmulatorActivity.java24 import com.android.nfc.utils.HceUtils;
57 service1_aids.add(HceUtils.TRANSPORT_PREFIX_AID + "*"); in onServicesSetup()
59 service2_aids.add(HceUtils.ACCESS_PREFIX_AID + "*"); in onServicesSetup()
DBaseEmulatorActivity.java56 import com.android.nfc.utils.HceUtils;
141 HceUtils.disableComponent(getPackageManager(), component); in disableServices()
236 HceUtils.enableComponent(getPackageManager(), component); in setupServices()
239 HceUtils.disableComponent(getPackageManager(), component); in setupServices()
280 if (HceUtils.setDefaultWalletRoleHolder(this, PACKAGE_NAME)) { in setDefaultWalletRole()

12