| /packages/modules/Bluetooth/system/audio_hal_interface/ |
| D | hal_version_manager.h | 66 inline bool operator!=(const BluetoothAudioHalVersion& rhs) const { 67 return std::tie(mTransport, mMajor, mMinor) != std::tie(rhs.mTransport, rhs.mMajor, rhs.mMinor); 69 inline bool operator<(const BluetoothAudioHalVersion& rhs) const { 70 return std::tie(mTransport, mMajor, mMinor) < std::tie(rhs.mTransport, rhs.mMajor, rhs.mMinor); 72 inline bool operator<=(const BluetoothAudioHalVersion& rhs) const { 73 return std::tie(mTransport, mMajor, mMinor) <= std::tie(rhs.mTransport, rhs.mMajor, rhs.mMinor); 75 inline bool operator==(const BluetoothAudioHalVersion& rhs) const { 76 return std::tie(mTransport, mMajor, mMinor) == std::tie(rhs.mTransport, rhs.mMajor, rhs.mMinor); 78 inline bool operator>(const BluetoothAudioHalVersion& rhs) const { 79 return std::tie(mTransport, mMajor, mMinor) > std::tie(rhs.mTransport, rhs.mMajor, rhs.mMinor); [all …]
|
| /packages/services/Car/cpp/watchdog/server/src/ |
| D | ProcDiskStatsCollector.cpp | 154 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 readTimeInMillis = diff(readTimeInMillis, rhs.readTimeInMillis); 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 writeTimeInMillis = diff(writeTimeInMillis, rhs.writeTimeInMillis); in operator -=() 167 totalIoTimeInMillis = diff(totalIoTimeInMillis, rhs.totalIoTimeInMillis); in operator -=() [all …]
|
| D | ProcStatCollector.h | 43 CpuStats& operator-=(const CpuStats& rhs) { 44 userTimeMillis -= rhs.userTimeMillis; 45 niceTimeMillis -= rhs.niceTimeMillis; 46 sysTimeMillis -= rhs.sysTimeMillis; 47 idleTimeMillis -= rhs.idleTimeMillis; 48 ioWaitTimeMillis -= rhs.ioWaitTimeMillis; 49 irqTimeMillis -= rhs.irqTimeMillis; 50 softIrqTimeMillis -= rhs.softIrqTimeMillis; 51 stealTimeMillis -= rhs.stealTimeMillis; 52 guestTimeMillis -= rhs.guestTimeMillis; [all …]
|
| /packages/services/Car/cpp/watchdog/stable_server/src/ |
| D | ProcDiskStatsCollector.cpp | 154 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 readTimeInMillis = diff(readTimeInMillis, rhs.readTimeInMillis); 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 writeTimeInMillis = diff(writeTimeInMillis, rhs.writeTimeInMillis); in operator -=() 167 totalIoTimeInMillis = diff(totalIoTimeInMillis, rhs.totalIoTimeInMillis); in operator -=() [all …]
|
| D | ProcStatCollector.h | 43 CpuStats& operator-=(const CpuStats& rhs) { 44 userTimeMillis -= rhs.userTimeMillis; 45 niceTimeMillis -= rhs.niceTimeMillis; 46 sysTimeMillis -= rhs.sysTimeMillis; 47 idleTimeMillis -= rhs.idleTimeMillis; 48 ioWaitTimeMillis -= rhs.ioWaitTimeMillis; 49 irqTimeMillis -= rhs.irqTimeMillis; 50 softIrqTimeMillis -= rhs.softIrqTimeMillis; 51 stealTimeMillis -= rhs.stealTimeMillis; 52 guestTimeMillis -= rhs.guestTimeMillis; [all …]
|
| /packages/modules/Bluetooth/system/gd/packet/parser/ |
| D | size.h | 79 Size operator+(int rhs) { return Size(bits_ + rhs); } 81 Size operator+(std::string rhs) { 85 ret.dynamic_.push_back(rhs); 89 Size operator+(const Size& rhs) { 90 auto ret = Size(bits_ + rhs.bits_); 91 ret.is_valid_ = is_valid_ && rhs.is_valid_; 93 ret.dynamic_.insert(ret.dynamic_.end(), rhs.dynamic_.begin(), rhs.dynamic_.end()); 97 Size& operator+=(int rhs) { 99 bits_ += rhs; 103 Size& operator+=(std::string rhs) { [all …]
|
| /packages/modules/StatsD/statsd/src/metrics/ |
| D | NumericValue.cpp | 50 void operator()(V& lhs, const V& rhs) const { in operator ()() 51 lhs = mOp(lhs, rhs); in operator ()() 176 NumericValue& NumericValue::operator+=(const NumericValue& rhs) { in operator +=() argument 177 std::visit(add, mData, rhs.mData); in operator +=() 181 NumericValue operator+(NumericValue lhs, const NumericValue& rhs) { in operator +() argument 182 lhs += rhs; in operator +() 186 NumericValue& NumericValue::operator-=(const NumericValue& rhs) { in operator -=() argument 187 std::visit(subtract, mData, rhs.mData); in operator -=() 191 NumericValue operator-(NumericValue lhs, const NumericValue& rhs) { in operator -() argument 192 lhs -= rhs; in operator -() [all …]
|
| D | HistogramValue.cpp | 113 HistogramValue& HistogramValue::operator+=(const HistogramValue& rhs) { in operator +=() argument 114 if (mBinCounts.size() < rhs.mBinCounts.size()) { in operator +=() 119 for (size_t i = 0; i < rhs.mBinCounts.size(); i++) { in operator +=() 120 mBinCounts[i] += rhs.mBinCounts[i]; in operator +=() 125 HistogramValue operator+(HistogramValue lhs, const HistogramValue& rhs) { in operator +() argument 126 lhs += rhs; in operator +() 130 HistogramValue& HistogramValue::operator-=(const HistogramValue& rhs) { in operator -=() argument 131 if (mBinCounts.size() < rhs.mBinCounts.size()) { in operator -=() 136 for (size_t i = 0; i < rhs.mBinCounts.size(); i++) { in operator -=() 137 if (mBinCounts[i] < rhs.mBinCounts[i]) { in operator -=() [all …]
|
| D | NumericValue.h | 55 NumericValue& operator=(const NumericValue& rhs) = default; 58 NumericValue& operator=(NumericValue&& rhs) noexcept = default; 87 NumericValue& operator+=(const NumericValue& rhs); 89 friend NumericValue operator+(NumericValue lhs, const NumericValue& rhs); 91 NumericValue& operator-=(const NumericValue& rhs); 93 friend NumericValue operator-(NumericValue lhs, const NumericValue& rhs); 95 friend bool operator==(const NumericValue& lhs, const NumericValue& rhs); 97 friend bool operator!=(const NumericValue& lhs, const NumericValue& rhs); 99 friend bool operator<(const NumericValue& lhs, const NumericValue& rhs); 101 friend bool operator>(const NumericValue& lhs, const NumericValue& rhs); [all …]
|
| D | HistogramValue.h | 68 HistogramValue& operator+=(const HistogramValue& rhs); 72 friend HistogramValue operator+(HistogramValue lhs, const HistogramValue& rhs); 74 HistogramValue& operator-=(const HistogramValue& rhs); 79 friend HistogramValue operator-(HistogramValue lhs, const HistogramValue& rhs); 81 friend bool operator==(const HistogramValue& lhs, const HistogramValue& rhs); 83 friend bool operator!=(const HistogramValue& lhs, const HistogramValue& rhs); 85 friend bool operator<(const HistogramValue& lhs, const HistogramValue& rhs); 87 friend bool operator>(const HistogramValue& lhs, const HistogramValue& rhs); 89 friend bool operator<=(const HistogramValue& lhs, const HistogramValue& rhs); 91 friend bool operator>=(const HistogramValue& lhs, const HistogramValue& rhs);
|
| /packages/providers/MediaProvider/pdf/framework/libs/pdfClient/ |
| D | rect.cc | 62 Rectangle_i Intersect(const Rectangle_i& lhs, const Rectangle_i& rhs) { in Intersect() argument 64 output.left = std::max(lhs.left, rhs.left); in Intersect() 65 output.top = std::max(lhs.top, rhs.top); in Intersect() 66 output.right = std::min(lhs.right, rhs.right); in Intersect() 67 output.bottom = std::min(lhs.bottom, rhs.bottom); in Intersect() 74 Rectangle_d Intersect(const Rectangle_d& lhs, const Rectangle_d& rhs) { in Intersect() argument 76 output.left = std::max(lhs.left, rhs.left); in Intersect() 77 output.top = std::max(lhs.top, rhs.top); in Intersect() 78 output.right = std::min(lhs.right, rhs.right); in Intersect() 79 output.bottom = std::min(lhs.bottom, rhs.bottom); in Intersect() [all …]
|
| D | rect.h | 97 inline bool operator==(const Point_i& lhs, const Point_i& rhs) { 98 return lhs.x == rhs.x && lhs.y == rhs.y; 101 inline bool operator!=(const Point_i& lhs, const Point_i& rhs) { 102 return !(lhs == rhs); 106 inline bool operator==(const Rectangle_i& lhs, const Rectangle_i& rhs) { 107 return lhs.left == rhs.left && lhs.top == rhs.top && lhs.right == rhs.right && 108 lhs.bottom == rhs.bottom; 111 inline bool operator!=(const Rectangle_i& lhs, const Rectangle_i& rhs) { 112 return !(lhs == rhs); 147 Rectangle_i Intersect(const Rectangle_i& lhs, const Rectangle_i& rhs); [all …]
|
| /packages/modules/Uwb/service/fusion_lib/src/com/android/uwb/fusion/math/ |
| D | Vector3.java | 89 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/Bluetooth/system/gd/packet/parser/test/ |
| D | six_bytes.h | 45 bool operator<(const SixBytes& rhs) const { 46 return std::memcmp(six_bytes, rhs.six_bytes, sizeof(six_bytes)) < 0; 48 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 { return rhs < *this; } 52 bool operator<=(const SixBytes& rhs) const { return !(*this > rhs); } 53 bool operator>=(const SixBytes& rhs) const { return !(*this < rhs); } 54 bool operator!=(const SixBytes& rhs) const { return !(*this == rhs); }
|
| /packages/modules/Connectivity/service-t/native/libs/libnetworkstats/ |
| D | BpfNetworkStats.cpp | 296 bool operator==(const stats_line& lhs, const stats_line& rhs) { in operator ==() argument 297 return ((lhs.uid == rhs.uid) && (lhs.tag == rhs.tag) && (lhs.set == rhs.set) && in operator ==() 298 !strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface))); in operator ==() 302 bool operator<(const stats_line& lhs, const stats_line& rhs) { in operator <() argument 303 int ret = strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface)); in operator <() 305 if (lhs.uid < rhs.uid) return true; in operator <() 306 if (lhs.uid > rhs.uid) return false; in operator <() 307 if (lhs.tag < rhs.tag) return true; in operator <() 308 if (lhs.tag > rhs.tag) return false; in operator <() 309 if (lhs.set < rhs.set) return true; in operator <() [all …]
|
| /packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
| D | RandomVariable.cpp | 55 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 …]
|
| /packages/modules/Bluetooth/system/pdl/hci/include/hci/ |
| D | class_of_device.h | 51 bool operator<(const ClassOfDevice& rhs) const { return cod < rhs.cod; } 52 bool operator==(const ClassOfDevice& rhs) const { return cod == rhs.cod; } 53 bool operator>(const ClassOfDevice& rhs) const { return rhs < *this; } 54 bool operator<=(const ClassOfDevice& rhs) const { return !(*this > rhs); } 55 bool operator>=(const ClassOfDevice& rhs) const { return !(*this < rhs); } 56 bool operator!=(const ClassOfDevice& rhs) const { return !(*this == rhs); }
|
| D | address.h | 62 bool operator<(const Address& rhs) const { return address < rhs.address; } 63 bool operator==(const Address& rhs) const { return address == rhs.address; } 64 bool operator>(const Address& rhs) const { return rhs < *this; } 65 bool operator<=(const Address& rhs) const { return !(*this > rhs); } 66 bool operator>=(const Address& rhs) const { return !(*this < rhs); } 67 bool operator!=(const Address& rhs) const { return !(*this == rhs); }
|
| /packages/modules/IntentResolver/java/src/com/android/intentresolver/ |
| D | ResolverInfoHelpers.kt | 24 fun resolveInfoMatch(lhs: ResolveInfo?, rhs: ResolveInfo?): Boolean = 25 (lhs === rhs) || 26 ((lhs != null && rhs != null) && 27 activityInfoMatch(lhs.activityInfo, rhs.activityInfo) && 30 lhs.userHandle == rhs.userHandle) 32 private fun activityInfoMatch(lhs: ActivityInfo?, rhs: ActivityInfo?): Boolean = 33 (lhs === rhs) || 34 (lhs != null && rhs != null && lhs.name == rhs.name && lhs.packageName == rhs.packageName)
|
| /packages/modules/Bluetooth/tools/rootcanal/include/hci/ |
| D | address_with_type.h | 75 bool operator<(const AddressWithType& rhs) const { 76 return (address_ != rhs.address_) ? 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 { return rhs < *this; } 82 bool operator<=(const AddressWithType& rhs) const { return !(*this > rhs); } 83 bool operator>=(const AddressWithType& rhs) const { return !(*this < rhs); } 84 bool operator!=(const AddressWithType& rhs) const { return !(*this == rhs); }
|
| D | address.h | 53 bool operator<(const Address& rhs) const { return address < rhs.address; } 54 bool operator==(const Address& rhs) const { return address == rhs.address; } 55 bool operator>(const Address& rhs) const { return rhs < *this; } 56 bool operator<=(const Address& rhs) const { return !(*this > rhs); } 57 bool operator>=(const Address& rhs) const { return !(*this < rhs); } 58 bool operator!=(const Address& rhs) const { return !(*this == rhs); }
|
| /packages/modules/Bluetooth/system/gd/hci/ |
| D | address_with_type.h | 76 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 { return rhs < *this; } 83 bool operator<=(const AddressWithType& rhs) const { return !(*this > rhs); } 84 bool operator>=(const AddressWithType& rhs) const { return !(*this < rhs); } 85 bool operator!=(const AddressWithType& rhs) const { return !(*this == rhs); }
|
| /packages/modules/Bluetooth/system/gd/common/ |
| D | byte_array.h | 49 bool operator<(const ByteArray& rhs) const { return bytes < rhs.bytes; } 50 bool operator==(const ByteArray& rhs) const { return bytes == rhs.bytes; } 51 bool operator>(const ByteArray& rhs) const { return rhs < *this; } 52 bool operator<=(const ByteArray& rhs) const { return !(*this > rhs); } 53 bool operator>=(const ByteArray& rhs) const { return !(*this < rhs); } 54 bool operator!=(const ByteArray& rhs) const { return !(*this == rhs); }
|
| /packages/modules/Bluetooth/system/types/ |
| D | raw_address.h | 37 bool operator<(const RawAddress& rhs) const { 38 return std::memcmp(address, rhs.address, sizeof(address)) < 0; 40 bool operator==(const RawAddress& rhs) const { 41 return std::memcmp(address, rhs.address, sizeof(address)) == 0; 43 bool operator>(const RawAddress& rhs) const { return rhs < *this; } 44 bool operator<=(const RawAddress& rhs) const { return !(*this > rhs); } 45 bool operator>=(const RawAddress& rhs) const { return !(*this < rhs); } 46 bool operator!=(const RawAddress& rhs) const { return !(*this == rhs); }
|
| D | ble_address_with_type.h | 119 bool operator==(const tBLE_BD_ADDR rhs) const { return rhs.type == type && rhs.bda == bda; } 120 bool operator!=(const tBLE_BD_ADDR rhs) const { return !(*this == rhs); } 139 bool operator==(const tAclLinkSpec rhs) const { 140 if (rhs.addrt != addrt) { 144 if (rhs.transport == BT_TRANSPORT_AUTO || transport == BT_TRANSPORT_AUTO) { 148 return rhs.transport == transport; 151 bool operator!=(const tAclLinkSpec rhs) const { return !(*this == rhs); } 153 bool StrictlyEquals(const tAclLinkSpec rhs) const { 154 return rhs.addrt == addrt && rhs.transport == transport;
|