Home
last modified time | relevance | path

Searched refs:Compare (Results 1 – 20 of 20) sorted by relevance

/openthread-3.4.0/tests/unit/
Dtest_meshcop.cpp128 VerifyOrQuit(MeshCoP::Timestamp::Compare(&t1, &t2) == 0); in TestTimestamp()
129 VerifyOrQuit(MeshCoP::Timestamp::Compare(&t1, nullptr) > 0); in TestTimestamp()
130 VerifyOrQuit(MeshCoP::Timestamp::Compare(nullptr, &t2) < 0); in TestTimestamp()
131 VerifyOrQuit(MeshCoP::Timestamp::Compare(nullptr, nullptr) == 0); in TestTimestamp()
135 VerifyOrQuit(MeshCoP::Timestamp::Compare(&t1, &t2) > 0); in TestTimestamp()
136 VerifyOrQuit(MeshCoP::Timestamp::Compare(&t2, &t1) < 0); in TestTimestamp()
139 VerifyOrQuit(MeshCoP::Timestamp::Compare(&t1, &t2) == 0); in TestTimestamp()
142 VerifyOrQuit(MeshCoP::Timestamp::Compare(&t1, &t2) > 0); in TestTimestamp()
146 VerifyOrQuit(MeshCoP::Timestamp::Compare(&t1, &t2) > 0); in TestTimestamp()
147 VerifyOrQuit(MeshCoP::Timestamp::Compare(&t2, &t1) < 0); in TestTimestamp()
[all …]
Dtest_message.cpp74 VerifyOrQuit(message->Compare(0, readBuffer)); in TestMessage()
90 VerifyOrQuit(message->Compare(0, writeBuffer)); in TestMessage()
377 VerifyOrQuit(message->Compare(0, kData2)); in TestAppender()
389 VerifyOrQuit(message->Compare(offset, kData1)); in TestAppender()
393 VerifyOrQuit(message->Compare(offset, kData1)); in TestAppender()
394 VerifyOrQuit(message->Compare(offset + sizeof(kData1), kData2)); in TestAppender()
Dtest_aes.cpp162 VerifyOrQuit(message->Compare(0, encrypted)); in TestMacCommandFrame()
169 VerifyOrQuit(message->Compare(0, decrypted)); in TestMacCommandFrame()
244 VerifyOrQuit(message->Compare(msgLength, tag)); in TestInPlaceAesCcmProcessing()
Dtest_binary_search.cpp47 int Compare(const char *aName) const { return strcmp(aName, mName); } in TestBinarySearch() function
Dtest_heap_string.cpp301 VerifyOrQuit(message->Compare(0, kData1), "CopyBytesTo() failed"); in TestHeapData()
Dtest_dns.cpp962 VerifyOrQuit(message->Compare(offset, kMessageString), "Message header does not match"); in TestHeaderAndResourceRecords()
981 VerifyOrQuit(message->Compare(offset, Dns::Question(Dns::ResourceRecord::kTypePtr))); in TestHeaderAndResourceRecords()
/openthread-3.4.0/src/core/common/
Dbinary_search.hpp76 Find(&aKey, &aTable[0], kLength, sizeof(aTable[0]), BinarySearch::Compare<Key, Entry>)); in Find()
113 template <typename Key, typename Entry> static int Compare(const void *aKey, const void *aEntry) in Compare() function in ot::BinarySearch
115 return static_cast<const Entry *>(aEntry)->Compare(*static_cast<const Key *>(aKey)); in Compare()
Dstring.hpp448 int Compare(uint16_t aKey) const { return ThreeWayCompare(aKey, mKey); } in Compare() function in ot::Stringify::Entry
Dmessage.hpp827 template <typename ObjectType> bool Compare(uint16_t aOffset, const ObjectType &aObject) const in Compare() function in ot::Message
/openthread-3.4.0/src/core/meshcop/
Dtimestamp.cpp56 int Timestamp::Compare(const Timestamp *aFirst, const Timestamp *aSecond) in Compare() function in ot::MeshCoP::Timestamp
76 rval = Compare(*aFirst, *aSecond); in Compare()
82 int Timestamp::Compare(const Timestamp &aFirst, const Timestamp &aSecond) in Compare() function in ot::MeshCoP::Timestamp
Dtimestamp.hpp166 static int Compare(const Timestamp *aFirst, const Timestamp *aSecond);
179 static int Compare(const Timestamp &aFirst, const Timestamp &aSecond);
Ddataset_manager_ftd.cpp112 VerifyOrExit(Timestamp::Compare(&pendingTimestamp, mLocal.GetTimestamp()) > 0); in HandleSet()
116 VerifyOrExit(Timestamp::Compare(&activeTimestamp, mLocal.GetTimestamp()) > 0); in HandleSet()
164 VerifyOrExit(Timestamp::Compare(&activeTimestamp, localActiveTimestamp) > 0); in HandleSet()
Ddataset_updater.cpp190 if (Timestamp::Compare(requestedDatasetTimestamp, activeDatasetTimestamp) <= 0) in HandleNotifierEvents()
Ddataset_manager.cpp131 compare = Timestamp::Compare(mTimestampValid ? &mTimestamp : nullptr, mLocal.GetTimestamp()); in Save()
253 …VerifyOrExit(Timestamp::Compare(GetTimestamp(), mLocal.GetTimestamp()) < 0, error = kErrorAlready); in SendSet()
263 (Timestamp::Compare(&timestamp, mLocal.GetTimestamp()) == 0)) in SendSet()
/openthread-3.4.0/src/core/thread/
Duri_paths.cpp55 int Compare(const char *aPath) const { return strcmp(aPath, mPath); } in Compare() function
Dmle_router.cpp2072 …(MeshCoP::Timestamp::Compare(&timestamp, Get<MeshCoP::ActiveDatasetManager>().GetTimestamp()) != 0… in HandleChildIdRequest()
2086 …(MeshCoP::Timestamp::Compare(&timestamp, Get<MeshCoP::PendingDatasetManager>().GetTimestamp()) != … in HandleChildIdRequest()
2595 …if (MeshCoP::Timestamp::Compare(&timestamp, Get<MeshCoP::ActiveDatasetManager>().GetTimestamp()) =… in HandleDataRequest()
2614 …if (MeshCoP::Timestamp::Compare(&timestamp, Get<MeshCoP::PendingDatasetManager>().GetTimestamp()) … in HandleDataRequest()
Dmle.cpp2429 …VerifyOrExit(aMessage.Compare(aMessage.GetLength() - kMleSecurityTagSize, tag), error = kErrorSecu… in ProcessMessageSecurity()
2926 if (!IsLeader() && (MeshCoP::Timestamp::Compare(&activeTimestamp, timestamp) != 0) && in HandleLeaderData()
2952 if (!IsLeader() && (MeshCoP::Timestamp::Compare(&pendingTimestamp, timestamp) != 0) && in HandleLeaderData()
3724 … if (timestamp.IsOrphanTimestamp() || MeshCoP::Timestamp::Compare(&timestamp, localTimestamp) < 0) in HandleAnnounce()
3732 else if (MeshCoP::Timestamp::Compare(&timestamp, localTimestamp) > 0) in HandleAnnounce()
/openthread-3.4.0/src/cli/
Dcli_output.hpp140 int Compare(const char *aName) const { return strcmp(aName, mName); } in Compare() function
/openthread-3.4.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto.function1633 /* Compare with correct hash */
1637 /* Compare with trailing garbage */
1642 /* Compare with truncated hash */
1647 /* Compare with corrupted value */
4905 /* Compare the outputs from the two runs. */
Dtest_suite_ssl.function3283 /* Compare results */
3446 /* Compare results */
4504 /* Compare */