/frameworks/base/tools/aapt2/ |
D | Resource.h | 217 inline bool operator<(const ResourceId& lhs, const ResourceId& rhs) { 218 return lhs.id < rhs.id; 221 inline bool operator>(const ResourceId& lhs, const ResourceId& rhs) { 222 return lhs.id > rhs.id; 225 inline bool operator==(const ResourceId& lhs, const ResourceId& rhs) { 226 return lhs.id == rhs.id; 229 inline bool operator!=(const ResourceId& lhs, const ResourceId& rhs) { 230 return lhs.id != rhs.id; 263 inline bool operator<(const ResourceName& lhs, const ResourceName& rhs) { 264 return std::tie(lhs.package, lhs.type, lhs.entry) [all …]
|
D | Source.h | 61 inline bool operator==(const Source& lhs, const Source& rhs) { 62 return lhs.path == rhs.path && lhs.line == rhs.line; 65 inline bool operator<(const Source& lhs, const Source& rhs) { 66 int cmp = lhs.path.compare(rhs.path); 69 if (lhs.line) { 71 return lhs.line.value() < rhs.line.value();
|
/frameworks/base/libs/hwui/ |
D | TextDropShadowCache.cpp | 52 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 …]
|
D | PatchCache.h | 108 static int compare(const PatchDescription& lhs, const PatchDescription& rhs); 118 friend inline int strictly_order_type(const PatchDescription& lhs, in strictly_order_type() 120 return PatchDescription::compare(lhs, rhs) < 0; in strictly_order_type() 123 friend inline int compare_type(const PatchDescription& lhs, in compare_type() 125 return PatchDescription::compare(lhs, rhs); in compare_type()
|
D | TextDropShadowCache.h | 60 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/include/private/ui/ |
D | RegionHelper.h | 69 inline region_operator(int op, const region& lhs, const region& rhs) in region_operator() argument 70 : op_mask(op), spanner(lhs, rhs) in region_operator() 77 SpannerInner spannerInner(spanner.lhs, spanner.rhs); in operator() 161 region lhs; variable 165 inline Spanner(const region& lhs, const region& rhs) in Spanner() argument 166 : lhs(lhs), rhs(rhs) in Spanner() 168 if (lhs.count) { in Spanner() 169 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner() 170 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner() 179 return !rhs.count && !lhs.count; in isDone() [all …]
|
/frameworks/native/services/sensorservice/ |
D | vec.h | 50 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 …]
|
D | mat.h | 34 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/binder/ |
D | PersistableBundle.h | 82 friend bool operator==(const PersistableBundle& lhs, const PersistableBundle& rhs) { 83 return (lhs.mBoolMap == rhs.mBoolMap && lhs.mIntMap == rhs.mIntMap && 84 lhs.mLongMap == rhs.mLongMap && lhs.mDoubleMap == rhs.mDoubleMap && 85 lhs.mStringMap == rhs.mStringMap && lhs.mBoolVectorMap == rhs.mBoolVectorMap && 86 lhs.mIntVectorMap == rhs.mIntVectorMap && 87 lhs.mLongVectorMap == rhs.mLongVectorMap && 88 lhs.mDoubleVectorMap == rhs.mDoubleVectorMap && 89 lhs.mStringVectorMap == rhs.mStringVectorMap && 90 lhs.mPersistableBundleMap == rhs.mPersistableBundleMap); 93 friend bool operator!=(const PersistableBundle& lhs, const PersistableBundle& rhs) { [all …]
|
/frameworks/base/wifi/java/android/net/wifi/nan/ |
D | PublishData.java | 153 PublishData lhs = (PublishData) o; in equals() local 155 if (!mServiceName.equals(lhs.mServiceName) in equals() 156 || mServiceSpecificInfoLength != lhs.mServiceSpecificInfoLength in equals() 157 || mTxFilterLength != lhs.mTxFilterLength in equals() 158 || mRxFilterLength != lhs.mRxFilterLength) { in equals() 162 if (mServiceSpecificInfo != null && lhs.mServiceSpecificInfo != null) { in equals() 164 if (mServiceSpecificInfo[i] != lhs.mServiceSpecificInfo[i]) { in equals() 172 if (mTxFilter != null && lhs.mTxFilter != null) { in equals() 174 if (mTxFilter[i] != lhs.mTxFilter[i]) { in equals() 182 if (mRxFilter != null && lhs.mRxFilter != null) { in equals() [all …]
|
D | SubscribeData.java | 153 SubscribeData lhs = (SubscribeData) o; in equals() local 155 if (!mServiceName.equals(lhs.mServiceName) in equals() 156 || mServiceSpecificInfoLength != lhs.mServiceSpecificInfoLength in equals() 157 || mTxFilterLength != lhs.mTxFilterLength in equals() 158 || mRxFilterLength != lhs.mRxFilterLength) { in equals() 162 if (mServiceSpecificInfo != null && lhs.mServiceSpecificInfo != null) { in equals() 164 if (mServiceSpecificInfo[i] != lhs.mServiceSpecificInfo[i]) { in equals() 172 if (mTxFilter != null && lhs.mTxFilter != null) { in equals() 174 if (mTxFilter[i] != lhs.mTxFilter[i]) { in equals() 182 if (mRxFilter != null && lhs.mRxFilter != null) { in equals() [all …]
|
D | ConfigRequest.java | 130 ConfigRequest lhs = (ConfigRequest) o; in equals() local 132 return mSupport5gBand == lhs.mSupport5gBand && mMasterPreference == lhs.mMasterPreference in equals() 133 && mClusterLow == lhs.mClusterLow && mClusterHigh == lhs.mClusterHigh; in equals()
|
D | SubscribeSettings.java | 111 SubscribeSettings lhs = (SubscribeSettings) o; in equals() local 113 return mSubscribeType == lhs.mSubscribeType && mSubscribeCount == lhs.mSubscribeCount in equals() 114 && mTtlSec == lhs.mTtlSec; in equals()
|
D | PublishSettings.java | 111 PublishSettings lhs = (PublishSettings) o; in equals() local 113 return mPublishType == lhs.mPublishType && mPublishCount == lhs.mPublishCount in equals() 114 && mTtlSec == lhs.mTtlSec; in equals()
|
/frameworks/native/include/ui/ |
D | TMatHelpers.h | 111 MATRIX_R PURE multiply(const MATRIX_A& lhs, const MATRIX_B& rhs) { in multiply() argument 123 res[r] = lhs * rhs[r]; in multiply() 191 BASE<T>& lhs(static_cast< BASE<T>& >(*this)); 192 for (size_t r=0 ; r<lhs.row_size() ; r++) { 193 lhs[r] *= v; 195 return lhs; 200 BASE<T>& lhs(static_cast< BASE<T>& >(*this)); 201 for (size_t r=0 ; r<lhs.row_size() ; r++) { 202 lhs[r] /= v; 204 return lhs; [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
D | Utils.cpp | 21 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/ |
D | rs_matrix.c | 240 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/opengl/libagl/ |
D | matrix.cpp | 252 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/ |
D | CameraTooTest.java | 43 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/native/libs/ui/ |
D | Region.cpp | 298 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 586 const Region& lhs, in boolean_operation() argument 590 validate(lhs, "boolean_operation (before): lhs"); in boolean_operation() [all …]
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 84 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/ |
D | rsMatrix3x3.cpp | 48 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/rs/driver/runtime/arch/ |
D | x86_sse3.ll | 8 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/base/core/java/com/android/internal/app/ |
D | ResolverComparator.java | 155 final ResolveInfo lhs = lhsp.getResolveInfoAt(0); in compare() local 159 if (lhs.targetUserId != UserHandle.USER_CURRENT) { in compare() 170 final boolean lhsSpecific = ResolverActivity.isSpecificUriMatch(lhs.match); in compare() 190 lhs.activityInfo.packageName, lhs.activityInfo.name)); in compare() 201 CharSequence sa = lhs.loadLabel(mPm); in compare() 202 if (sa == null) sa = lhs.activityInfo.name; in compare()
|
/frameworks/native/libs/ui/tests/ |
D | Region_test.cpp | 28 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()
|