/frameworks/native/include/ui/ |
D | Region.h | 40 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); [all …]
|
D | Point.h | 40 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 …]
|
D | Rect.h | 127 inline bool operator == (const Rect& rhs) const { 128 return (left == rhs.left) && (top == rhs.top) && 129 (right == rhs.right) && (bottom == rhs.bottom); 132 inline bool operator != (const Rect& rhs) const { 133 return !operator == (rhs); 138 bool operator < (const Rect& rhs) const; 140 const Rect operator + (const Point& rhs) const; 141 const Rect operator - (const Point& rhs) const; 143 Rect& operator += (const Point& rhs) { 144 return offsetBy(rhs.x, rhs.y); [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | Maybe.h | 44 Maybe(const Maybe& rhs); 47 Maybe(const Maybe<U>& rhs); // NOLINT(implicit) 49 Maybe(Maybe&& rhs); 52 Maybe(Maybe<U>&& rhs); // NOLINT(implicit) 54 Maybe& operator=(const Maybe& rhs); 57 Maybe& operator=(const Maybe<U>& rhs); 59 Maybe& operator=(Maybe&& rhs); 62 Maybe& operator=(Maybe<U>&& rhs); 99 Maybe& copy(const Maybe<U>& rhs); 102 Maybe& move(Maybe<U>&& rhs); [all …]
|
D | Maybe_test.cpp | 33 Dummy(const Dummy& rhs) { in Dummy() 35 if (rhs.data) { in Dummy() 37 *data = *rhs.data; in Dummy() 40 << (const void*)&rhs << "}" << std::endl; in Dummy() 43 Dummy(Dummy&& rhs) { in Dummy() 44 data = rhs.data; in Dummy() 45 rhs.data = nullptr; in Dummy() 47 << (const void*)&rhs << "}" << std::endl; in Dummy() 50 Dummy& operator=(const Dummy& rhs) { in operator =() 54 if (rhs.data) { in operator =() [all …]
|
/frameworks/base/tools/aapt2/ |
D | Resource.h | 111 ResourceNameRef(const ResourceName& rhs); // NOLINT(implicit) 113 ResourceNameRef& operator=(const ResourceNameRef& rhs) = default; 114 ResourceNameRef& operator=(ResourceNameRef&& rhs) = default; 115 ResourceNameRef& operator=(const ResourceName& rhs); 139 ResourceId(const ResourceId& rhs); 210 inline ResourceId::ResourceId(const ResourceId& rhs) : id(rhs.id) {} in ResourceId() argument 235 inline bool operator<(const ResourceId& lhs, const ResourceId& rhs) { 236 return lhs.id < rhs.id; 239 inline bool operator>(const ResourceId& lhs, const ResourceId& rhs) { 240 return lhs.id > rhs.id; [all …]
|
D | Source.h | 60 inline bool operator==(const Source& lhs, const Source& rhs) { 61 return lhs.path == rhs.path && lhs.line == rhs.line; 64 inline bool operator<(const Source& lhs, const Source& rhs) { 65 int cmp = lhs.path.compare(rhs.path); 69 if (rhs.line) { 70 return lhs.line.value() < rhs.line.value(); 74 return bool(rhs.line);
|
/frameworks/base/tools/aapt2/jni/ |
D | ScopedUtfChars.h | 35 ScopedUtfChars(ScopedUtfChars&& rhs) : in ScopedUtfChars() argument 36 env_(rhs.env_), string_(rhs.string_), utf_chars_(rhs.utf_chars_) { in ScopedUtfChars() 37 rhs.env_ = nullptr; in ScopedUtfChars() 38 rhs.string_ = nullptr; in ScopedUtfChars() 39 rhs.utf_chars_ = nullptr; in ScopedUtfChars() 48 ScopedUtfChars& operator=(ScopedUtfChars&& rhs) { 49 if (this != &rhs) { 54 env_ = rhs.env_; 55 string_ = rhs.string_; 56 utf_chars_ = rhs.utf_chars_; [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | StringPiece.h | 50 BasicStringPiece<TChar>& operator=(const BasicStringPiece<TChar>& rhs); 63 bool contains(const BasicStringPiece<TChar>& rhs) const; 64 int compare(const BasicStringPiece<TChar>& rhs) const; 65 bool operator<(const BasicStringPiece<TChar>& rhs) const; 66 bool operator>(const BasicStringPiece<TChar>& rhs) const; 67 bool operator==(const BasicStringPiece<TChar>& rhs) const; 68 bool operator!=(const BasicStringPiece<TChar>& rhs) const; 113 const BasicStringPiece<TChar>& rhs) { 114 data_ = rhs.data_; 115 length_ = rhs.length_; [all …]
|
D | TypeWrappers.h | 30 iterator& operator=(const iterator& rhs) { 31 mTypeVariant = rhs.mTypeVariant; 32 mIndex = rhs.mIndex; 36 bool operator==(const iterator& rhs) const { 37 return mTypeVariant == rhs.mTypeVariant && mIndex == rhs.mIndex; 40 bool operator!=(const iterator& rhs) const { 41 return mTypeVariant != rhs.mTypeVariant || mIndex != rhs.mIndex;
|
/frameworks/native/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/native/libs/ui/ |
D | Region.cpp | 64 Region::Region(const Region& rhs) in Region() argument 65 : mStorage(rhs.mStorage) in Region() 68 validate(rhs, "rhs copy-ctor"); in Region() 72 Region::Region(const Rect& rhs) { in Region() argument 73 mStorage.add(rhs); in Region() 210 Region& Region::operator = (const Region& rhs) in operator =() argument 214 validate(rhs, "rhs.operator="); in operator =() 216 mStorage = rhs.mStorage; in operator =() 305 Region& Region::orSelf(const Region& rhs) { in orSelf() argument 306 return operationSelf(rhs, op_or); in orSelf() [all …]
|
D | Rect.cpp | 40 bool Rect::operator <(const Rect& rhs) const { in operator <() 41 if (top < rhs.top) { in operator <() 43 } else if (top == rhs.top) { in operator <() 44 if (left < rhs.left) { in operator <() 46 } else if (left == rhs.left) { in operator <() 47 if (bottom < rhs.bottom) { in operator <() 49 } else if (bottom == rhs.bottom) { in operator <() 50 if (right < rhs.right) { in operator <() 75 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 …]
|
/frameworks/native/libs/binder/include/binder/ |
D | Value.h | 73 bool operator==(const Value& rhs) const; 74 bool operator!=(const Value& rhs) const { return !this->operator==(rhs); } 92 Value& operator=(const Value& rhs); 93 Value& operator=(const int8_t& rhs); 94 Value& operator=(const bool& rhs); 95 Value& operator=(const int32_t& rhs); 96 Value& operator=(const int64_t& rhs); 97 Value& operator=(const double& rhs); 98 Value& operator=(const String16& rhs); 99 Value& operator=(const std::vector<bool>& rhs); [all …]
|
D | PersistableBundle.h | 96 friend bool operator==(const PersistableBundle& lhs, const PersistableBundle& rhs) { 97 return (lhs.mBoolMap == rhs.mBoolMap && lhs.mIntMap == rhs.mIntMap && 98 lhs.mLongMap == rhs.mLongMap && lhs.mDoubleMap == rhs.mDoubleMap && 99 lhs.mStringMap == rhs.mStringMap && lhs.mBoolVectorMap == rhs.mBoolVectorMap && 100 lhs.mIntVectorMap == rhs.mIntVectorMap && 101 lhs.mLongVectorMap == rhs.mLongVectorMap && 102 lhs.mDoubleVectorMap == rhs.mDoubleVectorMap && 103 lhs.mStringVectorMap == rhs.mStringVectorMap && 104 lhs.mPersistableBundleMap == rhs.mPersistableBundleMap); 107 friend bool operator!=(const PersistableBundle& lhs, const PersistableBundle& rhs) { [all …]
|
/frameworks/native/include/private/ui/ |
D | RegionHelper.h | 55 inline region(const region& rhs) in region() 56 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { } in region() 70 inline region_operator(uint32_t op, const region& lhs, const region& rhs) in region_operator() argument 71 : op_mask(op), spanner(lhs, rhs) in region_operator() 78 SpannerInner spannerInner(spanner.lhs, spanner.rhs); in operator() 163 region rhs; variable 167 : lhs(_lhs), rhs(_rhs) in Spanner() 173 if (rhs.count) { in Spanner() 174 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner() 175 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; in Spanner() [all …]
|
/frameworks/base/tools/split-select/ |
D | SplitDescription.h | 34 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) != 0;
|
/frameworks/rs/driver/runtime/ |
D | rs_quaternion.c | 12 rsQuaternionAdd(rs_quaternion* q, const rs_quaternion* rhs) { in rsQuaternionAdd() argument 13 q->w += rhs->w; in rsQuaternionAdd() 14 q->x += rhs->x; in rsQuaternionAdd() 15 q->y += rhs->y; in rsQuaternionAdd() 16 q->z += rhs->z; in rsQuaternionAdd() 77 rsQuaternionSet(rs_quaternion* q, const rs_quaternion* rhs) { in rsQuaternionSet() argument 78 q->w = rhs->w; in rsQuaternionSet() 79 q->x = rhs->x; in rsQuaternionSet() 80 q->y = rhs->y; in rsQuaternionSet() 81 q->z = rhs->z; in rsQuaternionSet() [all …]
|
/frameworks/base/libs/hwui/ |
D | TextDropShadowCache.cpp | 52 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { in compare() argument 53 int deltaInt = int(lhs.glyphCount) - int(rhs.glyphCount); in compare() 56 deltaInt = lhs.flags - rhs.flags; in compare() 59 if (lhs.radius < rhs.radius) return -1; in compare() 60 if (lhs.radius > rhs.radius) return +1; in compare() 62 if (lhs.typeface < rhs.typeface) return -1; in compare() 63 if (lhs.typeface > rhs.typeface) return +1; in compare() 65 if (lhs.textSize < rhs.textSize) return -1; in compare() 66 if (lhs.textSize > rhs.textSize) return +1; in compare() 68 if (lhs.italicStyle < rhs.italicStyle) return -1; in compare() [all …]
|
/frameworks/base/tools/aapt/ |
D | Symbol.h | 33 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.config) || (source < rhs.source);
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlPullParser.h | 137 int compare(const Attribute& rhs) const; 138 bool operator<(const Attribute& rhs) const; 139 bool operator==(const Attribute& rhs) const; 140 bool operator!=(const Attribute& rhs) const; 281 inline int XmlPullParser::Attribute::compare(const Attribute& rhs) const { in compare() argument 282 int cmp = namespace_uri.compare(rhs.namespace_uri); in compare() 284 return name.compare(rhs.name); in compare() 287 inline bool XmlPullParser::Attribute::operator<(const Attribute& rhs) const { 288 return compare(rhs) < 0; 291 inline bool XmlPullParser::Attribute::operator==(const Attribute& rhs) const { [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer_hwc1.h | 192 static HWCLayer* copy(HWCLayer *rhs) { in copy() argument 193 return rhs ? rhs->dup() : NULL; in copy() 214 LayerListIterator& operator = (const LayerListIterator& rhs); 218 LayerListIterator(const LayerListIterator& rhs) in LayerListIterator() argument 219 : mLayerList(HWCLayer::copy(rhs.mLayerList)), mIndex(rhs.mIndex) { in LayerListIterator() 235 bool operator == (const LayerListIterator& rhs) const { 236 return mIndex == rhs.mIndex; 238 bool operator != (const LayerListIterator& rhs) const { 239 return !operator==(rhs); 265 bool operator==(const DisplayConfig& rhs) const { [all …]
|
/frameworks/native/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 const float rhs_i0 = rhs.m[ I(i,0) ]; in multiply() 262 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/av/drm/mediadrm/plugins/clearkey/ |
D | Utils.cpp | 21 bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs) { in operator <() argument 22 if (lhs.size() < rhs.size()) { in operator <() 24 } else if (lhs.size() > rhs.size()) { in operator <() 27 return memcmp((void *)lhs.array(), (void *)rhs.array(), rhs.size()) < 0; in operator <()
|