Searched defs:rhs (Results 1 - 25 of 115) sorted by relevance

12345

/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DUtils.cpp21 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 DHsvColorComparator.java29 public int compare(Integer lhs, Integer rhs) { argument
37 Color.colorToHSV(rhs, hsv2);
/frameworks/base/tools/split-select/
H A DTestRules.h32 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 DRule.cpp32 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 DSource.h61 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 DMaybe_test.cpp34 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 DBigBuffer.h70 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 Dcmd.cpp36 static int sort_func(const String16* lhs, const String16* rhs) argument
38 return lhs->compare(*rhs);
/frameworks/native/include/ui/
H A DPoint.h40 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 DRegion_test.cpp28 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 DrsMatrix2x2.cpp44 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 DrsMatrix2x2.h40 void loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs);
44 void multiply(const rs_matrix2x2 *rhs) { argument
45 loadMultiply(this, rhs);
H A DrsMatrix3x3.cpp48 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 DrsMatrix3x3.h40 void loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs);
44 void multiply(const rs_matrix3x3 *rhs) { argument
45 loadMultiply(this, rhs);
H A DrsMatrix4x4.h45 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 DTypeWrappers.h30 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 DCameraUtils.java75 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 DLocaleHelper.java243 * @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 DLayerCache.cpp67 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 DRenderBufferCache.cpp69 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 DTextDropShadowCache.cpp52 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 DMediaSizeUtils.java143 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 DMatrix2f.java131 * @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 DMatrix3f.java205 * @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 DCameraTooTest.java43 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...]

Completed in 561 milliseconds

12345