Home
last modified time | relevance | path

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

/openthread-latest/src/core/meshcop/
Dtimestamp.hpp165 static int Compare(const Timestamp &aFirst, const Timestamp &aSecond);
168 bool operator==(const Timestamp &aOther) const { return Compare(*this, aOther) == 0; } in operator ==()
169 bool operator!=(const Timestamp &aOther) const { return Compare(*this, aOther) != 0; } in operator !=()
170 bool operator>(const Timestamp &aOther) const { return Compare(*this, aOther) > 0; } in operator >()
171 bool operator<(const Timestamp &aOther) const { return Compare(*this, aOther) < 0; } in operator <()
172 bool operator>=(const Timestamp &aOther) const { return Compare(*this, aOther) >= 0; } in operator >=()
173 bool operator<=(const Timestamp &aOther) const { return Compare(*this, aOther) <= 0; } in operator <=()
Dtimestamp.cpp103 int Timestamp::Compare(const Timestamp &aFirst, const Timestamp &aSecond) in Compare() function in ot::MeshCoP::Timestamp
Dtcat_agent.cpp759 VerifyOrExit(aIncomingMessage.Compare(aOffset, hash), error = kErrorSecurity); in VerifyHash()
Ddataset_manager.cpp280 compare = Timestamp::Compare(mNetworkTimestamp, mLocalTimestamp); in Save()
/openthread-latest/tests/unit/
Dtest_meshcop.cpp127 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t1) == 0); in TestTimestamp()
136 VerifyOrQuit(MeshCoP::Timestamp::Compare(t2, t2) == 0); in TestTimestamp()
143 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) > 0); in TestTimestamp()
144 VerifyOrQuit(MeshCoP::Timestamp::Compare(t2, t1) < 0); in TestTimestamp()
147 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) == 0); in TestTimestamp()
154 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) > 0); in TestTimestamp()
155 VerifyOrQuit(MeshCoP::Timestamp::Compare(t2, t1) < 0); in TestTimestamp()
160 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) == 0); in TestTimestamp()
165 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) > 0); in TestTimestamp()
170 VerifyOrQuit(MeshCoP::Timestamp::Compare(t1, t2) == 0); in TestTimestamp()
[all …]
Dtest_message.cpp81 VerifyOrQuit(message->Compare(0, readBuffer)); in TestMessage()
91 VerifyOrQuit(messageCopy->Compare(0, readBuffer)); in TestMessage()
99 VerifyOrQuit(messageCopy->Compare(0, readBuffer)); in TestMessage()
117 VerifyOrQuit(message->Compare(0, writeBuffer)); in TestMessage()
430 VerifyOrQuit(message->Compare(0, kData2)); in TestAppender()
442 VerifyOrQuit(message->Compare(offset, kData1)); in TestAppender()
446 VerifyOrQuit(message->Compare(offset, kData1)); in TestAppender()
447 VerifyOrQuit(message->Compare(offset + sizeof(kData1), kData2)); in TestAppender()
Dtest_aes.cpp164 VerifyOrQuit(message->Compare(0, encrypted)); in TestMacCommandFrame()
171 VerifyOrQuit(message->Compare(0, decrypted)); in TestMacCommandFrame()
245 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.cpp313 VerifyOrQuit(message->Compare(0, kData1), "CopyBytesTo() failed"); in TestHeapData()
Dtest_dns.cpp1272 VerifyOrQuit(message->Compare(offset, kMessageString), "Message header does not match"); in TestHeaderAndResourceRecords()
1291 VerifyOrQuit(message->Compare(offset, Dns::Question(Dns::ResourceRecord::kTypePtr))); in TestHeaderAndResourceRecords()
/openthread-latest/src/core/common/
Dbinary_search.hpp75 Find(&aKey, &aTable[0], kLength, sizeof(aTable[0]), BinarySearch::Compare<Key, Entry>)); in Find()
111 template <typename Key, typename Entry> static int Compare(const void *aKey, const void *aEntry) in Compare() function in ot::BinarySearch
113 return static_cast<const Entry *>(aEntry)->Compare(*static_cast<const Key *>(aKey)); in Compare()
Dstring.hpp528 int Compare(uint16_t aKey) const { return ThreeWayCompare(aKey, mKey); } in Compare() function in ot::Stringify::Entry
Dmessage.hpp946 template <typename ObjectType> bool Compare(uint16_t aOffset, const ObjectType &aObject) const in Compare() function in ot::Message
/openthread-latest/src/cli/
Dcli_dataset.hpp78 int Compare(const char *aName) const { return strcmp(aName, mName); } in Compare() function
Dcli_utils.hpp138 int Compare(const char *aName) const { return strcmp(aName, mName); } in Compare() function
/openthread-latest/src/core/thread/
Duri_paths.cpp51 int Compare(const char *aPath) const { return strcmp(aPath, mPath); } in Compare() function
Dmle.cpp2341 …VerifyOrExit(aMessage.Compare(aMessage.GetLength() - kMleSecurityTagSize, tag), error = kErrorSecu… in ProcessMessageSecurity()
3674 …timestampCompare = MeshCoP::Timestamp::Compare(timestamp, Get<MeshCoP::ActiveDatasetManager>()… in HandleAnnounce()
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_constant_time_hmac.function136 /* Compare */
Dtest_suite_ecp.function868 // Compare group with expected parameters
1706 /* Compare output byte-by-byte */
1813 /* Compare difference with rA byte-by-byte */
Dtest_suite_psa_crypto.function3068 /* Hash Compare, one-shot */
3073 /* Hash Compare, multi-part */
3141 /* Compare with correct hash, one-shot */
3145 /* Compare with correct hash, multi-part */
3151 /* Compare with trailing garbage, one-shot */
3156 /* Compare with trailing garbage, multi-part */
3162 /* Compare with truncated hash, one-shot */
3167 /* Compare with truncated hash, multi-part */
3173 /* Compare with corrupted value */
9520 /* Compare the outputs from the two runs. */
Dtest_suite_psa_crypto_driver_wrappers.function2870 /* Compare output_data and expected_ciphertext */
2874 /* Compare tag and expected_tag */
Dtest_suite_ssl.function1330 /* Compare results */
1489 /* Compare results */