Home
last modified time | relevance | path

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

12

/system/core/include/utils/
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);
171 typedef int (*compar_t)(const TYPE* lhs, const TYPE* rhs);
172 typedef int (*compar_r_t)(const TYPE* lhs, const TYPE* rhs, void* state);
229 Vector<TYPE>::Vector(const Vector<TYPE>& rhs)
230 : 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);
93 typedef int (*compar_t)(const void* lhs, const void* rhs);
94 typedef int (*compar_r_t)(const void* lhs, const void* rhs, void* state);
135 SortedVectorImpl(const VectorImpl& rhs);
138 SortedVectorImpl& operator = (const SortedVectorImpl& rhs);
157 virtual int do_compare(const void* lhs, const void* rhs) const = 0;
DString16.h132 inline int compare_type(const String16& lhs, const String16& rhs) in ANDROID_TRIVIAL_MOVE_TRAIT()
134 return lhs.compare(rhs); in ANDROID_TRIVIAL_MOVE_TRAIT()
137 inline int strictly_order_type(const String16& lhs, const String16& rhs) in strictly_order_type() argument
139 return compare_type(lhs, rhs) < 0; in strictly_order_type()
DTypeHelpers.h118 int strictly_order_type(const TYPE& lhs, const TYPE& rhs) {
119 return (lhs < rhs) ? 1 : 0;
123 int compare_type(const TYPE& lhs, const TYPE& rhs) {
124 return strictly_order_type(rhs, lhs) - strictly_order_type(lhs, rhs);
DBlobCache.h126 bool operator<(const Blob& rhs) const;
154 bool operator<(const CacheEntry& rhs) const;
DList.h96 _ListIterator(const _Iter& rhs) : mpNode(rhs.mpNode) {} in _ListIterator() argument
104 _ListIterator(const V& rhs) : mpNode(rhs.mpNode) {} in _ListIterator() argument
DString8.h247 inline int compare_type(const String8& lhs, const String8& rhs) in ANDROID_TRIVIAL_MOVE_TRAIT()
249 return lhs.compare(rhs); in ANDROID_TRIVIAL_MOVE_TRAIT()
252 inline int strictly_order_type(const String8& lhs, const String8& rhs) in strictly_order_type() argument
254 return compare_type(lhs, rhs) < 0; in strictly_order_type()
DProcessCallStack.h38 ProcessCallStack(const ProcessCallStack& rhs);
DKeyedVector.h63 inline bool isIdenticalTo(const KeyedVector& rhs) const;
132 bool KeyedVector<KEY,VALUE>::isIdenticalTo(const KeyedVector<KEY,VALUE>& rhs) const {
133 return mVector.array() == rhs.mVector.array();
/system/core/libpixelflinger/codeflinger/
DCodeCache.h45 AssemblyKey(const T& rhs) : mKey(rhs) { } in AssemblyKey() argument
47 const T& rhs = static_cast<const AssemblyKey&>(key).mKey; in compare_type() local
48 return android::compare_type(mKey, rhs); in compare_type()
126 const key_value_pair_t<CodeCache::key_t, CodeCache::cache_entry_t>& rhs) in compare_type() argument
128 return lhs.key.mKey->compare_type(*(rhs.key.mKey)); in compare_type()
DGGLAssembler.h63 RegisterFile(const RegisterFile& rhs, int arch);
68 bool operator == (const RegisterFile& rhs) const;
69 bool operator != (const RegisterFile& rhs) const {
70 return !operator == (rhs);
260 explicit component_t(const integer_t& rhs) in component_t()
261 : reg_t(rhs.reg, rhs.flags), h(rhs.s), l(0) { in component_t()
263 explicit component_t(const pixel_t& rhs, int component) { in component_t()
264 setTo( rhs.reg, in component_t()
265 rhs.format.c[component].l, in component_t()
266 rhs.format.c[component].h, in component_t()
[all …]
/system/core/libpixelflinger/codeflinger/tinyutils/
DSortedVector.h44 SortedVector(const SortedVector<TYPE>& rhs);
48 const SortedVector<TYPE>& operator = (const SortedVector<TYPE>& rhs) const;
49 SortedVector<TYPE>& operator = (const SortedVector<TYPE>& rhs);
132 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 …]
DVectorImpl.cpp51 VectorImpl::VectorImpl(const VectorImpl& rhs) in VectorImpl() argument
52 : mStorage(rhs.mStorage), mCount(rhs.mCount), in VectorImpl()
53 mFlags(rhs.mFlags), mItemSize(rhs.mItemSize) in VectorImpl()
70 VectorImpl& VectorImpl::operator = (const VectorImpl& rhs) in operator =() argument
72 ALOG_ASSERT(mItemSize == rhs.mItemSize, in operator =()
73 "Vector<> have different types (this=%p, rhs=%p)", this, &rhs); in operator =()
74 if (this != &rhs) { in operator =()
76 if (rhs.mCount) { in operator =()
77 mStorage = rhs.mStorage; in operator =()
78 mCount = rhs.mCount; in operator =()
[all …]
DVector.h52 Vector(const Vector<TYPE>& rhs);
56 const Vector<TYPE>& operator = (const Vector<TYPE>& rhs) const;
57 Vector<TYPE>& operator = (const Vector<TYPE>& rhs);
156 typedef int (*compar_t)(const TYPE* lhs, const TYPE* rhs);
157 typedef int (*compar_r_t)(const TYPE* lhs, const TYPE* rhs, void* state);
188 Vector<TYPE>::Vector(const Vector<TYPE>& rhs) in Vector() argument
189 : VectorImpl(rhs) { in Vector()
198 Vector<TYPE>& Vector<TYPE>::operator = (const Vector<TYPE>& rhs) {
199 VectorImpl::operator = (rhs);
204 const Vector<TYPE>& Vector<TYPE>::operator = (const Vector<TYPE>& rhs) const {
[all …]
DVectorImpl.h51 VectorImpl(const VectorImpl& rhs);
57 VectorImpl& operator = (const VectorImpl& rhs);
138 SortedVectorImpl(const VectorImpl& rhs);
141 SortedVectorImpl& operator = (const SortedVectorImpl& rhs);
160 virtual int do_compare(const void* lhs, const void* rhs) const = 0;
DTypeHelpers.h105 int strictly_order_type(const TYPE& lhs, const TYPE& rhs) {
106 return (lhs < rhs) ? 1 : 0;
110 int compare_type(const TYPE& lhs, const TYPE& rhs) {
111 return strictly_order_type(rhs, lhs) - strictly_order_type(lhs, rhs);
/system/core/libutils/
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 …]
DBlobCache.cpp319 bool BlobCache::Blob::operator<(const Blob& rhs) const { in operator <()
320 if (mSize == rhs.mSize) { in operator <()
321 return memcmp(mData, rhs.mData, mSize) < 0; in operator <()
323 return mSize < rhs.mSize; in operator <()
348 bool BlobCache::CacheEntry::operator<(const CacheEntry& rhs) const { in operator <()
349 return *mKey < *rhs.mKey; in operator <()
352 const BlobCache::CacheEntry& BlobCache::CacheEntry::operator=(const CacheEntry& rhs) { in operator =() argument
353 mKey = rhs.mKey; in operator =()
354 mValue = rhs.mValue; in operator =()
DProcessCallStack.cpp118 ProcessCallStack::ProcessCallStack(const ProcessCallStack& rhs) : in ProcessCallStack() argument
119 mThreadMap(rhs.mThreadMap), in ProcessCallStack()
120 mTimeUpdated(rhs.mTimeUpdated) { in ProcessCallStack()
/system/keymaster/
Dauthorization_set.cpp139 const keymaster_key_param_t* rhs = static_cast<const keymaster_key_param_t*>(b); in param_comparator() local
141 if (lhs->tag < rhs->tag) in param_comparator()
143 else if (lhs->tag > rhs->tag) in param_comparator()
152 return comparator(lhs->enumerated, rhs->enumerated); in param_comparator()
155 return comparator(lhs->integer, rhs->integer); in param_comparator()
157 return comparator(lhs->long_integer, rhs->long_integer); in param_comparator()
159 return comparator(lhs->date_time, rhs->date_time); in param_comparator()
161 return comparator(lhs->boolean, rhs->boolean); in param_comparator()
165 if (rhs->blob.data_length < min_len) in param_comparator()
166 min_len = rhs->blob.data_length; in param_comparator()
[all …]
/system/core/include/private/pixelflinger/
Dggl_context.h240 inline bool operator == (const needs_t& rhs) const {
241 return (n==rhs.n) &&
242 (p==rhs.p) &&
243 (t[0]==rhs.t[0]) &&
244 (t[1]==rhs.t[1]);
246 inline bool operator != (const needs_t& rhs) const {
247 return !operator == (rhs);
254 inline int compare_type(const needs_t& lhs, const needs_t& rhs) {
255 return memcmp(&lhs, &rhs, sizeof(needs_t));
/system/core/include/sysutils/
DList.h97 _ListIterator(const _Iter& rhs) : mpNode(rhs.mpNode) {} in _ListIterator() argument
105 _ListIterator(const V& rhs) : mpNode(rhs.mpNode) {} in _ListIterator() argument
/system/netd/server/
DList.h97 _ListIterator(const _Iter& rhs) : mpNode(rhs.mpNode) {} in _ListIterator() argument
105 _ListIterator(const V& rhs) : mpNode(rhs.mpNode) {} in _ListIterator() argument
/system/core/libsync/tests/
Dsync_test.cpp104 SyncFence& operator=(SyncFence &&rhs) noexcept { in operator =() argument
106 if (rhs.isValid()) { in operator =()
107 setFd(rhs.getFd()); in operator =()
108 rhs.clearFd(); in operator =()

12