Home
last modified time | relevance | path

Searched refs:lhs (Results 1 – 25 of 68) sorted by relevance

123

/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/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 +()
27 return std::move(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 +()
32 return std::move(lhs); in operator +()
/system/security/keystore/include/keystore/
Dkeystore_return_types.h89 inline bool operator==(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) {
90 return rhs == lhs;
92 inline bool operator==(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
93 return rhs == lhs;
95 inline bool operator!=(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) {
96 return rhs != lhs;
98 inline bool operator!=(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
99 return rhs != lhs;
167 inline bool operator==(const ResponseCode& lhs, const KeyStoreNativeReturnCode& rhs) {
168 return rhs == lhs;
[all …]
/system/media/audio/include/system/
Daudio.h1302 const struct audio_gain_config *lhs, const struct audio_gain_config *rhs) { in audio_gain_config_are_equal() argument
1303 if (lhs->mode != rhs->mode) return false; in audio_gain_config_are_equal()
1304 switch (lhs->mode) { in audio_gain_config_are_equal()
1306 if (lhs->values[0] != rhs->values[0]) return false; in audio_gain_config_are_equal()
1310 if (lhs->channel_mask != rhs->channel_mask) return false; in audio_gain_config_are_equal()
1311 for (int i = 0; i < __builtin_popcount(lhs->channel_mask); ++i) { in audio_gain_config_are_equal()
1312 if (lhs->values[i] != rhs->values[i]) return false; in audio_gain_config_are_equal()
1317 return lhs->ramp_duration_ms == rhs->ramp_duration_ms; in audio_gain_config_are_equal()
1339 const struct audio_port_config *lhs, const struct audio_port_config *rhs) { in audio_port_configs_are_equal() argument
1340 if (lhs->role != rhs->role || lhs->type != rhs->type) return false; in audio_port_configs_are_equal()
[all …]
/system/tools/aidl/tests/
Dsimple_parcelable.h53 friend bool operator==(const SimpleParcelable& lhs,
55 return (lhs.name_ == rhs.name_) && (lhs.number_ == rhs.number_);
57 friend bool operator!=(const SimpleParcelable& lhs,
59 return !(lhs == 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.cc33 inline bool ProtosEqual(const ::google::protobuf::Message& lhs, in ProtosEqual() argument
35 return ::google::protobuf::util::MessageDifferencer::Equals(lhs, rhs); in ProtosEqual()
38 inline bool ProtosEqual(const ::google::protobuf::MessageLite& lhs, in ProtosEqual() argument
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/memory/libmemunreachable/
DLeak.h54 static bool operator==(const Leak::Backtrace& lhs, const Leak::Backtrace& rhs) {
55 return (lhs.num_frames == rhs.num_frames) &&
56 memcmp(lhs.frames, rhs.frames, lhs.num_frames * sizeof(lhs.frames[0])) == 0;
/system/chre/apps/wifi_offload/test/
Doffloadtypes_test.cc30 TestType lhs; in EqualOperatorReturnsTrueForEqualValues() local
31 init(lhs, random_gen_); in EqualOperatorReturnsTrueForEqualValues()
37 EXPECT_EQ(lhs, rhs); in EqualOperatorReturnsTrueForEqualValues()
41 TestType lhs, rhs; in EqualOperatorReturnsFalseForDifferentValues() local
42 init(lhs, random_gen_); in EqualOperatorReturnsFalseForDifferentValues()
45 ASSERT_FALSE(lhs == rhs); in EqualOperatorReturnsFalseForDifferentValues()
/system/netd/libnetdutils/include/netdutils/
DStatusOr.h91 #define ASSIGN_OR_RETURN_IMPL(tmp, lhs, stmt) \ argument
94 lhs = std::move(tmp.value());
96 #define ASSIGN_OR_RETURN_CONCAT(line, lhs, stmt) \ argument
97 ASSIGN_OR_RETURN_IMPL(__CONCAT(_status_or_, line), lhs, stmt)
114 #define ASSIGN_OR_RETURN(lhs, stmt) ASSIGN_OR_RETURN_CONCAT(__LINE__, lhs, stmt) argument
DSlice.h140 inline bool operator==(const Slice& lhs, const Slice& rhs) {
141 return (lhs.base() == rhs.base()) && (lhs.limit() == rhs.limit());
144 inline bool operator!=(const Slice& lhs, const Slice& rhs) {
145 return !(lhs == rhs);
DNetlink.h48 bool operator==(const sockaddr_nl& lhs, const sockaddr_nl& rhs);
49 bool operator!=(const sockaddr_nl& lhs, const sockaddr_nl& rhs);
/system/tools/hidl/
DLocation.cpp39 bool Position::inSameFile(const Position& lhs, const Position& rhs) { in inSameFile() argument
40 return lhs.mFilename == rhs.mFilename; in inSameFile()
81 bool Location::inSameFile(const Location& lhs, const Location& rhs) { in inSameFile() argument
82 return Position::inSameFile(lhs.mBegin, rhs.mBegin); in inSameFile()
85 bool Location::intersect(const Location& lhs, const Location& rhs) { in intersect() argument
86 if (!inSameFile(lhs, rhs)) return false; in intersect()
87 return !(lhs.mEnd < rhs.mBegin || rhs.mEnd < lhs.mBegin); in intersect()
DLocation.h41 static bool inSameFile(const Position& lhs, const Position& rhs);
68 static bool inSameFile(const Location& lhs, const Location& rhs);
69 static bool intersect(const Location& lhs, const Location& rhs);
/system/tools/hidl/c2hal/
DExpression.cpp54 Expression::Type Expression::coalesceTypes(Type lhs, Type rhs) { in coalesceTypes() argument
61 if (lhs == rhs) { in coalesceTypes()
62 return lhs; in coalesceTypes()
66 if (SIGNED(lhs) == SIGNED(rhs)) { in coalesceTypes()
67 return (Type)MAX_RANK(lhs); in coalesceTypes()
71 if (lhs == U32 || rhs == U32) { in coalesceTypes()
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 …]
DExpression.h67 static Type coalesceTypes(Type lhs, Type rhs);
72 static Expression *binary(Expression *lhs, std::string op, Expression *rhs);
73 static Expression *ternary(Expression *lhs, Expression *mhs, Expression *rhs);
/system/netd/libnetdutils/
DNetlink.cpp53 bool operator==(const sockaddr_nl& lhs, const sockaddr_nl& rhs) { in operator ==() argument
54 return (lhs.nl_family == rhs.nl_family) && (lhs.nl_pid == rhs.nl_pid) && in operator ==()
55 (lhs.nl_groups == rhs.nl_groups); in operator ==()
58 bool operator!=(const sockaddr_nl& lhs, const sockaddr_nl& rhs) { in operator !=() argument
59 return !(lhs == rhs); in operator !=()
/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/core/property_service/libpropertyinfoserializer/
Dtrie_serializer.cpp68 [](const auto& lhs, const auto& rhs) { return lhs.name.size() > rhs.name.size(); }); in WriteTrieNode() argument
84 [](const auto& lhs, const auto& rhs) { return lhs.name < rhs.name; }); in WriteTrieNode() argument
100 [](const auto& lhs, const auto& rhs) { return lhs.name() < rhs.name(); }); in WriteTrieNode() argument
/system/iorap/src/common/
Dmacros.h35 #define IORAP_PP_CONCAT(lhs, rhs) \ argument
36 IORAP_PP_CONCAT_IMPL(lhs, rhs)
38 #define IORAP_PP_CONCAT_IMPL(lhs, rhs) \ argument
39 lhs ## rhs
/system/tools/hidl/hidl2aidl/
Dmain.cpp54 static const FQName& getNewerFQName(const FQName& lhs, const FQName& rhs) { in getNewerFQName() argument
55 CHECK(lhs.package() == rhs.package()); in getNewerFQName()
56 CHECK(lhs.name() == rhs.name()); in getNewerFQName()
58 if (lhs.getPackageMajorVersion() > rhs.getPackageMajorVersion()) return lhs; in getNewerFQName()
59 if (lhs.getPackageMajorVersion() < rhs.getPackageMajorVersion()) return rhs; in getNewerFQName()
61 if (lhs.getPackageMinorVersion() > rhs.getPackageMinorVersion()) return lhs; in getNewerFQName()
/system/extras/tests/icachetest/
DProfiler.h92 friend Counters operator-(Counters lhs, const Counters& rhs) noexcept {
93 lhs.nr -= rhs.nr;
94 lhs.time_enabled -= rhs.time_enabled;
95 lhs.time_running -= rhs.time_running;
97 lhs.counters[i].value -= rhs.counters[i].value;
99 return lhs;
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp283 static bool CompareFlags(FstabEntry::FsMgrFlags& lhs, FstabEntry::FsMgrFlags& rhs) { in CompareFlags() argument
285 return lhs.wait == rhs.wait && in CompareFlags()
286 lhs.check == rhs.check && in CompareFlags()
287 lhs.crypt == rhs.crypt && in CompareFlags()
288 lhs.nonremovable == rhs.nonremovable && in CompareFlags()
289 lhs.vold_managed == rhs.vold_managed && in CompareFlags()
290 lhs.recovery_only == rhs.recovery_only && in CompareFlags()
291 lhs.verify == rhs.verify && in CompareFlags()
292 lhs.force_crypt == rhs.force_crypt && in CompareFlags()
293 lhs.no_emulated_sd == rhs.no_emulated_sd && in CompareFlags()
[all …]
/system/bt/service/common/android/bluetooth/
Duuid.h59 inline bool operator==(const ::bluetooth::Uuid& lhs,
61 return lhs == rhs.uuid;
/system/libbase/include/android-base/
Dresult.h106 inline bool operator==(const ResultError& lhs, const ResultError& rhs) {
107 return lhs.message() == rhs.message() && lhs.code() == rhs.code();
110 inline bool operator!=(const ResultError& lhs, const ResultError& rhs) {
111 return !(lhs == rhs);

123