/frameworks/base/tools/aapt2/ |
D | Resource.h | 256 inline bool operator<(const ResourceId& lhs, const ResourceId& rhs) { 257 return lhs.id < rhs.id; 260 inline bool operator>(const ResourceId& lhs, const ResourceId& rhs) { 261 return lhs.id > rhs.id; 264 inline bool operator==(const ResourceId& lhs, const ResourceId& rhs) { 265 return lhs.id == rhs.id; 268 inline bool operator!=(const ResourceId& lhs, const ResourceId& rhs) { 269 return lhs.id != rhs.id; 310 inline bool operator<(const ResourceName& lhs, const ResourceName& rhs) { 311 return std::tie(lhs.package, lhs.type, lhs.entry) < [all …]
|
D | Source.h | 71 inline bool operator==(const Source& lhs, const Source& rhs) { 72 return lhs.path == rhs.path && lhs.line == rhs.line; 75 inline bool operator<(const Source& lhs, const Source& rhs) { 76 int cmp = lhs.path.compare(rhs.path); 79 if (lhs.line) { 81 return lhs.line.value() < rhs.line.value();
|
/frameworks/native/services/sensorservice/ |
D | vec.h | 50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) { in doAssign() argument 54 lhs[i] = rhs[i]; in doAssign() 56 lhs[i] = 0; in doAssign() 57 return lhs; in doAssign() 68 const VLHS<TYPE, SIZE>& lhs, in doAdd() argument 72 r[i] = lhs[i] + rhs[i]; in doAdd() 83 const VLHS<TYPE, SIZE>& lhs, in doSub() argument 87 r[i] = lhs[i] - rhs[i]; in doSub() 97 const VEC<TYPE, SIZE>& lhs, in doMulScalar() argument 101 r[i] = lhs[i] * rhs; in doMulScalar() [all …]
|
D | mat.h | 34 mat<TYPE, C, R>& lhs, in doAssign() argument 38 lhs[i][j] = (i==j) ? rhs : 0; in doAssign() 39 return lhs; in doAssign() 44 const mat<TYPE, D, R>& lhs, in doMul() argument 52 v += lhs[k][r] * rhs[c][k]; in doMul() 62 const mat<TYPE, D, R>& lhs, in doMul() argument 69 v += lhs[k][r] * rhs[k]; in doMul() 78 const vec<TYPE, R>& lhs, in doMul() argument 84 res[c][r] = lhs[r] * rhs[c][0]; in doMul() 172 friend inline mat PURE operator + (const mat& lhs, const mat& rhs) { [all …]
|
/frameworks/native/include/private/ui/ |
D | RegionHelper.h | 72 inline region_operator(uint32_t op, const region& lhs, const region& rhs) in region_operator() argument 73 : op_mask(op), spanner(lhs, rhs) in region_operator() 80 SpannerInner spannerInner(spanner.lhs, spanner.rhs); in operator() 163 region lhs; variable 168 : lhs(_lhs), rhs(_rhs) in Spanner() 170 if (lhs.count) { in Spanner() 171 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner() 172 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner() 181 return !rhs.count && !lhs.count; in isDone() 190 advance(lhs, SpannerBase::lhs_head, SpannerBase::lhs_tail); in next() [all …]
|
/frameworks/base/tools/aapt2/configuration/ |
D | ConfigurationParser.h | 62 inline friend bool operator==(const Locale& lhs, const Locale& rhs) { 63 return lhs.lang == rhs.lang && lhs.region == rhs.region; 69 inline friend bool operator==(const AndroidManifest& lhs, const AndroidManifest& rhs) { 87 inline friend bool operator==(const AndroidSdk& lhs, const AndroidSdk& rhs) { 88 return lhs.min_sdk_version == rhs.min_sdk_version && 89 lhs.target_sdk_version == rhs.target_sdk_version && 90 lhs.max_sdk_version == rhs.max_sdk_version && 91 lhs.manifest == rhs.manifest; 103 inline friend bool operator==(const GlTexture& lhs, const GlTexture& rhs) { 104 return lhs.name == rhs.name && lhs.texture_paths == rhs.texture_paths;
|
D | ConfigurationParser.internal.h | 87 ComparisonChain& Add(const Group<T>& groups, const Maybe<std::string>& lhs, in Add() argument 89 return Add(GetGroupOrder(groups, lhs), GetGroupOrder(groups, rhs)); in Add() 96 ComparisonChain& Add(int lhs, int rhs) { in Add() argument 98 has_result_ = (lhs != rhs); in Add() 99 result_ = (lhs < rhs); in Add() 178 bool operator()(const ConfiguredArtifact& lhs, const ConfiguredArtifact& rhs) { in operator() 184 .Add(GetMinSdk(lhs), GetMinSdk(rhs)) in operator() 188 .Add(abi_groups, lhs.abi_group, rhs.abi_group) in operator() 190 .Add(screen_density_groups, lhs.screen_density_group, rhs.screen_density_group) in operator() 191 .Add(locale_groups, lhs.locale_group, rhs.locale_group) in operator() [all …]
|
D | ConfigurationParser_test.cpp | 40 bool operator==(const ConfiguredArtifact& lhs, const ConfiguredArtifact& rhs) { in operator ==() argument 41 return lhs.name == rhs.name && lhs.abi_group == rhs.abi_group && in operator ==() 42 lhs.screen_density_group == rhs.screen_density_group && in operator ==() 43 lhs.locale_group == rhs.locale_group && lhs.android_sdk == rhs.android_sdk && in operator ==() 44 lhs.device_feature_group == rhs.device_feature_group && in operator ==() 45 lhs.gl_texture_group == rhs.gl_texture_group; in operator ==()
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | RandomVariable.cpp | 55 RandomVariableBase::RandomVariableBase(const RandomVariableNode& lhs, const RandomVariableNode& rhs, in RandomVariableBase() argument 59 range(op->getInitRange(lhs->range, rhs == nullptr ? RandomVariableRange(0) : rhs->range)), in RandomVariableBase() 61 parent1(lhs), in RandomVariableBase() 82 RandomVariableRange operator&(const RandomVariableRange& lhs, const RandomVariableRange& rhs) { in operator &() argument 83 std::vector<int> result(lhs.size() + rhs.size()); in operator &() 84 auto it = std::set_intersection(lhs.mChoices.begin(), lhs.mChoices.end(), rhs.mChoices.begin(), in operator &() 132 RandomVariable::RandomVariable(const RandomVariable& lhs, const RandomVariable& rhs, in RandomVariable() argument 134 : mVar(new RandomVariableBase(lhs.get(), rhs.get(), op)) { in RandomVariable() 157 RandomVariableRange IRandomVariableOp::getInitRange(const RandomVariableRange& lhs, in getInitRange() argument 160 for (auto i : lhs.getChoices()) { in getInitRange() [all …]
|
D | RandomVariable.h | 65 friend RandomVariableRange operator&(const RandomVariableRange& lhs, 78 virtual int eval(int lhs, int rhs) const = 0; 81 virtual RandomVariableRange getInitRange(const RandomVariableRange& lhs, 114 RandomVariableBase(const std::shared_ptr<RandomVariableBase>& lhs, 168 friend RandomVariable operator+(const RandomVariable& lhs, const RandomVariable& rhs); 169 friend RandomVariable operator-(const RandomVariable& lhs, const RandomVariable& rhs); 170 friend RandomVariable operator*(const RandomVariable& lhs, const RandomVariable& rhs); 171 friend RandomVariable operator*(const RandomVariable& lhs, const float& rhs); 172 friend RandomVariable operator/(const RandomVariable& lhs, const RandomVariable& rhs); 173 friend RandomVariable operator%(const RandomVariable& lhs, const RandomVariable& rhs); [all …]
|
/frameworks/native/include/binder/ |
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/libs/binder/include/binder/ |
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/av/media/libaudioclient/include/media/ |
D | AudioCommonTypes.h | 32 constexpr bool operator==(const audio_attributes_t &lhs, const audio_attributes_t &rhs) 34 return lhs.usage == rhs.usage && lhs.content_type == rhs.content_type && 35 lhs.flags == rhs.flags && (std::strcmp(lhs.tags, rhs.tags) == 0); 37 constexpr bool operator!=(const audio_attributes_t &lhs, const audio_attributes_t &rhs) 39 return !(lhs==rhs);
|
/frameworks/base/media/native/midi/ |
D | MidiDeviceInfo.cpp | 120 static inline bool areVectorsEqual(const Vector<String16>& lhs, const Vector<String16>& rhs) { in areVectorsEqual() argument 121 if (lhs.size() != rhs.size()) return false; in areVectorsEqual() 122 for (size_t i = 0; i < lhs.size(); ++i) { in areVectorsEqual() 123 if (lhs[i] != rhs[i]) return false; in areVectorsEqual() 128 bool operator==(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs) { in operator ==() argument 129 return (lhs.mType == rhs.mType && lhs.mId == rhs.mId && in operator ==() 130 areVectorsEqual(lhs.mInputPortNames, rhs.mInputPortNames) && in operator ==() 131 areVectorsEqual(lhs.mOutputPortNames, rhs.mOutputPortNames) && in operator ==() 132 lhs.mProperties == rhs.mProperties && in operator ==() 133 lhs.mIsPrivate == rhs.mIsPrivate); in operator ==()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Size.h | 30 bool operator==(const Size& lhs, const Size& rhs); 143 inline bool operator==(const Size& lhs, const Size& rhs) { 144 return lhs.width == rhs.width && lhs.height == rhs.height; 147 inline bool operator!=(const Size& lhs, const Size& rhs) { 148 return !operator==(lhs, rhs); 151 inline bool operator<(const Size& lhs, const Size& rhs) { 153 if (lhs.width != rhs.width) return lhs.width < rhs.width; 154 return lhs.height < rhs.height;
|
/frameworks/native/libs/ui/include/ui/ |
D | Size.h | 30 bool operator==(const Size& lhs, const Size& rhs); 143 inline bool operator==(const Size& lhs, const Size& rhs) { 144 return lhs.width == rhs.width && lhs.height == rhs.height; 147 inline bool operator!=(const Size& lhs, const Size& rhs) { 148 return !operator==(lhs, rhs); 151 inline bool operator<(const Size& lhs, const Size& rhs) { 153 if (lhs.width != rhs.width) return lhs.width < rhs.width; 154 return lhs.height < rhs.height;
|
/frameworks/native/libs/math/include/math/ |
D | TVecHelpers.h | 63 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); variable 64 for (size_t i = 0; i < lhs.size(); i++) { 65 lhs[i] += v[i]; 67 return lhs; 71 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); variable 72 for (size_t i = 0; i < lhs.size(); i++) { 73 lhs[i] -= v[i]; 75 return lhs; 84 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); variable 85 for (size_t i = 0; i < lhs.size(); i++) { [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules.h | 101 inline bool operator==(const UsageLocation& lhs, const UsageLocation& rhs) { 104 return lhs.name == rhs.name; 107 inline bool operator<(const UsageLocation& lhs, const UsageLocation& rhs) { 108 return lhs.name.compare(rhs.name) < 0; 115 inline bool operator<(const NameAndSignature& lhs, const NameAndSignature& rhs) { 116 if (lhs.name < rhs.name) { 119 if (lhs.name == rhs.name) { 120 return lhs.signature < rhs.signature;
|
/frameworks/native/libs/gui/include/gui/ |
D | LayerState.h | 276 static inline int compare_type(const ComposerState& lhs, const ComposerState& rhs) { in compare_type() argument 277 if (lhs.client < rhs.client) return -1; in compare_type() 278 if (lhs.client > rhs.client) return 1; in compare_type() 279 if (lhs.state.surface < rhs.state.surface) return -1; in compare_type() 280 if (lhs.state.surface > rhs.state.surface) return 1; in compare_type() 284 static inline int compare_type(const DisplayState& lhs, const DisplayState& rhs) { in compare_type() argument 285 return compare_type(lhs.token, rhs.token); in compare_type()
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareNetworkSpecifier.java | 256 WifiAwareNetworkSpecifier lhs = (WifiAwareNetworkSpecifier) obj; in equals() local 258 return type == lhs.type in equals() 259 && role == lhs.role in equals() 260 && clientId == lhs.clientId in equals() 261 && sessionId == lhs.sessionId in equals() 262 && peerId == lhs.peerId in equals() 263 && Arrays.equals(peerMac, lhs.peerMac) in equals() 264 && Arrays.equals(pmk, lhs.pmk) in equals() 265 && Objects.equals(passphrase, lhs.passphrase) in equals() 266 && port == lhs.port in equals() [all …]
|
D | SubscribeConfig.java | 184 SubscribeConfig lhs = (SubscribeConfig) o; in equals() local 186 if (!(Arrays.equals(mServiceName, lhs.mServiceName) && Arrays.equals( in equals() 187 mServiceSpecificInfo, lhs.mServiceSpecificInfo) && Arrays.equals(mMatchFilter, in equals() 188 lhs.mMatchFilter) && mSubscribeType == lhs.mSubscribeType && mTtlSec == lhs.mTtlSec in equals() 189 && mEnableTerminateNotification == lhs.mEnableTerminateNotification in equals() 190 && mMinDistanceMmSet == lhs.mMinDistanceMmSet in equals() 191 && mMaxDistanceMmSet == lhs.mMaxDistanceMmSet)) { in equals() 195 if (mMinDistanceMmSet && mMinDistanceMm != lhs.mMinDistanceMm) { in equals() 199 if (mMaxDistanceMmSet && mMaxDistanceMm != lhs.mMaxDistanceMm) { in equals()
|
/frameworks/base/wifi/java/android/net/wifi/rtt/ |
D | RangingResult.java | 420 RangingResult lhs = (RangingResult) o; in equals() local 422 return mStatus == lhs.mStatus && Objects.equals(mMac, lhs.mMac) && Objects.equals( in equals() 423 mPeerHandle, lhs.mPeerHandle) && mDistanceMm == lhs.mDistanceMm in equals() 424 && mDistanceStdDevMm == lhs.mDistanceStdDevMm && mRssi == lhs.mRssi in equals() 425 && mNumAttemptedMeasurements == lhs.mNumAttemptedMeasurements in equals() 426 && mNumSuccessfulMeasurements == lhs.mNumSuccessfulMeasurements in equals() 427 && Arrays.equals(mLci, lhs.mLci) && Arrays.equals(mLcr, lhs.mLcr) in equals() 428 && mTimestamp == lhs.mTimestamp in equals() 429 && Objects.equals(mResponderLocation, lhs.mResponderLocation); in equals()
|
/frameworks/rs/driver/runtime/ |
D | rs_matrix.c | 240 rsMatrixLoadMultiply(rs_matrix4x4 *ret, const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs) { in rsMatrixLoadMultiply() argument 251 ri0 += rsMatrixGet(lhs, j, 0) * rhs_ij; in rsMatrixLoadMultiply() 252 ri1 += rsMatrixGet(lhs, j, 1) * rhs_ij; in rsMatrixLoadMultiply() 253 ri2 += rsMatrixGet(lhs, j, 2) * rhs_ij; in rsMatrixLoadMultiply() 254 ri3 += rsMatrixGet(lhs, j, 3) * rhs_ij; in rsMatrixLoadMultiply() 265 rsMatrixMultiply(rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs) { in rsMatrixMultiply() argument 266 rsMatrixLoadMultiply(lhs, lhs, rhs); in rsMatrixMultiply() 270 rsMatrixLoadMultiply(rs_matrix3x3 *ret, const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs) { in rsMatrixLoadMultiply() argument 280 ri0 += rsMatrixGet(lhs, j, 0) * rhs_ij; in rsMatrixLoadMultiply() 281 ri1 += rsMatrixGet(lhs, j, 1) * rhs_ij; in rsMatrixLoadMultiply() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/common/ |
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 <()
|
/frameworks/native/opengl/libagl/ |
D | matrix.cpp | 251 void matrixf_t::multiply(matrixf_t& r, const matrixf_t& lhs, const matrixf_t& rhs) in multiply() argument 253 GLfloat const* const m = lhs.m; in multiply() 713 void point2__generic(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) { in point2__generic() argument 717 lhs->x = mla2a(rx, m[ 0], ry, m[ 4], m[12]); in point2__generic() 718 lhs->y = mla2a(rx, m[ 1], ry, m[ 5], m[13]); in point2__generic() 719 lhs->z = mla2a(rx, m[ 2], ry, m[ 6], m[14]); in point2__generic() 720 lhs->w = mla2a(rx, m[ 3], ry, m[ 7], m[15]); in point2__generic() 723 void point3__generic(transform_t const* mx, vec4_t* lhs, vec4_t const* rhs) { in point3__generic() argument 728 lhs->x = mla3a(rx, m[ 0], ry, m[ 4], rz, m[ 8], m[12]); in point3__generic() 729 lhs->y = mla3a(rx, m[ 1], ry, m[ 5], rz, m[ 9], m[13]); in point3__generic() [all …]
|