Home
last modified time | relevance | path

Searched refs:ndef (Results 1 - 25 of 51) sorted by relevance

123

/foundation/communication/nfc/test/unittest/services/tags_test/
H A Dndef_tag_test.cpp40 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/node/deps/openssl/openssl/crypto/asn1/
H A Dtasn_enc.c33 * 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 Dtasn_enc.c33 * 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/
H A Dnfc_pw_token.c41 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 Dwps_supplicant.h62 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 Dap.h59 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 Dnfc_pw_token.c41 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 Dwps_supplicant.h62 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 Dap.h59 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/wpa_supplicant/examples/
H A Dp2p-nfc.py17 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 Dwps-nfc.py17 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 Dp2p-nfc.py17 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 Dwps-nfc.py17 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 Ddpp-nfc.py20 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...]
/test/xts/acts/communication/nfc_Controller/entry/src/ohosTest/js/test/
H A DNDEFTag.test.js120 * @tc.desc Creates an ndef message using the original bytes.
131 let ndefMessage = tag.ndef.createNdefMessage(rawData);
148 * @tc.desc Obtains all records of ndef messages.
160 let ndefMessage = tag.ndef.createNdefMessage(rawData);
172 console.info("ndef ndefMessage2 error: " + error);
184 * @tc.desc Creates an ndef message using the original bytes.
198 ndefMessage = tag.ndef.createNdefMessage(ndefRecords);
252 console.info('ndef NdefMessage error' + error)
288 console.info('ndef getNdefTaginfo error' + error)
306 * @tc.desc Read the ndef messag
[all...]
/test/xts/acts/communication/nfc_ErrorCode/entry/src/ohosTest/js/test/
H A DNDEFTag.test.js119 * @tc.desc Creates an ndef message using the original bytes. The error code is 401
131 ndefMessage = tag.ndef.createNdefMessage('test');
148 * @tc.desc Creates an ndef message using the original bytes. The error code is 401
161 ndefMessage = tag.ndef.createNdefMessage('test');
183 * @tc.desc Read the ndef message on the tag promise. The error code is 401
210 * @tc.desc Read the ndef message on the tag callback .The error code is 401
242 * @tc.desc Write ndef messages to this tag promise. The error code is 401
252 let ndefMessage = tag.ndef.createNdefMessage(rawData);
273 * @tc.desc Write ndef messages to this tag callback. The error code is 401
283 let ndefMessage = tag.ndef
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
H A Dwps-ap-nfc.py15 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 Dwps-ap-nfc.py15 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 Dtag_dispatcher.cpp74 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 Dndef_wifi_data_parser.cpp223 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 Dndef_msg_callback_stub.cpp35 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
H A Dwps_hostapd.h38 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 Dwps_hostapd.h38 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 Dndef_msg_callback_proxy.cpp27 bool NdefMsgCallbackProxy::OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) in OnNdefMsgDiscovered() argument
39 data.WriteString(ndef); in OnNdefMsgDiscovered()
/foundation/communication/nfc/interfaces/inner_api/common/
H A Dindef_msg_callback.h24 virtual bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) = 0;

Completed in 13 milliseconds

123