/packages/modules/StatsD/statsd/src/metrics/ |
D | NumericValue.cpp | 50 void operator()(V& lhs, const V& rhs) const { in operator ()() argument 51 lhs = mOp(lhs, rhs); in operator ()() 181 NumericValue operator+(NumericValue lhs, const NumericValue& rhs) { in operator +() argument 182 lhs += rhs; in operator +() 183 return lhs; in operator +() 191 NumericValue operator-(NumericValue lhs, const NumericValue& rhs) { in operator -() argument 192 lhs -= rhs; in operator -() 193 return lhs; in operator -() 196 bool operator==(const NumericValue& lhs, const NumericValue& rhs) { in operator ==() argument 197 return lhs.mData == rhs.mData; in operator ==() [all …]
|
D | HistogramValue.cpp | 125 HistogramValue operator+(HistogramValue lhs, const HistogramValue& rhs) { in operator +() argument 126 lhs += rhs; in operator +() 127 return lhs; in operator +() 147 HistogramValue operator-(HistogramValue lhs, const HistogramValue& rhs) { in operator -() argument 148 lhs -= rhs; in operator -() 149 return lhs; in operator -() 152 bool operator==(const HistogramValue& lhs, const HistogramValue& rhs) { in operator ==() argument 153 return lhs.mBinCounts == rhs.mBinCounts; in operator ==() 156 bool operator!=(const HistogramValue& lhs, const HistogramValue& rhs) { in operator !=() argument 157 return lhs.mBinCounts != rhs.mBinCounts; in operator !=() [all …]
|
D | HistogramValue.h | 72 friend HistogramValue operator+(HistogramValue lhs, 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);
|
D | NumericValue.h | 89 friend NumericValue operator+(NumericValue lhs, 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); 103 friend bool operator<=(const NumericValue& lhs, const NumericValue& rhs); 105 friend bool operator>=(const NumericValue& lhs, const NumericValue& 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/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() 61 parent1(lhs), 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 &() 132 RandomVariable::RandomVariable(const RandomVariable& lhs, const RandomVariable& rhs, in RandomVariable() argument 134 : mVar(new RandomVariableBase(lhs.get(), rhs.get(), op)) { in RandomVariable() 157 RandomVariableRange IRandomVariableOp::getInitRange(const RandomVariableRange& lhs, in getInitRange() argument 160 for (auto i : lhs.getChoices()) { in getInitRange() [all …]
|
D | RandomVariable.h | 65 friend RandomVariableRange operator&(const RandomVariableRange& lhs, 78 virtual int eval(int lhs, int rhs) const = 0; 81 virtual RandomVariableRange getInitRange(const RandomVariableRange& lhs, 114 RandomVariableBase(const std::shared_ptr<RandomVariableBase>& lhs, 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/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/Wifi/framework/java/android/net/wifi/rtt/ |
D | RangingResult.java | 1280 RangingResult lhs = (RangingResult) o; in equals() local 1282 return mStatus == lhs.mStatus && Objects.equals(mMac, lhs.mMac) && Objects.equals( in equals() 1283 mPeerHandle, lhs.mPeerHandle) && mDistanceMm == lhs.mDistanceMm in equals() 1284 && mDistanceStdDevMm == lhs.mDistanceStdDevMm && mRssi == lhs.mRssi in equals() 1285 && mNumAttemptedMeasurements == lhs.mNumAttemptedMeasurements in equals() 1286 && mNumSuccessfulMeasurements == lhs.mNumSuccessfulMeasurements in equals() 1287 && Arrays.equals(mLci, lhs.mLci) && Arrays.equals(mLcr, lhs.mLcr) in equals() 1288 && mTimestamp == lhs.mTimestamp in equals() 1289 && mIs80211mcMeasurement == lhs.mIs80211mcMeasurement in equals() 1290 && Objects.equals(mResponderLocation, lhs.mResponderLocation) in equals() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | SubscribeConfig.java | 391 SubscribeConfig lhs = (SubscribeConfig) o; in equals() local 393 if (!(Arrays.equals(mServiceName, lhs.mServiceName) && Arrays.equals( in equals() 394 mServiceSpecificInfo, lhs.mServiceSpecificInfo) && Arrays.equals(mMatchFilter, in equals() 395 lhs.mMatchFilter) && mSubscribeType == lhs.mSubscribeType && mTtlSec == lhs.mTtlSec in equals() 396 && mEnableTerminateNotification == lhs.mEnableTerminateNotification in equals() 397 && mMinDistanceMmSet == lhs.mMinDistanceMmSet in equals() 398 && mMaxDistanceMmSet == lhs.mMaxDistanceMmSet in equals() 399 && mEnableInstantMode == lhs.mEnableInstantMode in equals() 400 && mBand == lhs.mBand in equals() 401 && mIsSuspendable == lhs.mIsSuspendable in equals() [all …]
|
D | PublishConfig.java | 231 PublishConfig lhs = (PublishConfig) o; in equals() local 233 return Arrays.equals(mServiceName, lhs.mServiceName) && Arrays.equals(mServiceSpecificInfo, in equals() 234 lhs.mServiceSpecificInfo) && Arrays.equals(mMatchFilter, lhs.mMatchFilter) in equals() 235 && mPublishType == lhs.mPublishType in equals() 236 && mTtlSec == lhs.mTtlSec in equals() 237 && mEnableTerminateNotification == lhs.mEnableTerminateNotification in equals() 238 && mEnableRanging == lhs.mEnableRanging in equals() 239 && mEnablePeriodicRangingResults == lhs.mEnablePeriodicRangingResults in equals() 240 && mEnableInstantMode == lhs.mEnableInstantMode in equals() 241 && mBand == lhs.mBand in equals() [all …]
|
D | WifiAwareNetworkSpecifier.java | 325 WifiAwareNetworkSpecifier lhs = (WifiAwareNetworkSpecifier) obj; in equals() local 327 return type == lhs.type in equals() 328 && role == lhs.role in equals() 329 && clientId == lhs.clientId in equals() 330 && sessionId == lhs.sessionId in equals() 331 && peerId == lhs.peerId in equals() 332 && Arrays.equals(peerMac, lhs.peerMac) in equals() 333 && port == lhs.port in equals() 334 && transportProtocol == lhs.transportProtocol in equals() 335 && mChannelInMhz == lhs.mChannelInMhz in equals() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/ |
D | FuzzyPhoneNumberMatcher.java | 31 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() 41 int lhsIndex = lhs.length() - 1; in lastSevenDigitsCharacterByCharacterMatches() 47 if (!Character.isDigit(lhs.charAt(lhsIndex))) { in lastSevenDigitsCharacterByCharacterMatches() 55 if (lhs.charAt(lhsIndex) != rhs.charAt(rhsIndex)) { in lastSevenDigitsCharacterByCharacterMatches()
|
/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/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/contextrules/ |
D | PolicyContextRule.kt | 49 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()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/ |
D | StatusOr.h | 91 #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
|
/packages/modules/Uwb/service/fusion_lib/src/com/android/uwb/fusion/math/ |
D | Vector3.java | 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 119 float lhsX = lhs.x; in cross() 120 float lhsY = lhs.y; in cross() 121 float lhsZ = lhs.z; in cross()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | Netlink.cpp | 53 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 !=()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragment.java | 106 (Object lhs, Object rhs) -> { 107 if (lhs instanceof SeriesRecording) { 108 lhs = mSeriesId2LatestProgram.get(((SeriesRecording) lhs).getSeriesId()); 113 if (lhs instanceof RecordedProgram) { 117 .compare((RecordedProgram) lhs, (RecordedProgram) rhs); 129 (Object lhs, Object rhs) -> { 130 if (lhs instanceof ScheduledRecording) { 133 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs); 145 (Object lhs, Object rhs) -> { 146 if (lhs instanceof ScheduledRecording) { [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiNetworkSelectionConfig.java | 518 WifiNetworkSelectionConfig lhs = (WifiNetworkSelectionConfig) obj; in equals() local 519 return mSufficiencyCheckEnabledWhenScreenOff == lhs.mSufficiencyCheckEnabledWhenScreenOff in equals() 520 && mSufficiencyCheckEnabledWhenScreenOn == lhs.mSufficiencyCheckEnabledWhenScreenOn in equals() 521 && mAssociatedNetworkSelectionOverride == lhs.mAssociatedNetworkSelectionOverride in equals() 522 && mUserConnectChoiceOverrideEnabled == lhs.mUserConnectChoiceOverrideEnabled in equals() 523 && mLastSelectionWeightEnabled == lhs.mLastSelectionWeightEnabled in equals() 524 && Arrays.equals(mRssi2Thresholds, lhs.mRssi2Thresholds) in equals() 525 && Arrays.equals(mRssi5Thresholds, lhs.mRssi5Thresholds) in equals() 526 && Arrays.equals(mRssi6Thresholds, lhs.mRssi6Thresholds) in equals() 527 && mFrequencyWeights.contentEquals(lhs.mFrequencyWeights); in equals()
|
/packages/modules/Bluetooth/tools/rootcanal/model/controller/vendor_commands/ |
D | le_apcf.cc | 117 bool operator==(BroadcasterAddressFilter const& lhs, BroadcasterAddressFilter const& rhs) { in operator ==() argument 118 return lhs.filter_index == rhs.filter_index && in operator ==() 119 lhs.broadcaster_address == rhs.broadcaster_address && in operator ==() 120 lhs.application_address_type == rhs.application_address_type; in operator ==() 123 bool operator==(GapDataFilter const& lhs, GapDataFilter const& rhs) { in operator ==() argument 124 return lhs.filter_index == rhs.filter_index && lhs.gap_data == rhs.gap_data && in operator ==() 125 lhs.gap_data_mask == rhs.gap_data_mask; in operator ==() 128 bool operator==(AdTypeFilter const& lhs, AdTypeFilter const& rhs) { in operator ==() argument 129 return lhs.filter_index == rhs.filter_index && lhs.ad_type == rhs.ad_type && in operator ==() 130 lhs.ad_data == rhs.ad_data && lhs.ad_data_mask == rhs.ad_data_mask; in operator ==()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvTrackInfoUtils.java | 61 return (TvTrackInfo lhs, TvTrackInfo rhs) -> { in createComparator() 62 if (Objects.equals(lhs, rhs)) { in createComparator() 65 if (lhs == null) { in createComparator() 75 Iterables.indexOf(languages, s -> Utils.isEqualLanguage(lhs.getLanguage(), s)); in createComparator() 89 lhs.getType() != TvTrackInfo.TYPE_AUDIO in createComparator() 90 || lhs.getAudioChannelCount() == channelCount; in createComparator() 95 return Boolean.compare(lhs.getId().equals(id), rhs.getId().equals(id)); in createComparator() 99 return Integer.compare(lhs.getAudioChannelCount(), rhs.getAudioChannelCount()); in createComparator()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | Utils.kt | 974 val lhs = DNASegment() in createDNAStrands() constant 975 lhs.startMinute = currSegment.startMinute in createDNAStrands() 976 lhs.color = currSegment.color in createDNAStrands() 977 lhs.endMinute = startMinute - 1 in createDNAStrands() 978 lhs.day = currSegment.day in createDNAStrands() 983 segments.add(i++, lhs) in createDNAStrands() 984 strands.get(lhs.color)?.count = strands.get(lhs.color)?.count?.inc() as Int in createDNAStrands() 1009 val lhs: DNASegment = segments.get(i - 1) in createDNAStrands() constant 1010 if (lhs.color == CONFLICT_COLOR && currSegment.day == lhs.day && in createDNAStrands() 1011 lhs.endMinute >= currSegment.startMinute - 1) { in createDNAStrands() [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelNumber.java | 51 public static boolean equivalent(String lhs, String rhs) { in equivalent() argument 52 if (compare(lhs, rhs) == 0) { in equivalent() 56 ChannelNumber lhsNumber = parseChannelNumber(lhs); in equivalent() 158 public static int compare(String lhs, String rhs) { in compare() argument 159 ChannelNumber lhsNumber = parseChannelNumber(lhs); in compare() 163 return StringUtils.compare(lhs, rhs); in compare()
|