Home
last modified time | relevance | path

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

12345

/frameworks/native/include/ui/
DRegion.h39 Region(const Region& rhs);
40 explicit Region(const Rect& rhs);
43 Region& operator = (const Region& rhs);
58 Region& orSelf(const Rect& rhs);
59 Region& xorSelf(const Rect& rhs);
60 Region& andSelf(const Rect& rhs);
61 Region& subtractSelf(const Rect& rhs);
64 Region& orSelf(const Region& rhs);
65 Region& xorSelf(const Region& rhs);
66 Region& andSelf(const Region& rhs);
[all …]
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) {
64 x += rhs.x;
65 y += rhs.y;
68 inline Point& operator -= (const Point& rhs) {
[all …]
DRect.h64 inline void set(const Rect& rhs) { in set() argument
65 operator = (rhs); in set()
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) const;
135 Rect& operator += (const Point& rhs) {
136 return offsetBy(rhs.x, rhs.y);
[all …]
/frameworks/native/libs/utils/
DCallStack.cpp33 CallStack::CallStack(const CallStack& rhs) : in CallStack() argument
34 mCount(rhs.mCount) { in CallStack()
36 memcpy(mStack, rhs.mStack, mCount * sizeof(backtrace_frame_t)); in CallStack()
43 CallStack& CallStack::operator = (const CallStack& rhs) { in operator =() argument
44 mCount = rhs.mCount; in operator =()
46 memcpy(mStack, rhs.mStack, mCount * sizeof(backtrace_frame_t)); in operator =()
51 bool CallStack::operator == (const CallStack& rhs) const { in operator ==()
52 if (mCount != rhs.mCount) in operator ==()
54 return !mCount || memcmp(mStack, rhs.mStack, mCount * sizeof(backtrace_frame_t)) == 0; in operator ==()
57 bool CallStack::operator != (const CallStack& rhs) const { in operator !=()
[all …]
DVectorImpl.cpp49 VectorImpl::VectorImpl(const VectorImpl& rhs) in VectorImpl() argument
50 : mStorage(rhs.mStorage), mCount(rhs.mCount), in VectorImpl()
51 mFlags(rhs.mFlags), mItemSize(rhs.mItemSize) in VectorImpl()
67 VectorImpl& VectorImpl::operator = (const VectorImpl& rhs) in operator =() argument
69 LOG_ALWAYS_FATAL_IF(mItemSize != rhs.mItemSize, in operator =()
70 "Vector<> have different types (this=%p, rhs=%p)", this, &rhs); in operator =()
71 if (this != &rhs) { in operator =()
73 if (rhs.mCount) { in operator =()
74 mStorage = rhs.mStorage; in operator =()
75 mCount = rhs.mCount; in operator =()
[all …]
/frameworks/native/libs/ui/
DRegion.cpp56 Region::Region(const Region& rhs) in Region() argument
57 : mStorage(rhs.mStorage) in Region()
60 validate(rhs, "rhs copy-ctor"); in Region()
64 Region::Region(const Rect& rhs) { in Region() argument
65 mStorage.add(rhs); in Region()
72 Region& Region::operator = (const Region& rhs) in operator =() argument
76 validate(rhs, "rhs.operator="); in operator =()
78 mStorage = rhs.mStorage; in operator =()
141 Region& Region::orSelf(const Region& rhs) { in orSelf() argument
142 return operationSelf(rhs, op_or); in orSelf()
[all …]
DRect.cpp37 bool Rect::operator < (const Rect& rhs) const in operator <()
39 if (top<rhs.top) { in operator <()
41 } else if (top == rhs.top) { in operator <()
42 if (left < rhs.left) { in operator <()
44 } else if (left == rhs.left) { in operator <()
45 if (bottom<rhs.bottom) { in operator <()
47 } else if (bottom == rhs.bottom) { in operator <()
48 if (right<rhs.right) { in operator <()
75 const Rect Rect::operator + (const Point& rhs) const in operator +()
77 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y); in operator +()
[all …]
/frameworks/native/services/sensorservice/
Dmat.h35 typename TypeTraits<TYPE>::ParameterType rhs) { in doAssign() argument
38 lhs[i][j] = (i==j) ? rhs : 0; in doAssign()
45 const mat<TYPE, C, D>& rhs) in doMul() argument
52 v += lhs[k][r] * rhs[c][k]; in doMul()
63 const vec<TYPE, D>& rhs) in doMul() argument
69 v += lhs[k][r] * rhs[k]; in doMul()
79 const mat<TYPE, C, 1>& rhs) in doMul() argument
84 res[c][r] = lhs[r] * rhs[c][0]; in doMul()
92 const mat<TYPE, C, R>& rhs, in doMul() argument
98 res[c][r] = rhs[c][r] * v; in doMul()
[all …]
Dvec.h50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) { in doAssign() argument
54 lhs[i] = rhs[i]; in doAssign()
69 const VRHS<TYPE, SIZE>& rhs) { in doAdd() argument
72 r[i] = lhs[i] + rhs[i]; in doAdd()
84 const VRHS<TYPE, SIZE>& rhs) { in doSub() argument
87 r[i] = lhs[i] - rhs[i]; in doSub()
98 typename TypeTraits<TYPE>::ParameterType rhs) { in doMulScalar() argument
101 r[i] = lhs[i] * rhs; in doMulScalar()
112 const VEC<TYPE, SIZE>& rhs) { in doScalarMul() argument
115 r[i] = lhs * rhs[i]; in doScalarMul()
[all …]
DBatteryService.h47 bool operator < (const Info& rhs) const {
48 return (uid == rhs.uid) ? (handle < rhs.handle) : (uid < rhs.uid);
/frameworks/native/include/private/ui/
DRegionHelper.h54 inline region(const region& rhs) in region()
55 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { } in region()
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()
162 region rhs; variable
165 inline Spanner(const region& lhs, const region& rhs) in Spanner() argument
166 : lhs(lhs), rhs(rhs) in Spanner()
172 if (rhs.count) { in Spanner()
173 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner()
[all …]
/frameworks/base/tools/aapt/
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 in operator <()
59 if (this->file < rhs.file) return true; in operator <()
60 if (this->file == rhs.file) { in operator <()
61 if (this->line < rhs.line) return true; in operator <()
62 if (this->line == rhs.line) { in operator <()
63 if (this->error < rhs.error) return true; in operator <()
70 ErrorPos::operator==(const ErrorPos& rhs) const in operator ==()
[all …]
/frameworks/native/include/utils/
DCallStack.h38 CallStack(const CallStack& rhs);
41 CallStack& operator = (const CallStack& rhs);
43 bool operator == (const CallStack& rhs) const;
44 bool operator != (const CallStack& rhs) const;
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;
DVector.h53 Vector(const Vector<TYPE>& rhs);
54 explicit Vector(const SortedVector<TYPE>& rhs);
58 const Vector<TYPE>& operator = (const Vector<TYPE>& rhs) const;
59 Vector<TYPE>& operator = (const Vector<TYPE>& rhs);
61 const Vector<TYPE>& operator = (const SortedVector<TYPE>& rhs) const;
62 Vector<TYPE>& operator = (const SortedVector<TYPE>& rhs);
165 typedef int (*compar_t)(const TYPE* lhs, const TYPE* rhs);
166 typedef int (*compar_r_t)(const TYPE* lhs, const TYPE* rhs, void* state);
222 Vector<TYPE>::Vector(const Vector<TYPE>& rhs)
223 : VectorImpl(rhs) {
[all …]
DSortedVector.h47 SortedVector(const SortedVector<TYPE>& rhs);
51 const SortedVector<TYPE>& operator = (const SortedVector<TYPE>& rhs) const;
52 SortedVector<TYPE>& operator = (const SortedVector<TYPE>& rhs);
133 virtual int do_compare(const void* lhs, const void* rhs) const;
155 SortedVector<TYPE>::SortedVector(const SortedVector<TYPE>& rhs)
156 : SortedVectorImpl(rhs) {
165 SortedVector<TYPE>& SortedVector<TYPE>::operator = (const SortedVector<TYPE>& rhs) {
166 SortedVectorImpl::operator = (rhs);
171 const SortedVector<TYPE>& SortedVector<TYPE>::operator = (const SortedVector<TYPE>& rhs) const {
172 SortedVectorImpl::operator = (rhs);
[all …]
DVectorImpl.h50 VectorImpl(const VectorImpl& rhs);
56 VectorImpl& operator = (const VectorImpl& rhs);
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);
144 SortedVectorImpl(const VectorImpl& rhs);
147 SortedVectorImpl& operator = (const SortedVectorImpl& rhs);
166 virtual int do_compare(const void* lhs, const void* rhs) const = 0;
/frameworks/support/renderscript/v8/rs_support/scriptc/
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->y;
[all …]
/frameworks/rs/scriptc/
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->y;
[all …]
/frameworks/native/opengl/libagl/
Dmatrix.cpp236 void matrixx_t::load(const matrixf_t& rhs) { in load() argument
238 GLfloat const* fp = rhs.elements(); in load()
252 void matrixf_t::multiply(matrixf_t& r, const matrixf_t& lhs, const matrixf_t& rhs) in multiply() argument
256 register const float rhs_i0 = rhs.m[ I(i,0) ]; in multiply()
262 register const float rhs_ij = rhs.m[ I(i,j) ]; in multiply()
287 void matrixf_t::set(const GLfixed* rhs) { in set() argument
288 load(rhs); in set()
291 void matrixf_t::set(const GLfloat* rhs) { in set() argument
292 load(rhs); in set()
295 void matrixf_t::load(const GLfixed* rhs) { in load() argument
[all …]
/frameworks/base/libs/hwui/
DLayerCache.h122 bool operator<(const LayerEntry& rhs) const {
123 if (mWidth == rhs.mWidth) {
124 return mHeight < rhs.mHeight;
126 return mWidth < rhs.mWidth;
129 bool operator==(const LayerEntry& rhs) const {
130 return mWidth == rhs.mWidth && mHeight == rhs.mHeight;
/frameworks/base/libs/hwui/utils/
DCompare.h26 if (a < rhs.a) return true; \
27 if (a == rhs.a)
33 if (a < rhs.a) return true; \
34 if (a == rhs.a)
DSortedList.h41 SortedList(const SortedList<TYPE>& rhs);
44 const SortedList<TYPE>& operator =(const SortedList<TYPE>& rhs) const;
45 SortedList<TYPE>& operator =(const SortedList<TYPE>& rhs);
102 virtual int do_compare(const void* lhs, const void* rhs) const;
117 inline SortedList<TYPE>::SortedList(const SortedList<TYPE>& rhs): SortedListImpl(rhs) { in SortedList() argument
125 inline SortedList<TYPE>& SortedList<TYPE>::operator =(const SortedList<TYPE>& rhs) {
126 SortedListImpl::operator =(rhs);
132 const SortedList<TYPE>& rhs) const {
133 SortedListImpl::operator =(rhs);
235 int SortedList<TYPE>::do_compare(const void* lhs, const void* rhs) const { in do_compare() argument
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h166 static HWCLayer* copy(HWCLayer *rhs) { in copy() argument
167 return rhs ? rhs->dup() : NULL; in copy()
188 LayerListIterator& operator = (const LayerListIterator& rhs);
192 LayerListIterator(const LayerListIterator& rhs) in LayerListIterator() argument
193 : mLayerList(HWCLayer::copy(rhs.mLayerList)), mIndex(rhs.mIndex) { in LayerListIterator()
209 bool operator == (const LayerListIterator& rhs) const {
210 return mIndex == rhs.mIndex;
212 bool operator != (const LayerListIterator& rhs) const {
213 return !operator==(rhs);
/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/rs/
DrsMatrix2x2.h40 void loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs);
44 void multiply(const rs_matrix2x2 *rhs) { in multiply()
46 tmp.loadMultiply(this, rhs); in multiply()

12345