Searched refs:rhs (Results 1 - 25 of 118) sorted by relevance

12345

/frameworks/native/include/ui/
H A DPoint.h40 inline bool operator == (const Point& rhs) const {
41 return (x == rhs.x) && (y == rhs.y);
43 inline bool operator != (const Point& rhs) const {
44 return !operator == (rhs);
53 bool operator < (const Point& rhs) const {
54 return y<rhs.y || (y==rhs.y && x<rhs.x);
63 inline Point& operator += (const Point& rhs) { argument
68 operator -=(const Point& rhs) argument
[all...]
H A DRegion.h39 Region(const Region& rhs);
40 explicit Region(const Rect& rhs);
45 Region& operator = (const Region& rhs);
60 Region& orSelf(const Rect& rhs);
61 Region& xorSelf(const Rect& rhs);
62 Region& andSelf(const Rect& rhs);
63 Region& subtractSelf(const Rect& rhs);
66 Region& orSelf(const Region& rhs);
67 Region& xorSelf(const Region& rhs);
68 Region& andSelf(const Region& rhs);
198 operator |=(const Region& rhs) argument
201 operator ^=(const Region& rhs) argument
204 operator &=(const Region& rhs) argument
207 operator -=(const Region& rhs) argument
[all...]
H A DRect.h64 inline void set(const Rect& rhs) { argument
65 operator = (rhs);
110 inline bool operator == (const Rect& rhs) const {
111 return (left == rhs.left) && (top == rhs.top) &&
112 (right == rhs.right) && (bottom == rhs.bottom);
115 inline bool operator != (const Rect& rhs) const {
116 return !operator == (rhs);
121 bool operator < (const Rect& rhs) cons
135 operator +=(const Point& rhs) argument
138 operator -=(const Point& rhs) argument
[all...]
/frameworks/native/libs/utils/
H A DCallStack.cpp38 CallStack::CallStack(const CallStack& rhs) : argument
39 mCount(rhs.mCount) {
41 memcpy(mStack, rhs.mStack, mCount * sizeof(backtrace_frame_t));
48 CallStack& CallStack::operator = (const CallStack& rhs) { argument
49 mCount = rhs.mCount;
51 memcpy(mStack, rhs.mStack, mCount * sizeof(backtrace_frame_t));
56 bool CallStack::operator == (const CallStack& rhs) const {
57 if (mCount != rhs.mCount)
59 return !mCount || memcmp(mStack, rhs.mStack, mCount * sizeof(backtrace_frame_t)) == 0;
62 bool CallStack::operator != (const CallStack& rhs) cons
[all...]
/frameworks/native/include/utils/
H A DCallStack.h40 CallStack(const CallStack& rhs);
43 CallStack& operator = (const CallStack& rhs);
45 bool operator == (const CallStack& rhs) const;
46 bool operator != (const CallStack& rhs) const;
47 bool operator < (const CallStack& rhs) const;
48 bool operator >= (const CallStack& rhs) const;
49 bool operator > (const CallStack& rhs) const;
50 bool operator <= (const CallStack& rhs) const;
/frameworks/compile/libbcc/lib/Renderscript/runtime/arch/
H A Ddot_length.c19 extern float __attribute__((overloadable)) dot(float lhs, float rhs) { argument
20 return lhs * rhs;
22 extern float __attribute__((overloadable)) dot(float2 lhs, float2 rhs) { argument
23 return lhs.x*rhs.x + lhs.y*rhs.y;
25 extern float __attribute__((overloadable)) dot(float3 lhs, float3 rhs) { argument
26 return lhs.x*rhs.x + lhs.y*rhs.y + lhs.z*rhs.z;
28 extern float __attribute__((overloadable)) dot(float4 lhs, float4 rhs) { argument
[all...]
/frameworks/native/libs/ui/
H A DRect.cpp37 bool Rect::operator < (const Rect& rhs) const
39 if (top<rhs.top) {
41 } else if (top == rhs.top) {
42 if (left < rhs.left) {
44 } else if (left == rhs.left) {
45 if (bottom<rhs.bottom) {
47 } else if (bottom == rhs.bottom) {
48 if (right<rhs.right) {
75 const Rect Rect::operator + (const Point& rhs) const
77 const Rect result(left+rhs
[all...]
H A DRegion.cpp61 Region::Region(const Region& rhs) argument
62 : mStorage(rhs.mStorage)
65 validate(rhs, "rhs copy-ctor");
69 Region::Region(const Rect& rhs) { argument
70 mStorage.add(rhs);
204 Region& Region::operator = (const Region& rhs) argument
208 validate(rhs, "rhs.operator=");
210 mStorage = rhs
277 orSelf(const Region& rhs) argument
280 xorSelf(const Region& rhs) argument
283 andSelf(const Region& rhs) argument
286 subtractSelf(const Region& rhs) argument
289 operationSelf(const Region& rhs, int op) argument
314 operation(const Rect& rhs, int op) const argument
334 operation(const Region& rhs, int op) const argument
348 orSelf(const Region& rhs, int dx, int dy) argument
351 xorSelf(const Region& rhs, int dx, int dy) argument
354 andSelf(const Region& rhs, int dx, int dy) argument
357 subtractSelf(const Region& rhs, int dx, int dy) argument
360 operationSelf(const Region& rhs, int dx, int dy, int op) argument
368 merge(const Region& rhs, int dx, int dy) const argument
371 mergeExclusive(const Region& rhs, int dx, int dy) const argument
374 intersect(const Region& rhs, int dx, int dy) const argument
377 subtract(const Region& rhs, int dx, int dy) const argument
380 operation(const Region& rhs, int dx, int dy, int op) const argument
437 min(T rhs, T lhs) argument
439 max(T rhs, T lhs) argument
542 boolean_operation(int op, Region& dst, const Region& lhs, const Region& rhs, int dx, int dy) argument
652 boolean_operation(int op, Region& dst, const Region& lhs, const Rect& rhs, int dx, int dy) argument
679 boolean_operation(int op, Region& dst, const Region& lhs, const Region& rhs) argument
685 boolean_operation(int op, Region& dst, const Region& lhs, const Rect& rhs) argument
[all...]
/frameworks/rs/
H A DrsMatrix2x2.h40 void loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs);
44 void multiply(const rs_matrix2x2 *rhs) { argument
46 tmp.loadMultiply(this, rhs);
H A DrsMatrix3x3.h40 void loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs);
44 void multiply(const rs_matrix3x3 *rhs) { argument
46 tmp.loadMultiply(this, rhs);
H A DrsMatrix2x2.cpp44 void Matrix2x2::loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs) { argument
49 const float rhs_ij = ((const Matrix2x2 *)rhs)->get(i, j);
/frameworks/base/tools/aapt/
H A DSourcePos.cpp22 bool operator<(const ErrorPos& rhs) const;
23 bool operator==(const ErrorPos& rhs) const;
24 ErrorPos& operator=(const ErrorPos& rhs);
57 ErrorPos::operator<(const ErrorPos& rhs) const
59 if (this->file < rhs.file) return true;
60 if (this->file == rhs.file) {
61 if (this->line < rhs.line) return true;
62 if (this->line == rhs.line) {
63 if (this->error < rhs.error) return true;
70 ErrorPos::operator==(const ErrorPos& rhs) cons
78 operator =(const ErrorPos& rhs) argument
[all...]
/frameworks/native/include/private/ui/
H A DRegionHelper.h54 inline region(const region& rhs) argument
55 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { }
69 inline region_operator(int op, const region& lhs, const region& rhs) argument
70 : op_mask(op), spanner(lhs, rhs)
77 SpannerInner spannerInner(spanner.lhs, spanner.rhs);
162 region rhs; member in class:android::region_operator::Spanner
165 inline Spanner(const region& lhs, const region& rhs) argument
223 region rhs; member in class:android::region_operator::SpannerInner
226 SpannerInner(const region& lhs, const region& rhs) argument
[all...]
/frameworks/native/services/sensorservice/
H A Dmat.h35 typename TypeTraits<TYPE>::ParameterType rhs) {
38 lhs[i][j] = (i==j) ? rhs : 0;
45 const mat<TYPE, C, D>& rhs)
52 v += lhs[k][r] * rhs[c][k];
63 const vec<TYPE, D>& rhs)
69 v += lhs[k][r] * rhs[k];
79 const mat<TYPE, C, 1>& rhs)
84 res[c][r] = lhs[r] * rhs[c][0];
92 const mat<TYPE, C, R>& rhs,
98 res[c][r] = rhs[
33 doAssign( mat<TYPE, C, R>& lhs, typename TypeTraits<TYPE>::ParameterType rhs) argument
43 doMul( const mat<TYPE, D, R>& lhs, const mat<TYPE, C, D>& rhs) argument
61 doMul( const mat<TYPE, D, R>& lhs, const vec<TYPE, D>& rhs) argument
77 doMul( const vec<TYPE, R>& lhs, const mat<TYPE, C, 1>& rhs) argument
91 doMul( const mat<TYPE, C, R>& rhs, typename TypeTraits<TYPE>::ParameterType v) argument
105 doMul( typename TypeTraits<TYPE>::ParameterType v, const mat<TYPE, C, R>& rhs) argument
141 mat(const mat& rhs) argument
142 mat(const base& rhs) argument
148 mat(pTYPE rhs) argument
155 operator =(const mat& rhs) argument
160 operator =(const base& rhs) argument
165 operator =(pTYPE rhs) argument
172 operator +(const mat& lhs, const mat& rhs) argument
177 operator -(const mat& lhs, const mat& rhs) argument
185 operator *( const mat<TYPE, D, R>& lhs, const mat<TYPE, C, D>& rhs) argument
192 operator *( const mat& lhs, const vec<TYPE, C>& rhs) argument
198 operator *( const vec<TYPE, R>& lhs, const mat<TYPE, C, 1>& rhs) argument
209 operator *(pTYPE v, const mat& rhs) argument
231 operator <<( const column_builder<PREV_COLUMN>& lhs, const vec<TYPE, R>& rhs) argument
240 operator <<( const column_builder<C-2>& lhs, const vec<TYPE, R>& rhs) argument
248 operator <<(const vec<TYPE, R>& rhs) argument
268 mat(const base& rhs) argument
269 mat(const mat& rhs) argument
270 mat(const TYPE& rhs) argument
271 operator =(const mat& rhs) argument
272 operator =(const base& rhs) argument
273 operator =(const TYPE& rhs) argument
277 operator <<(const vec<TYPE, R>& rhs) argument
[all...]
H A Dvec.h50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) {
54 lhs[i] = rhs[i];
69 const VRHS<TYPE, SIZE>& rhs) {
72 r[i] = lhs[i] + rhs[i];
84 const VRHS<TYPE, SIZE>& rhs) {
87 r[i] = lhs[i] - rhs[i];
98 typename TypeTraits<TYPE>::ParameterType rhs) {
101 r[i] = lhs[i] * rhs;
112 const VEC<TYPE, SIZE>& rhs) {
115 r[i] = lhs * rhs[
49 doAssign( vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) argument
67 doAdd( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
82 doSub( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
96 doMulScalar( const VEC<TYPE, SIZE>& lhs, typename TypeTraits<TYPE>::ParameterType rhs) argument
110 doScalarMul( typename TypeTraits<TYPE>::ParameterType lhs, const VEC<TYPE, SIZE>& rhs) argument
145 operator +( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
157 operator -( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
168 operator *( const VEC<TYPE, SIZE>& lhs, typename TypeTraits<TYPE>::ParameterType rhs) argument
179 operator *( typename TypeTraits<TYPE>::ParameterType lhs, const VEC<TYPE, SIZE>& rhs) argument
192 dot_product( const VLHS<TYPE, SIZE>& lhs, const VRHS<TYPE, SIZE>& rhs) argument
324 vec(const vec& rhs) argument
325 vec(const base& rhs) argument
330 vec(pTYPE rhs) argument
336 vec(const VEC<TYPE, S>& rhs) argument
348 operator =(const vec& rhs) argument
353 operator =(const base& rhs) argument
358 operator =(pTYPE rhs) argument
365 operator =(const VEC<TYPE, S>& rhs) argument
385 operator +(const vec& lhs, const vec& rhs) argument
388 operator -(const vec& lhs, const vec& rhs) argument
394 operator *(pTYPE v, const vec& rhs) argument
397 dot_product(const vec& lhs, const vec& rhs) argument
405 operator +=(const vec<TYPE, SIZE>& rhs) argument
413 operator -=(const vec<TYPE, SIZE>& rhs) argument
421 operator *=(vec<TYPE, SIZE>::pTYPE rhs) argument
[all...]
H A DBatteryService.h47 bool operator < (const Info& rhs) const {
48 return (uid == rhs.uid) ? (handle < rhs.handle) : (uid < rhs.uid);
/frameworks/rs/scriptc/
H A Drs_quaternion.rsh45 * @param rhs source quaternion
48 rsQuaternionSet(rs_quaternion *q, const rs_quaternion *rhs) {
49 q->w = rhs->w;
50 q->x = rhs->x;
51 q->y = rhs->y;
52 q->z = rhs->z;
74 rsQuaternionAdd(rs_quaternion *q, const rs_quaternion *rhs) {
75 q->w *= rhs->w;
76 q->x *= rhs->x;
77 q->y *= rhs
[all...]
/frameworks/base/libs/hwui/
H A DLayerCache.h108 static int compare(const LayerEntry& lhs, const LayerEntry& rhs);
118 friend inline int strictly_order_type(const LayerEntry& lhs, const LayerEntry& rhs) { argument
119 return LayerEntry::compare(lhs, rhs) < 0;
122 friend inline int compare_type(const LayerEntry& lhs, const LayerEntry& rhs) { argument
123 return LayerEntry::compare(lhs, rhs);
H A DRenderBufferCache.h93 static int compare(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs);
104 const RenderBufferEntry& rhs) {
105 return RenderBufferEntry::compare(lhs, rhs) < 0;
109 const RenderBufferEntry& rhs) {
110 return RenderBufferEntry::compare(lhs, rhs);
103 strictly_order_type(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs) argument
108 compare_type(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs) argument
H A DTextDropShadowCache.cpp52 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { argument
53 int deltaInt = int(lhs.len) - int(rhs.len);
56 deltaInt = lhs.flags - rhs.flags;
59 if (lhs.radius < rhs.radius) return -1;
60 if (lhs.radius > rhs.radius) return +1;
62 if (lhs.typeface < rhs.typeface) return -1;
63 if (lhs.typeface > rhs.typeface) return +1;
65 if (lhs.textSize < rhs.textSize) return -1;
66 if (lhs.textSize > rhs.textSize) return +1;
68 if (lhs.italicStyle < rhs
[all...]
H A DPatchCache.cpp46 const PatchCache::PatchDescription& lhs, const PatchCache::PatchDescription& rhs) {
47 int deltaInt = lhs.bitmapWidth - rhs.bitmapWidth;
50 deltaInt = lhs.bitmapHeight - rhs.bitmapHeight;
53 if (lhs.pixelWidth < rhs.pixelWidth) return -1;
54 if (lhs.pixelWidth > rhs.pixelWidth) return +1;
56 if (lhs.pixelHeight < rhs.pixelHeight) return -1;
57 if (lhs.pixelHeight > rhs.pixelHeight) return +1;
59 deltaInt = lhs.xCount - rhs.xCount;
62 deltaInt = lhs.yCount - rhs.yCount;
65 deltaInt = lhs.emptyCount - rhs
45 compare( const PatchCache::PatchDescription& lhs, const PatchCache::PatchDescription& rhs) argument
[all...]
H A DPatchCache.h82 static int compare(const PatchDescription& lhs, const PatchDescription& rhs);
93 const PatchDescription& rhs) {
94 return PatchDescription::compare(lhs, rhs) < 0;
98 const PatchDescription& rhs) {
99 return PatchDescription::compare(lhs, rhs);
92 strictly_order_type(const PatchDescription& lhs, const PatchDescription& rhs) argument
97 compare_type(const PatchDescription& lhs, const PatchDescription& rhs) argument
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DHsvColorComparator.java29 public int compare(Integer lhs, Integer rhs) { argument
37 Color.colorToHSV(rhs, hsv2);
/frameworks/base/graphics/java/android/renderscript/
H A DMatrix2f.java134 * @param rhs right hand side matrix
136 public void loadMultiply(Matrix2f lhs, Matrix2f rhs) { argument
141 float rhs_ij = rhs.get(i,j);
153 * @param rhs right hand side to multiply by
155 public void multiply(Matrix2f rhs) { argument
157 tmp.loadMultiply(this, rhs);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DMatrix2f.java134 * @param rhs right hand side matrix
136 public void loadMultiply(Matrix2f lhs, Matrix2f rhs) { argument
141 float rhs_ij = rhs.get(i,j);
153 * @param rhs right hand side to multiply by
155 public void multiply(Matrix2f rhs) { argument
157 tmp.loadMultiply(this, rhs);

Completed in 503 milliseconds

12345