Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 23 of 23) sorted by relevance

/system/ulib/cobalt-client/
A Dmetric_info.cpp40 bool LocalMetricInfo::operator==(const LocalMetricInfo& rhs) const { in operator ==()
41 return rhs.name == name; in operator ==()
44 bool LocalMetricInfo::operator!=(const LocalMetricInfo& rhs) const { in operator !=()
45 return !(*this == rhs); in operator !=()
56 bool RemoteMetricInfo::operator==(const RemoteMetricInfo& rhs) const { in operator ==()
57 return rhs.metric_id == metric_id && rhs.event_code == event_code && rhs.component == component; in operator ==()
60 bool RemoteMetricInfo::operator!=(const RemoteMetricInfo& rhs) const { in operator !=()
61 return !(*this == rhs); in operator !=()
/system/ulib/unittest/include/unittest/
A Dunittest.h569 #define EXPECT_EQ(lhs, rhs, ...) EXPECT_CMP(==, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
570 #define EXPECT_NE(lhs, rhs, ...) EXPECT_CMP(!=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
571 #define EXPECT_LE(lhs, rhs, ...) EXPECT_CMP(<=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
572 #define EXPECT_GE(lhs, rhs, ...) EXPECT_CMP(>=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
573 #define EXPECT_LT(lhs, rhs, ...) EXPECT_CMP(<, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
574 #define EXPECT_GT(lhs, rhs, ...) EXPECT_CMP(>, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
601 #define ASSERT_EQ(lhs, rhs, ...) ASSERT_CMP(==, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
602 #define ASSERT_NE(lhs, rhs, ...) ASSERT_CMP(!=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
603 #define ASSERT_LE(lhs, rhs, ...) ASSERT_CMP(<=, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
605 #define ASSERT_LT(lhs, rhs, ...) ASSERT_CMP(<, lhs, rhs, #lhs, #rhs, ##__VA_ARGS__) argument
[all …]
/system/ulib/fit/include/lib/fit/
A Dnullable.h219 return !rhs.has_value();
223 return rhs.has_value();
228 return (lhs.has_value() == rhs.has_value()) && (!lhs.has_value() || *lhs == *rhs);
232 return (lhs.has_value() != rhs.has_value()) || (lhs.has_value() && *lhs != *rhs);
236 constexpr bool operator==(const nullable<T>& lhs, const U& rhs) {
237 return (lhs.has_value() != is_null(rhs)) && (!lhs.has_value() || *lhs == rhs);
240 constexpr bool operator!=(const nullable<T>& lhs, const U& rhs) {
241 return (lhs.has_value() == is_null(rhs)) || (lhs.has_value() && *lhs != rhs);
245 constexpr bool operator==(const T& lhs, const nullable<U>& rhs) {
246 return (is_null(lhs) != rhs.has_value()) && (!rhs.has_value() || lhs == *rhs);
[all …]
A Doptional.h261 constexpr bool operator==(nullopt_t, const optional<T>& rhs) {
262 return !rhs.has_value();
265 constexpr bool operator!=(nullopt_t, const optional<T>& rhs) {
266 return rhs.has_value();
271 return (lhs.has_value() == rhs.has_value()) && (!lhs.has_value() || *lhs == *rhs);
275 return (lhs.has_value() != rhs.has_value()) || (lhs.has_value() && *lhs != *rhs);
279 constexpr bool operator==(const optional<T>& lhs, const U& rhs) {
280 return lhs.has_value() && *lhs == rhs;
284 return !lhs.has_value() || *lhs != rhs;
289 return rhs.has_value() && lhs == *rhs;
[all …]
/system/ulib/fbl/include/fbl/
A Dstring_piece.h100 bool operator==(const StringPiece& lhs, const StringPiece& rhs);
102 inline bool operator!=(const StringPiece& lhs, const StringPiece& rhs) {
103 return !(lhs == rhs);
106 inline bool operator<(const StringPiece& lhs, const StringPiece& rhs) {
107 return lhs.compare(rhs) < 0;
110 inline bool operator>(const StringPiece& lhs, const StringPiece& rhs) {
111 return lhs.compare(rhs) > 0;
114 inline bool operator<=(const StringPiece& lhs, const StringPiece& rhs) {
115 return lhs.compare(rhs) <= 0;
118 inline bool operator>=(const StringPiece& lhs, const StringPiece& rhs) {
[all …]
A Dstring.h311 bool operator==(const String& lhs, const String& rhs);
313 inline bool operator!=(const String& lhs, const String& rhs) {
314 return !(lhs == rhs);
317 inline bool operator<(const String& lhs, const String& rhs) {
318 return lhs.compare(rhs) < 0;
321 inline bool operator>(const String& lhs, const String& rhs) {
322 return lhs.compare(rhs) > 0;
325 inline bool operator<=(const String& lhs, const String& rhs) {
326 return lhs.compare(rhs) <= 0;
329 inline bool operator>=(const String& lhs, const String& rhs) {
[all …]
/system/ulib/bitmap/include/bitmap/
A Dstorage.h70 VmoStorage(VmoStorage&& rhs) in VmoStorage() argument
71 : vmo_(std::move(rhs.vmo_)), mapped_addr_(rhs.mapped_addr_), size_(rhs.size_) { in VmoStorage()
72 rhs.mapped_addr_ = 0; in VmoStorage()
75 VmoStorage& operator=(VmoStorage&& rhs) {
77 vmo_ = std::move(rhs.vmo_);
78 mapped_addr_ = rhs.mapped_addr_;
79 size_ = rhs.size_;
80 rhs.mapped_addr_ = 0;
A Drle-bitmap.h46 RleBitmap(RleBitmap&& rhs) = default;
47 RleBitmap& operator=(RleBitmap&& rhs) = default;
A Draw-bitmap.h104 RawBitmapGeneric(RawBitmapGeneric&& rhs) = default;
105 RawBitmapGeneric& operator=(RawBitmapGeneric&& rhs) = default;
/system/ulib/digest/
A Ddigest.cpp56 Digest& Digest::operator=(const uint8_t* rhs) { in operator =() argument
58 memcpy(bytes_, rhs, kLength); in operator =()
148 bool Digest::operator==(const Digest& rhs) const { in operator ==()
149 return memcmp(bytes_, rhs.bytes_, kLength) == 0; in operator ==()
152 bool Digest::operator!=(const Digest& rhs) const { in operator !=()
153 return !(*this == rhs); in operator !=()
156 bool Digest::operator==(const uint8_t* rhs) const { in operator ==()
157 return rhs ? memcmp(bytes_, rhs, kLength) == 0 : false; in operator ==()
160 bool Digest::operator!=(const uint8_t* rhs) const { in operator !=()
161 return !(*this == rhs); in operator !=()
/system/ulib/digest/include/digest/
A Ddigest.h36 Digest& operator=(const uint8_t* rhs);
88 bool operator==(const Digest& rhs) const;
89 bool operator!=(const Digest& rhs) const;
90 bool operator==(const uint8_t* rhs) const;
91 bool operator!=(const uint8_t* rhs) const;
/system/ulib/fbl/
A Dstring_piece.cpp23 bool operator==(const StringPiece& lhs, const StringPiece& rhs) { in operator ==() argument
24 return lhs.length() == rhs.length() && in operator ==()
25 memcmp(lhs.data(), rhs.data(), lhs.length()) == 0; in operator ==()
A Dstring.cpp221 bool operator==(const String& lhs, const String& rhs) { in operator ==() argument
222 return lhs.length() == rhs.length() && in operator ==()
223 memcmp(lhs.data(), rhs.data(), lhs.length()) == 0; in operator ==()
/system/ulib/cobalt-client/include/cobalt-client/cpp/
A Dtypes-internal.h60 bool operator==(const RemoteMetricInfo& rhs) const;
61 bool operator!=(const RemoteMetricInfo& rhs) const;
82 bool operator==(const LocalMetricInfo& rhs) const;
83 bool operator!=(const LocalMetricInfo& rhs) const;
/system/host/blobfs/
A Dblobfs.h45 inline bool operator()(const blobfs::MerkleInfo& lhs, const blobfs::MerkleInfo& rhs) const { in operator()
47 const uint8_t* rhs_bytes = rhs.digest.AcquireBytes(); in operator()
50 rhs.digest.ReleaseBytes(); in operator()
A Dmain.cpp178 auto compare = [](const blobfs::MerkleInfo& lhs, const blobfs::MerkleInfo& rhs) { in CalculateRequiredSize() argument
179 return lhs.digest == rhs.digest; in CalculateRequiredSize()
/system/ulib/audio-proto-utils/include/audio-proto-utils/
A Dformat-utils.h60 bool operator!=(const iterator& rhs) const {
61 return ::memcmp(this, &rhs, sizeof(*this)) != 0;
/system/utest/crypto/
A Dutils.h17 #define UT_ZX(lhs, rhs, ret) \ argument
21 zx_status_t _rhs_val = (rhs); \
/system/ulib/zxtest/
A Dtest-info.cpp17 TestInfo::TestInfo(TestInfo&& rhs) = default;
/system/ulib/zxtest/include/zxtest/base/
A Dtest-info.h22 TestInfo(TestInfo&& rhs);
/system/ulib/blobfs/include/blobfs/
A Dformat.h240 bool operator==(const Extent& rhs) const {
241 return Start() == rhs.Start() && Length() == rhs.Length();
/system/utest/fbl/
A Dalgorithm_tests.cpp252 bool operator()(const int& lhs, const int& rhs) { in operator ()()
253 return lhs < rhs; in operator ()()
/system/ulib/blobfs/
A Dvnode.cpp52 LatencyEvent(LatencyEvent&& rhs) in LatencyEvent() argument
53 : timer_(std::move(rhs.timer_)), histogram_(std::move(rhs.histogram_)) {} in LatencyEvent()

Completed in 45 milliseconds