Home
last modified time | relevance | path

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

12345

/frameworks/native/include/private/ui/
DRegionHelper.h69 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/base/libs/hwui/
DTextDropShadowCache.cpp53 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { in compare() argument
54 int deltaInt = int(lhs.len) - int(rhs.len); in compare()
57 deltaInt = lhs.flags - rhs.flags; in compare()
60 if (lhs.radius < rhs.radius) return -1; in compare()
61 if (lhs.radius > rhs.radius) return +1; in compare()
63 if (lhs.typeface < rhs.typeface) return -1; in compare()
64 if (lhs.typeface > rhs.typeface) return +1; in compare()
66 if (lhs.textSize < rhs.textSize) return -1; in compare()
67 if (lhs.textSize > rhs.textSize) return +1; in compare()
69 if (lhs.italicStyle < rhs.italicStyle) return -1; in compare()
[all …]
DRenderBufferCache.h93 static int compare(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs);
103 friend inline int strictly_order_type(const RenderBufferEntry& lhs, in strictly_order_type()
105 return RenderBufferEntry::compare(lhs, rhs) < 0; in strictly_order_type()
108 friend inline int compare_type(const RenderBufferEntry& lhs, in compare_type()
110 return RenderBufferEntry::compare(lhs, rhs); in compare_type()
DLayerCache.h112 static int compare(const LayerEntry& lhs, const LayerEntry& rhs);
122 friend inline int strictly_order_type(const LayerEntry& lhs, const LayerEntry& rhs) { in strictly_order_type()
123 return LayerEntry::compare(lhs, rhs) < 0; in strictly_order_type()
126 friend inline int compare_type(const LayerEntry& lhs, const LayerEntry& rhs) { in compare_type()
127 return LayerEntry::compare(lhs, rhs); in compare_type()
DPatchCache.h107 static int compare(const PatchDescription& lhs, const PatchDescription& rhs);
117 friend inline int strictly_order_type(const PatchDescription& lhs, in strictly_order_type()
119 return PatchDescription::compare(lhs, rhs) < 0; in strictly_order_type()
122 friend inline int compare_type(const PatchDescription& lhs, in compare_type()
124 return PatchDescription::compare(lhs, rhs); in compare_type()
DTextDropShadowCache.h64 static int compare(const ShadowText& lhs, const ShadowText& rhs);
103 inline int strictly_order_type(const ShadowText& lhs, const ShadowText& rhs) { in strictly_order_type() argument
104 return ShadowText::compare(lhs, rhs) < 0; in strictly_order_type()
107 inline int compare_type(const ShadowText& lhs, const ShadowText& rhs) { in compare_type() argument
108 return ShadowText::compare(lhs, rhs); in compare_type()
DGradientCache.h66 static int compare(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs);
94 inline int strictly_order_type(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs) { in strictly_order_type() argument
95 return GradientCacheEntry::compare(lhs, rhs) < 0; in strictly_order_type()
98 inline int compare_type(const GradientCacheEntry& lhs, const GradientCacheEntry& rhs) { in compare_type() argument
99 return GradientCacheEntry::compare(lhs, rhs); in compare_type()
DRenderBufferCache.cpp80 const RenderBufferCache::RenderBufferEntry& lhs, in compare() argument
82 int deltaInt = int(lhs.mWidth) - int(rhs.mWidth); in compare()
85 deltaInt = int(lhs.mHeight) - int(rhs.mHeight); in compare()
88 return int(lhs.mFormat) - int(rhs.mFormat); in compare()
/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/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/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/native/include/ui/
DTMatHelpers.h111 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/base/libs/hwui/utils/
DMacros.h28 …friend inline int strictly_order_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs) …
29 … friend inline int compare_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs); } \
/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()
DrsMatrix2x2.cpp44 void Matrix2x2::loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs) { in loadMultiply() argument
53 ri0 += ((const Matrix2x2 *)lhs)->get(j, 0) * rhs_ij; in loadMultiply()
54 ri1 += ((const Matrix2x2 *)lhs)->get(j, 1) * rhs_ij; in loadMultiply()
/frameworks/native/libs/ui/
DRegion.cpp287 Region lhs(*this); in operationSelf() local
288 boolean_operation(op, *this, lhs, r); in operationSelf()
307 Region lhs(*this); in operationSelf() local
308 boolean_operation(op, *this, lhs, rhs); in operationSelf()
378 Region lhs(*this); in operationSelf() local
379 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
454 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; } in min() argument
456 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } in max() argument
560 const Region& lhs, in boolean_operation() argument
564 validate(lhs, "boolean_operation (before): lhs"); in boolean_operation()
[all …]
/frameworks/base/libs/hwui/font/
DFont.cpp90 int Font::FontDescription::compare(const Font::FontDescription& lhs, in compare() argument
92 int deltaInt = int(lhs.mFontId) - int(rhs.mFontId); in compare()
95 if (lhs.mFontSize < rhs.mFontSize) return -1; in compare()
96 if (lhs.mFontSize > rhs.mFontSize) return +1; in compare()
98 if (lhs.mItalicStyle < rhs.mItalicStyle) return -1; in compare()
99 if (lhs.mItalicStyle > rhs.mItalicStyle) return +1; in compare()
101 deltaInt = int(lhs.mFlags) - int(rhs.mFlags); in compare()
104 if (lhs.mScaleX < rhs.mScaleX) return -1; in compare()
105 if (lhs.mScaleX > rhs.mScaleX) return +1; in compare()
107 deltaInt = int(lhs.mStyle) - int(rhs.mStyle); in compare()
[all …]
DFont.h57 static int compare(const FontDescription& lhs, const FontDescription& rhs);
156 inline int strictly_order_type(const Font::FontDescription& lhs, in strictly_order_type() argument
158 return Font::FontDescription::compare(lhs, rhs) < 0; in strictly_order_type()
161 inline int compare_type(const Font::FontDescription& lhs, const Font::FontDescription& rhs) { in compare_type() argument
162 return Font::FontDescription::compare(lhs, rhs); in compare_type()
/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()
/frameworks/compile/mclinker/include/mcld/Support/
DFileSystem.h65 inline bool operator==(const FileStatus& rhs, const FileStatus& lhs) {
66 return rhs.type() == lhs.type();
69 inline bool operator!=(const FileStatus& rhs, const FileStatus& lhs ) {
70 return !(rhs == lhs);
/frameworks/base/core/jni/android/opengl/
Dutil.cpp471 void multiplyMM(float* r, const float* lhs, const float* rhs) in multiplyMM() argument
475 register float ri0 = lhs[ I(0,0) ] * rhs_i0; in multiplyMM()
476 register float ri1 = lhs[ I(0,1) ] * rhs_i0; in multiplyMM()
477 register float ri2 = lhs[ I(0,2) ] * rhs_i0; in multiplyMM()
478 register float ri3 = lhs[ I(0,3) ] * rhs_i0; in multiplyMM()
481 ri0 += lhs[ I(j,0) ] * rhs_ij; in multiplyMM()
482 ri1 += lhs[ I(j,1) ] * rhs_ij; in multiplyMM()
483 ri2 += lhs[ I(j,2) ] * rhs_ij; in multiplyMM()
484 ri3 += lhs[ I(j,3) ] * rhs_ij; in multiplyMM()
500 FloatArrayHelper lhs(env, lhs_ref, lhsOffset, 16); in util_multiplyMM() local
[all …]

12345