Home
last modified time | relevance | path

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

1234567

/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Drect.cc62 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 …]
Drect.h73 inline bool operator==(const Point_i& lhs, const Point_i& rhs) {
74 return lhs.x == rhs.x && lhs.y == rhs.y;
77 inline bool operator!=(const Point_i& lhs, const Point_i& rhs) {
78 return !(lhs == rhs);
82 inline bool operator==(const Rectangle_i& lhs, const Rectangle_i& rhs) {
83 return lhs.left == rhs.left && lhs.top == rhs.top && lhs.right == rhs.right &&
84 lhs.bottom == rhs.bottom;
87 inline bool operator!=(const Rectangle_i& lhs, const Rectangle_i& rhs) {
88 return !(lhs == rhs);
123 Rectangle_i Intersect(const Rectangle_i& lhs, const Rectangle_i& rhs);
[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()
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 …]
DRandomVariable.h65 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/
DResolverInfoHelpers.kt24 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/
DRangingResult.java1033 RangingResult lhs = (RangingResult) o; in equals() local
1035 return mStatus == lhs.mStatus && Objects.equals(mMac, lhs.mMac) && Objects.equals( in equals()
1036 mPeerHandle, lhs.mPeerHandle) && mDistanceMm == lhs.mDistanceMm in equals()
1037 && mDistanceStdDevMm == lhs.mDistanceStdDevMm && mRssi == lhs.mRssi in equals()
1038 && mNumAttemptedMeasurements == lhs.mNumAttemptedMeasurements in equals()
1039 && mNumSuccessfulMeasurements == lhs.mNumSuccessfulMeasurements in equals()
1040 && Arrays.equals(mLci, lhs.mLci) && Arrays.equals(mLcr, lhs.mLcr) in equals()
1041 && mTimestamp == lhs.mTimestamp in equals()
1042 && mIs80211mcMeasurement == lhs.mIs80211mcMeasurement in equals()
1043 && Objects.equals(mResponderLocation, lhs.mResponderLocation) in equals()
[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()
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/
DBpfNetworkStats.cpp296 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/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/Wifi/framework/java/android/net/wifi/aware/
DSubscribeConfig.java233 SubscribeConfig lhs = (SubscribeConfig) o; in equals() local
235 if (!(Arrays.equals(mServiceName, lhs.mServiceName) && Arrays.equals( in equals()
236 mServiceSpecificInfo, lhs.mServiceSpecificInfo) && Arrays.equals(mMatchFilter, in equals()
237 lhs.mMatchFilter) && mSubscribeType == lhs.mSubscribeType && mTtlSec == lhs.mTtlSec in equals()
238 && mEnableTerminateNotification == lhs.mEnableTerminateNotification in equals()
239 && mMinDistanceMmSet == lhs.mMinDistanceMmSet in equals()
240 && mMaxDistanceMmSet == lhs.mMaxDistanceMmSet in equals()
241 && mEnableInstantMode == lhs.mEnableInstantMode in equals()
242 && mBand == lhs.mBand in equals()
243 && mIsSuspendable == lhs.mIsSuspendable in equals()
[all …]
DWifiAwareNetworkSpecifier.java325 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 …]
DPublishConfig.java221 PublishConfig lhs = (PublishConfig) o; in equals() local
223 return Arrays.equals(mServiceName, lhs.mServiceName) && Arrays.equals(mServiceSpecificInfo, in equals()
224 lhs.mServiceSpecificInfo) && Arrays.equals(mMatchFilter, lhs.mMatchFilter) in equals()
225 && mPublishType == lhs.mPublishType in equals()
226 && mTtlSec == lhs.mTtlSec in equals()
227 && mEnableTerminateNotification == lhs.mEnableTerminateNotification in equals()
228 && mEnableRanging == lhs.mEnableRanging in equals()
229 && mEnableInstantMode == lhs.mEnableInstantMode in equals()
230 && mBand == lhs.mBand in equals()
231 && mIsSuspendable == lhs.mIsSuspendable in equals()
[all …]
DConfigRequest.java202 ConfigRequest lhs = (ConfigRequest) o; in equals() local
204 return mSupport5gBand == lhs.mSupport5gBand in equals()
205 && mSupport6gBand == lhs.mSupport6gBand in equals()
206 && mMasterPreference == lhs.mMasterPreference in equals()
207 && mClusterLow == lhs.mClusterLow && mClusterHigh == lhs.mClusterHigh in equals()
208 && Arrays.equals(mDiscoveryWindowInterval, lhs.mDiscoveryWindowInterval) in equals()
209 && Objects.equals(mVendorData, lhs.mVendorData); in equals()
/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()
/packages/modules/Connectivity/staticlibs/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
/packages/modules/Connectivity/staticlibs/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 !=()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DVector3.java112 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/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java106 (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/
DWifiNetworkSelectionConfig.java518 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/
Dle_apcf.cc130 bool operator==(BroadcasterAddressFilter const& lhs, in operator ==() argument
132 return lhs.filter_index == rhs.filter_index && in operator ==()
133 lhs.broadcaster_address == rhs.broadcaster_address && in operator ==()
134 lhs.application_address_type == rhs.application_address_type; in operator ==()
137 bool operator==(GapDataFilter const& lhs, GapDataFilter const& rhs) { in operator ==() argument
138 return lhs.filter_index == rhs.filter_index && lhs.gap_data == rhs.gap_data && in operator ==()
139 lhs.gap_data_mask == rhs.gap_data_mask; in operator ==()
142 bool operator==(AdTypeFilter const& lhs, AdTypeFilter const& rhs) { in operator ==() argument
143 return lhs.filter_index == rhs.filter_index && lhs.ad_type == rhs.ad_type && in operator ==()
144 lhs.ad_data == rhs.ad_data && lhs.ad_data_mask == rhs.ad_data_mask; in operator ==()
/packages/apps/TV/src/com/android/tv/util/
DTvTrackInfoUtils.java61 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/TV/src/com/android/tv/data/
DChannelNumber.java51 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()
DTvInputNewComparator.java35 public int compare(TvInputInfo lhs, TvInputInfo rhs) { in compare() argument
36 boolean lhsIsNewInput = mSetupUtils.isNewInput(lhs.getId()); in compare()
44 boolean lhsSetupDone = mSetupUtils.isSetupDone(lhs.getId()); in compare()
51 return mInputManager.getDefaultTvInputInfoComparator().compare(lhs, rhs); in compare()
/packages/modules/Connectivity/bpf_progs/
Dnetd.h60 static inline StatsValue& operator+=(StatsValue& lhs, const StatsValue& rhs) {
61 lhs.rxPackets += rhs.rxPackets;
62 lhs.rxBytes += rhs.rxBytes;
63 lhs.txPackets += rhs.txPackets;
64 lhs.txBytes += rhs.txBytes;
65 return lhs;
/packages/apps/Calendar/src/com/android/calendar/
DUtils.kt974 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 …]

1234567