Searched refs:lhs (Results 26 - 50 of 110) sorted by path

12345

/frameworks/base/libs/hwui/
H A DRenderBufferCache.cpp80 const RenderBufferCache::RenderBufferEntry& lhs,
82 int deltaInt = int(lhs.mWidth) - int(rhs.mWidth);
85 deltaInt = int(lhs.mHeight) - int(rhs.mHeight);
88 return int(lhs.mFormat) - int(rhs.mFormat);
79 compare( const RenderBufferCache::RenderBufferEntry& lhs, const RenderBufferCache::RenderBufferEntry& rhs) argument
H A DRenderBufferCache.h93 static int compare(const RenderBufferEntry& lhs, const RenderBufferEntry& rhs);
103 friend inline int strictly_order_type(const RenderBufferEntry& lhs, argument
105 return RenderBufferEntry::compare(lhs, rhs) < 0;
108 friend inline int compare_type(const RenderBufferEntry& lhs, argument
110 return RenderBufferEntry::compare(lhs, rhs);
H A DTextDropShadowCache.cpp53 int ShadowText::compare(const ShadowText& lhs, const ShadowText& rhs) { argument
54 int deltaInt = int(lhs.len) - int(rhs.len);
57 deltaInt = lhs.flags - rhs.flags;
60 if (lhs.radius < rhs.radius) return -1;
61 if (lhs.radius > rhs.radius) return +1;
63 if (lhs.typeface < rhs.typeface) return -1;
64 if (lhs.typeface > rhs.typeface) return +1;
66 if (lhs.textSize < rhs.textSize) return -1;
67 if (lhs.textSize > rhs.textSize) return +1;
69 if (lhs
[all...]
H A DTextDropShadowCache.h64 static int compare(const ShadowText& lhs, const ShadowText& rhs);
103 inline int strictly_order_type(const ShadowText& lhs, const ShadowText& rhs) { argument
104 return ShadowText::compare(lhs, rhs) < 0;
107 inline int compare_type(const ShadowText& lhs, const ShadowText& rhs) { argument
108 return ShadowText::compare(lhs, rhs);
/frameworks/base/libs/hwui/font/
H A DFont.cpp90 int Font::FontDescription::compare(const Font::FontDescription& lhs, argument
92 int deltaInt = int(lhs.mFontId) - int(rhs.mFontId);
95 if (lhs.mFontSize < rhs.mFontSize) return -1;
96 if (lhs.mFontSize > rhs.mFontSize) return +1;
98 if (lhs.mItalicStyle < rhs.mItalicStyle) return -1;
99 if (lhs.mItalicStyle > rhs.mItalicStyle) return +1;
101 deltaInt = int(lhs.mFlags) - int(rhs.mFlags);
104 if (lhs.mScaleX < rhs.mScaleX) return -1;
105 if (lhs.mScaleX > rhs.mScaleX) return +1;
107 deltaInt = int(lhs
[all...]
H A DFont.h57 static int compare(const FontDescription& lhs, const FontDescription& rhs);
156 inline int strictly_order_type(const Font::FontDescription& lhs, argument
158 return Font::FontDescription::compare(lhs, rhs) < 0;
161 inline int compare_type(const Font::FontDescription& lhs, const Font::FontDescription& rhs) { argument
162 return Font::FontDescription::compare(lhs, rhs);
/frameworks/base/libs/hwui/utils/
H A DMacros.h28 friend inline int strictly_order_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs) < 0; } \
29 friend inline int compare_type(const Type& lhs, const Type& rhs) { return lhs.compare(rhs); } \
H A DSortedList.h102 virtual int do_compare(const void* lhs, const void* rhs) const;
235 int SortedList<TYPE>::do_compare(const void* lhs, const void* rhs) const {
236 return compare_type(*reinterpret_cast<const TYPE*> (lhs), *reinterpret_cast<const TYPE*> (rhs));
H A DSortedListImpl.h41 virtual int do_compare(const void* lhs, const void* rhs) const = 0;
/frameworks/base/media/java/android/media/
H A DUtils.java42 public int compare(Range<T> lhs, Range<T> rhs) {
43 if (lhs.getUpper().compareTo(rhs.getLower()) < 0) {
45 } else if (lhs.getLower().compareTo(rhs.getUpper()) > 0) {
49 "sample rate ranges must be distinct (" + lhs + " and " + rhs + ")");
97 public int compare(Range<T> lhs, Range<T> rhs) {
98 if (lhs.getUpper().compareTo(rhs.getLower()) < 0) {
100 } else if (lhs.getLower().compareTo(rhs.getUpper()) > 0) {
/frameworks/base/opengl/java/android/opengl/
H A DMatrix.java51 * matrix. In matrix notation: result = lhs x rhs. Due to the way
54 * the lhs matrix. This is the opposite of what you might expect.
56 * The same float array may be passed for result, lhs, and/or rhs. However,
58 * either the lhs or rhs elements.
63 * @param lhs The float array that holds the left-hand-side matrix.
64 * @param lhsOffset The offset into the lhs array where the lhs is stored
68 * @throws IllegalArgumentException if result, lhs, or rhs are null, or if
69 * resultOffset + 16 > result.length or lhsOffset + 16 > lhs.length or
73 float[] lhs, in
72 multiplyMM(float[] result, int resultOffset, float[] lhs, int lhsOffset, float[] rhs, int rhsOffset) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRootsFragment.java394 public int compare(RootInfo lhs, RootInfo rhs) { argument
395 final int score = DocumentInfo.compareToIgnoreCaseNullable(lhs.title, rhs.title);
399 return DocumentInfo.compareToIgnoreCaseNullable(lhs.summary, rhs.summary);
H A DSortingCursorWrapper.java183 final String lhs = pivotValue;
185 final int compare = DocumentInfo.compareToIgnoreCaseNullable(lhs, rhs);
229 final long lhs = pivotValue;
231 final int compare = Long.compare(lhs, rhs);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DDocumentInfo.java290 public static int compareToIgnoreCaseNullable(String lhs, String rhs) { argument
291 final boolean leftEmpty = TextUtils.isEmpty(lhs);
298 final boolean leftDir = (lhs.charAt(0) == DIR_PREFIX);
304 return sCollator.compare(lhs, rhs);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardMultiUserSelectorView.java110 public int compare(UserInfo lhs, UserInfo rhs) {
111 return (lhs.serialNumber - rhs.serialNumber);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DRemotePrintDocument.java764 private boolean equalsIgnoreSize(PrintDocumentInfo lhs, PrintDocumentInfo rhs) { argument
765 if (lhs == rhs) {
768 if (lhs == null) {
774 if (lhs.getContentType() != rhs.getContentType()
775 || lhs.getPageCount() != rhs.getPageCount()) {
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DMediaSizeUtils.java81 public int compare(MediaSize lhs, MediaSize rhs) { argument
83 String lhsStandard = getStandardForMediaSize(mContext, lhs);
100 return lhs.getLabel(mContext.getPackageManager()).
H A DPageRangeUtils.java34 public int compare(PageRange lhs, PageRange rhs) {
35 return lhs.getStart() - rhs.getStart();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DAccessPointControllerImpl.java234 public int compare(AccessPoint lhs, AccessPoint rhs) {
235 return -Integer.compare(score(lhs), score(rhs));
H A DNetworkControllerImpl.java458 public int compare(SubscriptionInfo lhs, SubscriptionInfo rhs) {
459 return lhs.getSimSlotIndex() == rhs.getSimSlotIndex()
460 ? lhs.getSubscriptionId() - rhs.getSubscriptionId()
461 : lhs.getSimSlotIndex() - rhs.getSimSlotIndex();
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DZenModePanel.java334 private static boolean sameConditionId(Condition lhs, Condition rhs) { argument
335 return lhs == null ? rhs == null : rhs != null && lhs.id.equals(rhs.id);
/frameworks/base/rs/java/android/renderscript/
H A DMatrix2f.java130 * @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 DMatrix3f.java204 * @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;
H A DMatrix4f.java222 * @param lhs left hand side matrix
225 public void loadMultiply(Matrix4f lhs, Matrix4f rhs) { argument
233 ri0 += lhs.get(j,0) * rhs_ij;
234 ri1 += lhs.get(j,1) * rhs_ij;
235 ri2 += lhs.get(j,2) * rhs_ij;
236 ri3 += lhs.get(j,3) * rhs_ij;
/frameworks/base/services/core/java/com/android/server/
H A DAlarmManagerService.java384 public int compare(Alarm lhs, Alarm rhs) {
386 if (lhs.priorityClass.priority < rhs.priorityClass.priority) {
388 } else if (lhs.priorityClass.priority > rhs.priorityClass.priority) {
393 if (lhs.whenElapsed < rhs.whenElapsed) {
395 } else if (lhs.whenElapsed > rhs.whenElapsed) {
943 public int compare(FilterStats lhs, FilterStats rhs) {
944 if (lhs.aggregateTime < rhs.aggregateTime) {
946 } else if (lhs.aggregateTime > rhs.aggregateTime) {

Completed in 342 milliseconds

12345