Home
last modified time | relevance | path

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

123

/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 +()
DKeyBuffer.h54 KeyBuffer operator+(KeyBuffer&& lhs, const KeyBuffer& rhs);
55 KeyBuffer operator+(KeyBuffer&& lhs, const char* rhs);
/system/security/keystore/include/keystore/
Dkeystore_return_types.h91 inline bool operator==(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) {
92 return rhs == lhs;
94 inline bool operator==(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
95 return rhs == lhs;
97 inline bool operator!=(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) {
98 return rhs != lhs;
100 inline bool operator!=(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
101 return rhs != lhs;
169 inline bool operator==(const ResponseCode& lhs, const KeyStoreNativeReturnCode& rhs) {
170 return rhs == lhs;
[all …]
/system/media/audio/include/system/
Daudio.h1246 const struct audio_gain_config *lhs, const struct audio_gain_config *rhs) { in audio_gain_config_are_equal() argument
1247 if (lhs->mode != rhs->mode) return false; in audio_gain_config_are_equal()
1248 switch (lhs->mode) { in audio_gain_config_are_equal()
1250 if (lhs->values[0] != rhs->values[0]) return false; in audio_gain_config_are_equal()
1254 if (lhs->channel_mask != rhs->channel_mask) return false; in audio_gain_config_are_equal()
1255 for (int i = 0; i < popcount(lhs->channel_mask); ++i) { in audio_gain_config_are_equal()
1256 if (lhs->values[i] != rhs->values[i]) return false; in audio_gain_config_are_equal()
1261 return lhs->ramp_duration_ms == rhs->ramp_duration_ms; in audio_gain_config_are_equal()
1283 const struct audio_port_config *lhs, const struct audio_port_config *rhs) { in audio_port_configs_are_equal() argument
1284 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/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/core/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.cpp38 bool Position::inSameFile(const Position& lhs, const Position& rhs) { in inSameFile() argument
39 return lhs.mFilename == rhs.mFilename; in inSameFile()
84 bool Location::inSameFile(const Location& lhs, const Location& rhs) { in inSameFile() argument
85 return Position::inSameFile(lhs.mBegin, rhs.mBegin); in inSameFile()
88 bool Location::intersect(const Location& lhs, const Location& rhs) { in intersect() argument
89 if (!inSameFile(lhs, rhs)) return false; in intersect()
90 return !(lhs.mEnd < rhs.mBegin || rhs.mEnd < lhs.mBegin); in intersect()
DLocation.h36 static bool inSameFile(const Position& lhs, const Position& rhs);
64 static bool inSameFile(const Location& lhs, const Location& rhs);
65 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/bpf/libbpf_android/
DBpfUtils.cpp60 bool operator==(const StatsKey& lhs, const StatsKey& rhs) { in operator ==() argument
61 return ((lhs.uid == rhs.uid) && (lhs.tag == rhs.tag) && (lhs.counterSet == rhs.counterSet) && in operator ==()
62 (lhs.ifaceIndex == rhs.ifaceIndex)); in operator ==()
65 bool operator==(const UidTag& lhs, const UidTag& rhs) { in operator ==() argument
66 return ((lhs.uid == rhs.uid) && (lhs.tag == rhs.tag)); in operator ==()
69 bool operator==(const StatsValue& lhs, const StatsValue& rhs) { in operator ==() argument
70 return ((lhs.rxBytes == rhs.rxBytes) && (lhs.txBytes == rhs.txBytes) && in operator ==()
71 (lhs.rxPackets == rhs.rxPackets) && (lhs.txPackets == rhs.txPackets)); in operator ==()
/system/netd/libnetdbpf/
DBpfNetworkStats.cpp305 bool operator==(const stats_line& lhs, const stats_line& rhs) { in operator ==() argument
306 return ((lhs.uid == rhs.uid) && (lhs.tag == rhs.tag) && (lhs.set == rhs.set) && in operator ==()
307 !strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface))); in operator ==()
311 bool operator<(const stats_line& lhs, const stats_line& rhs) { in operator <() argument
312 int ret = strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface)); in operator <()
314 if (lhs.uid < rhs.uid) return true; in operator <()
315 if (lhs.uid > rhs.uid) return false; in operator <()
316 if (lhs.tag < rhs.tag) return true; in operator <()
317 if (lhs.tag > rhs.tag) return false; in operator <()
318 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/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.cpp281 static bool CompareFlags(FstabEntry::FsMgrFlags& lhs, FstabEntry::FsMgrFlags& rhs) { in CompareFlags() argument
283 return lhs.wait == rhs.wait && in CompareFlags()
284 lhs.check == rhs.check && in CompareFlags()
285 lhs.crypt == rhs.crypt && in CompareFlags()
286 lhs.nonremovable == rhs.nonremovable && in CompareFlags()
287 lhs.vold_managed == rhs.vold_managed && in CompareFlags()
288 lhs.recovery_only == rhs.recovery_only && in CompareFlags()
289 lhs.verify == rhs.verify && in CompareFlags()
290 lhs.force_crypt == rhs.force_crypt && in CompareFlags()
291 lhs.no_emulated_sd == rhs.no_emulated_sd && in CompareFlags()
[all …]
/system/core/base/
Dstrings.cpp115 bool EqualsIgnoreCase(std::string_view lhs, std::string_view rhs) { in EqualsIgnoreCase() argument
116 return lhs.size() == rhs.size() && strncasecmp(lhs.data(), rhs.data(), lhs.size()) == 0; in EqualsIgnoreCase()
/system/bt/service/common/android/bluetooth/
Duuid.h59 inline bool operator==(const ::bluetooth::Uuid& lhs,
61 return lhs == rhs.uuid;
/system/netd/server/
DUidRanges.cpp35 bool compUidRangeParcel(const UidRangeParcel& lhs, const UidRangeParcel& rhs) { in compUidRangeParcel() argument
36 return lhs.start != rhs.start ? (lhs.start < rhs.start) : (lhs.stop < rhs.stop); in compUidRangeParcel()

123