/foundation/communication/nfc/test/unittest/services/tags_test/ |
H A D | ndef_tag_test.cpp | 40 static constexpr const auto TEST_NDEF_MSG = "ndef";
99 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_);
in HWTEST_F() local 100 ASSERT_TRUE(ndef != nullptr);
in HWTEST_F() 109 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_);
in HWTEST_F() local 110 EmNfcForumType ndefTagType = ndef->GetNdefTagType();
in HWTEST_F() 120 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_);
in HWTEST_F() local 121 NdefTag::EmNdefTagMode ndefTagMode = ndef->GetNdefTagMode();
in HWTEST_F() 131 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_);
in HWTEST_F() local 132 std::string uid = ndef->GetTagUid();
in HWTEST_F() 142 std::shared_ptr<NdefTag> ndef in HWTEST_F() local 153 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 164 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 176 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 188 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 200 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 211 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 222 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 234 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 246 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 257 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 270 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 283 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 294 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 305 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 316 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 327 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 338 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 349 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 360 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 374 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local 386 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo); HWTEST_F() local 396 std::shared_ptr<NdefTag> ndef = NdefTag::GetTag(tagInfo_); HWTEST_F() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | nfc_pw_token.c | 41 struct wpabuf *buf = NULL, *ndef = NULL; in main() local 57 ndef = ndef_build_wifi(buf); in main() 58 if (ndef == NULL) in main() 65 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(ndef), in main() 66 wpabuf_len(ndef)); in main() 76 wpabuf_free(ndef); in main()
|
H A D | wps_supplicant.h | 62 int ndef, const char *uuid); 66 int ndef, const char *id_str); 67 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef); 76 int ndef); 78 int ndef, int cr, const char *uuid);
|
H A D | ap.h | 59 int ndef); 62 int ndef); 66 int ndef) in wpas_ap_wps_nfc_handover_sel() 65 wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s, int ndef) wpas_ap_wps_nfc_handover_sel() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | nfc_pw_token.c | 41 struct wpabuf *buf = NULL, *ndef = NULL; in main() local 57 ndef = ndef_build_wifi(buf); in main() 58 if (ndef == NULL) in main() 65 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(ndef), in main() 66 wpabuf_len(ndef)); in main() 76 wpabuf_free(ndef); in main()
|
H A D | wps_supplicant.h | 62 int ndef, const char *uuid); 67 int ndef, const char *id_str); 68 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef); 77 int ndef); 79 int ndef, int cr, const char *uuid);
|
H A D | ap.h | 59 int ndef); 62 int ndef); 66 int ndef) in wpas_ap_wps_nfc_handover_sel() 65 wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s, int ndef) wpas_ap_wps_nfc_handover_sel() argument
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | tasn_enc.c | 33 * Top level i2d equivalents: the 'ndef' variant instructs the encoder to use 87 int i, seqcontlen, seqlen, ndef = 1; in ASN1_item_ex_i2d() local 151 ndef = 2; in ASN1_item_ex_i2d() 188 seqlen = ASN1_object_size(ndef, seqcontlen, tag); in ASN1_item_ex_i2d() 192 ASN1_put_object(out, ndef, seqcontlen, tag, aclass); in ASN1_item_ex_i2d() 203 if (ndef == 2) in ASN1_item_ex_i2d() 220 int i, ret, ttag, tclass, ndef, len; in asn1_template_ex_i2d() local 264 /* if template and arguments require ndef, use it */ in asn1_template_ex_i2d() 266 ndef = 2; in asn1_template_ex_i2d() 268 ndef in asn1_template_ex_i2d() 474 int ndef = 0; asn1_i2d_ex_primitive() local [all...] |
/third_party/openssl/crypto/asn1/ |
H A D | tasn_enc.c | 33 * Top level i2d equivalents: the 'ndef' variant instructs the encoder to use 87 int i, seqcontlen, seqlen, ndef = 1; in ASN1_item_ex_i2d() local 151 ndef = 2; in ASN1_item_ex_i2d() 188 seqlen = ASN1_object_size(ndef, seqcontlen, tag); in ASN1_item_ex_i2d() 192 ASN1_put_object(out, ndef, seqcontlen, tag, aclass); in ASN1_item_ex_i2d() 203 if (ndef == 2) in ASN1_item_ex_i2d() 220 int i, ret, ttag, tclass, ndef, len; in asn1_template_ex_i2d() local 264 /* if template and arguments require ndef, use it */ in asn1_template_ex_i2d() 266 ndef = 2; in asn1_template_ex_i2d() 268 ndef in asn1_template_ex_i2d() 474 int ndef = 0; asn1_i2d_ex_primitive() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/ |
H A D | p2p-nfc.py | 17 import nfc.ndef namespace 154 message = nfc.ndef.HandoverRequestMessage(version="1.2") 164 datamsg = nfc.ndef.Message(data) 178 datamsg = nfc.ndef.Message(data) 226 message = nfc.ndef.HandoverSelectMessage(message) 270 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 275 request = nfc.ndef.HandoverRequestMessage(request) 276 except nfc.ndef.DecodeError as e: 292 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 320 message = nfc.ndef [all...] |
H A D | wps-nfc.py | 17 import nfc.ndef namespace 149 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 154 request = nfc.ndef.HandoverRequestMessage(request) 155 except nfc.ndef.DecodeError as e: 170 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 188 message = nfc.ndef.Message(data); 212 message = nfc.ndef.HandoverRequestMessage(version="1.2") 214 datamsg = nfc.ndef.Message(data) 262 message = nfc.ndef.HandoverSelectMessage(message) 278 #wifi = nfc.ndef [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/ |
H A D | p2p-nfc.py | 17 import nfc.ndef namespace 154 message = nfc.ndef.HandoverRequestMessage(version="1.2") 164 datamsg = nfc.ndef.Message(data) 178 datamsg = nfc.ndef.Message(data) 226 message = nfc.ndef.HandoverSelectMessage(message) 270 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 275 request = nfc.ndef.HandoverRequestMessage(request) 276 except nfc.ndef.DecodeError as e: 292 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 320 message = nfc.ndef [all...] |
H A D | wps-nfc.py | 17 import nfc.ndef namespace 149 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 154 request = nfc.ndef.HandoverRequestMessage(request) 155 except nfc.ndef.DecodeError as e: 170 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 188 message = nfc.ndef.Message(data); 212 message = nfc.ndef.HandoverRequestMessage(version="1.2") 214 datamsg = nfc.ndef.Message(data) 262 message = nfc.ndef.HandoverSelectMessage(message) 278 #wifi = nfc.ndef [all...] |
H A D | dpp-nfc.py | 20 import ndef namespace 291 records = list(ndef.message_decoder(msg, 'relax')) 294 return list(ndef.message_decoder(msg, 'relax')) 318 list(ndef.message_decoder(msg, 'strict', {})) 320 except ndef.DecodeError: 345 uri = ndef.UriRecord(uri) 347 carrier = ndef.Record('application/vnd.wfa.dpp', 'A', uri.data) 356 hr = ndef.HandoverRequestRecord(version="1.4", crn=crn) 428 not isinstance(message[0], ndef.HandoverSelectRecord): 446 if isinstance(carrier, ndef [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/ |
H A D | wps-ap-nfc.py | 15 import nfc.ndef namespace 120 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 125 request = nfc.ndef.HandoverRequestMessage(request) 126 except nfc.ndef.DecodeError as e: 141 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 158 message = nfc.ndef.Message(data); 175 if len(tag.ndef.message): 176 for record in tag.ndef.message: 180 success = wpas_tag_read(tag.ndef.message) 194 tag.ndef [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/ |
H A D | wps-ap-nfc.py | 15 import nfc.ndef namespace 120 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 125 request = nfc.ndef.HandoverRequestMessage(request) 126 except nfc.ndef.DecodeError as e: 141 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 158 message = nfc.ndef.Message(data); 175 if len(tag.ndef.message): 176 for record in tag.ndef.message: 180 success = wpas_tag_read(tag.ndef.message) 194 tag.ndef [all...] |
/foundation/communication/nfc/services/src/tag/ |
H A D | tag_dispatcher.cpp | 74 ErrorLog("HandleNdefDispatch, ndef msg is empty");
in HandleNdefDispatch() 83 std::string ndef = msg;
in HandleNdefDispatch() local 85 ndefCbRes_ = ndefCb_->OnNdefMsgDiscovered(tagUid, ndef, msgType);
in HandleNdefDispatch() 97 ndef = NfcSdkCommon::IntToHexString(btData->vendorPayload_.length());
in HandleNdefDispatch() 98 ndef.append(btData->vendorPayload_);
in HandleNdefDispatch() 99 ndef.append(btData->macAddrOrg_);
in HandleNdefDispatch() 100 ndef.append(NfcSdkCommon::StringToHexString(btData->name_));
in HandleNdefDispatch() 103 ndef = "";
in HandleNdefDispatch() 113 ndef = wifiData->vendorPayload_;
in HandleNdefDispatch() 120 ndefCbRes_ = ndefCb_->OnNdefMsgDiscovered(tagUid, ndef, msgTyp in HandleNdefDispatch() [all...] |
H A D | ndef_wifi_data_parser.cpp | 223 std::shared_ptr<NdefMessage> ndef = NdefMessage::GetNdefMessage(msg);
in CheckWifiRecord() local 224 if (ndef == nullptr || (ndef->GetNdefRecords().size() == 0)) {
in CheckWifiRecord() 225 ErrorLog("NdefWifiDataParser::CheckWifiRecord: ndef is null");
in CheckWifiRecord() 228 std::vector<std::shared_ptr<NdefRecord>> records = ndef->GetNdefRecords();
in CheckWifiRecord()
|
/foundation/communication/nfc/interfaces/inner_api/controller/ |
H A D | ndef_msg_callback_stub.cpp | 35 bool NdefMsgCallbackStub::OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) in OnNdefMsgDiscovered() argument 39 return callback_->OnNdefMsgDiscovered(tagUid, ndef, ndefMsgType); in OnNdefMsgDiscovered() 91 std::string ndef = data.ReadString(); in RemoteNdefMsgDiscovered() local 94 bool res = OnNdefMsgDiscovered(tagUid, ndef, type); in RemoteNdefMsgDiscovered() 95 reply.WriteBool(res); // Reply for ndef parse result in RemoteNdefMsgDiscovered()
|
H A D | ndef_msg_callback_stub.h | 39 bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) override;
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | wps_hostapd.h | 38 int ndef); 39 struct wpabuf * hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef); 43 struct wpabuf * hostapd_wps_nfc_token_gen(struct hostapd_data *hapd, int ndef);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | wps_hostapd.h | 38 int ndef); 39 struct wpabuf * hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef); 43 struct wpabuf * hostapd_wps_nfc_token_gen(struct hostapd_data *hapd, int ndef);
|
/foundation/communication/nfc/services/src/ipc/controller/ |
H A D | ndef_msg_callback_proxy.cpp | 27 bool NdefMsgCallbackProxy::OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType)
in OnNdefMsgDiscovered() argument 39 data.WriteString(ndef);
in OnNdefMsgDiscovered()
|
H A D | ndef_msg_callback_proxy.h | 30 bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) override;
|
/foundation/communication/nfc/interfaces/inner_api/common/ |
H A D | indef_msg_callback.h | 24 virtual bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) = 0;
|