Home
last modified time | relevance | path

Searched refs:mName (Results 1 – 25 of 31) sorted by relevance

12

/openthread-latest/tests/unit/
Dtest_binary_search.cpp47 int Compare(const char *aName) const { return strcmp(aName, mName); } in TestBinarySearch()
51 return AreStringsInOrder(aFirst.mName, aSecond.mName); in TestBinarySearch()
54 const char *mName; in TestBinarySearch() member
79 strcpy(name, tableEntry.mName); in TestBinarySearch()
Dtest_array.cpp192 : mName(aName) in TestArrayCopyAndFindMatching()
197 …bool operator==(const Entry &aOther) const { return (mName == aOther.mName) && (mYear == aOther.mY… in TestArrayCopyAndFindMatching()
198 bool Matches(const char *aName) const { return strcmp(aName, mName) == 0; } in TestArrayCopyAndFindMatching()
224 const char *mName; in TestArrayCopyAndFindMatching() member
297 printf("- Name:%-3s Year:%d\n", entry.mName, entry.mYear); in TestArrayCopyAndFindMatching()
299 match = array2.FindMatching(entry.mName); in TestArrayCopyAndFindMatching()
302 VerifyOrQuit(array2.ContainsMatching(entry.mName)); in TestArrayCopyAndFindMatching()
341 array2.RemoveMatching(entryToRemove.mName); in TestArrayCopyAndFindMatching()
344 printf("\nArray after `RemoveMatching()` on entry %s\n", entryToRemove.mName); in TestArrayCopyAndFindMatching()
350 printf("- Name:%-3s Year:%d\n", entry.mName, entry.mYear); in TestArrayCopyAndFindMatching()
[all …]
Dtest_spinel_prop_codec.cpp149 dnssdKeyEncode.mName = "ot-key"; in TestDnssd()
172 VerifyOrQuit(strcmp(dnssdKeyDecode.mName, dnssdKeyEncode.mName) == 0); in TestDnssd()
Dtest_linked_list.cpp60 : mName(aName) in Entry()
67 const char *GetName(void) const { return mName; } in GetName()
69 bool Matches(const char *aName) const { return strcmp(mName, aName) == 0; } in Matches()
79 const char *mName; member
Dtest_mdns.cpp124 Name::Buffer mName; member
128 SuccessOrQuit(Name::ReadName(aMessage, aOffset, mName)); in ParseFrom()
135 mName[0] = '\0'; in CopyFrom()
139 uint16_t len = StringLength(aName, sizeof(mName)); in CopyFrom()
141 VerifyOrQuit(len < sizeof(mName)); in CopyFrom()
142 memcpy(mName, aName, len + 1); in CopyFrom()
146 const char *AsCString(void) const { return mName; } in AsCString()
147 …bool Matches(const char *aName) const { return StringMatch(mName, aName, kStringCaseInsensi… in Matches()
163 DnsName mName; member
172 mName.ParseFrom(aMessage, aOffset); in ParseFrom()
[all …]
Dtest_dso.cpp121 , mName(aName) in Connection()
127 const char *GetName(void) const { return mName; } in GetName()
220 Log(" ProcessRequestMessage(primaryTlv:0x%04x) on %s", aPrimaryTlvType, mName); in ProcessRequestMessage()
233 Log(" ProcessUnidirectionalMessage(primaryTlv:0x%04x) on %s", aPrimaryTlvType, mName); in ProcessUnidirectionalMessage()
253 …g(" ProcessResponseMessage(responseTlv:0x%04x) on %s (response-Code:%u) ", aResponseTlvType, mName, in ProcessResponseMessage()
310 const char *mName; member in ot::Dns::Connection
Dtest_srp_adv_proxy.cpp318 Log(" name : %s", aKey->mName); in otPlatDnssdRegisterKey()
330 …OrQuit(StringMatch(AsCoreType(aInstance).Get<Srp::Client>().GetHostInfo().GetName(), aKey->mName)); in otPlatDnssdRegisterKey()
338 if (StringMatch(service.GetInstanceName(), aKey->mName)) in otPlatDnssdRegisterKey()
363 Log(" name : %s", aKey->mName); in otPlatDnssdUnregisterKey()
372 …OrQuit(StringMatch(AsCoreType(aInstance).Get<Srp::Client>().GetHostInfo().GetName(), aKey->mName)); in otPlatDnssdUnregisterKey()
380 if (StringMatch(service.GetInstanceName(), aKey->mName)) in otPlatDnssdUnregisterKey()
613 aService.mName = kServiceName; in PrepareService1()
631 aService.mName = kService2Name; in PrepareService2()
Dtest_ncp_dnssd.cpp164 dnssdKey.mName = "test-key"; in TestNcpDnssdRegistrations()
Dtest_dns.cpp52 const char *mName; in TestDnsName() member
358 SuccessOrQuit(Dns::Name::AppendName(test.mName, *message)); in TestDnsName()
363 DumpBuffer(test.mName, buffer, len); in TestDnsName()
512 SuccessOrQuit(Dns::Name::AppendMultipleLabels(test.mName, *message)); in TestDnsName()
518 DumpBuffer(test.mName, buffer, len); in TestDnsName()
541 DumpBuffer(test.mName, buffer, len); in TestDnsName()
/openthread-latest/src/cli/
Dcli_dataset.hpp78 int Compare(const char *aName) const { return strcmp(aName, mName); } in Compare()
82 return AreStringsInOrder(aFirst.mName, aSecond.mName); in AreInOrder()
85 const char *mName; member
Dcli_utils.hpp138 int Compare(const char *aName) const { return strcmp(aName, mName); } in Compare()
151 return AreStringsInOrder(aFirst.mName, aSecond.mName); in AreInOrder()
154 const char *mName; ///< The command name. member
489 OutputLine("%s", entry.mName); in OutputCommandTable()
Dcli_srp_client.cpp222 const char *name = otSrpClientGetHostInfo(GetInstancePtr())->mName; in Process()
624 if ((aArgs[1] == service->mInstanceName) && (aArgs[2] == service->mName)) in Process()
785 if (aHostInfo.mName != nullptr) in OutputHostInfo()
787 OutputFormat("\"%s\"", aHostInfo.mName); in OutputHostInfo()
829 OutputFormat(aIndentSize, "instance:\"%s\", name:\"%s", aService.mInstanceName, aService.mName); in OutputService()
Dcli.cpp374 if (aArgs[0] == entry.mCommands[i].mName) in ProcessUserCommands()
673 const char *mName; in OutputBorderAgentCounters() member
699 OutputLine("%s: %lu", counter.mName, ToUlong(aCounters.*counter.mValuePtr)); in OutputBorderAgentCounters()
1153 const char *mName; in Process() member
1181 OutputLine("%s: %u %u %lu", info.mName, (bufferInfo.*info.mQueuePtr).mNumMessages, in Process()
2072 const char *mName; in Process() member
2108 OutputLine(kIndentSize, "%s: %lu", metric.mName, ToUlong(metrics.*metric.mValuePtr)); in Process()
2115 OutputLine(kIndentSize, "%s: %lu", metric.mName, ToUlong(metrics.*metric.mValuePtr)); in Process()
2159 const char *mName; in OutputBorderRouterCounters() member
2174 OutputFormat("%s:", counter.mName); in OutputBorderRouterCounters()
[all …]
Dcli_mdns.cpp138 OutputLine("Key %s for %s (service)", aKey.mName, aKey.mServiceType); in OutputKey()
142 OutputLine("Key %s (host)", aKey.mName); in OutputKey()
382 key.mName = aArgs->GetCString(); in ProcessRegisterKey()
475 key.mName = aArgs[1].GetCString(); in Process()
Dcli_dataset.cpp586 const char *mName; // To use with `LookupMapper()`. in Print() member
612 const ComponentMapper *mapper = LookupMapper(title.mName); in Print()
/openthread-latest/include/openthread/
Dsrp_client.h74 const char *mName; ///< Host name (label) string (NULL if not yet set). member
102 …const char *mName; ///< The service labels (e.g., "_mt._udp", not the full… member
Dcli.h53 const char *mName; ///< A pointer to the command string. member
/openthread-latest/src/lib/spinel/
Dspinel_prop_codec.cpp100 SuccessOrExit(error = aEncoder.WriteUtf8(aObj.mName == nullptr ? "" : aObj.mName)); in EncodeDnssd()
178 SuccessOrExit(error = aDecoder.ReadUtf8(aKey.mName)); in DecodeDnssdKey()
/openthread-latest/src/core/utils/
Dsrp_client_buffers.cpp55 entry->mService.mName = entry->mServiceName; in AllocateService()
/openthread-latest/tools/ot-fct/
Dcli.hpp90 const char *mName; member
Dcli.cpp281 if (strcmp(aArgs[0].GetCString(), sCommands[i].mName) == 0) in ProcessCommand()
/openthread-latest/src/core/net/
Dsrp_client.hpp128 const char *GetName(void) const { return mName; } in GetName()
162 void SetName(const char *aName) { mName = aName; } in SetName()
190 const char *GetName(void) const { return mName; } in GetName()
Dmdns.cpp1478 return mName.Set(aName); in Init()
1483 return aName.Matches(/* aFirstLabel */ nullptr, mName.AsCString(), kLocalDomain); in Matches()
1486 bool Core::HostEntry::Matches(const Host &aHost) const { return NameMatch(mName, aHost.mHostName); } in Matches()
1488 …::Matches(const Key &aKey) const { return !IsKeyForService(aKey) && NameMatch(mName, aKey.mName); } in Matches()
1490 bool Core::HostEntry::Matches(const Heap::String &aName) const { return NameMatch(mName, aName); } in Matches()
1600 Get<Core>().InvokeConflictCallback(mName.AsCString(), nullptr); in HandleConflict()
1807 outcome = aTxMessage.AppendMultipleLabels(aSection, mName.AsCString(), mNameOffset); in AppendNameTo()
1824 aHost.mHostName = mName.AsCString(); in CopyInfoTo()
1841 aKey.mName = mName.AsCString(); in CopyInfoTo()
1888 return Init(aInstance, aKey.mName, aKey.mServiceType); in Init()
[all …]
/openthread-latest/include/openthread/platform/
Ddnssd.h129 …const char *mName; ///< A host or a service instance name (does not include domain nam… member
/openthread-latest/src/core/diags/
Dfactory_diags.hpp130 const char *mName; member

12