/frameworks/base/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() 156 region lhs; variable 160 inline Spanner(const region& lhs, const region& rhs) in Spanner() argument 161 : lhs(lhs), rhs(rhs) in Spanner() 163 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner() 164 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner() 170 return !rhs.count && !lhs.count; in isDone() 179 advance(lhs, SpannerBase::lhs_head, SpannerBase::lhs_tail); in next() [all …]
|
/frameworks/base/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/base/libs/ui/ |
D | Region.cpp | 136 Region lhs(*this); in operationSelf() local 137 boolean_operation(op, *this, lhs, r); in operationSelf() 153 Region lhs(*this); in operationSelf() local 154 boolean_operation(op, *this, lhs, rhs); in operationSelf() 215 Region lhs(*this); in operationSelf() local 216 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf() 290 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; } in min() argument 292 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } in max() argument 370 const Region& lhs, in boolean_operation() argument 374 validate(lhs, "boolean_operation (before): lhs"); in boolean_operation() [all …]
|
/frameworks/base/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/libs/rs/ |
D | rsMatrix3x3.cpp | 48 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()
|
D | rsMatrix2x2.cpp | 44 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()
|
D | rsMatrix4x4.cpp | 252 void Matrix4x4::loadMultiply(const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs) { in loadMultiply() argument 260 ri0 += ((const Matrix4x4 *)lhs)->get(j,0) * rhs_ij; in loadMultiply() 261 ri1 += ((const Matrix4x4 *)lhs)->get(j,1) * rhs_ij; in loadMultiply() 262 ri2 += ((const Matrix4x4 *)lhs)->get(j,2) * rhs_ij; in loadMultiply() 263 ri3 += ((const Matrix4x4 *)lhs)->get(j,3) * rhs_ij; in loadMultiply()
|
/frameworks/base/core/jni/android/graphics/ |
D | TextLayoutCache.cpp | 256 int TextLayoutCacheKey::compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in compare() argument 257 int deltaInt = lhs.start - rhs.start; in compare() 260 deltaInt = lhs.count - rhs.count; in compare() 263 deltaInt = lhs.contextCount - rhs.contextCount; in compare() 266 if (lhs.typeface < rhs.typeface) return -1; in compare() 267 if (lhs.typeface > rhs.typeface) return +1; in compare() 269 if (lhs.textSize < rhs.textSize) return -1; in compare() 270 if (lhs.textSize > rhs.textSize) return +1; in compare() 272 if (lhs.textSkewX < rhs.textSkewX) return -1; in compare() 273 if (lhs.textSkewX > rhs.textSkewX) return +1; in compare() [all …]
|
D | TextLayoutCache.h | 87 static int compare(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs); 107 inline int strictly_order_type(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in strictly_order_type() argument 108 return TextLayoutCacheKey::compare(lhs, rhs) < 0; in strictly_order_type() 111 inline int compare_type(const TextLayoutCacheKey& lhs, const TextLayoutCacheKey& rhs) { in compare_type() argument 112 return TextLayoutCacheKey::compare(lhs, rhs); in compare_type()
|
/frameworks/compile/libbcc/lib/ScriptCRT/ |
D | rs_cl.c | 821 extern float3 __attribute__((overloadable)) cross(float3 lhs, float3 rhs) { in FN_FUNC_FN() 823 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in FN_FUNC_FN() 824 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in FN_FUNC_FN() 825 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in FN_FUNC_FN() 829 extern float4 __attribute__((overloadable)) cross(float4 lhs, float4 rhs) { in cross() argument 831 r.x = lhs.y * rhs.z - lhs.z * rhs.y; in cross() 832 r.y = lhs.z * rhs.x - lhs.x * rhs.z; in cross() 833 r.z = lhs.x * rhs.y - lhs.y * rhs.x; in cross() 838 extern float __attribute__((overloadable)) dot(float lhs, float rhs) { in dot() argument 839 return lhs * rhs; in dot() [all …]
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 471 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/ |
D | MoreAsserts.java | 447 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/base/graphics/java/android/renderscript/ |
D | Matrix2f.java | 136 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()
|
D | Matrix3f.java | 210 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()
|
D | Matrix4f.java | 198 public void loadMultiply(Matrix4f lhs, Matrix4f rhs) { in loadMultiply() argument 206 ri0 += lhs.get(j,0) * rhs_ij; in loadMultiply() 207 ri1 += lhs.get(j,1) * rhs_ij; in loadMultiply() 208 ri2 += lhs.get(j,2) * rhs_ij; in loadMultiply() 209 ri3 += lhs.get(j,3) * rhs_ij; in loadMultiply()
|
/frameworks/base/include/utils/ |
D | TypeHelpers.h | 106 int strictly_order_type(const TYPE& lhs, const TYPE& rhs) { 107 return (lhs < rhs) ? 1 : 0; 111 int compare_type(const TYPE& lhs, const TYPE& rhs) { 112 return strictly_order_type(rhs, lhs) - strictly_order_type(lhs, rhs);
|
D | String16.h | 120 inline int compare_type(const String16& lhs, const String16& rhs) in compare_type() argument 122 return lhs.compare(rhs); in compare_type() 125 inline int strictly_order_type(const String16& lhs, const String16& rhs) in strictly_order_type() argument 127 return compare_type(lhs, rhs) < 0; in strictly_order_type()
|
D | String8.h | 227 inline int compare_type(const String8& lhs, const String8& rhs) in compare_type() argument 229 return lhs.compare(rhs); in compare_type() 232 inline int strictly_order_type(const String8& lhs, const String8& rhs) in strictly_order_type() argument 234 return compare_type(lhs, rhs) < 0; in strictly_order_type()
|
D | VectorImpl.h | 92 typedef int (*compar_t)(const void* lhs, const void* rhs); 93 typedef int (*compar_r_t)(const void* lhs, const void* rhs, void* state); 166 virtual int do_compare(const void* lhs, const void* rhs) const = 0;
|
/frameworks/base/include/ui/ |
D | Region.h | 139 const Region& lhs, const Region& rhs, int dx, int dy); 141 const Region& lhs, const Rect& rhs, int dx, int dy); 144 const Region& lhs, const Region& rhs); 146 const Region& lhs, const Rect& rhs);
|
/frameworks/base/cmds/dumpsys/ |
D | dumpsys.cpp | 24 static int sort_func(const String16* lhs, const String16* rhs) in sort_func() argument 26 return lhs->compare(*rhs); in sort_func()
|
/frameworks/base/services/surfaceflinger/ |
D | MessageQueue.h | 82 inline bool operator < (const MessageBase& lhs, const MessageBase& rhs) { 83 return lhs.when < rhs.when;
|
/frameworks/base/libs/rs/driver/ |
D | rsdRuntimeMath.cpp | 197 static void SC_MatrixLoadMultiply_4x4_4x4_4x4(Matrix4x4 *m, const Matrix4x4 *lhs, const Matrix4x4 *… in SC_MatrixLoadMultiply_4x4_4x4_4x4() argument 198 m->loadMultiply(lhs, rhs); in SC_MatrixLoadMultiply_4x4_4x4_4x4() 200 static void SC_MatrixLoadMultiply_3x3_3x3_3x3(Matrix3x3 *m, const Matrix3x3 *lhs, const Matrix3x3 *… in SC_MatrixLoadMultiply_3x3_3x3_3x3() argument 201 m->loadMultiply(lhs, rhs); in SC_MatrixLoadMultiply_3x3_3x3_3x3() 203 static void SC_MatrixLoadMultiply_2x2_2x2_2x2(Matrix2x2 *m, const Matrix2x2 *lhs, const Matrix2x2 *… in SC_MatrixLoadMultiply_2x2_2x2_2x2() argument 204 m->loadMultiply(lhs, rhs); in SC_MatrixLoadMultiply_2x2_2x2_2x2()
|
/frameworks/base/core/java/android/server/search/ |
D | Searchables.java | 318 public int compare(ResolveInfo lhs, ResolveInfo rhs) { 319 if (lhs == rhs) { 322 boolean lhsSystem = isSystemApp(lhs); 335 return rhs.priority - lhs.priority;
|