Home
last modified time | relevance | path

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

12345678910>>...30

/frameworks/base/graphics/java/android/graphics/
DRectF.java39 public float bottom; field in RectF
56 public RectF(float left, float top, float right, float bottom) { in RectF() argument
60 this.bottom = bottom; in RectF()
72 left = top = right = bottom = 0.0f; in RectF()
77 bottom = r.bottom; in RectF()
83 left = top = right = bottom = 0.0f; in RectF()
88 bottom = r.bottom; in RectF()
98 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
106 result = 31 * result + (bottom != +0.0f ? Float.floatToIntBits(bottom) : 0); in hashCode()
113 + right + ", " + bottom + ")"; in toString()
[all …]
DRect.java51 public int bottom; field in Rect
83 public Rect(int left, int top, int right, int bottom) { in Rect() argument
87 this.bottom = bottom; in Rect()
99 left = top = right = bottom = 0; in Rect()
104 bottom = r.bottom; in Rect()
113 left = top = right = bottom = 0; in Rect()
118 bottom = r.bottom; in Rect()
138 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
146 result = 31 * result + bottom; in hashCode()
155 sb.append(", "); sb.append(bottom); sb.append(")"); in toString()
[all …]
DInsets.java38 public final int bottom; field in Insets
40 private Insets(int left, int top, int right, int bottom) { in Insets() argument
44 this.bottom = bottom; in Insets()
59 public static @NonNull Insets of(int left, int top, int right, int bottom) { in of() argument
60 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of()
63 return new Insets(left, top, right, bottom); in of()
74 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of()
83 return new Rect(left, top, right, bottom); in toRect()
94 return Insets.of(a.left + b.left, a.top + b.top, a.right + b.right, a.bottom + b.bottom); in add()
105 return Insets.of(a.left - b.left, a.top - b.top, a.right - b.right, a.bottom - b.bottom); in subtract()
[all …]
DOutline.java175 public void setRect(int left, int top, int right, int bottom) { in setRect() argument
176 setRoundRect(left, top, right, bottom, 0.0f); in setRect()
183 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect()
191 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument
192 if (left >= right || top >= bottom) { in setRoundRect()
202 mRect.set(left, top, right, bottom); in setRoundRect()
210 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect()
244 public void setOval(int left, int top, int right, int bottom) { in setOval() argument
245 if (left >= right || top >= bottom) { in setOval()
250 if ((bottom - top) == (right - left)) { in setOval()
[all …]
DPath.java477 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
492 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
507 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument
510 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
538 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
546 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath()
557 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
569 public void addRect(float left, float top, float right, float bottom, @NonNull Direction dir) { in addRect() argument
570 detectSimplePath(left, top, right, bottom, dir); in addRect()
571 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
[all …]
DCanvas.java520 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, in saveLayer()
557 public int saveUnclippedLayer(int left, int top, int right, int bottom) { in saveUnclippedLayer() argument
558 return nSaveUnclippedLayer(mNativeCanvasWrapper, left, top, right, bottom); in saveUnclippedLayer()
579 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer() argument
582 return nSaveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer()
591 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer() argument
592 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer()
630 return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, in saveLayerAlpha()
655 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, in saveLayerAlpha() argument
659 return nSaveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, in saveLayerAlpha()
[all …]
DRegion.java75 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region()
80 public Region(int left, int top, int right, int bottom) { in Region() argument
82 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region()
101 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set()
106 public boolean set(int left, int top, int right, int bottom) { in set() argument
107 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set()
188 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains()
198 int bottom); in quickContains() argument
206 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject()
214 public native boolean quickReject(int left, int top, int right, int bottom); in quickReject() argument
[all …]
/frameworks/base/libs/hwui/
DRect.h33 #define RECT_ARGS(r) (r).left, (r).top, (r).right, (r).bottom
34 #define SK_RECT_ARGS(r) (r).left(), (r).top(), (r).right(), (r).bottom()
45 float bottom; variable
53 inline Rect() : left(0), top(0), right(0), bottom(0) {} in Rect()
55 inline Rect(float left, float top, float right, float bottom) in Rect() argument
56 : left(left), top(top), right(right), bottom(bottom) {} in Rect()
58 inline Rect(float width, float height) : left(0.0f), top(0.0f), right(width), bottom(height) {} in Rect()
65 , bottom(rect.fBottom) {} in Rect()
72 , bottom(rect.fBottom) {} in Rect()
78 inline void clear() { left = top = right = bottom = 0.0f; } in clear()
[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()
79 this->bottom -= _bottom; in inset()
84 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +()
89 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -()
97 result->bottom = min(bottom, with.bottom); in intersect()
105 result.bottom); in transform()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java143 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing()
153 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
158 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
164 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
170 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing()
179 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
184 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
189 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
194 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
205 final int midY = (r.top + r.bottom) / 2; in testFreeWindowResizingTestAllEdges()
[all …]
DWindowFrameTests.java72 private void assertRect(Rect rect, int left, int top, int right, int bottom) { in assertRect() argument
76 assertEquals(bottom, rect.bottom); in assertRect()
79 private void assertContentInset(WindowState w, int left, int top, int right, int bottom) { in assertContentInset() argument
80 assertRect(w.getContentInsets(), left, top, right, bottom); in assertContentInset() local
83 private void assertVisibleInset(WindowState w, int left, int top, int right, int bottom) { in assertVisibleInset() argument
84 assertRect(w.getVisibleInsets(), left, top, right, bottom); in assertVisibleInset() local
87 private void assertStableInset(WindowState w, int left, int top, int right, int bottom) { in assertStableInset() argument
88 assertRect(w.getStableInsets(), left, top, right, bottom); in assertStableInset() local
95 private void assertFrame(WindowState w, int left, int top, int right, int bottom) { in assertFrame() argument
96 assertRect(w.getFrameLw(), left, top, right, bottom); in assertFrame() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSection.java144 int previousStartValue = mStartAnimationRect.bottom; in startBottomAnimation()
145 int previousEndValue = mEndAnimationRect.bottom; in startBottomAnimation()
146 int newEndValue = mBounds.bottom; in startBottomAnimation()
158 mStartAnimationRect.bottom = previousStartValue; in startBottomAnimation()
159 mEndAnimationRect.bottom = newEndValue; in startBottomAnimation()
172 mCurrentBounds.bottom, newEndValue); in startBottomAnimation()
180 mStartAnimationRect.bottom = -1; in startBottomAnimation()
181 mEndAnimationRect.bottom = -1; in startBottomAnimation()
186 mStartAnimationRect.bottom = mCurrentBounds.bottom; in startBottomAnimation()
187 mEndAnimationRect.bottom = newEndValue; in startBottomAnimation()
[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 …]
/frameworks/native/include/ui/
DFloatRect.h27 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
30 float getHeight() const { return bottom - top; } in getHeight()
39 (bottom < other.bottom) ? bottom : other.bottom in intersect()
50 float bottom = 0.0f; variable
54 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
59 << rect.bottom << ")"; in PrintTo()
DRect.h58 bottom = static_cast<int32_t>(h); in Rect()
65 bottom = b; in Rect()
72 bottom = rb.y; in Rect()
81 bottom = static_cast<int32_t>(floatRect.bottom + 0.5f); in Rect()
88 bottom = size.height; in Rect()
94 left = top = right = bottom = 0; in clear()
116 return bottom - top; in getHeight()
123 return Rect(right - left, bottom - top); in getBounds()
133 bottom = rb.y; in setRightBottom()
141 return Point(right, bottom); in rightBottom()
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DFloatRect.h27 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
30 float getHeight() const { return bottom - top; } in getHeight()
39 (bottom < other.bottom) ? bottom : other.bottom in intersect()
50 float bottom = 0.0f; variable
54 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
59 << rect.bottom << ")"; in PrintTo()
DRect.h58 bottom = static_cast<int32_t>(h); in Rect()
65 bottom = b; in Rect()
72 bottom = rb.y; in Rect()
81 bottom = static_cast<int32_t>(floatRect.bottom + 0.5f); in Rect()
88 bottom = size.height; in Rect()
94 left = top = right = bottom = 0; in clear()
116 return bottom - top; in getHeight()
123 return Rect(right - left, bottom - top); in getBounds()
133 bottom = rb.y; in setRightBottom()
141 return Point(right, bottom); in rightBottom()
[all …]
/frameworks/native/libs/ui/include/ui/
DFloatRect.h27 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
30 float getHeight() const { return bottom - top; } in getHeight()
39 (bottom < other.bottom) ? bottom : other.bottom in intersect()
50 float bottom = 0.0f; variable
54 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
59 << rect.bottom << ")"; in PrintTo()
DRect.h58 bottom = static_cast<int32_t>(h); in Rect()
65 bottom = b; in Rect()
72 bottom = rb.y; in Rect()
81 bottom = static_cast<int32_t>(floatRect.bottom + 0.5f); in Rect()
88 bottom = size.height; in Rect()
94 left = top = right = bottom = 0; in clear()
116 return bottom - top; in getHeight()
123 return Rect(right - left, bottom - top); in getBounds()
133 bottom = rb.y; in setRightBottom()
141 return Point(right, bottom); in rightBottom()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutBidiCursorPathTest.java69 final int bottom = Math.round(BIDI_TEXT_SIZE + BIDI_TEXT_SIZE / 5f); in testGetCursorPathSegments() local
74 expectedPath.lineTo(h1, bottom); in testGetCursorPathSegments()
96 int bottom = Math.round(BIDI_TEXT_SIZE + BIDI_TEXT_SIZE / 5f); in testGetCursorPath_whenShiftIsPressed() local
99 final int dist = (bottom - top) / 4; in testGetCursorPath_whenShiftIsPressed()
100 bottom -= dist; in testGetCursorPath_whenShiftIsPressed()
105 expectedPath.lineTo(h1, bottom); in testGetCursorPath_whenShiftIsPressed()
107 expectedPath.moveTo(h1, bottom); in testGetCursorPath_whenShiftIsPressed()
108 expectedPath.lineTo(h1 - dist, bottom + dist); in testGetCursorPath_whenShiftIsPressed()
110 expectedPath.moveTo(h1 - dist, bottom + dist - 0.5f); in testGetCursorPath_whenShiftIsPressed()
111 expectedPath.lineTo(h1 + dist, bottom + dist - 0.5f); in testGetCursorPath_whenShiftIsPressed()
[all …]
/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/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/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DNavigationBarButton.java63 public void setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) { in setCompoundDrawables() argument
73 if (bottom != null) { in setCompoundDrawables()
74 bottom = TintedDrawable.wrap(bottom); in setCompoundDrawables()
76 super.setCompoundDrawables(left, top, right, bottom); in setCompoundDrawables()
82 Drawable start, Drawable top, Drawable end, Drawable bottom) { in setCompoundDrawablesRelative() argument
92 if (bottom != null) { in setCompoundDrawablesRelative()
93 bottom = TintedDrawable.wrap(bottom); in setCompoundDrawablesRelative()
95 super.setCompoundDrawablesRelative(start, top, end, bottom); in setCompoundDrawablesRelative()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableOutlineView.java92 int bottom = Math.max(getActualHeight() - mClipBottomAmount, top);
93 outline.setRect(left, top, right, bottom);
108 int bottom; in getClipPath() local
121 bottom = Math.max(mMinimumHeightForClipping, in getClipPath()
127 bottom = mOutlineRect.bottom; in getClipPath()
129 height = bottom - top; in getClipPath()
142 getRoundedRectPath(left, top, right, bottom, topRoundness, bottomRoundness, mTmpPath); in getClipPath()
146 public void getRoundedRectPath(int left, int top, int right, int bottom, in getRoundedRectPath() argument
157 outPath.addRoundRect(left, top, right, bottom, mTmpCornerRadii, Path.Direction.CW); in getRoundedRectPath()
174 int bottom = (int) Math.max(mMinimumHeightForClipping, in drawChild() local
[all …]

12345678910>>...30