Home
last modified time | relevance | path

Searched refs:lhs (Results 1 – 25 of 77) 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/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/libs/ui/
DRegion.cpp134 Region lhs(*this); in operationSelf() local
135 boolean_operation(op, *this, lhs, r); in operationSelf()
154 Region lhs(*this); in operationSelf() local
155 boolean_operation(op, *this, lhs, rhs); in operationSelf()
225 Region lhs(*this); in operationSelf() local
226 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
301 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; } in min() argument
303 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } in max() argument
409 const Region& lhs, in boolean_operation() argument
413 validate(lhs, "boolean_operation (before): lhs"); in boolean_operation()
[all …]
/frameworks/compile/libbcc/lib/Renderscript/runtime/
Drs_cl.c822 extern float3 __attribute__((overloadable)) cross(float3 lhs, float3 rhs) { in FN_FUNC_FN()
824 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in FN_FUNC_FN()
825 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in FN_FUNC_FN()
826 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in FN_FUNC_FN()
830 extern float4 __attribute__((overloadable)) cross(float4 lhs, float4 rhs) { in cross() argument
832 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in cross()
833 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in cross()
834 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in cross()
839 extern float __attribute__((overloadable)) dot(float lhs, float rhs) { in dot() argument
840 return lhs * rhs; in dot()
[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/support/renderscript/v8/rs_support/
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/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/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.cpp261 int TextLayoutCacheKey::compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in compare() argument
262 int deltaInt = lhs.start - rhs.start; in compare()
265 deltaInt = lhs.count - rhs.count; in compare()
268 deltaInt = lhs.contextCount - rhs.contextCount; in compare()
271 if (lhs.typeface < rhs.typeface) return -1; in compare()
272 if (lhs.typeface > rhs.typeface) return +1; in compare()
274 if (lhs.textSize < rhs.textSize) return -1; in compare()
275 if (lhs.textSize > rhs.textSize) return +1; in compare()
277 if (lhs.textSkewX < rhs.textSkewX) return -1; in compare()
278 if (lhs.textSkewX > rhs.textSkewX) return +1; in compare()
[all …]
DTextLayoutCache.h84 static int compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs);
105 inline int strictly_order_type(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in strictly_order_type() argument
106 return TextLayoutCacheKey::compare(lhs, rhs) < 0; in strictly_order_type()
109 inline int compare_type(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in compare_type() argument
110 return TextLayoutCacheKey::compare(lhs, rhs); in compare_type()
/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 …]
/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
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
DMatrix2f.java136 public void loadMultiply(Matrix2f lhs, Matrix2f rhs) { in loadMultiply() argument
142 ri0 += lhs.get(j,0) * rhs_ij; in loadMultiply()
143 ri1 += lhs.get(j,1) * rhs_ij; in loadMultiply()
DMatrix3f.java210 public void loadMultiply(Matrix3f lhs, Matrix3f rhs) { in loadMultiply() argument
217 ri0 += lhs.get(j,0) * rhs_ij; in loadMultiply()
218 ri1 += lhs.get(j,1) * rhs_ij; in loadMultiply()
219 ri2 += lhs.get(j,2) * rhs_ij; in loadMultiply()
/frameworks/base/graphics/java/android/renderscript/
DMatrix2f.java136 public void loadMultiply(Matrix2f lhs, Matrix2f rhs) { in loadMultiply() argument
142 ri0 += lhs.get(j,0) * rhs_ij; in loadMultiply()
143 ri1 += lhs.get(j,1) * rhs_ij; in loadMultiply()
DMatrix3f.java210 public void loadMultiply(Matrix3f lhs, Matrix3f rhs) { in loadMultiply() argument
217 ri0 += lhs.get(j,0) * rhs_ij; in loadMultiply()
218 ri1 += lhs.get(j,1) * rhs_ij; in loadMultiply()
219 ri2 += lhs.get(j,2) * rhs_ij; in loadMultiply()
/frameworks/base/services/java/com/android/server/accessibility/
DScreenMagnifier.java1542 public int compare(WindowInfo lhs, WindowInfo rhs) {
1543 if (lhs.layer != rhs.layer) {
1544 return rhs.layer - lhs.layer;
1546 if (lhs.touchableRegion.top != rhs.touchableRegion.top) {
1547 return rhs.touchableRegion.top - lhs.touchableRegion.top;
1549 if (lhs.touchableRegion.left != rhs.touchableRegion.left) {
1550 return rhs.touchableRegion.left - lhs.touchableRegion.left;
1552 if (lhs.touchableRegion.right != rhs.touchableRegion.right) {
1553 return rhs.touchableRegion.right - lhs.touchableRegion.right;
1555 if (lhs.touchableRegion.bottom != rhs.touchableRegion.bottom) {
[all …]
/frameworks/native/include/utils/
DString16.h125 inline int compare_type(const String16& lhs, const String16& rhs) in compare_type() argument
127 return lhs.compare(rhs); in compare_type()
130 inline int strictly_order_type(const String16& lhs, const String16& rhs) in strictly_order_type() argument
132 return compare_type(lhs, rhs) < 0; in strictly_order_type()
DTypeHelpers.h118 int strictly_order_type(const TYPE& lhs, const TYPE& rhs) {
119 return (lhs < rhs) ? 1 : 0;
123 int compare_type(const TYPE& lhs, const TYPE& rhs) {
124 return strictly_order_type(rhs, lhs) - strictly_order_type(lhs, rhs);
/frameworks/native/include/ui/
DRegion.h152 const Region& lhs, const Region& rhs, int dx, int dy);
154 const Region& lhs, const Rect& rhs, int dx, int dy);
157 const Region& lhs, const Region& rhs);
159 const Region& lhs, const Rect& rhs);
/frameworks/support/volley/src/com/android/volley/toolbox/
DByteArrayPool.java71 public int compare(byte[] lhs, byte[] rhs) {
72 return lhs.length - rhs.length;
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp24 static int sort_func(const String16* lhs, const String16* rhs) in sort_func() argument
26 return lhs->compare(*rhs); in sort_func()

1234