/frameworks/av/drm/mediadrm/plugins/clearkey/ |
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/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/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/base/tools/aapt2/ |
H A D | Source.h | 60 inline bool operator==(const Source& lhs, const Source& rhs) { argument 61 return lhs.path == rhs.path && lhs.line == rhs.line; 64 inline bool operator<(const Source& lhs, const Source& rhs) { argument 65 int cmp = lhs.path.compare(rhs.path); 68 if (lhs.line) { 70 return lhs.line.value() < rhs.line.value();
|
/frameworks/native/libs/ui/tests/ |
H A D | Region_test.cpp | 28 void checkVertTJunction(const Rect* lhs, const Rect* rhs) { argument 29 EXPECT_FALSE((rhs->right > lhs->left && rhs->right < lhs->right) || 30 (rhs->left > lhs->left && rhs->left < lhs->right));
|
/frameworks/native/services/surfaceflinger/ |
H A D | LayerVector.cpp | 29 int LayerVector::do_compare(const void* lhs, const void* rhs) const argument 32 const auto& l = *reinterpret_cast<const sp<Layer>*>(lhs);
|
/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/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);
|
/frameworks/native/include/binder/ |
H A D | IpPrefix.h | 61 friend bool operator==(const IpPrefix& lhs, const IpPrefix& rhs); 63 friend bool operator!=(const IpPrefix& lhs, const IpPrefix& rhs) { argument 64 return !(lhs == rhs);
|
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 | IpPrefix.h | 61 friend bool operator==(const IpPrefix& lhs, const IpPrefix& rhs); 63 friend bool operator!=(const IpPrefix& lhs, const IpPrefix& rhs) { argument 64 return !(lhs == rhs);
|
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/base/core/java/com/android/internal/app/ |
H A D | LocaleHelper.java | 242 * @param lhs the first object to be compared 248 public int compare(LocaleStore.LocaleInfo lhs, LocaleStore.LocaleInfo rhs) { argument 251 if (lhs.isSuggested() == rhs.isSuggested()) { 254 removePrefixForCompare(lhs.getLocale(), lhs.getLabel(mCountryMode)), 258 return lhs.isSuggested() ? -1 : 1;
|
/frameworks/base/libs/hwui/ |
H A D | RenderBufferCache.cpp | 68 const RenderBufferCache::RenderBufferEntry& lhs, 70 int deltaInt = int(lhs.mWidth) - int(rhs.mWidth); 73 deltaInt = int(lhs.mHeight) - int(rhs.mHeight); 76 return int(lhs.mFormat) - int(rhs.mFormat); 67 compare( const RenderBufferCache::RenderBufferEntry& lhs, const RenderBufferCache::RenderBufferEntry& rhs) argument
|
H A D | TextDropShadowCache.cpp | 52 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { argument 53 int deltaInt = int(lhs.glyphCount) - int(rhs.glyphCount); 56 deltaInt = lhs.flags - rhs.flags; 59 if (lhs.radius < rhs.radius) return -1; 60 if (lhs.radius > rhs.radius) return +1; 62 if (lhs.typeface < rhs.typeface) return -1; 63 if (lhs.typeface > rhs.typeface) return +1; 65 if (lhs.textSize < rhs.textSize) return -1; 66 if (lhs.textSize > rhs.textSize) return +1; 68 if (lhs [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
H A D | MediaSizeUtils.java | 143 public int compare(MediaSize lhs, MediaSize rhs) { argument 144 int lhsStandard = getStandardForMediaSize(mContext, lhs); 161 return getLabel(mContext, lhs).compareTo(getLabel(mContext, rhs));
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix2f.java | 130 * @param lhs left hand side matrix 133 public void loadMultiply(Matrix2f lhs, Matrix2f rhs) { argument 139 ri0 += lhs.get(j,0) * rhs_ij; 140 ri1 += lhs.get(j,1) * rhs_ij;
|
H A D | Matrix3f.java | 204 * @param lhs left hand side matrix 207 public void loadMultiply(Matrix3f lhs, Matrix3f rhs) { argument 214 ri0 += lhs.get(j,0) * rhs_ij; 215 ri1 += lhs.get(j,1) * rhs_ij; 216 ri2 += lhs.get(j,2) * rhs_ij;
|
/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/ |
H A D | CameraTooTest.java | 43 private <T> void assertComparatorEq(T lhs, T rhs, Comparator<T> rel) { argument 44 assertEquals(String.format("%s should be equal to %s", lhs, rhs), rel.compare(lhs, rhs), 0); 45 assertEquals(String.format("%s should be equal to %s (reverse check)", lhs, rhs), 46 rel.compare(rhs, lhs), 0); 49 private <T> void assertComparatorLt(T lhs, T rhs, Comparator<T> rel) { argument 50 assertTrue(String.format("%s should be less than %s", lhs, rhs), rel.compare(lhs, rhs) < 0); 51 assertTrue(String.format("%s should be less than %s (reverse check)", lhs, rhs), 52 rel.compare(rhs, lhs) > [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/rs/support/java/src/android/support/v8/renderscript/ |
H A D | Matrix2f.java | 133 * @param lhs left hand side matrix 136 public void loadMultiply(Matrix2f lhs, Matrix2f rhs) { argument 142 ri0 += lhs.get(j,0) * rhs_ij; 143 ri1 += lhs.get(j,1) * rhs_ij;
|
/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/ |
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/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);
|