Home
last modified time | relevance | path

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

12345678910>>...28

/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.java471 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
486 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
501 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument
504 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
532 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
540 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath()
551 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
563 public void addRect(float left, float top, float right, float bottom, @NonNull Direction dir) { in addRect() argument
564 detectSimplePath(left, top, right, bottom, dir); in addRect()
565 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
[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 …]
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 …]
/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.java120 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing()
130 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
135 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
141 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
147 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing()
156 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
161 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
166 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
171 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
182 final int midY = (r.top + r.bottom) / 2; in testFreeWindowResizingTestAllEdges()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSection.java135 int previousStartValue = mStartAnimationRect.bottom; in startBottomAnimation()
136 int previousEndValue = mEndAnimationRect.bottom; in startBottomAnimation()
137 int newEndValue = mBounds.bottom; in startBottomAnimation()
149 mStartAnimationRect.bottom = previousStartValue; in startBottomAnimation()
150 mEndAnimationRect.bottom = newEndValue; in startBottomAnimation()
163 mCurrentBounds.bottom, newEndValue); in startBottomAnimation()
171 mStartAnimationRect.bottom = -1; in startBottomAnimation()
172 mEndAnimationRect.bottom = -1; in startBottomAnimation()
177 mStartAnimationRect.bottom = mCurrentBounds.bottom; in startBottomAnimation()
178 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/libs/ui/include_vndk/ui/
DFloatRect.h25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
28 float getHeight() const { return bottom - top; } in getHeight()
37 (bottom < other.bottom) ? bottom : other.bottom in intersect()
48 float bottom = 0.0f; variable
52 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
DRect.h56 bottom = static_cast<int32_t>(h); in Rect()
63 bottom = b; in Rect()
70 bottom = rb.y; in Rect()
79 bottom = static_cast<int32_t>(floatRect.bottom + 0.5f); in Rect()
86 bottom = size.height; in Rect()
92 left = top = right = bottom = 0; in clear()
114 return bottom - top; in getHeight()
121 return Rect(right - left, bottom - top); in getBounds()
131 bottom = rb.y; in setRightBottom()
139 return Point(right, bottom); in rightBottom()
[all …]
/frameworks/native/libs/ui/include/ui/
DFloatRect.h25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
28 float getHeight() const { return bottom - top; } in getHeight()
37 (bottom < other.bottom) ? bottom : other.bottom in intersect()
48 float bottom = 0.0f; variable
52 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
DRect.h56 bottom = static_cast<int32_t>(h); in Rect()
63 bottom = b; in Rect()
70 bottom = rb.y; in Rect()
79 bottom = static_cast<int32_t>(floatRect.bottom + 0.5f); in Rect()
86 bottom = size.height; in Rect()
92 left = top = right = bottom = 0; in clear()
114 return bottom - top; in getHeight()
121 return Rect(right - left, bottom - top); in getBounds()
131 bottom = rb.y; in setRightBottom()
139 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/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableOutlineView.java91 int bottom = Math.max(getActualHeight() - mClipBottomAmount, top);
92 outline.setRect(left, top, right, bottom);
109 int bottom; in getClipPath() local
122 bottom = Math.max(mMinimumHeightForClipping, in getClipPath()
128 bottom = mOutlineRect.bottom; in getClipPath()
130 height = bottom - top; in getClipPath()
143 getRoundedRectPath(left, top, right, bottom, topRoundness, in getClipPath()
148 public static void getRoundedRectPath(int left, int top, int right, int bottom, in getRoundedRectPath() argument
166 outPath.lineTo(right, bottom - bottomRoundness); in getRoundedRectPath()
167 outPath.quadTo(right, bottom, right - bottomRoundnessX, bottom); in getRoundedRectPath()
[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/services/core/java/com/android/server/wm/
DDisplayFrames.java138 mRotatedDisplayInfoOverscan.right = mDisplayInfoOverscan.bottom; in onBeginLayout()
139 mRotatedDisplayInfoOverscan.bottom = mDisplayInfoOverscan.left; in onBeginLayout()
143 mRotatedDisplayInfoOverscan.top = mDisplayInfoOverscan.bottom; in onBeginLayout()
145 mRotatedDisplayInfoOverscan.bottom = mDisplayInfoOverscan.top; in onBeginLayout()
148 mRotatedDisplayInfoOverscan.left = mDisplayInfoOverscan.bottom; in onBeginLayout()
151 mRotatedDisplayInfoOverscan.bottom = mDisplayInfoOverscan.right; in onBeginLayout()
163 mUnrestricted.bottom = mDisplayHeight - mUnrestricted.bottom; in onBeginLayout()
187 mDisplayCutoutSafe.bottom = mRestrictedOverscan.bottom - c.getSafeInsetBottom(); in onBeginLayout()
193 return mDock.bottom - mCurrent.bottom; in getInputMethodWindowVisibleHeight()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DInsetUtils.java46 r.set(r.top, r.right, r.bottom, r.left); in rotateInsets()
49 r.set(r.right, r.bottom, r.left, r.top); in rotateInsets()
52 r.set(r.bottom, r.left, r.top, r.right); in rotateInsets()
66 inOutInsets.bottom += insetsToAdd.bottom; in addInsets()
92 Math.min(h, Math.max(0, outerFrame.bottom - innerFrame.bottom))); in insetsBetweenFrames()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilter.java86 int bottom = (tempRect.bottom+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE; in drawBoxes() local
100 if (bottom > dims[1]) { in drawBoxes()
101 bottom = dims[1]; in drawBoxes()
102 } else if (bottom < 0) { in drawBoxes()
103 bottom = 0; in drawBoxes()
111 for (int j = 0; j < (bottom - top); j++) { in drawBoxes()
145 if (bottom < dims[1]) { in drawBoxes()
146 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) + in drawBoxes()
148 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) + in drawBoxes()
150 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) + in drawBoxes()

12345678910>>...28