Home
last modified time | relevance | path

Searched refs:bottom (Results 1 – 25 of 733) sorted by relevance

12345678910>>...30

/frameworks/base/graphics/java/android/graphics/
DRectF.java36 public float bottom; field in RectF
53 public RectF(float left, float top, float right, float bottom) { in RectF() argument
57 this.bottom = bottom; in RectF()
69 left = top = right = bottom = 0.0f; in RectF()
74 bottom = r.bottom; in RectF()
80 left = top = right = bottom = 0.0f; in RectF()
85 bottom = r.bottom; in RectF()
95 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
103 result = 31 * result + (bottom != +0.0f ? Float.floatToIntBits(bottom) : 0); in hashCode()
109 + right + ", " + bottom + ")"; in toString()
[all …]
DRect.java44 public int bottom; field in Rect
76 public Rect(int left, int top, int right, int bottom) { in Rect() argument
80 this.bottom = bottom; in Rect()
92 left = top = right = bottom = 0; in Rect()
97 bottom = r.bottom; in Rect()
107 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
115 result = 31 * result + bottom; in hashCode()
124 sb.append(", "); sb.append(bottom); sb.append(")"); in toString()
143 sb.append(','); sb.append(bottom); sb.append(']'); in toShortString()
165 sb.append(bottom); in flattenToString()
[all …]
DInsets.java34 public final int bottom; field in Insets
36 private Insets(int left, int top, int right, int bottom) { in Insets() argument
40 this.bottom = bottom; 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()
88 if (bottom != insets.bottom) return false; in equals()
101 result = 31 * result + bottom; in hashCode()
111 ", bottom=" + bottom + 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()
192 int bottom); 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.java445 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); in saveLayer()
483 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer() argument
485 return nSaveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer()
494 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer() argument
495 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer()
531 … return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); in saveLayerAlpha()
552 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, in saveLayerAlpha() argument
555 return nSaveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, in saveLayerAlpha()
563 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { in saveLayerAlpha() argument
564 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()
47 float bottom; variable
59 bottom(0) { in Rect()
62 inline Rect(float left, float top, float right, float bottom): in Rect() argument
66 bottom(bottom) { in Rect()
73 bottom(height) { in Rect()
80 bottom(rect.fBottom) { in Rect()
87 bottom(rect.fBottom) { in Rect()
99 left = top = right = bottom = 0.0f; in clear()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskPositionerTests.java80 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing()
89 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()
142 final int midY = (r.top + r.bottom) / 2; in testFreeWindowResizingTestAllEdges()
[all …]
/frameworks/native/libs/ui/
DRect.cpp37 bottom = -1; in makeInvalid()
47 if (bottom < rhs.bottom) { in operator <()
49 } else if (bottom == rhs.bottom) { in operator <()
61 bottom -= top - y; in offsetTo()
71 bottom += y; 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 -()
89 result->bottom = min(bottom, with.bottom); in intersect()
97 result.bottom); in transform()
100 result = Rect(result.left, height - result.bottom, result.right, in transform()
[all …]
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DBottomNavigationViewUsage.java42 final BottomNavigationView bottom = in onCreate() local
44 mOriginalTint = bottom.getItemIconTintList(); in onCreate()
48 bottom.getMenu().getItem(0).setEnabled(!bottom.getMenu().getItem(0).isEnabled()); in onCreate()
55 if (bottom.getMenu().size() < bottom.getMaxItemCount()) { in onCreate()
56 MenuItem item = bottom.getMenu().add("Bananas"); in onCreate()
65 if (bottom.getMenu().size() > 0) { in onCreate()
66 bottom.getMenu().removeItem(bottom.getMenu().getItem(0).getItemId()); in onCreate()
74 if (bottom.getItemIconTintList() == null) { in onCreate()
75 bottom.setItemIconTintList(mOriginalTint); in onCreate()
77 bottom.setItemIconTintList(null); in onCreate()
[all …]
/frameworks/base/core/java/android/view/
DGravity.java232 + ((container.bottom - container.top - h)/2) + yAdj; in apply()
233 outRect.bottom = outRect.top + h; in apply()
239 if (outRect.bottom > container.bottom) { in apply()
240 outRect.bottom = container.bottom; in apply()
246 outRect.bottom = outRect.top + h; in apply()
249 if (outRect.bottom > container.bottom) { in apply()
250 outRect.bottom = container.bottom; in apply()
255 outRect.bottom = container.bottom - yAdj; in apply()
256 outRect.top = outRect.bottom - h; in apply()
266 outRect.bottom = container.bottom + yAdj; in apply()
[all …]
DWindowInsets.java169 return mSystemWindowInsets.bottom; in getSystemWindowInsetBottom()
225 return mWindowDecorInsets.bottom; in getWindowDecorInsetBottom()
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()
327 bottom ? 0 : mSystemWindowInsets.bottom); 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/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/
DCompositeDrawableTest.java72 parentDrawable.getChildAt(0).getBoundsRule().bottom = ValueRule.inheritFromParent( in updateBounds_withBoundsRule()
78 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction); in updateBounds_withBoundsRule()
83 parentDrawable.getChildAt(0).getBoundsRule().bottom = ValueRule.absoluteValue(200); in updateBounds_withBoundsRule()
88 expectedBounds.bottom = 200; in updateBounds_withBoundsRule()
92 parentDrawable.getChildAt(0).getBoundsRule().bottom = in updateBounds_withBoundsRule()
98 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction + 100); in updateBounds_withBoundsRule()
103 parentDrawable.getChildAt(0).getBoundsRule().bottom = in updateBounds_withBoundsRule()
109 expectedBounds.bottom = bounds.top + (int) ((HEIGHT - 200) * fraction); in updateBounds_withBoundsRule()
129 boundsRule.bottom = ValueRule.inheritFromParent(fraction); in updateBounds_withOverride()
137 expectedBounds.bottom = (int) (HEIGHT * fraction); in updateBounds_withOverride()
[all …]
/frameworks/native/include/ui/
DRect.h55 bottom = static_cast<int32_t>(h); in Rect()
62 bottom = b; in Rect()
69 bottom = rb.y; in Rect()
75 left = top = right = bottom = 0; in clear()
95 return bottom - top; in getHeight()
99 return Rect(right - left, bottom - top); in getBounds()
109 bottom = rb.y; in setRightBottom()
117 return Point(right, bottom); in rightBottom()
123 return Point(left, bottom); in leftBottom()
129 (right == rhs.right) && (bottom == rhs.bottom);
[all …]
DFloatRect.h25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
28 float getHeight() const { return bottom - top; } in getHeight()
33 float bottom = 0.0f; variable
37 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java252 float bottom = bounds.bottom - mBorderWidth / 2; in draw() local
268 flapCornerRectF.offsetTo(right - mCornerFlapSide, bottom - mCornerFlapSide); in draw()
273 flapCornerRectF.offsetTo(left, bottom - mCornerFlapSide); in draw()
307 float bottom = bounds.bottom; in drawFakeCornersForCompatibilityMode() local
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()
341 fakeCornerRectF.offsetTo(left, bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode()
343 mCompatibilityModePath.moveTo(left, bottom); in drawFakeCornersForCompatibilityMode()
344 mCompatibilityModePath.lineTo(left, bottom - mCornerRoundRadius); in drawFakeCornersForCompatibilityMode()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
DBoundsRule.java135 if (bottom == null) { in calculateBounds()
136 result.bottom = rect.bottom; in calculateBounds()
138 result.bottom = doCalculate(rect.top, bottom, rect.height()); in calculateBounds()
148 this.bottom = boundsRule.bottom != null ? new ValueRule(boundsRule.bottom) : null; in BoundsRule()
165 public ValueRule bottom; field in BoundsRule
/frameworks/support/compat/java/android/support/v4/widget/
DTextViewCompat.java80 @Nullable Drawable bottom) { in setCompoundDrawablesRelative() argument
81 textView.setCompoundDrawables(start, top, end, bottom); in setCompoundDrawablesRelative()
86 @Nullable Drawable bottom) { in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
87 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
92 @DrawableRes int bottom) { in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
93 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
241 @Nullable Drawable bottom) { in setCompoundDrawablesRelative() argument
243 textView.setCompoundDrawables(rtl ? end : start, top, rtl ? start : end, bottom); in setCompoundDrawablesRelative()
249 @Nullable Drawable bottom) { in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
252 rtl ? start : end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
[all …]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DCardViewBindingAdapter.java40 int bottom = view.getContentPaddingBottom(); in setContentPaddingLeft() local
41 view.setContentPadding(left, top, right, bottom); in setContentPaddingLeft()
48 int bottom = view.getContentPaddingBottom(); in setContentPaddingTop() local
49 view.setContentPadding(left, top, right, bottom); in setContentPaddingTop()
56 int bottom = view.getContentPaddingBottom(); in setContentPaddingRight() local
57 view.setContentPadding(left, top, right, bottom); in setContentPaddingRight()
61 public static void setContentPaddingBottom(CardView view, int bottom) { in setContentPaddingBottom() argument
65 view.setContentPadding(left, top, right, bottom); in setContentPaddingBottom()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin; in setupFontMetrics()
37 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2) in setupFontMetrics()
40 fm.bottom = fm.descent; in setupFontMetrics()
52 int y, int bottom, Paint paint) { in draw() argument
54 int transY = (bottom - mDrawable.getBounds().bottom + top) / 2; in draw()
/frameworks/base/core/java/android/animation/
DRectEvaluator.java76 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction); in evaluate() local
78 return new Rect(left, top, right, bottom); in evaluate()
80 mRect.set(left, top, right, bottom); in evaluate()
/frameworks/support/transition/src/android/support/transition/
DRectEvaluator.java80 int bottom = startValue.bottom + (int) ((endValue.bottom - startValue.bottom) * fraction); in evaluate() local
82 return new Rect(left, top, right, bottom); in evaluate()
84 mRect.set(left, top, right, bottom); in evaluate()
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/
DNavigationBarButton.java57 public void setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) { in setCompoundDrawables() argument
61 if (bottom != null) bottom = TintedDrawable.wrap(bottom); in setCompoundDrawables()
62 super.setCompoundDrawables(left, top, right, bottom); in setCompoundDrawables()
68 Drawable bottom) { in setCompoundDrawablesRelative() argument
72 if (bottom != null) bottom = TintedDrawable.wrap(bottom); in setCompoundDrawablesRelative()
73 super.setCompoundDrawablesRelative(start, top, end, bottom); in setCompoundDrawablesRelative()
/frameworks/support/core-ui/java/android/support/v4/widget/
DFocusStrategy.java122 } else if (firstRect.bottom < secondRect.bottom) { in compare()
124 } else if (firstRect.bottom > secondRect.bottom) { in compare()
305 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate()
308 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate()
309 && srcRect.bottom < destRect.bottom; in isCandidate()
329 return (rect2.bottom >= rect1.top) && (rect2.top <= rect1.bottom); in beamsOverlap()
349 return src.top >= dest.bottom; in isToDirectionOf()
351 return src.bottom <= dest.top; in isToDirectionOf()
376 return source.top - dest.bottom; in majorAxisDistanceRaw()
378 return dest.top - source.bottom; in majorAxisDistanceRaw()
[all …]

12345678910>>...30