Home
last modified time | relevance | path

Searched refs:aResult (Results 1 – 25 of 45) sorted by relevance

12

/openthread-3.7.0/src/cli/
Dcli_mdns.hpp119 void HandleBrowseResult(const otMdnsBrowseResult &aResult);
120 void HandleSrvResult(const otMdnsSrvResult &aResult);
121 void HandleTxtResult(const otMdnsTxtResult &aResult);
122 void HandleAddressResult(const otMdnsAddressResult &aResult, IpAddressType aType);
126 static void HandleBrowseResult(otInstance *aInstance, const otMdnsBrowseResult *aResult);
127 static void HandleSrvResult(otInstance *aInstance, const otMdnsSrvResult *aResult);
128 static void HandleTxtResult(otInstance *aInstance, const otMdnsTxtResult *aResult);
129 … static void HandleIp6AddressResult(otInstance *aInstance, const otMdnsAddressResult *aResult);
130 … static void HandleIp4AddressResult(otInstance *aInstance, const otMdnsAddressResult *aResult);
Dcli_mdns.cpp662 void Mdns::HandleBrowseResult(otInstance *aInstance, const otMdnsBrowseResult *aResult) in HandleBrowseResult() argument
666 Interpreter::GetInterpreter().mMdns.HandleBrowseResult(*aResult); in HandleBrowseResult()
669 void Mdns::HandleBrowseResult(const otMdnsBrowseResult &aResult) in HandleBrowseResult() argument
671 OutputFormat("mDNS browse result for %s", aResult.mServiceType); in HandleBrowseResult()
673 if (aResult.mSubTypeLabel) in HandleBrowseResult()
675 OutputLine(" sub-type %s", aResult.mSubTypeLabel); in HandleBrowseResult()
682 OutputLine(kIndentSize, "instance: %s", aResult.mServiceInstance); in HandleBrowseResult()
683 OutputLine(kIndentSize, "ttl: %lu", ToUlong(aResult.mTtl)); in HandleBrowseResult()
684 OutputLine(kIndentSize, "if-index: %lu", ToUlong(aResult.mInfraIfIndex)); in HandleBrowseResult()
718 void Mdns::HandleSrvResult(otInstance *aInstance, const otMdnsSrvResult *aResult) in HandleSrvResult() argument
[all …]
Dcli.hpp281 static void HandleActiveScanResult(otActiveScanResult *aResult, void *aContext);
282 static void HandleEnergyScanResult(otEnergyScanResult *aResult, void *aContext);
313 static void HandleSntpResponse(void *aContext, uint64_t aTime, otError aResult);
316 void HandleActiveScanResult(otActiveScanResult *aResult);
317 void HandleEnergyScanResult(otEnergyScanResult *aResult);
320 void HandleSntpResponse(uint64_t aTime, otError aResult);
/openthread-3.7.0/src/core/utils/
Dchannel_monitor.cpp125 void ChannelMonitor::HandleEnergyScanResult(Mac::EnergyScanResult *aResult, void *aContext) in HandleEnergyScanResult() argument
127 static_cast<ChannelMonitor *>(aContext)->HandleEnergyScanResult(aResult); in HandleEnergyScanResult()
130 void ChannelMonitor::HandleEnergyScanResult(Mac::EnergyScanResult *aResult) in HandleEnergyScanResult() argument
132 if (aResult == nullptr) in HandleEnergyScanResult()
147 uint8_t channelIndex = (aResult->mChannel - Radio::kChannelMin); in HandleEnergyScanResult()
154 LogDebg("channel: %d, rssi:%d", aResult->mChannel, aResult->mMaxRssi); in HandleEnergyScanResult()
156 if (aResult->mMaxRssi != Radio::kInvalidRssi) in HandleEnergyScanResult()
158 newValue = (aResult->mMaxRssi >= kRssiThreshold) ? kMaxOccupancy : 0; in HandleEnergyScanResult()
Dchannel_monitor.hpp197 static void HandleEnergyScanResult(Mac::EnergyScanResult *aResult, void *aContext);
198 void HandleEnergyScanResult(Mac::EnergyScanResult *aResult);
/openthread-3.7.0/src/core/meshcop/
Djoiner.cpp255 void Joiner::HandleDiscoverResult(Mle::DiscoverScanner::ScanResult *aResult, void *aContext) in HandleDiscoverResult() argument
257 static_cast<Joiner *>(aContext)->HandleDiscoverResult(aResult); in HandleDiscoverResult()
260 void Joiner::HandleDiscoverResult(Mle::DiscoverScanner::ScanResult *aResult) in HandleDiscoverResult() argument
264 if (aResult != nullptr && aResult->mJoinerUdpPort > 0) in HandleDiscoverResult()
266 SaveDiscoveredJoinerRouter(*aResult); in HandleDiscoverResult()
281 void Joiner::SaveDiscoveredJoinerRouter(const Mle::DiscoverScanner::ScanResult &aResult) in SaveDiscoveredJoinerRouter() argument
288 doesAllowAny = AsCoreType(&aResult.mSteeringData).PermitsAllJoiners(); in SaveDiscoveredJoinerRouter()
291 … AsCoreType(&aResult.mExtAddress).ToString().AsCString(), aResult.mPanId, aResult.mJoinerUdpPort, in SaveDiscoveredJoinerRouter()
292 aResult.mChannel, aResult.mRssi, ToYesNo(doesAllowAny)); in SaveDiscoveredJoinerRouter()
294 priority = CalculatePriority(aResult.mRssi, doesAllowAny); in SaveDiscoveredJoinerRouter()
[all …]
Djoiner.hpp199 static void HandleDiscoverResult(Mle::DiscoverScanner::ScanResult *aResult, void *aContext);
200 void HandleDiscoverResult(Mle::DiscoverScanner::ScanResult *aResult);
208 Error aResult);
209 …inerFinalizeResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult);
217 void SaveDiscoveredJoinerRouter(const Mle::DiscoverScanner::ScanResult &aResult);
Dcommissioner.hpp421 Error aResult);
424 Error aResult);
428 Error aResult);
431 Error aResult);
435 Error aResult);
436 …aderPetitionResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult);
440 Error aResult);
441 …derKeepAliveResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult);
Dcommissioner.cpp656 Error aResult) in HandleMgmtCommissionerGetResponse() argument
659 … AsCoreTypePtr(aMessageInfo), aResult); in HandleMgmtCommissionerGetResponse()
664 Error aResult) in HandleMgmtCommissionerGetResponse() argument
668 VerifyOrExit(aResult == kErrorNone && aMessage->GetCode() == Coap::kCodeChanged); in HandleMgmtCommissionerGetResponse()
727 Error aResult) in HandleMgmtCommissionerSetResponse() argument
730 … AsCoreTypePtr(aMessageInfo), aResult); in HandleMgmtCommissionerSetResponse()
735 Error aResult) in HandleMgmtCommissionerSetResponse() argument
742 SuccessOrExit(error = aResult); in HandleMgmtCommissionerSetResponse()
780 Error aResult) in HandleLeaderPetitionResponse() argument
783 … AsCoreTypePtr(aMessageInfo), aResult); in HandleLeaderPetitionResponse()
[all …]
Djoiner_router.hpp111 Error aResult);
112 …oinerEntrustResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult);
Djoiner_router.cpp327 Error aResult) in HandleJoinerEntrustResponse() argument
330 … AsCoreTypePtr(aMessageInfo), aResult); in HandleJoinerEntrustResponse()
335 Error aResult) in HandleJoinerEntrustResponse() argument
341 VerifyOrExit(aResult == kErrorNone && aMessage != nullptr); in HandleJoinerEntrustResponse()
/openthread-3.7.0/src/core/thread/
Dmlr_manager.hpp168 Error aResult);
169 … HandleMlrResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult);
170 static Error ParseMlrResponse(Error aResult,
179 Error aResult);
180 … HandleRegisterResponse(otMessage *aMessage, const otMessageInfo *aMessageInfo, Error aResult);
207 …static void LogMlrResponse(Error aResult, Error aError, uint8_t aStatus, const AddressArray &aFail…
Dmlr_manager.cpp337 Error aResult) in HandleRegisterResponse() argument
340 aResult); in HandleRegisterResponse()
343 …ager::HandleRegisterResponse(otMessage *aMessage, const otMessageInfo *aMessageInfo, Error aResult) in HandleRegisterResponse() argument
353 error = ParseMlrResponse(aResult, AsCoapMessagePtr(aMessage), status, failedAddresses); in HandleRegisterResponse()
427 Error aResult) in HandleMlrResponse() argument
430 aResult); in HandleMlrResponse()
433 …er::HandleMlrResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult) in HandleMlrResponse() argument
441 error = ParseMlrResponse(aResult, aMessage, status, failedAddresses); in HandleMlrResponse()
468 Error MlrManager::ParseMlrResponse(Error aResult, in ParseMlrResponse() argument
478 VerifyOrExit(aResult == kErrorNone && aMessage != nullptr, error = kErrorParse); in ParseMlrResponse()
[all …]
Denergy_scan_server.cpp129 void EnergyScanServer::HandleScanResult(Mac::EnergyScanResult *aResult, void *aContext) in HandleScanResult() argument
131 static_cast<EnergyScanServer *>(aContext)->HandleScanResult(aResult); in HandleScanResult()
134 void EnergyScanServer::HandleScanResult(Mac::EnergyScanResult *aResult) in HandleScanResult() argument
138 if (aResult) in HandleScanResult()
140 if (mReportMessage->Append<int8_t>(aResult->mMaxRssi) != kErrorNone) in HandleScanResult()
Denergy_scan_server.hpp72 static void HandleScanResult(Mac::EnergyScanResult *aResult, void *aContext);
73 void HandleScanResult(Mac::EnergyScanResult *aResult);
Dnetwork_diagnostic.hpp222 Error aResult);
226 Error aResult);
335 Error aResult);
336 … HandleGetResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult);
Dnetwork_data_notifier.hpp144 Error aResult);
145 void HandleCoapResponse(Error aResult);
Dnetwork_data_notifier.cpp256 …CoapResponse(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo, Error aResult) in HandleCoapResponse() argument
261 static_cast<Notifier *>(aContext)->HandleCoapResponse(aResult); in HandleCoapResponse()
264 void Notifier::HandleCoapResponse(Error aResult) in HandleCoapResponse() argument
268 switch (aResult) in HandleCoapResponse()
Ddua_manager.hpp225 Error aResult);
226 … HandleDuaResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult);
Ddua_manager.cpp554 Error aResult) in HandleDuaResponse() argument
557 aResult); in HandleDuaResponse()
560 …er::HandleDuaResponse(Coap::Message *aMessage, const Ip6::MessageInfo *aMessageInfo, Error aResult) in HandleDuaResponse() argument
570 if (aResult == kErrorResponseTimeout) in HandleDuaResponse()
573 ExitNow(error = aResult); in HandleDuaResponse()
576 VerifyOrExit(aResult == kErrorNone, error = kErrorParse); in HandleDuaResponse()
/openthread-3.7.0/tests/unit/
Dtest_nat64.cpp93 Nat64::Translator::Result aResult, in TestCase6To4() argument
106 VerifyOrQuit(sInstance->Get<Nat64::Translator>().TranslateFromIp6(*msg) == aResult); in TestCase6To4()
120 Nat64::Translator::Result aResult, in TestCase4To6() argument
133 VerifyOrQuit(sInstance->Get<Nat64::Translator>().TranslateToIp6(*msg) == aResult); in TestCase4To6()
Dtest_mdns.cpp4649 void HandleBrowseResult(otInstance *aInstance, const otMdnsBrowseResult *aResult) in HandleBrowseResult() argument
4654 VerifyOrQuit(aResult != nullptr); in HandleBrowseResult()
4655 VerifyOrQuit(aResult->mServiceType != nullptr); in HandleBrowseResult()
4656 VerifyOrQuit(aResult->mServiceInstance != nullptr); in HandleBrowseResult()
4657 VerifyOrQuit(aResult->mInfraIfIndex == kInfraIfIndex); in HandleBrowseResult()
4659 Log("Browse callback: %s (subtype:%s) -> %s ttl:%lu", aResult->mServiceType, in HandleBrowseResult()
4660aResult->mSubTypeLabel == nullptr ? "(null)" : aResult->mSubTypeLabel, aResult->mServiceInstance, in HandleBrowseResult()
4661 ToUlong(aResult->mTtl)); in HandleBrowseResult()
4666 entry->mServiceType.CopyFrom(aResult->mServiceType); in HandleBrowseResult()
4667 entry->mSubTypeLabel.CopyFrom(aResult->mSubTypeLabel); in HandleBrowseResult()
[all …]
/openthread-3.7.0/include/openthread/
Dmdns.h515 typedef void (*otMdnsBrowseCallback)(otInstance *aInstance, const otMdnsBrowseResult *aResult);
524 typedef void (*otMdnsSrvCallback)(otInstance *aInstance, const otMdnsSrvResult *aResult);
533 typedef void (*otMdnsTxtCallback)(otInstance *aInstance, const otMdnsTxtResult *aResult);
542 typedef void (*otMdnsAddressCallback)(otInstance *aInstance, const otMdnsAddressResult *aResult);
/openthread-3.7.0/src/core/net/
Dmdns.cpp4426 void Core::ResultCallback::Invoke(Instance &aInstance, const BrowseResult &aResult) const in Invoke()
4430 mSharedCallback.mBrowse(&aInstance, &aResult); in Invoke()
4434 void Core::ResultCallback::Invoke(Instance &aInstance, const SrvResult &aResult) const in Invoke()
4438 mSharedCallback.mSrv(&aInstance, &aResult); in Invoke()
4442 void Core::ResultCallback::Invoke(Instance &aInstance, const TxtResult &aResult) const in Invoke()
4446 mSharedCallback.mTxt(&aInstance, &aResult); in Invoke()
4450 void Core::ResultCallback::Invoke(Instance &aInstance, const AddressResult &aResult) const in Invoke()
4454 mSharedCallback.mAddress(&aInstance, &aResult); in Invoke()
4950 template <typename ResultType> void Core::CacheEntry::InvokeCallbacks(const ResultType &aResult) in InvokeCallbacks() argument
4954 callback.Invoke(GetInstance(), aResult); in InvokeCallbacks()
[all …]
/openthread-3.7.0/src/core/mac/
Dmac.cpp227 Error Mac::ConvertBeaconToActiveScanResult(const RxFrame *aBeaconFrame, ActiveScanResult &aResult) in ConvertBeaconToActiveScanResult() argument
237 ClearAllBytes(aResult); in ConvertBeaconToActiveScanResult()
244 aResult.mExtAddress = address.GetExtended(); in ConvertBeaconToActiveScanResult()
246 if (kErrorNone != aBeaconFrame->GetSrcPanId(aResult.mPanId)) in ConvertBeaconToActiveScanResult()
248 IgnoreError(aBeaconFrame->GetDstPanId(aResult.mPanId)); in ConvertBeaconToActiveScanResult()
251 aResult.mChannel = aBeaconFrame->GetChannel(); in ConvertBeaconToActiveScanResult()
252 aResult.mRssi = aBeaconFrame->GetRssi(); in ConvertBeaconToActiveScanResult()
253 aResult.mLqi = aBeaconFrame->GetLqi(); in ConvertBeaconToActiveScanResult()
263 aResult.mVersion = beaconPayload->GetProtocolVersion(); in ConvertBeaconToActiveScanResult()
264 aResult.mIsJoinable = beaconPayload->IsJoiningPermitted(); in ConvertBeaconToActiveScanResult()
[all …]

12