Home
last modified time | relevance | path

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

/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...]
/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()
H A Dndef_msg_callback_stub.h39 bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) override;
/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()
H A Dndef_bt_data_parser.cpp434 std::shared_ptr<NdefMessage> ndef = NdefMessage::GetNdefMessage(msg); in CheckBtRecord() local
435 if (ndef == nullptr || (ndef->GetNdefRecords().size() == 0)) { in CheckBtRecord()
436 ErrorLog("NdefBtDataParser::CheckBtRecord: ndef is null"); in CheckBtRecord()
439 std::shared_ptr<NdefRecord> record = ndef->GetNdefRecords()[0]; in CheckBtRecord()
H A Dndef_har_data_parser.cpp52 std::shared_ptr<NdefMessage> ndef = NdefMessage::GetNdefMessage(msg); in TryNdef() local
53 if (ndef == nullptr) { in TryNdef()
54 ErrorLog("NdefHarDataParser::TryNdef ndef is nullptr"); in TryNdef()
57 std::vector<std::shared_ptr<NdefRecord>> records = ndef->GetNdefRecords(); in TryNdef()
/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()
H A Dndef_msg_callback_proxy.h30 bool OnNdefMsgDiscovered(const std::string &tagUid, const std::string &ndef, int ndefMsgType) override;
/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;
/foundation/communication/nfc/frameworks/js/napi/tag/
H A Dnfc_napi_tag.cpp311 // parse ndef message/type/max size/read mode for ndef tag in ParseTechAndExtraFromJsTagInfo()
593 napi_value ndef = nullptr; in RegisterNdefStaticFunctions() local
594 napi_create_object(env, &ndef); in RegisterNdefStaticFunctions()
595 napi_define_properties(env, ndef, sizeof(desc) / sizeof(desc[0]), desc); in RegisterNdefStaticFunctions()
596 napi_set_named_property(env, exports, "ndef", ndef); in RegisterNdefStaticFunctions()
812 // parse ndef message/type/max size/read mode for ndef tag in BuildTagTechAndExtraData()
922 // register namespace 'ndef' function in InitJs()
[all...]

Completed in 7 milliseconds