Home
last modified time | relevance | path

Searched refs:right (Results 1 – 25 of 805) sorted by relevance

12345678910>>...33

/frameworks/base/graphics/java/android/graphics/
DRectF.java35 public float right; field in RectF
53 public RectF(float left, float top, float right, float bottom) { in RectF() argument
56 this.right = right; in RectF()
69 left = top = right = bottom = 0.0f; in RectF()
73 right = r.right; in RectF()
80 left = top = right = bottom = 0.0f; in RectF()
84 right = r.right; in RectF()
95 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
102 result = 31 * result + (right != +0.0f ? Float.floatToIntBits(right) : 0); in hashCode()
109 + right + ", " + bottom + ")"; in toString()
[all …]
DRect.java43 public int right; field in Rect
76 public Rect(int left, int top, int right, int bottom) { in Rect() argument
79 this.right = right; in Rect()
92 left = top = right = bottom = 0; in Rect()
96 right = r.right; in Rect()
107 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
114 result = 31 * result + right; in hashCode()
123 sb.append(top); sb.append(" - "); sb.append(right); in toString()
142 sb.append(top); sb.append("]["); sb.append(right); in toShortString()
163 sb.append(right); in flattenToString()
[all …]
DInsets.java33 public final int right; field in Insets
36 private Insets(int left, int top, int right, int bottom) { in Insets() argument
39 this.right = right; in Insets()
55 public static Insets of(int left, int top, int right, int bottom) { in of() argument
56 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of()
59 return new Insets(left, top, right, bottom); in of()
70 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of()
90 if (right != insets.right) return false; in equals()
100 result = 31 * result + right; in hashCode()
110 ", right=" + right + in toString()
DOutline.java173 public void setRect(int left, int top, int right, int bottom) { in setRect() argument
174 setRoundRect(left, top, right, bottom, 0.0f); in setRect()
181 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect()
189 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument
190 if (left >= right || top >= bottom) { in setRoundRect()
200 mRect.set(left, top, right, bottom); in setRoundRect()
208 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect()
242 public void setOval(int left, int top, int right, int bottom) { in setOval() argument
243 if (left >= right || top >= bottom) { in setOval()
248 if ((bottom - top) == (right - left)) { in setOval()
[all …]
DPath.java458 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
473 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
488 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument
491 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
519 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
527 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath()
538 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
550 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument
551 detectSimplePath(left, top, right, bottom, dir); in addRect()
552 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
[all …]
DRegion.java71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region()
76 public Region(int left, int top, int right, int bottom) { in Region() argument
78 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region()
97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set()
102 public boolean set(int left, int top, int right, int bottom) { in set() argument
103 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set()
182 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains()
191 public native boolean quickContains(int left, int top, int right, in quickContains() argument
200 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject()
208 public native boolean quickReject(int left, int top, int right, int bottom); in quickReject() argument
[all …]
/frameworks/base/libs/hwui/
DRect.h34 (r).left, (r).top, (r).right, (r).bottom
36 (r).left(), (r).top(), (r).right(), (r).bottom()
46 float right; variable
58 right(0), in Rect()
62 inline Rect(float left, float top, float right, float bottom): in Rect() argument
65 right(right), in Rect()
72 right(width), in Rect()
79 right(rect.fRight), in Rect()
86 right(rect.fRight), in Rect()
99 left = top = right = bottom = 0.0f; in clear()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java32 private UsageStats right; field in UsageStatsTest
37 right = new UsageStats(); in setUp()
44 right.mPackageName = "com.test"; in testEarlierBeginTimeTakesPriorityOnAdd()
45 right.mBeginTimeStamp = 99999; in testEarlierBeginTimeTakesPriorityOnAdd()
47 left.add(right); in testEarlierBeginTimeTakesPriorityOnAdd()
56 right.mPackageName = "com.test"; in testLaterEndTimeTakesPriorityOnAdd()
57 right.mEndTimeStamp = 100001; in testLaterEndTimeTakesPriorityOnAdd()
59 left.add(right); in testLaterEndTimeTakesPriorityOnAdd()
69 right.mPackageName = "com.test"; in testLastUsedTimeIsOverriddenByLaterStats()
70 right.mBeginTimeStamp = 100001; in testLastUsedTimeIsOverriddenByLaterStats()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskPositionerTests.java89 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
94 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
100 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
106 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing()
115 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
120 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
125 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
130 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
141 final int midX = (r.left + r.right) / 2; in testFreeWindowResizingTestAllEdges()
149 assertEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
[all …]
/frameworks/native/libs/ui/
DRect.cpp36 right = -1; in makeInvalid()
50 if (right < rhs.right) { in operator <()
60 right -= left - x; in offsetTo()
70 right += x; in offsetBy()
76 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +()
81 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -()
88 result->right = min(right, with.right); in intersect()
96 result = Rect(width - result.right, result.top, width - result.left, in transform()
100 result = Rect(result.left, height - result.bottom, result.right, in transform()
106 int right = height - result.top; in transform() local
[all …]
DRegion.cpp129 int right = current->right; in reverseRectsResolvingJunctions() local
138 if (prev.right <= left) break; in reverseRectsResolvingJunctions()
140 if (prev.right > left && prev.right < right) { in reverseRectsResolvingJunctions()
141 dst.add(Rect(prev.right, top, right, bottom)); in reverseRectsResolvingJunctions()
142 right = prev.right; in reverseRectsResolvingJunctions()
145 if (prev.left > left && prev.left < right) { in reverseRectsResolvingJunctions()
146 dst.add(Rect(prev.left, top, right, bottom)); in reverseRectsResolvingJunctions()
147 right = prev.left; in reverseRectsResolvingJunctions()
152 if (prev.left >= right) { in reverseRectsResolvingJunctions()
157 if (prev.left >= right) break; in reverseRectsResolvingJunctions()
[all …]
/frameworks/base/core/java/android/view/
DGravity.java191 + ((container.right - container.left - w)/2) + xAdj; in apply()
192 outRect.right = outRect.left + w; in apply()
198 if (outRect.right > container.right) { in apply()
199 outRect.right = container.right; in apply()
205 outRect.right = outRect.left + w; in apply()
208 if (outRect.right > container.right) { in apply()
209 outRect.right = container.right; in apply()
214 outRect.right = container.right - xAdj; in apply()
215 outRect.left = outRect.right - w; in apply()
225 outRect.right = container.right + xAdj; in apply()
[all …]
DWindowInsets.java156 return mSystemWindowInsets.right; in getSystemWindowInsetRight()
211 return mWindowDecorInsets.right; in getWindowDecorInsetRight()
239 mSystemWindowInsets.right != 0 || mSystemWindowInsets.bottom != 0; in hasSystemWindowInsets()
254 mWindowDecorInsets.right != 0 || mWindowDecorInsets.bottom != 0; in hasWindowDecorInsets()
320 boolean right, boolean bottom) { in consumeSystemWindowInsets() argument
321 if (left || top || right || bottom) { in consumeSystemWindowInsets()
326 right ? 0 : mSystemWindowInsets.right, in consumeSystemWindowInsets()
344 int right, int bottom) { in replaceSystemWindowInsets() argument
346 result.mSystemWindowInsets = new Rect(left, top, right, bottom); in replaceSystemWindowInsets()
378 boolean right, boolean bottom) { in consumeWindowDecorInsets() argument
[all …]
/frameworks/base/tools/aapt2/compile/
DImage.h78 inline bool operator==(const Range& left, const Range& right) {
79 return left.start == right.start && left.end == right.end;
91 int32_t right = 0; member
96 : left(l), top(t), right(r), bottom(b) {} in Bounds()
102 return left != 0 || top != 0 || right != 0 || bottom != 0; in nonZero()
105 inline bool operator==(const Bounds& left, const Bounds& right) {
106 return left.left == right.left && left.top == right.top &&
107 left.right == right.right && left.bottom == right.bottom;
/frameworks/native/include/ui/
DRect.h54 right = static_cast<int32_t>(w); in Rect()
61 right = r; in Rect()
68 right = rb.x; in Rect()
75 left = top = right = bottom = 0; in clear()
90 return right - left; in getWidth()
99 return Rect(right - left, bottom - top); in getBounds()
108 right = rb.x; in setRightBottom()
117 return Point(right, bottom); in rightBottom()
120 return Point(right, top); in rightTop()
129 (right == rhs.right) && (bottom == rhs.bottom);
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java251 float right = bounds.right - mBorderWidth / 2; in draw() local
263 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); in draw()
268 flapCornerRectF.offsetTo(right - mCornerFlapSide, bottom - mCornerFlapSide); in draw()
306 float right = bounds.right; in drawFakeCornersForCompatibilityMode() local
322 fakeCornerRectF.offsetTo(right - fakeCornerRectF.width(), top); in drawFakeCornersForCompatibilityMode()
324 mCompatibilityModePath.moveTo(right, top); in drawFakeCornersForCompatibilityMode()
325 mCompatibilityModePath.lineTo(right, top + mCornerRoundRadius); in drawFakeCornersForCompatibilityMode()
332 .offsetTo(right - fakeCornerRectF.width(), bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode()
334 mCompatibilityModePath.moveTo(right, bottom); in drawFakeCornersForCompatibilityMode()
335 mCompatibilityModePath.lineTo(right - mCornerRoundRadius, bottom); in drawFakeCornersForCompatibilityMode()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java146 public void add(UsageStats right) { in add() argument
147 if (!mPackageName.equals(right.mPackageName)) { in add()
149 mPackageName + "' with UsageStats for package '" + right.mPackageName + "'."); in add()
154 if (right.mBeginTimeStamp > mBeginTimeStamp) { in add()
157 mLastEvent = Math.max(mLastEvent, right.mLastEvent); in add()
158 mLastTimeUsed = Math.max(mLastTimeUsed, right.mLastTimeUsed); in add()
160 mBeginTimeStamp = Math.min(mBeginTimeStamp, right.mBeginTimeStamp); in add()
161 mEndTimeStamp = Math.max(mEndTimeStamp, right.mEndTimeStamp); in add()
162 mTotalTimeInForeground += right.mTotalTimeInForeground; in add()
163 mLaunchCount += right.mLaunchCount; in add()
[all …]
/frameworks/compile/mclinker/include/mcld/ADT/
DTreeBase.h23 NodeBase* right; variable
26 NodeBase() : left(NULL), right(NULL) {} in NodeBase()
57 bool isRoot() const { return (m_pNode->right == m_pNode); } in isRoot()
60 return ((m_pNode->right) != (m_pNode->right->right)); in hasRightChild()
64 return ((m_pNode->left) != (m_pNode->left->right)); in hasLeftChild()
83 this->m_pNode = this->m_pNode->right;
95 this->m_pNode->right = pOther;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
DBoundsRule.java123 if (right == null) { in calculateBounds()
124 result.right = rect.right; in calculateBounds()
126 result.right = doCalculate(rect.left, right, rect.width()); in calculateBounds()
146 this.right = boundsRule.right != null ? new ValueRule(boundsRule.right) : null; in BoundsRule()
162 public ValueRule right; field in BoundsRule
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/
DGridLayoutTest.java72 int right = mRightView.getWidth(); in testUseDefaultMargin() local
75 assertTrue("right item should get some width", right > 0); in testUseDefaultMargin()
77 assertTrue("left view should be almost two times right view " + left + " vs " + right, in testUseDefaultMargin()
78 Math.abs(right * 2 - left) < 2); in testUseDefaultMargin()
85 int right = mRightView.getWidth(); in testImplicitFillHorizontal() local
88 assertTrue("right item should get some width", right > 0); in testImplicitFillHorizontal()
90 assertTrue("left view should be almost two times right view " + left + " vs " + right, in testImplicitFillHorizontal()
91 Math.abs(right * 2 - left) < 2); in testImplicitFillHorizontal()
98 int right = mRightView.getWidth(); in testMakeViewGone() local
101 assertTrue("right item should get some width", right > 0); in testMakeViewGone()
[all …]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DCardViewBindingAdapter.java39 int right = view.getContentPaddingRight(); in setContentPaddingLeft() local
41 view.setContentPadding(left, top, right, bottom); in setContentPaddingLeft()
47 int right = view.getContentPaddingRight(); in setContentPaddingTop() local
49 view.setContentPadding(left, top, right, bottom); in setContentPaddingTop()
53 public static void setContentPaddingRight(CardView view, int right) { in setContentPaddingRight() argument
57 view.setContentPadding(left, top, right, bottom); in setContentPaddingRight()
64 int right = view.getContentPaddingRight(); in setContentPaddingBottom() local
65 view.setContentPadding(left, top, right, bottom); in setContentPaddingBottom()
/frameworks/base/core/java/android/animation/
DRectEvaluator.java75 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); in evaluate() local
78 return new Rect(left, top, right, bottom); in evaluate()
80 mRect.set(left, top, right, bottom); in evaluate()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DMathExpr.java32 MathExpr(Expr left, String op, Expr right) { in MathExpr() argument
33 super(left, right); in MathExpr()
84 final Expr right = getRight(); in getInvertibleError() local
85 if (left.isDynamic() == right.isDynamic()) { in getInvertibleError()
89 Expr dyn = left.isDynamic() ? left : right; in getInvertibleError()
91 Expr constExpr = left.isDynamic() ? right : left; in getInvertibleError()
109 final Expr right = getRight(); in generateInverse() local
110 Preconditions.check(left.isDynamic() ^ right.isDynamic(), "Two-way binding of a math " + in generateInverse()
112 "dynamic: (%s) %s (%s)", left, mOp, right); in generateInverse() local
113 final Expr constExpr = (left.isDynamic() ? right : left).cloneToModel(model); in generateInverse()
[all …]
/frameworks/support/transition/src/android/support/transition/
DRectEvaluator.java79 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); in evaluate() local
82 return new Rect(left, top, right, bottom); in evaluate()
84 mRect.set(left, top, right, bottom); in evaluate()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java49 public int compare(NotificationRecord left, NotificationRecord right) { in compare() argument
52 boolean rightImportantColorized = isImportantColorized(right); in compare()
60 boolean rightImportantOngoing = isImportantOngoing(right); in compare()
68 boolean rightMessaging = isImportantMessaging(right); in compare()
75 boolean rightPeople = isImportantPeople(right); in compare()
77 Float.compare(left.getContactAffinity(), right.getContactAffinity()); in compare()
90 final int rightImportance = right.getImportance(); in compare()
103 final int rightPackagePriority = right.getPackagePriority(); in compare()
110 final int rightPriority = right.sbn.getNotification().priority; in compare()
117 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs()); in compare()

12345678910>>...33