/frameworks/av/drm/mediadrm/plugins/clearkey/common/ |
H A D | Utils.cpp | 21 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;
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/ |
H A D | EntityDeleteComparator.kt | 27 override fun compare(lhs: Entity, rhs: Entity): Int { 28 val ltr = lhs.shouldBeDeletedAfter(rhs) 29 val rtl = rhs.shouldBeDeletedAfter(lhs)
|
/frameworks/base/tools/aapt2/ |
H A D | Source.h | 63 inline bool operator==(const Source& lhs, const Source& rhs) { argument 64 return lhs.path == rhs.path && lhs.line == rhs.line; 67 inline bool operator<(const Source& lhs, const Source& rhs) { argument 68 int cmp = lhs.path.compare(rhs.path); 71 if (lhs.line) { 73 return lhs.line.value() < rhs.line.value();
|
H A D | Resource.h | 251 inline bool operator<(const ResourceId& lhs, const ResourceId& rhs) { argument 252 return lhs.id < rhs.id; 255 inline bool operator>(const ResourceId& lhs, const ResourceId& rhs) { argument 256 return lhs.id > rhs.id; 259 inline bool operator==(const ResourceId& lhs, const ResourceId& rhs) { argument 260 return lhs.id == rhs.id; 263 inline bool operator!=(const ResourceId& lhs, const ResourceId& rhs) { argument 264 return lhs.id != rhs.id; 305 inline bool operator<(const ResourceName& lhs, const ResourceName& rhs) { argument 306 return std::tie(lhs 310 operator ==(const ResourceName& lhs, const ResourceName& rhs) argument 315 operator !=(const ResourceName& lhs, const ResourceName& rhs) argument 350 operator <(const ResourceNameRef& lhs, const ResourceNameRef& rhs) argument 355 operator ==(const ResourceNameRef& lhs, const ResourceNameRef& rhs) argument 360 operator !=(const ResourceNameRef& lhs, const ResourceNameRef& rhs) argument 369 operator <(const ResourceName& lhs, const ResourceNameRef& b) argument 373 operator !=(const ResourceName& lhs, const ResourceNameRef& rhs) argument 377 operator ==(const SourcedResourceName& lhs, const SourcedResourceName& rhs) argument [all...] |
/frameworks/base/tools/aapt2/configuration/ |
H A D | ConfigurationParser.h | 61 inline friend bool operator==(const Locale& lhs, const Locale& rhs) { argument 62 return lhs.lang == rhs.lang && lhs.region == rhs.region; 68 inline friend bool operator==(const AndroidManifest& lhs, const AndroidManifest& rhs) { argument 86 inline friend bool operator==(const AndroidSdk& lhs, const AndroidSdk& rhs) { argument 87 return lhs.min_sdk_version == rhs.min_sdk_version && 88 lhs.target_sdk_version == rhs.target_sdk_version && 89 lhs.max_sdk_version == rhs.max_sdk_version && 90 lhs.manifest == rhs.manifest; 102 inline friend bool operator==(const GlTexture& lhs, cons argument [all...] |
H A D | ConfigurationParser.internal.h | 85 ComparisonChain& Add(const Group<T>& groups, const Maybe<std::string>& lhs, argument 87 return Add(GetGroupOrder(groups, lhs), GetGroupOrder(groups, rhs)); 94 ComparisonChain& Add(int lhs, int rhs) { argument 96 has_result_ = (lhs != rhs); 97 result_ = (lhs < rhs); 176 bool operator()(const ConfiguredArtifact& lhs, const ConfiguredArtifact& rhs) { argument 182 .Add(GetMinSdk(lhs), GetMinSdk(rhs)) 186 .Add(abi_groups, lhs.abi_group, rhs.abi_group) 188 .Add(screen_density_groups, lhs.screen_density_group, rhs.screen_density_group) 189 .Add(locale_groups, lhs [all...] |
/frameworks/av/drm/mediadrm/plugins/clearkey/common/include/ |
H A D | Utils.h | 26 bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs);
|
/frameworks/base/libs/hwui/ |
H A D | TextDropShadowCache.cpp | 51 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { argument 52 int deltaInt = int(lhs.glyphCount) - int(rhs.glyphCount); 55 deltaInt = lhs.flags - rhs.flags; 58 if (lhs.radius < rhs.radius) return -1; 59 if (lhs.radius > rhs.radius) return +1; 61 if (lhs.typeface < rhs.typeface) return -1; 62 if (lhs.typeface > rhs.typeface) return +1; 64 if (lhs.textSize < rhs.textSize) return -1; 65 if (lhs.textSize > rhs.textSize) return +1; 67 if (lhs [all...] |
/frameworks/native/include/private/ui/ |
H A D | RegionHelper.h | 72 inline region_operator(uint32_t op, const region& lhs, const region& rhs) argument 73 : op_mask(op), spanner(lhs, rhs) 80 SpannerInner spannerInner(spanner.lhs, spanner.rhs); 163 region lhs; member in class:android::region_operator::Spanner 168 : lhs(_lhs), rhs(_rhs) 170 if (lhs.count) { 171 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; 172 SpannerBase::lhs_tail = lhs.rects->bottom + lhs 224 region lhs; member in class:android::region_operator::SpannerInner [all...] |
/frameworks/base/core/java/android/net/ |
H A D | IpSecConfig.java | 310 public static boolean equals(IpSecConfig lhs, IpSecConfig rhs) { argument 311 if (lhs == null || rhs == null) return (lhs == rhs); 312 return (lhs.mMode == rhs.mMode 313 && lhs.mSourceAddress.equals(rhs.mSourceAddress) 314 && lhs.mDestinationAddress.equals(rhs.mDestinationAddress) 315 && ((lhs.mNetwork != null && lhs.mNetwork.equals(rhs.mNetwork)) 316 || (lhs.mNetwork == rhs.mNetwork)) 317 && lhs [all...] |
/frameworks/rs/ |
H A D | rsMatrix2x2.cpp | 43 void Matrix2x2::loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs) { argument 52 ri0 += ((const Matrix2x2 *)lhs)->get(j, 0) * rhs_ij; 53 ri1 += ((const Matrix2x2 *)lhs)->get(j, 1) * rhs_ij;
|
H A D | rsMatrix3x3.cpp | 48 void Matrix3x3::loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs) { argument 58 ri0 += ((const Matrix3x3 *)lhs)->get(j, 0) * rhs_ij; 59 ri1 += ((const Matrix3x3 *)lhs)->get(j, 1) * rhs_ij; 60 ri2 += ((const Matrix3x3 *)lhs)->get(j, 2) * rhs_ij;
|
/frameworks/av/media/img_utils/src/ |
H A D | SortedEntryVector.cpp | 37 int SortedEntryVector::do_compare(const void* lhs, const void* rhs) const { argument 38 const sp<TiffEntry>* lEntry = reinterpret_cast<const sp<TiffEntry>*>(lhs);
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
H A D | HsvColorComparator.java | 29 public int compare(Integer lhs, Integer rhs) { argument 31 Color.colorToHSV(lhs, hsv);
|
/frameworks/av/media/libmedia/ |
H A D | MidiDeviceInfo.cpp | 120 static inline bool areVectorsEqual(const Vector<String16>& lhs, const Vector<String16>& rhs) { argument 121 if (lhs.size() != rhs.size()) return false; 122 for (size_t i = 0; i < lhs.size(); ++i) { 123 if (lhs[i] != rhs[i]) return false; 128 bool operator==(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs) { argument 129 return (lhs.mType == rhs.mType && lhs.mId == rhs.mId && 130 areVectorsEqual(lhs.mInputPortNames, rhs.mInputPortNames) && 131 areVectorsEqual(lhs.mOutputPortNames, rhs.mOutputPortNames) && 132 lhs [all...] |
/frameworks/native/services/sensorservice/ |
H A D | vec.h | 50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) { 54 lhs[i] = rhs[i]; 56 lhs[i] = 0; 57 return lhs; 68 const VLHS<TYPE, SIZE>& lhs, 72 r[i] = lhs[i] + rhs[i]; 83 const VLHS<TYPE, SIZE>& lhs, 87 r[i] = lhs[i] - rhs[i]; 97 const VEC<TYPE, SIZE>& lhs, 101 r[i] = lhs[ 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 245 operator -(const vec<TYPE, SIZE>& lhs) argument 385 operator +(const vec& lhs, const vec& rhs) argument 388 operator -(const vec& lhs, const vec& rhs) argument 391 operator *(const vec& lhs, pTYPE v) argument 397 dot_product(const vec& lhs, const vec& rhs) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/aware/ |
H A D | WifiAwareNetworkSpecifier.java | 231 WifiAwareNetworkSpecifier lhs = (WifiAwareNetworkSpecifier) obj; 233 return type == lhs.type 234 && role == lhs.role 235 && clientId == lhs.clientId 236 && sessionId == lhs.sessionId 237 && peerId == lhs.peerId 238 && Arrays.equals(peerMac, lhs.peerMac) 239 && Arrays.equals(pmk, lhs.pmk) 240 && Objects.equals(passphrase, lhs.passphrase) 241 && requestorUid == lhs [all...] |
/frameworks/native/include/binder/ |
H A D | PersistableBundle.h | 96 friend bool operator==(const PersistableBundle& lhs, const PersistableBundle& rhs) { argument 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 107 operator !=(const PersistableBundle& lhs, const PersistableBundle& rhs) argument [all...] |
/frameworks/native/libs/binder/include/binder/ |
H A D | PersistableBundle.h | 96 friend bool operator==(const PersistableBundle& lhs, const PersistableBundle& rhs) { argument 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 107 operator !=(const PersistableBundle& lhs, const PersistableBundle& rhs) argument [all...] |
/frameworks/native/libs/binder/ |
H A D | IpPrefix.cpp | 155 bool operator==(const IpPrefix& lhs, const IpPrefix& rhs) argument 157 if (lhs.mIsIpv6 != rhs.mIsIpv6) { 161 if (lhs.mPrefixLength != rhs.mPrefixLength) { 165 if (lhs.mIsIpv6) { 166 return 0 == memcmp(lhs.mUnion.mIn6Addr.s6_addr, rhs.mUnion.mIn6Addr.s6_addr, sizeof(struct in6_addr)); 169 return 0 == memcmp(&lhs.mUnion.mInAddr, &rhs.mUnion.mInAddr, sizeof(struct in_addr));
|
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | SortedEntryVector.h | 46 virtual int do_compare(const void* lhs, const void* rhs) const;
|
/frameworks/base/tools/aapt2/java/ |
H A D | ProguardRules.h | 95 inline bool operator==(const UsageLocation& lhs, const UsageLocation& rhs) { argument 96 return lhs.name == rhs.name; 99 inline int operator<(const UsageLocation& lhs, const UsageLocation& rhs) { argument 100 return lhs.name.compare(rhs.name);
|
/frameworks/av/include/media/ |
H A D | MidiDeviceInfo.h | 59 friend bool operator==(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs); 60 friend bool operator!=(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs) { argument 61 return !(lhs == rhs);
|
/frameworks/av/media/libmedia/include/media/ |
H A D | MidiDeviceInfo.h | 59 friend bool operator==(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs); 60 friend bool operator!=(const MidiDeviceInfo& lhs, const MidiDeviceInfo& rhs) { argument 61 return !(lhs == rhs);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraUtils.java | 75 public int compare(Camera.Size lhs, Camera.Size rhs) { argument 76 return compareSizes(lhs.width, lhs.height, rhs.width, rhs.height);
|