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

12345678

/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.h40 Region(const Region& rhs);
41 explicit Region(const Rect& rhs);
46 Region& operator = (const Region& rhs);
65 Region& orSelf(const Rect& rhs);
66 Region& xorSelf(const Rect& rhs);
67 Region& andSelf(const Rect& rhs);
68 Region& subtractSelf(const Rect& rhs);
71 Region& orSelf(const Region& rhs);
72 Region& xorSelf(const Region& rhs);
73 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.h128 inline bool operator == (const Rect& rhs) const {
129 return (left == rhs.left) && (top == rhs.top) &&
130 (right == rhs.right) && (bottom == rhs.bottom);
133 inline bool operator != (const Rect& rhs) const {
134 return !operator == (rhs);
139 bool operator < (const Rect& rhs) const;
141 const Rect operator + (const Point& rhs) const;
142 const Rect operator - (const Point& rhs) cons
144 operator +=(const Point& rhs) argument
147 operator -=(const Point& rhs) argument
184 set(const Rect& rhs) argument
[all...]
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DUtils.cpp21 bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs) { argument
22 if (lhs.size() < rhs.size()) {
24 } else if (lhs.size() > rhs.size()) {
27 return memcmp((void *)lhs.array(), (void *)rhs.array(), rhs.size()) < 0;
H A DUtils.h26 bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs);
/frameworks/base/tools/split-select/
H A DSplitDescription.h34 int compare(const SplitDescription& rhs) const;
35 inline bool operator<(const SplitDescription& rhs) const;
36 inline bool operator==(const SplitDescription& rhs) const;
37 inline bool operator!=(const SplitDescription& rhs) const;
50 bool SplitDescription::operator<(const SplitDescription& rhs) const {
51 return compare(rhs) < 0;
54 bool SplitDescription::operator==(const SplitDescription& rhs) const {
55 return compare(rhs) == 0;
58 bool SplitDescription::operator!=(const SplitDescription& rhs) const {
59 return compare(rhs) !
[all...]
/frameworks/base/tools/aapt2/util/
H A DMaybe.h43 Maybe(const Maybe& rhs);
46 Maybe(const Maybe<U>& rhs);
48 Maybe(Maybe&& rhs);
51 Maybe(Maybe<U>&& rhs);
53 Maybe& operator=(const Maybe& rhs);
56 Maybe& operator=(const Maybe<U>& rhs);
58 Maybe& operator=(Maybe&& rhs);
61 Maybe& operator=(Maybe<U>&& rhs);
96 Maybe& copy(const Maybe<U>& rhs);
99 Maybe& move(Maybe<U>&& rhs);
121 Maybe(const Maybe& rhs) argument
130 Maybe(const Maybe<U>& rhs) argument
138 Maybe(Maybe&& rhs) argument
151 Maybe(Maybe<U>&& rhs) argument
163 operator =(const Maybe& rhs) argument
170 operator =(const Maybe<U>& rhs) argument
176 copy(const Maybe<U>& rhs) argument
198 operator =(Maybe&& rhs) argument
205 operator =(Maybe<U>&& rhs) argument
211 move(Maybe<U>&& rhs) argument
[all...]
H A DMaybe_test.cpp34 Dummy(const Dummy& rhs) { argument
36 if (rhs.data) {
38 *data = *rhs.data;
41 << "} from Dummy{0x" << (const void*) &rhs
45 Dummy(Dummy&& rhs) { argument
46 data = rhs.data;
47 rhs.data = nullptr;
49 << "} from Dummy{0x" << (const void*) &rhs
53 Dummy& operator=(const Dummy& rhs) { argument
57 if (rhs
67 operator =(Dummy&& rhs) argument
[all...]
H A DStringPiece.h47 BasicStringPiece<TChar>& operator=(const BasicStringPiece<TChar>& rhs);
60 bool contains(const BasicStringPiece<TChar>& rhs) const;
61 int compare(const BasicStringPiece<TChar>& rhs) const;
62 bool operator<(const BasicStringPiece<TChar>& rhs) const;
63 bool operator>(const BasicStringPiece<TChar>& rhs) const;
64 bool operator==(const BasicStringPiece<TChar>& rhs) const;
65 bool operator!=(const BasicStringPiece<TChar>& rhs) const;
113 const BasicStringPiece<TChar>& rhs) {
114 mData = rhs.mData;
115 mLength = rhs
112 operator =( const BasicStringPiece<TChar>& rhs) argument
[all...]
/frameworks/base/tools/aapt2/
H A DResource.h101 ResourceNameRef(const ResourceName& rhs);
103 ResourceNameRef& operator=(const ResourceNameRef& rhs) = default; member in struct:aapt::ResourceNameRef
104 ResourceNameRef& operator=(ResourceNameRef&& rhs) = default; member in struct:aapt::ResourceNameRef
105 ResourceNameRef& operator=(const ResourceName& rhs);
126 ResourceId(const ResourceId& rhs);
192 inline ResourceId::ResourceId(const ResourceId& rhs) : id(rhs.id) { argument
217 inline bool operator<(const ResourceId& lhs, const ResourceId& rhs) { argument
218 return lhs.id < rhs.id;
221 inline bool operator>(const ResourceId& lhs, const ResourceId& rhs) { argument
225 operator ==(const ResourceId& lhs, const ResourceId& rhs) argument
229 operator !=(const ResourceId& lhs, const ResourceId& rhs) argument
263 operator <(const ResourceName& lhs, const ResourceName& rhs) argument
268 operator ==(const ResourceName& lhs, const ResourceName& rhs) argument
273 operator !=(const ResourceName& lhs, const ResourceName& rhs) argument
298 ResourceNameRef(const ResourceName& rhs) argument
307 operator =(const ResourceName& rhs) argument
322 operator <(const ResourceNameRef& lhs, const ResourceNameRef& rhs) argument
327 operator ==(const ResourceNameRef& lhs, const ResourceNameRef& rhs) argument
332 operator !=(const ResourceNameRef& lhs, const ResourceNameRef& rhs) argument
348 operator !=(const ResourceName& lhs, const ResourceNameRef& rhs) argument
352 operator ==(const SourcedResourceName& lhs, const SourcedResourceName& rhs) argument
[all...]
H A DSource.h61 inline bool operator==(const Source& lhs, const Source& rhs) { argument
62 return lhs.path == rhs.path && lhs.line == rhs.line;
65 inline bool operator<(const Source& lhs, const Source& rhs) { argument
66 int cmp = lhs.path.compare(rhs.path);
70 if (rhs.line) {
71 return lhs.line.value() < rhs.line.value();
75 return bool(rhs.line);
/frameworks/base/include/androidfw/
H A DTypeWrappers.h30 iterator& operator=(const iterator& rhs) { argument
31 mTypeVariant = rhs.mTypeVariant;
32 mIndex = rhs.mIndex;
35 bool operator==(const iterator& rhs) const {
36 return mTypeVariant == rhs.mTypeVariant && mIndex == rhs.mIndex;
39 bool operator!=(const iterator& rhs) const {
40 return mTypeVariant != rhs.mTypeVariant || mIndex != rhs.mIndex;
/frameworks/base/tools/aapt/
H A DSymbol.h33 inline bool operator<(const Symbol& rhs) const;
48 inline bool operator<(const SymbolDefinition& rhs) const;
77 bool Symbol::operator<(const Symbol& rhs) const {
78 return (package < rhs.package) || (type < rhs.type) || (name < rhs.name) || (id < rhs.id);
90 bool SymbolDefinition::operator<(const SymbolDefinition& rhs) const {
91 return (symbol < rhs.symbol) || (config < rhs
[all...]
/frameworks/native/libs/ui/
H A DRect.cpp40 bool Rect::operator <(const Rect& rhs) const {
41 if (top < rhs.top) {
43 } else if (top == rhs.top) {
44 if (left < rhs.left) {
46 } else if (left == rhs.left) {
47 if (bottom < rhs.bottom) {
49 } else if (bottom == rhs.bottom) {
50 if (right < rhs.right) {
75 const Rect Rect::operator +(const Point& rhs) const {
76 const Rect result(left + rhs
[all...]
H A DRegion.cpp64 Region::Region(const Region& rhs) argument
65 : mStorage(rhs.mStorage)
68 validate(rhs, "rhs copy-ctor");
72 Region::Region(const Rect& rhs) { argument
73 mStorage.add(rhs);
210 Region& Region::operator = (const Region& rhs) argument
214 validate(rhs, "rhs.operator=");
216 mStorage = rhs
305 orSelf(const Region& rhs) argument
308 xorSelf(const Region& rhs) argument
311 andSelf(const Region& rhs) argument
314 subtractSelf(const Region& rhs) argument
317 operationSelf(const Region& rhs, int op) argument
342 operation(const Rect& rhs, int op) const argument
362 operation(const Region& rhs, int op) const argument
376 orSelf(const Region& rhs, int dx, int dy) argument
379 xorSelf(const Region& rhs, int dx, int dy) argument
382 andSelf(const Region& rhs, int dx, int dy) argument
385 subtractSelf(const Region& rhs, int dx, int dy) argument
388 operationSelf(const Region& rhs, int dx, int dy, int op) argument
396 merge(const Region& rhs, int dx, int dy) const argument
399 mergeExclusive(const Region& rhs, int dx, int dy) const argument
402 intersect(const Region& rhs, int dx, int dy) const argument
405 subtract(const Region& rhs, int dx, int dy) const argument
408 operation(const Region& rhs, int dx, int dy, int op) const argument
438 min(T rhs, T lhs) argument
440 max(T rhs, T lhs) argument
585 boolean_operation(int op, Region& dst, const Region& lhs, const Region& rhs, int dx, int dy) argument
695 boolean_operation(int op, Region& dst, const Region& lhs, const Rect& rhs, int dx, int dy) argument
724 boolean_operation(int op, Region& dst, const Region& lhs, const Region& rhs) argument
730 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
45 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
45 loadMultiply(this, rhs);
/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/include/binder/
H A DPersistableBundle.h82 friend bool operator==(const PersistableBundle& lhs, const PersistableBundle& rhs) { argument
83 return (lhs.mBoolMap == rhs.mBoolMap && lhs.mIntMap == rhs.mIntMap &&
84 lhs.mLongMap == rhs.mLongMap && lhs.mDoubleMap == rhs.mDoubleMap &&
85 lhs.mStringMap == rhs.mStringMap && lhs.mBoolVectorMap == rhs.mBoolVectorMap &&
86 lhs.mIntVectorMap == rhs.mIntVectorMap &&
87 lhs.mLongVectorMap == rhs.mLongVectorMap &&
88 lhs.mDoubleVectorMap == rhs
93 operator !=(const PersistableBundle& lhs, const PersistableBundle& 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...]
/frameworks/rs/driver/runtime/
H A Drs_quaternion.c12 rsQuaternionAdd(rs_quaternion* q, const rs_quaternion* rhs) { argument
13 q->w += rhs->w;
14 q->x += rhs->x;
15 q->y += rhs->y;
16 q->z += rhs->z;
77 rsQuaternionSet(rs_quaternion* q, const rs_quaternion* rhs) { argument
78 q->w = rhs->w;
79 q->x = rhs->x;
80 q->y = rhs->y;
81 q->z = rhs
117 rsQuaternionMultiply(rs_quaternion* q, const rs_quaternion* rhs) argument
[all...]
/frameworks/base/libs/hwui/
H A DTextDropShadowCache.cpp52 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { argument
53 int deltaInt = int(lhs.glyphCount) - int(rhs.glyphCount);
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...]
/frameworks/av/media/img_utils/src/
H A DSortedEntryVector.cpp37 int SortedEntryVector::do_compare(const void* lhs, const void* rhs) const {
39 const sp<TiffEntry>* rEntry = reinterpret_cast<const sp<TiffEntry>*>(rhs);
/frameworks/base/tools/aapt2/xml/
H A DXmlPullParser.h133 int compare(const Attribute& rhs) const;
134 bool operator<(const Attribute& rhs) const;
135 bool operator==(const Attribute& rhs) const;
136 bool operator!=(const Attribute& rhs) const;
255 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const {
256 int cmp = namespaceUri.compare(rhs.namespaceUri);
258 return name.compare(rhs.name);
261 inline bool XmlPullParser::Attribute::operator<(const Attribute& rhs) const {
262 return compare(rhs) < 0;
265 inline bool XmlPullParser::Attribute::operator==(const Attribute& rhs) cons
[all...]

Completed in 494 milliseconds

12345678