Home
last modified time | relevance | path

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

12345678

/packages/services/Car/cpp/watchdog/server/src/
DProcDiskStatsCollector.cpp154 DiskStats& DiskStats::operator-=(const DiskStats& rhs) { in operator -=() argument
159 numReadsCompleted = diff(numReadsCompleted, rhs.numReadsCompleted); in operator -=()
160 numReadsMerged = diff(numReadsMerged, rhs.numReadsMerged); in operator -=()
161 numKibRead = diff(numKibRead, rhs.numKibRead); in operator -=()
162 readTimeInMs = diff(readTimeInMs, rhs.readTimeInMs); in operator -=()
163 numWritesCompleted = diff(numWritesCompleted, rhs.numWritesCompleted); in operator -=()
164 numWritesMerged = diff(numWritesMerged, rhs.numWritesMerged); in operator -=()
165 numKibWritten = diff(numKibWritten, rhs.numKibWritten); in operator -=()
166 writeTimeInMs = diff(writeTimeInMs, rhs.writeTimeInMs); in operator -=()
167 totalIoTimeInMs = diff(totalIoTimeInMs, rhs.totalIoTimeInMs); in operator -=()
[all …]
DProcStatCollector.h44 CpuStats& operator-=(const CpuStats& rhs) {
45 userTimeMillis -= rhs.userTimeMillis;
46 niceTimeMillis -= rhs.niceTimeMillis;
47 sysTimeMillis -= rhs.sysTimeMillis;
48 idleTimeMillis -= rhs.idleTimeMillis;
49 ioWaitTimeMillis -= rhs.ioWaitTimeMillis;
50 irqTimeMillis -= rhs.irqTimeMillis;
51 softIrqTimeMillis -= rhs.softIrqTimeMillis;
52 stealTimeMillis -= rhs.stealTimeMillis;
53 guestTimeMillis -= rhs.guestTimeMillis;
[all …]
DUidIoStatsCollector.cpp65 UidIoStats& UidIoStats::operator-=(const UidIoStats& rhs) { in operator -=() argument
66 const auto diff = [](int64_t lhs, int64_t rhs) -> int64_t { return lhs > rhs ? lhs - rhs : 0; }; in operator -=() argument
68 diff(metrics[READ_BYTES][FOREGROUND], rhs.metrics[READ_BYTES][FOREGROUND]); in operator -=()
70 diff(metrics[READ_BYTES][BACKGROUND], rhs.metrics[READ_BYTES][BACKGROUND]); in operator -=()
72 diff(metrics[WRITE_BYTES][FOREGROUND], rhs.metrics[WRITE_BYTES][FOREGROUND]); in operator -=()
74 diff(metrics[WRITE_BYTES][BACKGROUND], rhs.metrics[WRITE_BYTES][BACKGROUND]); in operator -=()
76 diff(metrics[FSYNC_COUNT][FOREGROUND], rhs.metrics[FSYNC_COUNT][FOREGROUND]); in operator -=()
78 diff(metrics[FSYNC_COUNT][BACKGROUND], rhs.metrics[FSYNC_COUNT][BACKGROUND]); in operator -=()
/packages/modules/Bluetooth/system/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 …]
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DVector3.java89 public Vector3 add(@NonNull Vector3 rhs) { in add() argument
90 return new Vector3(x + rhs.x, y + rhs.y, z + rhs.z); in add()
99 public Vector3 subtract(@NonNull Vector3 rhs) { in subtract() argument
100 return new Vector3(x - rhs.x, y - rhs.y, z - rhs.z); in subtract()
107 public Vector3 multiply(@NonNull Vector3 rhs) { in multiply() argument
108 return new Vector3(x * rhs.x, y * rhs.y, z * rhs.z); in multiply()
112 public static float dot(@NonNull Vector3 lhs, @NonNull Vector3 rhs) { in dot() argument
113 return lhs.x * rhs.x + lhs.y * rhs.y + lhs.z * rhs.z; in dot()
118 public static Vector3 cross(@NonNull Vector3 lhs, @NonNull Vector3 rhs) { in cross() argument
122 float rhsX = rhs.x; in cross()
[all …]
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DBpfNetworkStats.cpp262 bool operator==(const stats_line& lhs, const stats_line& rhs) { in operator ==() argument
263 return ((lhs.uid == rhs.uid) && (lhs.tag == rhs.tag) && (lhs.set == rhs.set) && in operator ==()
264 !strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface))); in operator ==()
268 bool operator<(const stats_line& lhs, const stats_line& rhs) { in operator <() argument
269 int ret = strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface)); in operator <()
271 if (lhs.uid < rhs.uid) return true; in operator <()
272 if (lhs.uid > rhs.uid) return false; in operator <()
273 if (lhs.tag < rhs.tag) return true; in operator <()
274 if (lhs.tag > rhs.tag) return false; in operator <()
275 if (lhs.set < rhs.set) return true; in operator <()
[all …]
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomVariable.cpp55 RandomVariableBase::RandomVariableBase(const RandomVariableNode& lhs, const RandomVariableNode& rhs, in RandomVariableBase() argument
59 range(op->getInitRange(lhs->range, rhs == nullptr ? RandomVariableRange(0) : rhs->range)), in RandomVariableBase()
62 parent2(rhs), in RandomVariableBase()
82 RandomVariableRange operator&(const RandomVariableRange& lhs, const RandomVariableRange& rhs) { in operator &() argument
83 std::vector<int> result(lhs.size() + rhs.size()); in operator &()
84 auto it = std::set_intersection(lhs.mChoices.begin(), lhs.mChoices.end(), rhs.mChoices.begin(), in operator &()
85 rhs.mChoices.end(), result.begin()); in operator &()
132 RandomVariable::RandomVariable(const RandomVariable& lhs, const RandomVariable& rhs, in RandomVariable() argument
134 : mVar(new RandomVariableBase(lhs.get(), rhs.get(), op)) { in RandomVariable()
158 const RandomVariableRange& rhs) const { in getInitRange()
[all …]
DRandomVariable.h66 const RandomVariableRange& rhs);
78 virtual int eval(int lhs, int rhs) const = 0;
82 const RandomVariableRange& rhs) const;
115 const std::shared_ptr<RandomVariableBase>& rhs,
168 friend RandomVariable operator+(const RandomVariable& lhs, const RandomVariable& rhs);
169 friend RandomVariable operator-(const RandomVariable& lhs, const RandomVariable& rhs);
170 friend RandomVariable operator*(const RandomVariable& lhs, const RandomVariable& rhs);
171 friend RandomVariable operator*(const RandomVariable& lhs, const float& rhs);
172 friend RandomVariable operator/(const RandomVariable& lhs, const RandomVariable& rhs);
173 friend RandomVariable operator%(const RandomVariable& lhs, const RandomVariable& rhs);
[all …]
/packages/modules/Bluetooth/system/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 …]
/packages/modules/Bluetooth/tools/rootcanal/include/hci/
Daddress_with_type.h73 bool operator<(const AddressWithType& rhs) const {
74 return (address_ != rhs.address_) ? address_ < rhs.address_
75 : address_type_ < rhs.address_type_;
77 bool operator==(const AddressWithType& rhs) const {
78 return address_ == rhs.address_ && address_type_ == rhs.address_type_;
80 bool operator>(const AddressWithType& rhs) const { return (rhs < *this); }
81 bool operator<=(const AddressWithType& rhs) const { return !(*this > rhs); }
82 bool operator>=(const AddressWithType& rhs) const { return !(*this < rhs); }
83 bool operator!=(const AddressWithType& rhs) const { return !(*this == rhs); }
Dclass_of_device.h48 bool operator<(const ClassOfDevice& rhs) const { return cod < rhs.cod; }
49 bool operator==(const ClassOfDevice& rhs) const { return cod == rhs.cod; }
50 bool operator>(const ClassOfDevice& rhs) const { return (rhs < *this); }
51 bool operator<=(const ClassOfDevice& rhs) const { return !(*this > rhs); }
52 bool operator>=(const ClassOfDevice& rhs) const { return !(*this < rhs); }
53 bool operator!=(const ClassOfDevice& rhs) const { return !(*this == rhs); }
Daddress.h56 bool operator<(const Address& rhs) const { return address < rhs.address; }
57 bool operator==(const Address& rhs) const { return address == rhs.address; }
58 bool operator>(const Address& rhs) const { return (rhs < *this); }
59 bool operator<=(const Address& rhs) const { return !(*this > rhs); }
60 bool operator>=(const Address& rhs) const { return !(*this < rhs); }
61 bool operator!=(const Address& rhs) const { return !(*this == rhs); }
/packages/modules/Bluetooth/system/gd/hci/
Daddress_with_type.h76 bool operator<(const AddressWithType& rhs) const {
77 return (address_ != rhs.address_) ? address_ < rhs.address_ : address_type_ < rhs.address_type_;
79 bool operator==(const AddressWithType& rhs) const {
80 return address_ == rhs.address_ && address_type_ == rhs.address_type_;
82 bool operator>(const AddressWithType& rhs) const {
83 return (rhs < *this);
85 bool operator<=(const AddressWithType& rhs) const {
86 return !(*this > rhs);
88 bool operator>=(const AddressWithType& rhs) const {
89 return !(*this < rhs);
[all …]
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.h69 bool operator<(const Address& rhs) const {
70 return address < rhs.address;
72 bool operator==(const Address& rhs) const {
73 return address == rhs.address;
75 bool operator>(const Address& rhs) const {
76 return (rhs < *this);
78 bool operator<=(const Address& rhs) const {
79 return !(*this > rhs);
81 bool operator>=(const Address& rhs) const {
82 return !(*this < rhs);
[all …]
/packages/modules/Bluetooth/system/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 …]
/packages/modules/Bluetooth/system/types/
Draw_address.h36 bool operator<(const RawAddress& rhs) const {
37 return (std::memcmp(address, rhs.address, sizeof(address)) < 0);
39 bool operator==(const RawAddress& rhs) const {
40 return (std::memcmp(address, rhs.address, sizeof(address)) == 0);
42 bool operator>(const RawAddress& rhs) const { return (rhs < *this); }
43 bool operator<=(const RawAddress& rhs) const { return !(*this > rhs); }
44 bool operator>=(const RawAddress& rhs) const { return !(*this < rhs); }
45 bool operator!=(const RawAddress& rhs) const { return !(*this == rhs); }
/packages/modules/Connectivity/framework-t/src/android/net/
DIpSecConfig.java340 final IpSecConfig rhs = (IpSecConfig) other; in equals()
341 return (mMode == rhs.mMode in equals()
342 && mSourceAddress.equals(rhs.mSourceAddress) in equals()
343 && mDestinationAddress.equals(rhs.mDestinationAddress) in equals()
344 && ((mNetwork != null && mNetwork.equals(rhs.mNetwork)) in equals()
345 || (mNetwork == rhs.mNetwork)) in equals()
346 && mEncapType == rhs.mEncapType in equals()
347 && mEncapSocketResourceId == rhs.mEncapSocketResourceId in equals()
348 && mEncapRemotePort == rhs.mEncapRemotePort in equals()
349 && mNattKeepaliveInterval == rhs.mNattKeepaliveInterval in equals()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java106 (Object lhs, Object rhs) -> {
110 if (rhs instanceof SeriesRecording) {
111 rhs = mSeriesId2LatestProgram.get(((SeriesRecording) rhs).getSeriesId());
114 if (rhs instanceof RecordedProgram) {
117 .compare((RecordedProgram) lhs, (RecordedProgram) rhs);
121 } else if (rhs instanceof RecordedProgram) {
129 (Object lhs, Object rhs) -> {
131 if (rhs instanceof ScheduledRecording) {
133 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs);
137 } else if (rhs instanceof ScheduledRecording) {
[all …]
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/
DFuzzyPhoneNumberMatcher.java31 public static boolean matches(@NonNull String lhs, @NonNull String rhs) { in matches() argument
32 return lastSevenDigitsCharacterByCharacterMatches(lhs, rhs); in matches()
40 @NonNull String lhs, @NonNull String rhs) { in lastSevenDigitsCharacterByCharacterMatches() argument
42 int rhsIndex = rhs.length() - 1; in lastSevenDigitsCharacterByCharacterMatches()
51 if (!Character.isDigit(rhs.charAt(rhsIndex))) { in lastSevenDigitsCharacterByCharacterMatches()
55 if (lhs.charAt(lhsIndex) != rhs.charAt(rhsIndex)) { in lastSevenDigitsCharacterByCharacterMatches()
/packages/services/Car/cpp/evs/manager/1.1/stats/
DCameraUsageStats.h71 CameraUsageStatsRecord& operator-=(const CameraUsageStatsRecord& rhs) {
73 framesReceived = framesReceived - rhs.framesReceived;
74 framesReturned = framesReturned - rhs.framesReturned;
75 framesIgnored = framesIgnored - rhs.framesIgnored;
76 framesSkippedToSync = framesSkippedToSync - rhs.framesSkippedToSync;
77 erroneousEventsCount = erroneousEventsCount - rhs.erroneousEventsCount;
83 const CameraUsageStatsRecord& rhs) noexcept {
84 lhs -= rhs; // reuse compound assignment
/packages/services/Car/cpp/evs/manager/aidl/stats/include/
DCameraUsageStats.h67 CameraUsageStatsRecord& operator-=(const CameraUsageStatsRecord& rhs) {
69 framesReceived = framesReceived - rhs.framesReceived;
70 framesReturned = framesReturned - rhs.framesReturned;
71 framesIgnored = framesIgnored - rhs.framesIgnored;
72 framesSkippedToSync = framesSkippedToSync - rhs.framesSkippedToSync;
73 erroneousEventsCount = erroneousEventsCount - rhs.erroneousEventsCount;
79 const CameraUsageStatsRecord& rhs) noexcept {
80 lhs -= rhs; // reuse compound assignment
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDevice.java155 HdHomeRunDevice rhs = (HdHomeRunDevice) o; in equals() local
156 return rhs != null in equals()
157 && getIpAddress() == rhs.getIpAddress() in equals()
158 && getDeviceType() == rhs.getDeviceType() in equals()
159 && getDeviceId() == rhs.getDeviceId() in equals()
160 && getTunerIndex() == rhs.getTunerIndex() in equals()
161 && TextUtils.equals(getDeviceModel(), rhs.getDeviceModel()); in equals()
/packages/modules/Bluetooth/system/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);
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/contextrules/
DPolicyContextRule.kt49 class And(private val lhs: PolicyContextRule, private val rhs: PolicyContextRule) : in and() constant in com.android.libraries.pcc.chronicle.api.policy.contextrules.And
52 override val operands: List<PolicyContextRule> = listOf(lhs, rhs) in and()
53 override fun invoke(context: TypedMap): Boolean = lhs(context) && rhs(context) in and()
60 class Or(private val lhs: PolicyContextRule, private val rhs: PolicyContextRule) : in or() constant in com.android.libraries.pcc.chronicle.api.policy.contextrules.Or
63 override val operands: List<PolicyContextRule> = listOf(lhs, rhs) in or()
64 override fun invoke(context: TypedMap): Boolean = lhs(context) || rhs(context) in or()

12345678