Home
last modified time | relevance | path

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

1234567

/frameworks/base/tools/aapt2/
DResource.h235 inline bool operator<(const ResourceId& lhs, const ResourceId& rhs) {
236 return lhs.id < rhs.id;
239 inline bool operator>(const ResourceId& lhs, const ResourceId& rhs) {
240 return lhs.id > rhs.id;
243 inline bool operator==(const ResourceId& lhs, const ResourceId& rhs) {
244 return lhs.id == rhs.id;
247 inline bool operator!=(const ResourceId& lhs, const ResourceId& rhs) {
248 return lhs.id != rhs.id;
292 inline bool operator<(const ResourceName& lhs, const ResourceName& rhs) {
293 return std::tie(lhs.package, lhs.type, lhs.entry) <
[all …]
DSource.h60 inline bool operator==(const Source& lhs, const Source& rhs) {
61 return lhs.path == rhs.path && lhs.line == rhs.line;
64 inline bool operator<(const Source& lhs, const Source& rhs) {
65 int cmp = lhs.path.compare(rhs.path);
68 if (lhs.line) {
70 return lhs.line.value() < rhs.line.value();
/frameworks/base/libs/hwui/
DTextDropShadowCache.cpp52 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { in compare() argument
53 int deltaInt = int(lhs.glyphCount) - int(rhs.glyphCount); in compare()
56 deltaInt = lhs.flags - rhs.flags; in compare()
59 if (lhs.radius < rhs.radius) return -1; in compare()
60 if (lhs.radius > rhs.radius) return +1; in compare()
62 if (lhs.typeface < rhs.typeface) return -1; in compare()
63 if (lhs.typeface > rhs.typeface) return +1; in compare()
65 if (lhs.textSize < rhs.textSize) return -1; in compare()
66 if (lhs.textSize > rhs.textSize) return +1; in compare()
68 if (lhs.italicStyle < rhs.italicStyle) return -1; in compare()
[all …]
DPatchCache.h101 static int compare(const PatchDescription& lhs, const PatchDescription& rhs);
111 friend inline int strictly_order_type(const PatchDescription& lhs, in strictly_order_type()
113 return PatchDescription::compare(lhs, rhs) < 0; in strictly_order_type()
116 friend inline int compare_type(const PatchDescription& lhs, in compare_type()
118 return PatchDescription::compare(lhs, rhs); in compare_type()
DTextDropShadowCache.h60 static int compare(const ShadowText& lhs, const ShadowText& rhs);
98 inline int strictly_order_type(const ShadowText& lhs, const ShadowText& rhs) { in strictly_order_type() argument
99 return ShadowText::compare(lhs, rhs) < 0; in strictly_order_type()
102 inline int compare_type(const ShadowText& lhs, const ShadowText& rhs) { in compare_type() argument
103 return ShadowText::compare(lhs, rhs); in compare_type()
/frameworks/native/services/sensorservice/
Dvec.h50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) { in doAssign() argument
54 lhs[i] = rhs[i]; in doAssign()
56 lhs[i] = 0; in doAssign()
57 return lhs; in doAssign()
68 const VLHS<TYPE, SIZE>& lhs, in doAdd() argument
72 r[i] = lhs[i] + rhs[i]; in doAdd()
83 const VLHS<TYPE, SIZE>& lhs, in doSub() argument
87 r[i] = lhs[i] - rhs[i]; in doSub()
97 const VEC<TYPE, SIZE>& lhs, in doMulScalar() argument
101 r[i] = lhs[i] * rhs; in doMulScalar()
[all …]
Dmat.h34 mat<TYPE, C, R>& lhs, in doAssign() argument
38 lhs[i][j] = (i==j) ? rhs : 0; in doAssign()
39 return lhs; in doAssign()
44 const mat<TYPE, D, R>& lhs, in doMul() argument
52 v += lhs[k][r] * rhs[c][k]; in doMul()
62 const mat<TYPE, D, R>& lhs, in doMul() argument
69 v += lhs[k][r] * rhs[k]; in doMul()
78 const vec<TYPE, R>& lhs, in doMul() argument
84 res[c][r] = lhs[r] * rhs[c][0]; in doMul()
172 friend inline mat PURE operator + (const mat& lhs, const mat& rhs) {
[all …]
/frameworks/native/include/private/ui/
DRegionHelper.h70 inline region_operator(uint32_t op, const region& lhs, const region& rhs) in region_operator() argument
71 : op_mask(op), spanner(lhs, rhs) in region_operator()
78 SpannerInner spannerInner(spanner.lhs, spanner.rhs); in operator()
162 region lhs; variable
167 : lhs(_lhs), rhs(_rhs) in Spanner()
169 if (lhs.count) { in Spanner()
170 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner()
171 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner()
180 return !rhs.count && !lhs.count; in isDone()
189 advance(lhs, SpannerBase::lhs_head, SpannerBase::lhs_tail); in next()
[all …]
/frameworks/native/libs/binder/include/binder/
DPersistableBundle.h96 friend bool operator==(const PersistableBundle& lhs, const PersistableBundle& rhs) {
97 return (lhs.mBoolMap == rhs.mBoolMap && lhs.mIntMap == rhs.mIntMap &&
98 lhs.mLongMap == rhs.mLongMap && lhs.mDoubleMap == rhs.mDoubleMap &&
99 lhs.mStringMap == rhs.mStringMap && lhs.mBoolVectorMap == rhs.mBoolVectorMap &&
100 lhs.mIntVectorMap == rhs.mIntVectorMap &&
101 lhs.mLongVectorMap == rhs.mLongVectorMap &&
102 lhs.mDoubleVectorMap == rhs.mDoubleVectorMap &&
103 lhs.mStringVectorMap == rhs.mStringVectorMap &&
104 lhs.mPersistableBundleMap == rhs.mPersistableBundleMap);
107 friend bool operator!=(const PersistableBundle& lhs, const PersistableBundle& rhs) {
[all …]
/frameworks/av/media/libmedia/
DMidiDeviceInfo.cpp120 static inline bool areVectorsEqual(const Vector<String16>& lhs, const Vector<String16>& rhs) { in areVectorsEqual() argument
121 if (lhs.size() != rhs.size()) return false; in areVectorsEqual()
122 for (size_t i = 0; i < lhs.size(); ++i) { in areVectorsEqual()
123 if (lhs[i] != rhs[i]) return false; in areVectorsEqual()
128 bool operator==(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs) { in operator ==() argument
129 return (lhs.mType == rhs.mType && lhs.mId == rhs.mId && in operator ==()
130 areVectorsEqual(lhs.mInputPortNames, rhs.mInputPortNames) && in operator ==()
131 areVectorsEqual(lhs.mOutputPortNames, rhs.mOutputPortNames) && in operator ==()
132 lhs.mProperties == rhs.mProperties && in operator ==()
133 lhs.mIsPrivate == rhs.mIsPrivate); in operator ==()
/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareNetworkSpecifier.java204 WifiAwareNetworkSpecifier lhs = (WifiAwareNetworkSpecifier) obj; in equals() local
206 return type == lhs.type in equals()
207 && role == lhs.role in equals()
208 && clientId == lhs.clientId in equals()
209 && sessionId == lhs.sessionId in equals()
210 && peerId == lhs.peerId in equals()
211 && Arrays.equals(peerMac, lhs.peerMac) in equals()
212 && Arrays.equals(pmk, lhs.pmk) in equals()
213 && Objects.equals(passphrase, lhs.passphrase); in equals()
DPublishConfig.java149 PublishConfig lhs = (PublishConfig) o; in equals() local
151 return Arrays.equals(mServiceName, lhs.mServiceName) && Arrays.equals(mServiceSpecificInfo, in equals()
152 lhs.mServiceSpecificInfo) && Arrays.equals(mMatchFilter, lhs.mMatchFilter) in equals()
153 && mPublishType == lhs.mPublishType in equals()
154 && mTtlSec == lhs.mTtlSec in equals()
155 && mEnableTerminateNotification == lhs.mEnableTerminateNotification; in equals()
DSubscribeConfig.java149 SubscribeConfig lhs = (SubscribeConfig) o; in equals() local
151 return Arrays.equals(mServiceName, lhs.mServiceName) && Arrays.equals(mServiceSpecificInfo, in equals()
152 lhs.mServiceSpecificInfo) && Arrays.equals(mMatchFilter, lhs.mMatchFilter) in equals()
153 && mSubscribeType == lhs.mSubscribeType in equals()
154 && mTtlSec == lhs.mTtlSec in equals()
155 && mEnableTerminateNotification == lhs.mEnableTerminateNotification; in equals()
DConfigRequest.java144 ConfigRequest lhs = (ConfigRequest) o; in equals() local
146 return mSupport5gBand == lhs.mSupport5gBand && mMasterPreference == lhs.mMasterPreference in equals()
147 && mClusterLow == lhs.mClusterLow && mClusterHigh == lhs.mClusterHigh in equals()
148 && Arrays.equals(mDiscoveryWindowInterval, lhs.mDiscoveryWindowInterval); in equals()
/frameworks/native/libs/math/include/math/
DTVecHelpers.h63 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); variable
64 for (size_t i = 0; i < lhs.size(); i++) {
65 lhs[i] += v[i];
67 return lhs;
71 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); variable
72 for (size_t i = 0; i < lhs.size(); i++) {
73 lhs[i] -= v[i];
75 return lhs;
84 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); variable
85 for (size_t i = 0; i < lhs.size(); i++) {
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/
DUtils.cpp21 bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs) { in operator <() argument
22 if (lhs.size() < rhs.size()) { in operator <()
24 } else if (lhs.size() > rhs.size()) { in operator <()
27 return memcmp((void *)lhs.array(), (void *)rhs.array(), rhs.size()) < 0; in operator <()
/frameworks/rs/driver/runtime/
Drs_matrix.c240 rsMatrixLoadMultiply(rs_matrix4x4 *ret, const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs) { in rsMatrixLoadMultiply() argument
251 ri0 += rsMatrixGet(lhs, j, 0) * rhs_ij; in rsMatrixLoadMultiply()
252 ri1 += rsMatrixGet(lhs, j, 1) * rhs_ij; in rsMatrixLoadMultiply()
253 ri2 += rsMatrixGet(lhs, j, 2) * rhs_ij; in rsMatrixLoadMultiply()
254 ri3 += rsMatrixGet(lhs, j, 3) * rhs_ij; in rsMatrixLoadMultiply()
265 rsMatrixMultiply(rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs) { in rsMatrixMultiply() argument
266 rsMatrixLoadMultiply(lhs, lhs, rhs); in rsMatrixMultiply()
270 rsMatrixLoadMultiply(rs_matrix3x3 *ret, const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs) { in rsMatrixLoadMultiply() argument
280 ri0 += rsMatrixGet(lhs, j, 0) * rhs_ij; in rsMatrixLoadMultiply()
281 ri1 += rsMatrixGet(lhs, j, 1) * rhs_ij; in rsMatrixLoadMultiply()
[all …]
/frameworks/native/libs/binder/
DIpPrefix.cpp155 bool operator==(const IpPrefix& lhs, const IpPrefix& rhs) in operator ==() argument
157 if (lhs.mIsIpv6 != rhs.mIsIpv6) { in operator ==()
161 if (lhs.mPrefixLength != rhs.mPrefixLength) { in operator ==()
165 if (lhs.mIsIpv6) { in operator ==()
166 …return 0 == memcmp(lhs.mUnion.mIn6Addr.s6_addr, rhs.mUnion.mIn6Addr.s6_addr, sizeof(struct in6_add… in operator ==()
169 return 0 == memcmp(&lhs.mUnion.mInAddr, &rhs.mUnion.mInAddr, sizeof(struct in_addr)); in operator ==()
/frameworks/native/opengl/libagl/
Dmatrix.cpp252 void matrixf_t::multiply(matrixf_t& r, const matrixf_t& lhs, const matrixf_t& rhs) in multiply() argument
254 GLfloat const* const m = lhs.m; in multiply()
724 void point2__generic(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) { in point2__generic() argument
728 lhs->x = mla2a(rx, m[ 0], ry, m[ 4], m[12]); in point2__generic()
729 lhs->y = mla2a(rx, m[ 1], ry, m[ 5], m[13]); in point2__generic()
730 lhs->z = mla2a(rx, m[ 2], ry, m[ 6], m[14]); in point2__generic()
731 lhs->w = mla2a(rx, m[ 3], ry, m[ 7], m[15]); in point2__generic()
734 void point3__generic(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) { in point3__generic() argument
739 lhs->x = mla3a(rx, m[ 0], ry, m[ 4], rz, m[ 8], m[12]); in point3__generic()
740 lhs->y = mla3a(rx, m[ 1], ry, m[ 5], rz, m[ 9], m[13]); in point3__generic()
[all …]
/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/
DCameraTooTest.java43 private <T> void assertComparatorEq(T lhs, T rhs, Comparator<T> rel) { in assertComparatorEq() argument
44 assertEquals(String.format("%s should be equal to %s", lhs, rhs), rel.compare(lhs, rhs), 0); in assertComparatorEq()
45 assertEquals(String.format("%s should be equal to %s (reverse check)", lhs, rhs), in assertComparatorEq()
46 rel.compare(rhs, lhs), 0); in assertComparatorEq()
49 private <T> void assertComparatorLt(T lhs, T rhs, Comparator<T> rel) { in assertComparatorLt() argument
50 assertTrue(String.format("%s should be less than %s", lhs, rhs), rel.compare(lhs, rhs) < 0); in assertComparatorLt()
51 assertTrue(String.format("%s should be less than %s (reverse check)", lhs, rhs), in assertComparatorLt()
52 rel.compare(rhs, lhs) > 0); in assertComparatorLt()
/frameworks/rs/
DrsMatrix3x3.cpp48 void Matrix3x3::loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs) { in loadMultiply() argument
58 ri0 += ((const Matrix3x3 *)lhs)->get(j, 0) * rhs_ij; in loadMultiply()
59 ri1 += ((const Matrix3x3 *)lhs)->get(j, 1) * rhs_ij; in loadMultiply()
60 ri2 += ((const Matrix3x3 *)lhs)->get(j, 2) * rhs_ij; in loadMultiply()
/frameworks/native/libs/ui/
DRegion.cpp298 Region lhs(*this); in operationSelf() local
299 boolean_operation(op, *this, lhs, r); in operationSelf()
318 Region lhs(*this); in operationSelf() local
319 boolean_operation(op, *this, lhs, rhs); in operationSelf()
389 Region lhs(*this); in operationSelf() local
390 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
438 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; } in min() argument
440 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } in max() argument
587 const Region& lhs, in boolean_operation() argument
591 validate(lhs, "boolean_operation (before): lhs"); in boolean_operation()
[all …]
/frameworks/base/libs/hwui/font/
DFont.cpp84 int Font::FontDescription::compare(const Font::FontDescription& lhs, in compare() argument
86 int deltaInt = int(lhs.mFontId) - int(rhs.mFontId); in compare()
89 if (lhs.mFontSize < rhs.mFontSize) return -1; in compare()
90 if (lhs.mFontSize > rhs.mFontSize) return +1; in compare()
92 if (lhs.mItalicStyle < rhs.mItalicStyle) return -1; in compare()
93 if (lhs.mItalicStyle > rhs.mItalicStyle) return +1; in compare()
95 deltaInt = int(lhs.mFlags) - int(rhs.mFlags); in compare()
98 if (lhs.mScaleX < rhs.mScaleX) return -1; in compare()
99 if (lhs.mScaleX > rhs.mScaleX) return +1; in compare()
101 deltaInt = int(lhs.mStyle) - int(rhs.mStyle); in compare()
[all …]
/frameworks/rs/driver/runtime/arch/
Dx86_sse3.ll8 define float @_Z3dotDv4_fS_(<4 x float> %lhs, <4 x float> %rhs) nounwind readnone {
9 %1 = fmul <4 x float> %lhs, %rhs
16 define float @_Z3dotDv3_fS_(<3 x float> %lhs, <3 x float> %rhs) nounwind readnone {
17 %1 = fmul <3 x float> %lhs, %rhs
28 define float @_Z3dotDv2_fS_(<2 x float> %lhs, <2 x float> %rhs) nounwind readnone {
29 %1 = fmul <2 x float> %lhs, %rhs
36 define float @_Z3dotff(float %lhs, float %rhs) nounwind readnone {
37 %1 = fmul float %lhs, %rhs
/frameworks/native/libs/ui/tests/
DRegion_test.cpp28 void checkVertTJunction(const Rect* lhs, const Rect* rhs) { in checkVertTJunction() argument
29 EXPECT_FALSE((rhs->right > lhs->left && rhs->right < lhs->right) || in checkVertTJunction()
30 (rhs->left > lhs->left && rhs->left < lhs->right)); in checkVertTJunction()

1234567