/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 39 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 …]
|
D | Rect.java | 52 public int bottom; field in Rect 84 public Rect(int left, int top, int right, int bottom) { in Rect() argument 88 this.bottom = bottom; in Rect() 100 left = top = right = bottom = 0; in Rect() 105 bottom = r.bottom; in Rect() 114 left = top = right = bottom = 0; in Rect() 119 bottom = r.bottom; in Rect() 139 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 147 result = 31 * result + bottom; in hashCode() 156 sb.append(", "); sb.append(bottom); sb.append(")"); in toString() [all …]
|
D | Insets.java | 38 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 …]
|
D | Outline.java | 174 public void setRect(int left, int top, int right, int bottom) { in setRect() argument 175 setRoundRect(left, top, right, bottom, 0.0f); in setRect() 182 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect() 190 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument 191 if (left >= right || top >= bottom) { in setRoundRect() 201 mRect.set(left, top, right, bottom); in setRoundRect() 209 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect() 243 public void setOval(int left, int top, int right, int bottom) { in setOval() argument 244 if (left >= right || top >= bottom) { in setOval() 249 if ((bottom - top) == (right - left)) { in setOval() [all …]
|
D | Path.java | 480 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 495 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo() 510 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument 512 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 546 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 558 public void addRect(float left, float top, float right, float bottom, @NonNull Direction dir) { in addRect() argument 559 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect() 569 addOval(oval.left, oval.top, oval.right, oval.bottom, dir); in addOval() 577 public void addOval(float left, float top, float right, float bottom, @NonNull Direction dir) { in addOval() argument 578 nAddOval(mNativePath, left, top, right, bottom, dir.nativeInt); in addOval() [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 33 #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 a.bottom == b.bottom; [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 38 bottom = -1; in makeInvalid() 48 if (bottom < rhs.bottom) { in operator <() 50 } else if (bottom == rhs.bottom) { in operator <() 62 bottom -= top - y; in offsetTo() 72 bottom += y; in offsetBy() 80 this->bottom -= _bottom; in inset() 85 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() 90 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() 98 result->bottom = min(bottom, with.bottom); in intersect() 106 result.bottom); in transform() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSection.java | 141 int previousStartValue = mStartAnimationRect.bottom; in startBottomAnimation() 142 int previousEndValue = mEndAnimationRect.bottom; in startBottomAnimation() 143 int newEndValue = mBounds.bottom; in startBottomAnimation() 155 mStartAnimationRect.bottom = previousStartValue; in startBottomAnimation() 156 mEndAnimationRect.bottom = newEndValue; in startBottomAnimation() 169 mCurrentBounds.bottom, newEndValue); in startBottomAnimation() 177 mStartAnimationRect.bottom = -1; in startBottomAnimation() 178 mEndAnimationRect.bottom = -1; in startBottomAnimation() 183 mStartAnimationRect.bottom = mCurrentBounds.bottom; in startBottomAnimation() 184 mEndAnimationRect.bottom = newEndValue; in startBottomAnimation() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 139 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing() 149 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing() 154 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing() 160 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing() 166 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing() 175 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing() 180 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing() 185 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing() 190 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing() 201 final int midY = (r.top + r.bottom) / 2; in testFreeWindowResizingTestAllEdges() [all …]
|
/frameworks/native/libs/ui/include/ui/ |
D | FloatRect.h | 28 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect() 31 float getHeight() const { return bottom - top; } in getHeight() 40 (bottom < other.bottom) ? bottom : other.bottom in intersect() 51 float bottom = 0.0f; variable 53 constexpr bool isEmpty() const { return !(left < right && top < bottom); } in isEmpty() 57 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom; 62 << rect.bottom << ")"; in PrintTo() 72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
|
D | Rect.h | 59 bottom = static_cast<int32_t>(h); in Rect() 66 bottom = b; in Rect() 73 bottom = rb.y; in Rect() 82 bottom = static_cast<int32_t>(floatRect.bottom + 0.5f); in Rect() 89 bottom = size.height; in Rect() 95 left = top = right = bottom = 0; in clear() 117 return bottom - top; in getHeight() 124 return Rect(right - left, bottom - top); in getBounds() 134 bottom = rb.y; in setRightBottom() 142 return Point(right, bottom); in rightBottom() [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | FloatRect.h | 28 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect() 31 float getHeight() const { return bottom - top; } in getHeight() 40 (bottom < other.bottom) ? bottom : other.bottom in intersect() 51 float bottom = 0.0f; variable 53 constexpr bool isEmpty() const { return !(left < right && top < bottom); } in isEmpty() 57 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom; 62 << rect.bottom << ")"; in PrintTo() 72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
|
D | Rect.h | 59 bottom = static_cast<int32_t>(h); in Rect() 66 bottom = b; in Rect() 73 bottom = rb.y; in Rect() 82 bottom = static_cast<int32_t>(floatRect.bottom + 0.5f); in Rect() 89 bottom = size.height; in Rect() 95 left = top = right = bottom = 0; in clear() 117 return bottom - top; in getHeight() 124 return Rect(right - left, bottom - top); in getBounds() 134 bottom = rb.y; in setRightBottom() 142 return Point(right, bottom); in rightBottom() [all …]
|
/frameworks/native/include/ui/ |
D | FloatRect.h | 28 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect() 31 float getHeight() const { return bottom - top; } in getHeight() 40 (bottom < other.bottom) ? bottom : other.bottom in intersect() 51 float bottom = 0.0f; variable 53 constexpr bool isEmpty() const { return !(left < right && top < bottom); } in isEmpty() 57 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom; 62 << rect.bottom << ")"; in PrintTo() 72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
|
D | Rect.h | 59 bottom = static_cast<int32_t>(h); in Rect() 66 bottom = b; in Rect() 73 bottom = rb.y; in Rect() 82 bottom = static_cast<int32_t>(floatRect.bottom + 0.5f); in Rect() 89 bottom = size.height; in Rect() 95 left = top = right = bottom = 0; in clear() 117 return bottom - top; in getHeight() 124 return Rect(right - left, bottom - top); in getBounds() 134 bottom = rb.y; in setRightBottom() 142 return Point(right, bottom); in rightBottom() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | LayoutBidiCursorPathTest.java | 69 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/base/core/java/android/view/ |
D | Gravity.java | 264 + ((container.bottom - container.top - h)/2) + yAdj; in apply() 265 outRect.bottom = outRect.top + h; in apply() 271 if (outRect.bottom > container.bottom) { in apply() 272 outRect.bottom = container.bottom; in apply() 278 outRect.bottom = outRect.top + h; in apply() 281 if (outRect.bottom > container.bottom) { in apply() 282 outRect.bottom = container.bottom; in apply() 287 outRect.bottom = container.bottom - yAdj; in apply() 288 outRect.top = outRect.bottom - h; in apply() 298 outRect.bottom = container.bottom + yAdj; in apply() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | FakeSessionTest.java | 89 assertEquals("requested bottom", 10, result.requested.bottom); in testCaptureAtZero() 91 assertEquals("captured bottom", 10, result.captured.bottom); in testCaptureAtZero() 109 assertEquals("requested bottom", 100, result.requested.bottom); in testCaptureAtPageBottom() 111 assertEquals("captured bottom", 100, result.captured.bottom); in testCaptureAtPageBottom() 129 assertEquals("requested bottom", -90, result.requested.bottom); in testCaptureFromPreviousPage() 131 assertEquals("captured bottom", -90, result.captured.bottom); in testCaptureFromPreviousPage() 149 assertEquals("requested bottom", 160, result.requested.bottom); in testCaptureFromNextPage() 151 assertEquals("captured bottom", 160, result.captured.bottom); in testCaptureFromNextPage() 169 assertEquals("requested bottom", -75, result.requested.bottom); in testCaptureTopPartiallyUnavailable() 171 assertEquals("captured bottom", -75, result.captured.bottom); in testCaptureTopPartiallyUnavailable() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/ |
D | CredentialPasswordView.kt | 65 super.onLayout(changed, left, top, right, bottom) in onLayout() 71 var headerBottomBounds = bottom in onLayout() 72 val subTitleBottom: Int = if (subtitleView.isGone) titleView.bottom else subtitleView.bottom in onLayout() 73 val descBottom = if (descriptionView.isGone) subTitleBottom else descriptionView.bottom in onLayout() 75 inputTopBound = (bottom - credentialInput.height) / 2 in onLayout() 78 if (descriptionView.bottom > headerBottomBounds) { in onLayout() 79 headerTopBounds -= iconView.bottom.coerceAtMost(bottomInset) in onLayout() 80 credentialHeader.layout(left, headerTopBounds, headerRightBound, bottom) in onLayout() 83 inputTopBound = descBottom + (bottom - descBottom - credentialInput.height) / 2 in onLayout() 86 if (bottom - inputTopBound < credentialInput.height) { in onLayout() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | StyledCornersBitmapDrawable.java | 252 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/compose/core/src/com/android/compose/modifiers/ |
D | Padding.kt | 48 bottom: Density.() -> Int = PaddingUnspecified, in padding() 55 bottom, in padding() 63 properties["bottom"] = bottom in padding() 78 bottom = vertical, in padding() 96 val bottom: Density.() -> Int, constant in com.android.compose.modifiers.PaddingModifier 107 val bottom = bottom() in measure() constant 110 val vertical = top + bottom in measure() 129 result = 31 * result + bottom.hashCode() in hashCode() 139 bottom == otherModifier.bottom && in equals()
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | ReplacementDrawableSpan.java | 36 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/ |
D | RectEvaluator.java | 76 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/ |
D | NavigationBarButton.java | 63 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/utils/ |
D | InsetUtils.java | 46 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()
|