Home
last modified time | relevance | path

Searched refs:GetValue (Results 1 – 25 of 40) sorted by relevance

12

/openthread-latest/tests/unit/
Dtest_url.cpp45 VerifyOrQuit(!strcmp(args.GetValue("baudrate"), "115200")); in TestSimple()
46 VerifyOrQuit(args.GetValue("not-exists") == nullptr); in TestSimple()
47 VerifyOrQuit(args.GetValue("last-value-wrong-position", url) == nullptr); in TestSimple()
48 VerifyOrQuit(args.GetValue("last-value-before-url", url - 1) == nullptr); in TestSimple()
49 VerifyOrQuit(args.GetValue("last-value-after-url", url + sizeof(url)) == nullptr); in TestSimple()
61 VerifyOrQuit(args.GetValue("last-value-wrong-position", url) == nullptr); in TestSimpleNoQueryString()
62 VerifyOrQuit(args.GetValue("last-value-before-url", url - 1) == nullptr); in TestSimpleNoQueryString()
63 VerifyOrQuit(args.GetValue("last-value-after-url", url + sizeof(url)) == nullptr); in TestSimpleNoQueryString()
76 VerifyOrQuit((arg = args.GetValue("rtscts")) != nullptr); in TestEmptyValue()
77 VerifyOrQuit(args.GetValue("rtscts", arg) == nullptr); in TestEmptyValue()
[all …]
Dtest_heap_array.cpp75 uint16_t GetValue(void) const { return mValue; } in GetValue() function in ot::Entry
109 VerifyOrQuit(aEntry.GetValue() == static_cast<uint16_t>(aExpectedValue)); in VerifyEntry()
111 VerifyOrQuit(aArray.ContainsMatching(aEntry.GetValue())); in VerifyEntry()
112 VerifyOrQuit(aArray.FindMatching(aEntry.GetValue()) == &aEntry); in VerifyEntry()
376 VerifyOrQuit(entry->GetValue() == 0); in TestHeapArray()
384 VerifyOrQuit(entry->GetValue() == 0); in TestHeapArray()
Dtest_checksum.cpp464 VerifyOrQuit(checksum.GetValue() == 0, "Incorrect initial checksum value"); in TestExampleVector()
467 VerifyOrQuit(checksum.GetValue() == kTestVectorChecksum); in TestExampleVector()
468 VerifyOrQuit(checksum.GetValue() == CalculateChecksum(kTestVector, sizeof(kTestVector)), ); in TestExampleVector()
/openthread-latest/src/core/thread/
Dnetwork_data_tlvs.hpp191 uint8_t *GetValue(void) { return reinterpret_cast<uint8_t *>(this) + sizeof(NetworkDataTlv); } in GetValue() function in ot::NetworkData::NetworkDataTlv
198 …const uint8_t *GetValue(void) const { return reinterpret_cast<const uint8_t *>(this) + sizeof(Netw… in GetValue() function in ot::NetworkData::NetworkDataTlv
517 return reinterpret_cast<HasRouteEntry *>(GetValue() + (aIndex * sizeof(HasRouteEntry))); in GetEntry()
529 … return reinterpret_cast<const HasRouteEntry *>(GetValue() + (aIndex * sizeof(HasRouteEntry))); in GetEntry()
537 HasRouteEntry *GetFirstEntry(void) { return reinterpret_cast<HasRouteEntry *>(GetValue()); } in GetFirstEntry()
544 …uteEntry *GetFirstEntry(void) const { return reinterpret_cast<const HasRouteEntry *>(GetValue()); } in GetFirstEntry()
555 return reinterpret_cast<HasRouteEntry *>(GetValue() + GetLength() - sizeof(HasRouteEntry)); in GetLastEntry()
567 … return reinterpret_cast<const HasRouteEntry *>(GetValue() + GetLength() - sizeof(HasRouteEntry)); in GetLastEntry()
1040 … return reinterpret_cast<BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry))); in GetEntry()
1052 …return reinterpret_cast<const BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry… in GetEntry()
[all …]
Dnetwork_data_leader.cpp512 subTlv = As<MeshCoP::Tlv>(Tlv::FindTlv(dataTlv->GetValue(), dataTlv->GetLength(), aType)); in FindCommissioningDataSubTlv()
525 aValue = BigEndian::ReadUint16(subTlv->GetValue()); in ReadCommissioningDataUint16SubTlv()
548 subTlv = reinterpret_cast<const MeshCoP::Tlv *>(dataTlv->GetValue()); in GetCommissioningDataset()
549 endTlv = reinterpret_cast<const MeshCoP::Tlv *>(dataTlv->GetValue() + dataTlv->GetLength()); in GetCommissioningDataset()
606 SuccessOrExit(error = response->AppendBytes(dataTlv->GetValue(), dataTlv->GetLength())); in ProcessCommissionerGetRequest()
Dthread_tlvs.hpp322 … return *reinterpret_cast<const Ip6::Address *>(GetValue() + (aIndex * sizeof(Ip6::Address))); in GetIp6Address()
Dnetwork_data_leader.hpp533 …bool IsUnallocated(uint8_t aId) const { return mRemoveTimes[aId - kMinId].GetValue() == kUnal… in IsUnallocated()
534 … bool IsInUse(uint8_t aId) const { return mRemoveTimes[aId - kMinId].GetValue() == kInUse; } in IsInUse()
Dtime_sync_service.cpp213 if (mLastTimeSyncReceived.GetValue() == 0) in CheckAndHandleChanges()
/openthread-latest/src/core/mac/
Dsub_mac_csl_receiver.cpp189 LogDebg("CSL sleep %lu", ToUlong(mCslTimer.GetNow().GetValue())); in HandleCslTimer()
198 winStart = mCslSampleTime.GetValue() - timeAhead; in HandleCslTimer()
204 winStart = ot::TimerMicro::GetNow().GetValue(); in HandleCslTimer()
210 Get<Radio>().UpdateCslSampleTime(mCslSampleTime.GetValue()); in HandleCslTimer()
233 elapsed = curTime - mCslLastSync.GetValue(); in GetCslWindowEdges()
249 now = TimerMicro::GetNow().GetValue(); in GetLocalTime()
281 sampleTime = mCslSampleTime.GetValue() - mCslPeriod * kUsPerTenSymbols; in LogReceived()
/openthread-latest/src/lib/url/
Durl.hpp84 const char *GetValue(const char *aName, const char *aLastValue = nullptr) const;
101 bool HasParam(const char *aName) const { return (GetValue(aName) != nullptr); } in HasParam()
Durl.cpp82 const char *Url::GetValue(const char *aName, const char *aLastValue) const in GetValue() function in ot::Url::Url
127 VerifyOrExit((str = GetValue(aName)) != nullptr, error = OT_ERROR_NOT_FOUND); in ParseUint32()
169 VerifyOrExit((str = GetValue(aName)) != nullptr, error = OT_ERROR_NOT_FOUND); in ParseInt32()
/openthread-latest/src/posix/platform/
Dspinel_manager.cpp141 iidString = mUrl.GetValue("iid"); in GetIidListFromUrl()
142 iidListString = mUrl.GetValue("iid-list"); in GetIidListFromUrl()
187 …for (const char *arg = nullptr; (arg = mUrl.GetValue("forkpty-arg", arg)) != nullptr; nodeId = arg) in VirtualTimeInit()
/openthread-latest/src/core/net/
Dchecksum.cpp85 uint16_t checksum = GetValue(); in WriteToMessage()
159 if (checksum.GetValue() != kValidRxChecksum) in VerifyMessageChecksum()
244 aHeader.SetChecksum(~checksum.GetValue()); in UpdateIp4HeaderChecksum()
Dchecksum.hpp114 uint16_t GetValue(void) const { return mValue; } in GetValue() function in ot::Checksum
/openthread-latest/src/core/utils/
Dslaac_address.hpp179 … bool IsDeprecating(void) const { return (mExpirationTime.GetValue() != kNotDeprecated); }; in IsDeprecating()
186 if (mExpirationTime.GetValue() == kNotDeprecated) in SetExpirationTime()
Dping_sender.cpp136 SuccessOrExit(message->Append(BigEndian::HostSwap32(now.GetValue()))); in SendPing()
148 …Get<Utils::Otns>().EmitPingRequest(mConfig.GetDestination(), mConfig.mSize, now.GetValue(), mConfi… in SendPing()
Dhistory_tracker.hpp126 void SetInitTime(void) { mData32 = TimerMilli::GetNow().GetValue(); } in SetInitTime()
308 bool IsDistantPast(void) const { return (mTime.GetValue() == kDistantPast); } in IsDistantPast()
/openthread-latest/tests/nexus/platform/
Dnexus_alarm.cpp43 uint32_t otPlatAlarmMilliGetNow(void) { return Core::Get().GetNow().GetValue(); } in otPlatAlarmMilliGetNow()
Dnexus_misc.cpp140 uint32_t now = Core::Get().GetNow().GetValue(); in LogVarArgs()
Dnexus_core.cpp150 rxFrame.mInfo.mRxInfo.mTimestamp = (mNow.GetValue() * 1000u); in ProcessRadio()
/openthread-latest/src/core/common/
Dtime.hpp91 uint32_t GetValue(void) const { return mValue; } in GetValue() function in ot::Time
Dtlvs.hpp120 uint8_t *GetValue(void);
129 const uint8_t *GetValue(void) const;
Dtlvs.cpp47 uint8_t *Tlv::GetValue(void) in GetValue() function in ot::Tlv
52 const uint8_t *Tlv::GetValue(void) const in GetValue() function in ot::Tlv
/openthread-latest/tests/nexus/
Dtest_large_network.cpp120 Log("Network stabilized after %u sec", nexus.GetNow().GetValue() / Time::kOneSecondInMsec); in Test()
/openthread-latest/src/core/meshcop/
Dmeshcop.hpp171 uint64_t GetValue(void) const { return mValue; } in GetValue() function in ot::MeshCoP::JoinerDiscerner

12