/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 37 Color.colorToHSV(rhs, hsv2);
|
/frameworks/base/tools/split-select/ |
H A D | TestRules.h | 32 AndRule& add(const Rule& rhs) { argument 33 subrules.add(new Rule(rhs)); 43 OrRule& add(const Rule& rhs) { argument 44 subrules.add(new Rule(rhs));
|
H A D | Rule.cpp | 32 Rule::Rule(const Rule& rhs) argument 34 , op(rhs.op) 35 , key(rhs.key) 36 , negate(rhs.negate) 37 , stringArgs(rhs.stringArgs) 38 , longArgs(rhs.longArgs) 39 , subrules(rhs.subrules) {
|
/frameworks/base/tools/aapt2/ |
H A D | Source.h | 61 inline bool operator==(const Source& lhs, const Source& rhs) { argument 62 return lhs.path == rhs.path && lhs.line == rhs.line; 65 inline bool operator<(const Source& lhs, const Source& rhs) { argument 66 int cmp = lhs.path.compare(rhs.path); 70 if (rhs.line) { 71 return lhs.line.value() < rhs.line.value(); 75 return bool(rhs.line);
|
/frameworks/base/tools/aapt2/util/ |
H A D | Maybe_test.cpp | 34 Dummy(const Dummy& rhs) { argument 36 if (rhs.data) { 38 *data = *rhs.data; 41 << "} from Dummy{0x" << (const void*) &rhs 45 Dummy(Dummy&& rhs) { argument 46 data = rhs.data; 47 rhs.data = nullptr; 49 << "} from Dummy{0x" << (const void*) &rhs 53 Dummy& operator=(const Dummy& rhs) { argument 57 if (rhs 67 operator =(Dummy&& rhs) argument [all...] |
H A D | BigBuffer.h | 70 BigBuffer(BigBuffer&& rhs); 118 inline BigBuffer::BigBuffer(BigBuffer&& rhs) : argument 119 mBlockSize(rhs.mBlockSize), mSize(rhs.mSize), mBlocks(std::move(rhs.mBlocks)) {
|
/frameworks/native/cmds/cmd/ |
H A D | cmd.cpp | 36 static int sort_func(const String16* lhs, const String16* rhs) argument 38 return lhs->compare(*rhs);
|
/frameworks/native/include/ui/ |
H A 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) { argument 68 operator -=(const Point& rhs) argument [all...] |
/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/rs/ |
H A D | rsMatrix2x2.cpp | 44 void Matrix2x2::loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs) { argument 52 const float rhs_ij = ((const Matrix2x2 *)rhs)->get(i, j);
|
H A D | rsMatrix2x2.h | 40 void loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs); 44 void multiply(const rs_matrix2x2 *rhs) { argument 45 loadMultiply(this, rhs);
|
H A D | rsMatrix3x3.cpp | 48 void Matrix3x3::loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs) { argument 57 const float rhs_ij = ((const Matrix3x3 *)rhs)->get(i, j);
|
H A D | rsMatrix3x3.h | 40 void loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs); 44 void multiply(const rs_matrix3x3 *rhs) { argument 45 loadMultiply(this, rhs);
|
H A D | rsMatrix4x4.h | 45 void loadMultiply(const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs); 61 void multiply(const rs_matrix4x4 *rhs) { argument 62 loadMultiply(this, rhs);
|
/frameworks/base/include/androidfw/ |
H A D | TypeWrappers.h | 30 iterator& operator=(const iterator& rhs) { argument 31 mTypeVariant = rhs.mTypeVariant; 32 mIndex = rhs.mIndex; 35 bool operator==(const iterator& rhs) const { 36 return mTypeVariant == rhs.mTypeVariant && mIndex == rhs.mIndex; 39 bool operator!=(const iterator& rhs) const { 40 return mTypeVariant != rhs.mTypeVariant || mIndex != rhs.mIndex;
|
/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/base/core/java/com/android/internal/app/ |
H A D | LocaleHelper.java | 243 * @param rhs the second object to be compared 248 public int compare(LocaleStore.LocaleInfo lhs, LocaleStore.LocaleInfo rhs) { argument 251 if (lhs.isSuggested() == rhs.isSuggested()) { 255 removePrefixForCompare(rhs.getLocale(), rhs.getLabel(mCountryMode)));
|
/frameworks/base/libs/hwui/ |
H A D | LayerCache.cpp | 67 const LayerCache::LayerEntry& rhs) { 68 int deltaInt = int(lhs.mWidth) - int(rhs.mWidth); 71 return int(lhs.mHeight) - int(rhs.mHeight); 66 compare(const LayerCache::LayerEntry& lhs, const LayerCache::LayerEntry& rhs) argument
|
H A D | RenderBufferCache.cpp | 69 const RenderBufferCache::RenderBufferEntry& rhs) { 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.italicStyle < rhs [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
H A D | MediaSizeUtils.java | 143 public int compare(MediaSize lhs, MediaSize rhs) { argument 145 int rhsStandard = getStandardForMediaSize(mContext, rhs); 161 return getLabel(mContext, lhs).compareTo(getLabel(mContext, rhs));
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix2f.java | 131 * @param rhs right hand side matrix 133 public void loadMultiply(Matrix2f lhs, Matrix2f rhs) { argument 138 float rhs_ij = rhs.get(i,j); 150 * @param rhs right hand side to multiply by 152 public void multiply(Matrix2f rhs) { argument 154 tmp.loadMultiply(this, rhs);
|
H A D | Matrix3f.java | 205 * @param rhs right hand side matrix 207 public void loadMultiply(Matrix3f lhs, Matrix3f rhs) { argument 213 float rhs_ij = rhs.get(i,j); 227 * @param rhs right hand side to multiply by 229 public void multiply(Matrix3f rhs) { argument 231 tmp.loadMultiply(this, rhs);
|
/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, lh [all...] |