Home
last modified time | relevance | path

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

1234

/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 …]
DLayerCache.h108 static int compare(const LayerEntry& lhs, const LayerEntry& rhs);
118 friend inline int strictly_order_type(const LayerEntry& lhs, const LayerEntry& rhs) { in strictly_order_type()
119 return LayerEntry::compare(lhs, rhs) < 0; in strictly_order_type()
122 friend inline int compare_type(const LayerEntry& lhs, const LayerEntry& rhs) { in compare_type()
123 return LayerEntry::compare(lhs, rhs); in compare_type()
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()
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.c241 rsMatrixLoadMultiply(rs_matrix4x4 *ret, const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs) { in rsMatrixLoadMultiply() argument
249 ri0 += rsMatrixGet(lhs, j, 0) * rhs_ij; in rsMatrixLoadMultiply()
250 ri1 += rsMatrixGet(lhs, j, 1) * rhs_ij; in rsMatrixLoadMultiply()
251 ri2 += rsMatrixGet(lhs, j, 2) * rhs_ij; in rsMatrixLoadMultiply()
252 ri3 += rsMatrixGet(lhs, j, 3) * rhs_ij; in rsMatrixLoadMultiply()
262 rsMatrixMultiply(rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs) { in rsMatrixMultiply() argument
264 rsMatrixLoadMultiply(&r, lhs, rhs); in rsMatrixMultiply()
265 rsMatrixLoad(lhs, &r); in rsMatrixMultiply()
269 rsMatrixLoadMultiply(rs_matrix3x3 *ret, const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs) { in rsMatrixLoadMultiply() argument
276 ri0 += rsMatrixGet(lhs, j, 0) * rhs_ij; in rsMatrixLoadMultiply()
[all …]
Drs_cl.c888 extern float3 __attribute__((overloadable)) cross(float3 lhs, float3 rhs) { in FN_FUNC_FN()
890 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in FN_FUNC_FN()
891 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in FN_FUNC_FN()
892 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in FN_FUNC_FN()
896 extern float4 __attribute__((overloadable)) cross(float4 lhs, float4 rhs) { in cross() argument
898 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in cross()
899 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in cross()
900 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in cross()
907 extern float __attribute__((overloadable)) dot(float lhs, float rhs) { in dot() argument
908 return lhs * rhs; in dot()
[all …]
/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/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/rs/
DrsMatrix3x3.cpp48 void Matrix3x3::loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs) { in loadMultiply() argument
55 ri0 += ((const Matrix3x3 *)lhs)->get(j, 0) * rhs_ij; in loadMultiply()
56 ri1 += ((const Matrix3x3 *)lhs)->get(j, 1) * rhs_ij; in loadMultiply()
57 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
50 ri0 += ((const Matrix2x2 *)lhs)->get(j, 0) * rhs_ij; in loadMultiply()
51 ri1 += ((const Matrix2x2 *)lhs)->get(j, 1) * rhs_ij; in loadMultiply()
/frameworks/native/libs/ui/
DRegion.cpp270 Region lhs(*this); in operationSelf() local
271 boolean_operation(op, *this, lhs, r); in operationSelf()
290 Region lhs(*this); in operationSelf() local
291 boolean_operation(op, *this, lhs, rhs); in operationSelf()
361 Region lhs(*this); in operationSelf() local
362 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
437 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; } in min() argument
439 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } in max() argument
543 const Region& lhs, in boolean_operation() argument
547 validate(lhs, "boolean_operation (before): lhs"); in boolean_operation()
[all …]
/frameworks/base/libs/hwui/font/
DFont.cpp91 int Font::FontDescription::compare(const Font::FontDescription& lhs, in compare() argument
93 int deltaInt = int(lhs.mFontId) - int(rhs.mFontId); in compare()
96 if (lhs.mFontSize < rhs.mFontSize) return -1; in compare()
97 if (lhs.mFontSize > rhs.mFontSize) return +1; in compare()
99 if (lhs.mItalicStyle < rhs.mItalicStyle) return -1; in compare()
100 if (lhs.mItalicStyle > rhs.mItalicStyle) return +1; in compare()
102 deltaInt = int(lhs.mFlags) - int(rhs.mFlags); in compare()
105 if (lhs.mScaleX < rhs.mScaleX) return -1; in compare()
106 if (lhs.mScaleX > rhs.mScaleX) return +1; in compare()
108 deltaInt = int(lhs.mStyle) - int(rhs.mStyle); in compare()
[all …]
DFont.h53 static int compare(const FontDescription& lhs, const FontDescription& rhs);
150 inline int strictly_order_type(const Font::FontDescription& lhs, in strictly_order_type() argument
152 return Font::FontDescription::compare(lhs, rhs) < 0; in strictly_order_type()
155 inline int compare_type(const Font::FontDescription& lhs, const Font::FontDescription& rhs) { in compare_type() argument
156 return Font::FontDescription::compare(lhs, rhs); in compare_type()
/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/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/compile/mclinker/include/mcld/Support/
DFileSystem.h68 inline bool operator==(const FileStatus& rhs, const FileStatus& lhs) {
69 return rhs.type() == lhs.type();
72 inline bool operator!=(const FileStatus& rhs, const FileStatus& lhs ) {
73 return !(rhs == lhs);
/frameworks/base/core/jni/android/graphics/
DTextLayoutCache.cpp255 int TextLayoutCacheKey::compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in compare() argument
256 int deltaInt = lhs.start - rhs.start; in compare()
259 deltaInt = lhs.count - rhs.count; in compare()
262 deltaInt = lhs.contextCount - rhs.contextCount; in compare()
265 if (lhs.typeface < rhs.typeface) return -1; in compare()
266 if (lhs.typeface > rhs.typeface) return +1; in compare()
268 if (lhs.textSize < rhs.textSize) return -1; in compare()
269 if (lhs.textSize > rhs.textSize) return +1; in compare()
271 if (lhs.textSkewX < rhs.textSkewX) return -1; in compare()
272 if (lhs.textSkewX > rhs.textSkewX) return +1; in compare()
[all …]
DTextLayoutCache.h81 static int compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs);
110 inline int strictly_order_type(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in strictly_order_type() argument
111 return TextLayoutCacheKey::compare(lhs, rhs) < 0; in strictly_order_type()
114 inline int compare_type(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in compare_type() argument
115 return TextLayoutCacheKey::compare(lhs, rhs); in compare_type()
/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java447 String message, Object lhs, Object rhs, boolean expectedResult) { in checkEqualsAndHashCodeMethods() argument
449 if ((lhs == null) && (rhs == null)) { in checkEqualsAndHashCodeMethods()
456 if ((lhs == null) || (rhs == null)) { in checkEqualsAndHashCodeMethods()
462 if (lhs != null) { in checkEqualsAndHashCodeMethods()
463 Assert.assertEquals(message, expectedResult, lhs.equals(rhs)); in checkEqualsAndHashCodeMethods()
466 Assert.assertEquals(message, expectedResult, rhs.equals(lhs)); in checkEqualsAndHashCodeMethods()
475 Assert.assertTrue(hashMessage, lhs.hashCode() == rhs.hashCode()); in checkEqualsAndHashCodeMethods()
484 public static void checkEqualsAndHashCodeMethods(Object lhs, Object rhs, in checkEqualsAndHashCodeMethods() argument
486 checkEqualsAndHashCodeMethods((String) null, lhs, rhs, expectedResult); in checkEqualsAndHashCodeMethods() local

1234