Home
last modified time | relevance | path

Searched refs:nfcid2 (Results 1 – 25 of 177) sorted by relevance

12345678

/aosp_15_r20/frameworks/base/nfc/java/android/nfc/cardemulation/
H A DNfcFServiceInfo.java107 String systemCode, String dynamicSystemCode, String nfcid2, String dynamicNfcid2, in NfcFServiceInfo() argument
113 this.mNfcid2 = nfcid2; in NfcFServiceInfo()
163 String nfcid2 = null; in NfcFServiceInfo() local
183 "nfcid2-filter".equals(tagName) && nfcid2 == null) { in NfcFServiceInfo()
186 nfcid2 = a.getString( in NfcFServiceInfo()
188 if (!nfcid2.equalsIgnoreCase("RANDOM") && in NfcFServiceInfo()
189 !nfcid2.equalsIgnoreCase("NULL") && in NfcFServiceInfo()
190 !isValidNfcid2(nfcid2)) { in NfcFServiceInfo()
191 Log.e(TAG, "Invalid NFCID2: " + nfcid2); in NfcFServiceInfo()
192 nfcid2 = null; in NfcFServiceInfo()
[all …]
H A DNfcFCardEmulation.java264 public boolean setNfcid2ForService(ComponentName service, String nfcid2) in setNfcid2ForService() argument
266 if (service == null || nfcid2 == null) { in setNfcid2ForService()
271 service, nfcid2); in setNfcid2ForService()
281 service, nfcid2); in setNfcid2ForService()
445 public static boolean isValidNfcid2(String nfcid2) { in isValidNfcid2() argument
446 if (nfcid2 == null) { in isValidNfcid2()
449 if (nfcid2.length() != 16) { in isValidNfcid2()
450 Log.e(TAG, "NFCID2 " + nfcid2 + " is not a valid NFCID2."); in isValidNfcid2()
454 if (!nfcid2.toUpperCase().startsWith("02FE")) { in isValidNfcid2()
455 Log.e(TAG, "NFCID2 " + nfcid2 + " is not a valid NFCID2."); in isValidNfcid2()
[all …]
/aosp_15_r20/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/
H A DHceFReaderActivity.java58 static byte[] createEchoCommand(byte[] nfcid2, byte[] payload) { in createEchoCommand() argument
59 byte length = (byte) (2 + nfcid2.length + payload.length); in createEchoCommand()
64 System.arraycopy(nfcid2, 0, echo_cmd, 2, nfcid2.length); in createEchoCommand()
65 System.arraycopy(payload, 0, echo_cmd, 2 + nfcid2.length, payload.length); in createEchoCommand()
69 static byte[] createSuccessCommand(byte[] nfcid2) { in createSuccessCommand() argument
70 byte[] cmd = new byte[2 + nfcid2.length]; in createSuccessCommand()
71 cmd[0] = (byte) (2 + nfcid2.length); in createSuccessCommand()
73 System.arraycopy(nfcid2, 0, cmd, 2, nfcid2.length); in createSuccessCommand()
/aosp_15_r20/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredT3tIdentifiersCache.java57 public final String nfcid2; field in RegisteredT3tIdentifiersCache.T3tIdentifier
60 T3tIdentifier(String systemCode, String nfcid2, String t3tPmm) { in T3tIdentifier() argument
62 this.nfcid2 = nfcid2; in T3tIdentifier()
73 if (!nfcid2.equalsIgnoreCase(that.nfcid2)) return false; in equals()
81 result = 31 * result + nfcid2.hashCode(); in hashCode()
104 public NfcFServiceInfo resolveNfcid2(String nfcid2) { in resolveNfcid2() argument
106 if (DBG) Log.d(TAG, "resolveNfcid2: resolving NFCID " + nfcid2); in resolveNfcid2()
108 resolveInfo = mForegroundT3tIdentifiersCache.get(nfcid2); in resolveNfcid2()
DRegisteredNfcFServicesCache.java105 public final String nfcid2; field in RegisteredNfcFServicesCache.DynamicNfcid2
107 DynamicNfcid2(int uid, String nfcid2) { in DynamicNfcid2() argument
109 this.nfcid2 = nfcid2; in DynamicNfcid2()
392 service.setDynamicNfcid2(dynamicNfcid2.nfcid2); in invalidateCache()
464 String nfcid2 = null; in readDynamicSystemCodeNfcid2Locked() local
482 nfcid2 = parser.getAttributeValue(null, "nfcid2"); in readDynamicSystemCodeNfcid2Locked()
501 if (nfcid2 != null) { in readDynamicSystemCodeNfcid2Locked()
503 new DynamicNfcid2(currentUid, nfcid2); in readDynamicSystemCodeNfcid2Locked()
512 nfcid2 = null; in readDynamicSystemCodeNfcid2Locked()
552 userServices.dynamicNfcid2.get(entry.getKey()).nfcid2); in writeDynamicSystemCodeNfcid2Locked()
[all …]
DSystemCodeRoutingManager.java64 t3tIdentifier.systemCode, t3tIdentifier.nfcid2, t3tIdentifier.t3tPmm); in configureRouting()
69 t3tIdentifier.systemCode, t3tIdentifier.nfcid2 , t3tIdentifier.t3tPmm); in configureRouting()
82 "/" + t3tIdentifier.nfcid2 + in configureRouting()
114 "/" + t3tIdentifier.nfcid2); in dump()
135 t3tIdentifier.nfcid2); in dumpDebug()
DHostNfcFEmulationManager.java118 String nfcid2 = findNfcid2(data); in onHostEmulationData() local
122 if (nfcid2 != null) { in onHostEmulationData()
123 resolvedService = mT3tIdentifiersCache.resolveNfcid2(nfcid2); in onHostEmulationData()
/aosp_15_r20/system/nfc/src/nfa/ce/
H A Dnfa_ce_act.cc393 void nfa_ce_t3t_generate_rand_nfcid(uint8_t nfcid2[NCI_RF_F_UID_LEN]) { in nfa_ce_t3t_generate_rand_nfcid()
397 nfcid2[0] = 0x02; in nfa_ce_t3t_generate_rand_nfcid()
398 nfcid2[1] = 0xFE; in nfa_ce_t3t_generate_rand_nfcid()
401 nfcid2[2] = (uint8_t)(rand_seed & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
402 nfcid2[3] = (uint8_t)(rand_seed >> 8 & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
404 nfcid2[4] = (uint8_t)(rand_seed & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
405 nfcid2[5] = (uint8_t)(rand_seed >> 8 & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
407 nfcid2[6] = (uint8_t)(rand_seed & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
408 nfcid2[7] = (uint8_t)(rand_seed >> 8 & 0xFF); in nfa_ce_t3t_generate_rand_nfcid()
842 p_cb->activation_params.rf_tech_param.param.lf.nfcid2, in nfa_ce_activate_ntf()
[all …]
H A Dnfa_ce_api.cc250 uint8_t nfcid2[NCI_RF_F_UID_LEN], in NFA_CeRegisterFelicaSystemCodeOnDH()
267 memcpy(p_msg->reg_listen.nfcid2, nfcid2, NCI_RF_F_UID_LEN); in NFA_CeRegisterFelicaSystemCodeOnDH()
/aosp_15_r20/out/soong/.intermediates/frameworks/base/libplatformprotos/android_arm64_armv8-2a_cortex-a55_static/gen/proto/frameworks/base/core/proto/android/nfc/
Dnfc_fservice_info.pb.h227 const std::string& nfcid2() const; in Swap()
232 void set_allocated_nfcid2(std::string* nfcid2); in Swap()
540 inline const std::string& NfcFServiceInfoProto::nfcid2() const { in nfcid2() function
581 inline void NfcFServiceInfoProto::set_allocated_nfcid2(std::string* nfcid2) { in set_allocated_nfcid2() argument
582 if (nfcid2 != nullptr) { in set_allocated_nfcid2()
587 _impl_.nfcid2_.SetAllocated(nfcid2, GetArenaForAllocation()); in set_allocated_nfcid2()
/aosp_15_r20/out/soong/.intermediates/frameworks/base/libplatformprotos/android_arm64_armv8-2a_cortex-a55_static_cfi/gen/proto/frameworks/base/core/proto/android/nfc/
Dnfc_fservice_info.pb.h227 const std::string& nfcid2() const; in Swap()
232 void set_allocated_nfcid2(std::string* nfcid2); in Swap()
540 inline const std::string& NfcFServiceInfoProto::nfcid2() const { in nfcid2() function
581 inline void NfcFServiceInfoProto::set_allocated_nfcid2(std::string* nfcid2) { in set_allocated_nfcid2() argument
582 if (nfcid2 != nullptr) { in set_allocated_nfcid2()
587 _impl_.nfcid2_.SetAllocated(nfcid2, GetArenaForAllocation()); in set_allocated_nfcid2()
/aosp_15_r20/out/soong/.intermediates/frameworks/base/libplatformprotos/linux_glibc_x86_64_static/gen/proto/frameworks/base/core/proto/android/nfc/
Dnfc_fservice_info.pb.h248 const std::string& nfcid2() const; in Swap()
253 void set_allocated_nfcid2(std::string* nfcid2); in Swap()
561 inline const std::string& NfcFServiceInfoProto::nfcid2() const { in nfcid2() function
602 inline void NfcFServiceInfoProto::set_allocated_nfcid2(std::string* nfcid2) { in set_allocated_nfcid2() argument
603 if (nfcid2 != nullptr) { in set_allocated_nfcid2()
608 _impl_.nfcid2_.SetAllocated(nfcid2, GetArenaForAllocation()); in set_allocated_nfcid2()
/aosp_15_r20/system/nfc/src/nfa/include/
H A Dnfa_ce_int.h80 uint8_t nfcid2[NCI_RF_F_UID_LEN]; member
207 void nfa_ce_t3t_generate_rand_nfcid(uint8_t nfcid2[NCI_RF_F_UID_LEN]);
H A Dnfa_ce_api.h132 uint16_t system_code, uint8_t nfcid2[NCI_RF_F_UID_LEN],
/aosp_15_r20/system/nfc/tests/src/
H A Dnfa_ce_api_test.cc116 uint8_t nfcid2[NCI_RF_F_UID_LEN] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 }; in TEST_F() local
118 tNFA_STATUS status = NFA_CeRegisterFelicaSystemCodeOnDH(system_code, nfcid2, t3tPmm, nullptr); in TEST_F()
/aosp_15_r20/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DCardEmulationManagerTest.java1855 String nfcid2 = "nfcid2"; in testNfcFCardEmulationGetNfcid2ForService_serviceExists() local
1858 .thenReturn(nfcid2); in testNfcFCardEmulationGetNfcid2ForService_serviceExists()
1861 nfcid2, in testNfcFCardEmulationGetNfcid2ForService_serviceExists()
1885 String nfcid2 = "nfcid2"; in testNfcFCardEmulationGetNfcid2ForService_serviceDoesNotExists() local
1888 .thenReturn(nfcid2); in testNfcFCardEmulationGetNfcid2ForService_serviceDoesNotExists()
1912 String nfcid2 = "nfcid2"; in testNfcFCardEmulationSetNfcid2ForService_serviceExists() local
1921 .setNfcid2ForService(USER_ID, WALLET_PAYMENT_SERVICE, nfcid2)); in testNfcFCardEmulationSetNfcid2ForService_serviceExists()
1935 .setNfcid2ForService(eq(USER_ID), anyInt(), eq(WALLET_PAYMENT_SERVICE), eq(nfcid2)); in testNfcFCardEmulationSetNfcid2ForService_serviceExists()
1942 String nfcid2 = "nfcid2"; in testNfcFCardEmulationSetNfcid2ForService_serviceDoesNotExists() local
1951 .setNfcid2ForService(USER_ID, WALLET_PAYMENT_SERVICE, nfcid2)); in testNfcFCardEmulationSetNfcid2ForService_serviceDoesNotExists()
DRegisteredT3tIdentifiersCacheTest.java177 assertEquals(NFCID2, identifier.nfcid2); in testOnSecureNfcToggledWithNfcEnabled_ConfiguresRouting()
251 assertEquals(NFCID2, identifier.nfcid2); in testOnEnabledForegroundNfcFServiceChangedCase3()
/aosp_15_r20/system/nfc/src/fuzzers/integration/
H A Dnfc_integration_fuzzer.proto222 optional bytes nfcid2 = 3; field
228 optional bytes nfcid2 = 1; field
H A Dnfc_integration_fuzzer_impl.cc339 uint8_t nfcid2[NCI_RF_F_UID_LEN] = {}; in DoOneCommand() local
341 NFA_CeRegisterFelicaSystemCodeOnDH(0, nfcid2, t3tPmm, nfa_conn_callback); in DoOneCommand()
/aosp_15_r20/frameworks/base/nfc/java/android/nfc/
H A DINfcFCardEmulation.aidl31 boolean setNfcid2ForService(int userHandle, in ComponentName service, String nfcid2); in setNfcid2ForService() argument
/aosp_15_r20/system/nfc/src/nfc/tags/
H A Dce_main.cc110 p_activate_params->rf_tech_param.param.lf.nfcid2); in CE_SetActivatedTagType()
H A Dce_t3t.cc838 uint8_t nfcid2[NCI_RF_F_UID_LEN]) { in ce_select_t3t()
845 memcpy(p_cb->local_nfcid2, nfcid2, NCI_RF_F_UID_LEN); in ce_select_t3t()
/aosp_15_r20/system/nfc/src/nfc/include/
H A Dce_int.h162 uint8_t nfcid2[NCI_RF_F_UID_LEN]);
/aosp_15_r20/frameworks/base/core/proto/android/nfc/
H A Dnfc_fservice_info.proto35 optional string nfcid2 = 4; field
/aosp_15_r20/system/nfc/src/fuzzers/ce/
H A Dt3t.cc31 .nfcid2 = TEST_NFCID_VALUE, in Init()

12345678