Home
last modified time | relevance | path

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

1234567

/system/security/keystore/include/keystore/
Dkeystore_return_types.h72 inline bool operator==(const ResponseCode& rhs) const {
73 return (rhs == ResponseCode::NO_ERROR &&
75 errorCode_ == int32_t(rhs);
77 inline bool operator==(const ErrorCode& rhs) const {
78 return (rhs == ErrorCode::OK &&
80 errorCode_ == int32_t(rhs);
82 inline bool operator!=(const ResponseCode& rhs) const { return !(*this == rhs); }
83 inline bool operator!=(const ErrorCode& rhs) const { return !(*this == rhs); }
89 inline bool operator==(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) {
90 return rhs == lhs;
[all …]
Dkeystore_concurrency.h38 UnlockProxyLockHelper(UnlockProxyLockHelper&& rhs) in UnlockProxyLockHelper() argument
39 : unlock_(std::move(rhs.unlock_)), value_(rhs.value_) { in UnlockProxyLockHelper()
40 rhs.value_ = nullptr; in UnlockProxyLockHelper()
41 rhs.unlock_ = {}; in UnlockProxyLockHelper()
43 UnlockProxyLockHelper& operator=(UnlockProxyLockHelper&& rhs) {
44 if (this != &rhs) {
46 unlock_ = std::move(rhs.unlock_);
47 value_ = std::move(rhs.value_);
48 rhs.value_ = nullptr;
49 rhs.unlock_ = {};
[all …]
/system/bt/gd/packet/parser/test/
Dsix_bytes.h48 bool operator<(const SixBytes& rhs) const {
49 return (std::memcmp(six_bytes, rhs.six_bytes, sizeof(six_bytes)) < 0);
51 bool operator==(const SixBytes& rhs) const {
52 return (std::memcmp(six_bytes, rhs.six_bytes, sizeof(six_bytes)) == 0);
54 bool operator>(const SixBytes& rhs) const {
55 return (rhs < *this);
57 bool operator<=(const SixBytes& rhs) const {
58 return !(*this > rhs);
60 bool operator>=(const SixBytes& rhs) const {
61 return !(*this < rhs);
[all …]
/system/bt/gd/packet/parser/
Dsize.h86 Size operator+(int rhs) {
87 return Size(bits_ + rhs);
90 Size operator+(std::string rhs) {
94 ret.dynamic_.push_back(rhs);
98 Size operator+(const Size& rhs) {
99 auto ret = Size(bits_ + rhs.bits_);
100 ret.is_valid_ = is_valid_ && rhs.is_valid_;
102 ret.dynamic_.insert(ret.dynamic_.end(), rhs.dynamic_.begin(), rhs.dynamic_.end());
106 Size& operator+=(int rhs) {
108 bits_ += rhs;
[all …]
/system/extras/libfscrypt/include/fscrypt/
Dfscrypt.h64 inline bool operator==(const EncryptionOptions& lhs, const EncryptionOptions& rhs) {
65 return (lhs.version == rhs.version) && (lhs.contents_mode == rhs.contents_mode) &&
66 (lhs.filenames_mode == rhs.filenames_mode) && (lhs.flags == rhs.flags) &&
67 (lhs.use_hw_wrapped_key == rhs.use_hw_wrapped_key);
70 inline bool operator!=(const EncryptionOptions& lhs, const EncryptionOptions& rhs) {
71 return !(lhs == rhs);
74 inline bool operator==(const EncryptionPolicy& lhs, const EncryptionPolicy& rhs) {
75 return lhs.key_raw_ref == rhs.key_raw_ref && lhs.options == rhs.options;
78 inline bool operator!=(const EncryptionPolicy& lhs, const EncryptionPolicy& rhs) {
79 return !(lhs == rhs);
/system/bt/types/
Draw_address.h35 bool operator<(const RawAddress& rhs) const {
36 return (std::memcmp(address, rhs.address, sizeof(address)) < 0);
38 bool operator==(const RawAddress& rhs) const {
39 return (std::memcmp(address, rhs.address, sizeof(address)) == 0);
41 bool operator>(const RawAddress& rhs) const { return (rhs < *this); }
42 bool operator<=(const RawAddress& rhs) const { return !(*this > rhs); }
43 bool operator>=(const RawAddress& rhs) const { return !(*this < rhs); }
44 bool operator!=(const RawAddress& rhs) const { return !(*this == rhs); }
/system/bt/gd/hci/
Dclass_of_device.h55 bool operator<(const ClassOfDevice& rhs) const {
56 return cod < rhs.cod;
58 bool operator==(const ClassOfDevice& rhs) const {
59 return cod == rhs.cod;
61 bool operator>(const ClassOfDevice& rhs) const {
62 return (rhs < *this);
64 bool operator<=(const ClassOfDevice& rhs) const {
65 return !(*this > rhs);
67 bool operator>=(const ClassOfDevice& rhs) const {
68 return !(*this < rhs);
[all …]
Daddress_with_type.h75 bool operator<(const AddressWithType& rhs) const {
76 return address_ < rhs.address_ && address_type_ < rhs.address_type_;
78 bool operator==(const AddressWithType& rhs) const {
79 return address_ == rhs.address_ && address_type_ == rhs.address_type_;
81 bool operator>(const AddressWithType& rhs) const {
82 return (rhs < *this);
84 bool operator<=(const AddressWithType& rhs) const {
85 return !(*this > rhs);
87 bool operator>=(const AddressWithType& rhs) const {
88 return !(*this < rhs);
[all …]
Daddress.h57 bool operator<(const Address& rhs) const {
58 return address < rhs.address;
60 bool operator==(const Address& rhs) const {
61 return address == rhs.address;
63 bool operator>(const Address& rhs) const {
64 return (rhs < *this);
66 bool operator<=(const Address& rhs) const {
67 return !(*this > rhs);
69 bool operator>=(const Address& rhs) const {
70 return !(*this < rhs);
[all …]
/system/vold/
DKeyBuffer.cpp25 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs) { in operator +() argument
26 std::copy(rhs.begin(), rhs.end(), std::back_inserter(lhs)); in operator +()
30 KeyBuffer operator+(KeyBuffer&& lhs, const char* rhs) { in operator +() argument
31 std::copy(rhs, rhs + strlen(rhs), std::back_inserter(lhs)); in operator +()
/system/bt/gd/common/
Dbyte_array.h55 bool operator<(const ByteArray& rhs) const {
56 return bytes < rhs.bytes;
58 bool operator==(const ByteArray& rhs) const {
59 return bytes == rhs.bytes;
61 bool operator>(const ByteArray& rhs) const {
62 return (rhs < *this);
64 bool operator<=(const ByteArray& rhs) const {
65 return !(*this > rhs);
67 bool operator>=(const ByteArray& rhs) const {
68 return !(*this < rhs);
[all …]
/system/bt/service/common/bluetooth/
Dscan_settings.cc39 bool ScanSettings::operator==(const ScanSettings& rhs) const { in operator ==()
40 if (mode_ != rhs.mode_) return false; in operator ==()
42 if (callback_type_ != rhs.callback_type_) return false; in operator ==()
44 if (result_type_ != rhs.result_type_) return false; in operator ==()
46 if (report_delay_ms_ != rhs.report_delay_ms_) return false; in operator ==()
48 if (match_mode_ != rhs.match_mode_) return false; in operator ==()
50 if (match_count_per_filter_ != rhs.match_count_per_filter_) return false; in operator ==()
Dscan_filter.cc68 bool ScanFilter::operator==(const ScanFilter& rhs) const { in operator ==()
69 if (device_name_ != rhs.device_name_) return false; in operator ==()
71 if (device_address_ != rhs.device_address_) return false; in operator ==()
75 if (!!service_uuid_ != !!rhs.service_uuid_) return false; in operator ==()
77 if (service_uuid_ && rhs.service_uuid_ && in operator ==()
78 *service_uuid_ != *rhs.service_uuid_) in operator ==()
83 if (!!service_uuid_mask_ != !!rhs.service_uuid_mask_) return false; in operator ==()
85 if (service_uuid_mask_ && rhs.service_uuid_mask_ && in operator ==()
86 *service_uuid_mask_ != *rhs.service_uuid_mask_) in operator ==()
Dadvertise_settings.cc35 bool AdvertiseSettings::operator==(const AdvertiseSettings& rhs) const { in operator ==()
36 if (mode_ != rhs.mode_) return false; in operator ==()
38 if (timeout_ != rhs.timeout_) return false; in operator ==()
40 if (tx_power_level_ != rhs.tx_power_level_) return false; in operator ==()
42 if (connectable_ != rhs.connectable_) return false; in operator ==()
Dscan_result.cc31 bool ScanResult::operator==(const ScanResult& rhs) const { in operator ==()
32 if (device_address_ != rhs.device_address_) return false; in operator ==()
34 if (scan_record_ != rhs.scan_record_) return false; in operator ==()
36 if (rssi_ != rhs.rssi_) return false; in operator ==()
/system/libbase/include/android-base/
Dunique_fd.h115 bool operator>=(int rhs) const { return get() >= rhs; }
116 bool operator<(int rhs) const { return get() < rhs; }
117 bool operator==(int rhs) const { return get() == rhs; }
118 bool operator!=(int rhs) const { return get() != rhs; }
119 bool operator==(const unique_fd_impl& rhs) const { return get() == rhs.get(); }
120 bool operator!=(const unique_fd_impl& rhs) const { return get() != rhs.get(); }
270 bool operator>=(int rhs) const { return get() >= rhs; }
271 bool operator<(int rhs) const { return get() < rhs; }
272 bool operator==(int rhs) const { return get() == rhs; }
273 bool operator!=(int rhs) const { return get() != rhs; }
/system/security/keystore/
Dblob.h112 Blob(const Blob& rhs);
113 Blob(Blob&& rhs);
119 Blob& operator=(const Blob& rhs);
120 Blob& operator=(Blob&& rhs);
202 bool operator<(const KeyBlobEntry& rhs) const {
203 return std::tie(uid_, alias_, user_dir_) < std::tie(rhs.uid_, rhs.alias_, rhs.user_dir_);
205 bool operator==(const KeyBlobEntry& rhs) const {
206 return std::tie(uid_, alias_, user_dir_) == std::tie(rhs.uid_, rhs.alias_, rhs.user_dir_);
208 bool operator!=(const KeyBlobEntry& rhs) const { return !(*this == rhs); }
256 LockedKeyBlobEntry(LockedKeyBlobEntry&& rhs) : entry_(rhs.entry_) { rhs.entry_ = nullptr; } in LockedKeyBlobEntry() argument
[all …]
/system/netd/libnetdbpf/
DBpfNetworkStats.cpp309 bool operator==(const stats_line& lhs, const stats_line& rhs) { in operator ==() argument
310 return ((lhs.uid == rhs.uid) && (lhs.tag == rhs.tag) && (lhs.set == rhs.set) && in operator ==()
311 !strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface))); in operator ==()
315 bool operator<(const stats_line& lhs, const stats_line& rhs) { in operator <() argument
316 int ret = strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface)); in operator <()
318 if (lhs.uid < rhs.uid) return true; in operator <()
319 if (lhs.uid > rhs.uid) return false; in operator <()
320 if (lhs.tag < rhs.tag) return true; in operator <()
321 if (lhs.tag > rhs.tag) return false; in operator <()
322 if (lhs.set < rhs.set) return true; in operator <()
[all …]
/system/iorap/src/inode2filename/
Dinode.h33 bool operator==(const Inode& rhs) const {
34 return device_major == rhs.device_major &&
35 device_minor == rhs.device_minor &&
36 inode == rhs.inode;
39 bool operator!=(const Inode& rhs) const {
40 return !(*this == rhs);
/system/teeui/libteeui/include/teeui/
Dutf8range.h81 Iter(const Iter& rhs) : begin_(rhs.begin_) {} in Iter() argument
82 Iter& operator=(const Iter& rhs) {
83 begin_ = rhs.begin_;
96 bool operator==(const Iter& rhs) const { return begin_ == rhs.begin_; }
97 bool operator!=(const Iter& rhs) const { return !(*this == rhs); }
/system/tools/aidl/tests/
Dsimple_parcelable.h54 const SimpleParcelable& rhs) {
55 return (lhs.name_ == rhs.name_) && (lhs.number_ == rhs.number_);
58 const SimpleParcelable& rhs) {
59 return !(lhs == rhs);
/system/bt/gd/storage/
Dadapter_config.h50 bool operator>(const AdapterConfig& rhs) const {
51 return (rhs < *this);
53 bool operator<=(const AdapterConfig& rhs) const {
54 return !(*this > rhs);
56 bool operator>=(const AdapterConfig& rhs) const {
57 return !(*this < rhs);
/system/bt/gd/l2cap/
Dsignal_id.h38 friend bool operator==(const SignalId& lhs, const SignalId& rhs);
39 friend bool operator!=(const SignalId& lhs, const SignalId& rhs);
53 inline bool operator==(const SignalId& lhs, const SignalId& rhs) {
54 return lhs.value_ == rhs.value_;
57 inline bool operator!=(const SignalId& lhs, const SignalId& rhs) {
58 return !(lhs == rhs);
/system/iorap/tests/src/binder/
Dapp_launch_event_test.cc34 const ::google::protobuf::Message& rhs) { in ProtosEqual()
35 return ::google::protobuf::util::MessageDifferencer::Equals(lhs, rhs); in ProtosEqual()
39 const ::google::protobuf::MessageLite& rhs) { in ProtosEqual()
45 return lhs.GetTypeName() == rhs.GetTypeName() in ProtosEqual()
46 && lhs.SerializeAsString() == rhs.SerializeAsString(); in ProtosEqual()
62 inline bool operator==(const AppLaunchEvent& lhs, const AppLaunchEvent& rhs) { in operator ==() argument
66 EQ_OR_RETURN(lhs, rhs, type); in operator ==()
67 EQ_OR_RETURN(lhs, rhs, sequence_id); in operator ==()
68 PROTO_EQ_OR_RETURN(lhs, rhs, intent_proto); in operator ==()
69 EQ_OR_RETURN(lhs, rhs, temperature); in operator ==()
[all …]
/system/tools/hidl/c2hal/
DExpression.cpp54 Expression::Type Expression::coalesceTypes(Type lhs, Type rhs) { in coalesceTypes() argument
61 if (lhs == rhs) { in coalesceTypes()
66 if (SIGNED(lhs) == SIGNED(rhs)) { in coalesceTypes()
71 if (lhs == U32 || rhs == U32) { in coalesceTypes()
134 UnaryExpression(std::string op, Expression* rhs) in UnaryExpression()
135 : mOp(op), mRhs(rhs) in UnaryExpression()
156 BinaryExpression(Expression *lhs, std::string op, Expression* rhs) in BinaryExpression()
157 : mLhs(lhs), mOp(op), mRhs(rhs) in BinaryExpression()
180 TernaryExpression(Expression *lhs, Expression *mhs, Expression* rhs) in TernaryExpression()
181 : mLhs(lhs), mMhs(mhs), mRhs(rhs) in TernaryExpression()
[all …]

1234567