/frameworks/base/include/ui/ |
D | Region.h | 37 Region(const Region& rhs); 38 explicit Region(const Rect& rhs); 42 Region& operator = (const Region& rhs); 57 Region& orSelf(const Rect& rhs); 58 Region& andSelf(const Rect& rhs); 59 Region& subtractSelf(const Rect& rhs); 62 Region& orSelf(const Region& rhs); 63 Region& andSelf(const Region& rhs); 64 Region& subtractSelf(const Region& rhs); 67 const Region merge(const Rect& rhs) const; [all …]
|
D | Point.h | 39 inline bool operator == (const Point& rhs) const { 40 return (x == rhs.x) && (y == rhs.y); 42 inline bool operator != (const Point& rhs) const { 43 return !operator == (rhs); 52 bool operator < (const Point& rhs) const { 53 return y<rhs.y || (y==rhs.y && x<rhs.x); 62 inline Point& operator += (const Point& rhs) { 63 x += rhs.x; 64 y += rhs.y; 67 inline Point& operator -= (const Point& rhs) { [all …]
|
D | Rect.h | 63 inline void set(const Rect& rhs) { in set() argument 64 operator = (rhs); in set() 102 inline bool operator == (const Rect& rhs) const { 103 return (left == rhs.left) && (top == rhs.top) && 104 (right == rhs.right) && (bottom == rhs.bottom); 107 inline bool operator != (const Rect& rhs) const { 108 return !operator == (rhs); 113 bool operator < (const Rect& rhs) const; 127 Rect& operator += (const Point& rhs) { 128 return offsetBy(rhs.x, rhs.y); [all …]
|
/frameworks/base/libs/ui/ |
D | Rect.cpp | 36 bool Rect::operator < (const Rect& rhs) const in operator <() 38 if (top<rhs.top) { in operator <() 40 } else if (top == rhs.top) { in operator <() 41 if (left < rhs.left) { in operator <() 43 } else if (left == rhs.left) { in operator <() 44 if (bottom<rhs.bottom) { in operator <() 46 } else if (bottom == rhs.bottom) { in operator <() 47 if (right<rhs.right) { in operator <() 74 const Rect Rect::operator + (const Point& rhs) const in operator +() 76 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y); in operator +() [all …]
|
D | Region.cpp | 56 Region::Region(const Region& rhs) in Region() argument 57 : mBounds(rhs.mBounds), mStorage(rhs.mStorage) in Region() 60 validate(rhs, "rhs copy-ctor"); in Region() 64 Region::Region(const Rect& rhs) in Region() argument 65 : mBounds(rhs) in Region() 79 Region& Region::operator = (const Region& rhs) in operator =() argument 83 validate(rhs, "rhs.operator="); in operator =() 85 mBounds = rhs.mBounds; in operator =() 86 mStorage = rhs.mStorage; in operator =() 143 Region& Region::orSelf(const Region& rhs) { in orSelf() argument [all …]
|
/frameworks/base/services/sensorservice/ |
D | mat.h | 35 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 …]
|
D | vec.h | 50 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 …]
|
/frameworks/base/include/private/ui/ |
D | RegionHelper.h | 54 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() 157 region rhs; variable 160 inline Spanner(const region& lhs, const region& rhs) in Spanner() argument 161 : lhs(lhs), rhs(rhs) in Spanner() 165 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner() 166 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; in Spanner() [all …]
|
/frameworks/base/tools/localize/ |
D | SourcePos.cpp | 24 bool operator<(const ErrorPos& rhs) const; 25 bool operator==(const ErrorPos& rhs) const; 26 ErrorPos& operator=(const ErrorPos& rhs); 56 ErrorPos::operator<(const ErrorPos& rhs) const in operator <() 58 if (this->file < rhs.file) return true; in operator <() 59 if (this->file == rhs.file) { in operator <() 60 if (this->line < rhs.line) return true; in operator <() 61 if (this->line == rhs.line) { in operator <() 62 if (this->error < rhs.error) return true; in operator <() 69 ErrorPos::operator==(const ErrorPos& rhs) const in operator ==() [all …]
|
/frameworks/base/tools/aapt/ |
D | SourcePos.cpp | 22 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/base/libs/utils/ |
D | CallStack.cpp | 215 CallStack::CallStack(const CallStack& rhs) in CallStack() argument 216 : mCount(rhs.mCount) in CallStack() 219 memcpy(mStack, rhs.mStack, mCount*sizeof(void*)); in CallStack() 227 CallStack& CallStack::operator = (const CallStack& rhs) in operator =() argument 229 mCount = rhs.mCount; in operator =() 231 memcpy(mStack, rhs.mStack, mCount*sizeof(void*)); in operator =() 236 bool CallStack::operator == (const CallStack& rhs) const { in operator ==() 237 if (mCount != rhs.mCount) in operator ==() 239 return !mCount || (memcmp(mStack, rhs.mStack, mCount*sizeof(void*)) == 0); in operator ==() 242 bool CallStack::operator != (const CallStack& rhs) const { in operator !=() [all …]
|
D | BlobCache.cpp | 193 bool BlobCache::Blob::operator<(const Blob& rhs) const { in operator <() 194 if (mSize == rhs.mSize) { in operator <() 195 return memcmp(mData, rhs.mData, mSize) < 0; in operator <() 197 return mSize < rhs.mSize; in operator <() 222 bool BlobCache::CacheEntry::operator<(const CacheEntry& rhs) const { in operator <() 223 return *mKey < *rhs.mKey; in operator <() 226 const BlobCache::CacheEntry& BlobCache::CacheEntry::operator=(const CacheEntry& rhs) { in operator =() argument 227 mKey = rhs.mKey; in operator =() 228 mValue = rhs.mValue; in operator =()
|
D | VectorImpl.cpp | 48 VectorImpl::VectorImpl(const VectorImpl& rhs) in VectorImpl() argument 49 : mStorage(rhs.mStorage), mCount(rhs.mCount), in VectorImpl() 50 mFlags(rhs.mFlags), mItemSize(rhs.mItemSize) in VectorImpl() 67 VectorImpl& VectorImpl::operator = (const VectorImpl& rhs) in operator =() argument 69 LOG_ASSERT(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/base/include/utils/ |
D | CallStack.h | 37 CallStack(const CallStack& rhs); 40 CallStack& operator = (const CallStack& rhs); 42 bool operator == (const CallStack& rhs) const; 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;
|
D | Vector.h | 52 Vector(const Vector<TYPE>& rhs); 53 explicit Vector(const SortedVector<TYPE>& rhs); 57 const Vector<TYPE>& operator = (const Vector<TYPE>& rhs) const; 58 Vector<TYPE>& operator = (const Vector<TYPE>& rhs); 60 const Vector<TYPE>& operator = (const SortedVector<TYPE>& rhs) const; 61 Vector<TYPE>& operator = (const SortedVector<TYPE>& rhs); 166 typedef int (*compar_t)(const TYPE* lhs, const TYPE* rhs); 167 typedef int (*compar_r_t)(const TYPE* lhs, const TYPE* rhs, void* state); 220 Vector<TYPE>::Vector(const Vector<TYPE>& rhs) in Vector() argument 221 : VectorImpl(rhs) { in Vector() [all …]
|
D | SortedVector.h | 45 SortedVector(const SortedVector<TYPE>& rhs); 49 const SortedVector<TYPE>& operator = (const SortedVector<TYPE>& rhs) const; 50 SortedVector<TYPE>& operator = (const SortedVector<TYPE>& rhs); 133 virtual int do_compare(const void* lhs, const void* rhs) const; 152 SortedVector<TYPE>::SortedVector(const SortedVector<TYPE>& rhs) in SortedVector() argument 153 : SortedVectorImpl(rhs) { in SortedVector() 162 SortedVector<TYPE>& SortedVector<TYPE>::operator = (const SortedVector<TYPE>& rhs) { 163 SortedVectorImpl::operator = (rhs); 168 const SortedVector<TYPE>& SortedVector<TYPE>::operator = (const SortedVector<TYPE>& rhs) const { 169 SortedVectorImpl::operator = (rhs); [all …]
|
D | VectorImpl.h | 50 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/base/libs/rs/scriptc/ |
D | rs_quaternion.rsh | 45 * @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; 71 * @param rhs right hand side quaternion to multiply by 74 rsQuaternionMultiply(rs_quaternion *q, const rs_quaternion *rhs) { 75 q->w = -q->x*rhs->x - q->y*rhs->y - q->z*rhs->z + q->w*rhs->w; 76 q->x = q->x*rhs->w + q->y*rhs->z - q->z*rhs->y + q->w*rhs->x; [all …]
|
/frameworks/base/opengl/libagl/ |
D | matrix.cpp | 236 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/ |
D | LayerCache.h | 122 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/ |
D | Compare.h | 30 if (a < rhs.a) return true; \ 31 if (a == rhs.a) 37 if (a < rhs.a) return true; \ 38 if (a == rhs.a)
|
D | SortedList.h | 41 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/base/libs/rs/ |
D | rsMatrix3x3.h | 40 void loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs); 44 void multiply(const rs_matrix3x3 *rhs) { in multiply() 46 tmp.loadMultiply(this, rhs); in multiply()
|
D | rsMatrix2x2.h | 40 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()
|
/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 …]
|