Home
last modified time | relevance | path

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

12345678910>>...49

/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.java42 public int right; field in Rect
75 public Rect(int left, int top, int right, int bottom) { in Rect() argument
78 this.right = right; in Rect()
91 left = top = right = bottom = 0; in Rect()
95 right = r.right; in Rect()
106 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
113 result = 31 * result + right; in hashCode()
122 sb.append(top); sb.append(" - "); sb.append(right); in toString()
141 sb.append(top); sb.append("]["); sb.append(right); in toShortString()
162 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.java161 public void setRect(int left, int top, int right, int bottom) { in setRect() argument
162 setRoundRect(left, top, right, bottom, 0.0f); in setRect()
169 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect()
177 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument
178 if (left >= right || top >= bottom) { in setRoundRect()
184 mRect.set(left, top, right, bottom); in setRoundRect()
193 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect()
227 public void setOval(int left, int top, int right, int bottom) { in setOval() argument
228 if (left >= right || top >= bottom) { in setOval()
233 if ((bottom - top) == (right - left)) { in setOval()
[all …]
DPath.java453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
468 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
483 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument
486 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
514 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
522 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath()
533 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
545 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument
546 detectSimplePath(left, top, right, bottom, dir); in addRect()
547 native_addRect(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 …]
DCanvas.java429 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); in saveLayer()
442 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer() argument
444 return native_saveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer()
452 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer() argument
453 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer()
488 … return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); in saveLayerAlpha()
501 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, in saveLayerAlpha() argument
504 return native_saveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, in saveLayerAlpha()
511 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { in saveLayerAlpha() argument
512 return saveLayerAlpha(left, top, right, bottom, alpha, ALL_SAVE_FLAG); in saveLayerAlpha()
[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()
92 left = top = right = bottom = 0.0f; in clear()
98 return !((left < right) && (top < bottom)); in isEmpty()
[all …]
DOpenGLRenderer.h138 float left, float top, float right, float bottom, bool opaque);
155 virtual int saveLayer(float left, float top, float right, float bottom, in saveLayer() argument
157 return saveLayer(left, top, right, bottom, paint, flags, nullptr); in saveLayer()
162 int saveLayer(float left, float top, float right, float bottom,
165 int saveLayerDeferred(float left, float top, float right, float bottom,
180 float left, float top, float right, float bottom, const SkPaint* paint);
182 void drawRect(float left, float top, float right, float bottom,
184 void drawRoundRect(float left, float top, float right, float bottom,
187 void drawOval(float left, float top, float right, float bottom,
189 void drawArc(float left, float top, float right, float bottom,
[all …]
/frameworks/base/test-runner/src/junit/runner/
DSorter.java13 public void swap(Vector values, int left, int right); in swap() argument
16 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { in sortStrings() argument
18 int oright= right; in sortStrings()
19 String mid= (String)values.elementAt((left + right) / 2); in sortStrings()
23 while (mid.compareTo((String)(values.elementAt(right))) < 0) in sortStrings()
24 right--; in sortStrings()
25 if (left <= right) { in sortStrings()
26 swapper.swap(values, left, right); in sortStrings()
28 right--; in sortStrings()
30 } while (left <= right); in sortStrings()
[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/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.java127 public void add(UsageStats right) { in add() argument
128 if (!mPackageName.equals(right.mPackageName)) { in add()
130 mPackageName + "' with UsageStats for package '" + right.mPackageName + "'."); in add()
133 if (right.mBeginTimeStamp > mBeginTimeStamp) { in add()
138 mLastEvent = right.mLastEvent; in add()
139 mLastTimeUsed = right.mLastTimeUsed; in add()
141 mBeginTimeStamp = Math.min(mBeginTimeStamp, right.mBeginTimeStamp); in add()
142 mEndTimeStamp = Math.max(mEndTimeStamp, right.mEndTimeStamp); in add()
143 mTotalTimeInForeground += right.mTotalTimeInForeground; in add()
144 mLaunchCount += right.mLaunchCount; in add()
/frameworks/base/services/core/java/com/android/server/policy/
DRecentApplicationsBackground.java60 protected boolean setFrame(int left, int top, int right, int bottom) { in setFrame() argument
62 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { in setFrame()
65 return super.setFrame(left, top, right, bottom); in setFrame()
105 int left, right; in draw() local
109 right = chld.right + bkg.right; in draw()
113 right = getRight(); in draw()
115 background.setBounds(left, top, right, bottom); in draw()
145 r.bottom = r.right = Integer.MIN_VALUE; in getChildBounds()
152 r.right = Math.max(r.right, v.getRight()); in getChildBounds()
/frameworks/native/include/ui/
DRect.h55 right = static_cast<int32_t>(w); in Rect()
62 right = r; in Rect()
69 right = rb.x; in Rect()
76 left = top = right = bottom = 0; in clear()
91 return right - left; in getWidth()
100 return Rect(right - left, bottom - top); in getBounds()
109 right = rb.x; in setRightBottom()
118 return Point(right, bottom); in rightBottom()
121 return Point(right, top); in rightTop()
130 (right == rhs.right) && (bottom == rhs.bottom);
[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;
DBinTree.h33 m_Stack.push(m_pNode->right); in DFSIterator()
42 m_pNode = m_pNode->right; // should be root in advance()
48 m_Stack.push(m_pNode->right); in advance()
63 m_Queue.push(m_pNode->right); in BFSIterator()
72 m_pNode = m_pNode->right; // should be root in advance()
78 m_Queue.push(m_pNode->right); in advance()
212 bool isRoot() const { return (m_pNode->right == m_pNode); } in isRoot()
275 TreeImpl() : NodeFactory<DataType>() { node.left = node.right = &node; } in TreeImpl()
289 if ((*data).right == &pClient.node) in summon()
290 (*data).right = &node; in summon()
[all …]
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/
DGridLayoutTest.java71 int right = mRightView.getWidth(); in testUseDefaultMargin() local
74 assertTrue("right item should get some width", right > 0); in testUseDefaultMargin()
76 assertTrue("left view should be almost two times right view " + left + " vs " + right, in testUseDefaultMargin()
77 Math.abs(right * 2 - left) < 2); in testUseDefaultMargin()
84 int right = mRightView.getWidth(); in testImplicitFillHorizontal() local
87 assertTrue("right item should get some width", right > 0); in testImplicitFillHorizontal()
89 assertTrue("left view should be almost two times right view " + left + " vs " + right, in testImplicitFillHorizontal()
90 Math.abs(right * 2 - left) < 2); in testImplicitFillHorizontal()
97 int right = mRightView.getWidth(); in testMakeViewGone() local
100 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/base/services/core/java/com/android/server/notification/
DNotificationComparator.java27 public int compare(NotificationRecord left, NotificationRecord right) { in compare() argument
29 final int rightImportance = right.getImportance(); in compare()
37 final int rightPackagePriority = right.getPackagePriority(); in compare()
44 final int rightPriority = right.sbn.getNotification().priority; in compare()
51 final float rightPeople = right.getContactAffinity(); in compare()
58 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs()); in compare()
/frameworks/support/v4/java/android/support/v4/widget/
DFocusStrategy.java125 } else if (firstRect.right < secondRect.right) { in compare()
127 } else if (firstRect.right > secondRect.right) { in compare()
298 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate()
301 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate()
302 && srcRect.right < destRect.right; in isCandidate()
331 return (rect2.right >= rect1.left) && (rect2.left <= rect1.right); in beamsOverlap()
344 return src.left >= dest.right; in isToDirectionOf()
346 return src.right <= dest.left; in isToDirectionOf()
371 return source.left - dest.right; in majorAxisDistanceRaw()
373 return dest.left - source.right; in majorAxisDistanceRaw()
[all …]

12345678910>>...49