/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 38 public float top; field in RectF 57 public RectF(float left, float top, float right, float bottom) { in RectF() argument 59 this.top = top; in RectF() 73 left = top = right = bottom = 0.0f; in RectF() 76 top = r.top; in RectF() 84 left = top = right = bottom = 0.0f; in RectF() 87 top = r.top; in RectF() 99 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 105 result = 31 * result + (top != +0.0f ? Float.floatToIntBits(top) : 0); in hashCode() 113 return "RectF(" + left + ", " + top + ", " in toString() [all …]
|
D | Rect.java | 51 public int top; field in Rect 85 public Rect(int left, int top, int right, int bottom) { in Rect() argument 87 this.top = top; in Rect() 101 left = top = right = bottom = 0; in Rect() 104 top = r.top; in Rect() 115 left = top = right = bottom = 0; in Rect() 118 top = r.top; in Rect() 140 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 146 result = 31 * result + top; in hashCode() 156 sb.append(top); sb.append(" - "); sb.append(right); in toString() [all …]
|
D | Insets.java | 37 public final int top; field in Insets 41 private Insets(int left, int top, int right, int bottom) { in Insets() argument 43 this.top = top; in Insets() 60 public static @NonNull Insets of(int left, int top, int right, int bottom) { in of() argument 61 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of() 64 return new Insets(left, top, right, bottom); in of() 75 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of() 84 return new Rect(left, top, right, bottom); in toRect() 95 return Insets.of(a.left + b.left, a.top + b.top, a.right + b.right, a.bottom + b.bottom); in add() 106 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 …]
|
/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() 43 float top; 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() 63 , top(rect.fTop) in Rect() 70 , top(rect.fTop) in Rect() 76 a.top == b.top && [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 36 top = 0; in makeInvalid() 42 if (top < rhs.top) { in operator <() 44 } else if (top == rhs.top) { in operator <() 62 bottom -= top - y; in offsetTo() 64 top = y; in offsetTo() 70 top += y; in offsetBy() 78 this->top += _top; 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 -() 96 result->top = max(top, with.top); in intersect() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 116 final int top = displayBounds.centerY() - windowSize / 2; in testMoveWindow() local 117 final Rect r = new Rect(left, top, left + windowSize, top + windowSize); in testMoveWindow() 119 mPositioner.startDrag(false /* resizing */, false /* preserveOrientation */, left, top); in testMoveWindow() 122 mPositioner.notifyMoveLocked(left - MOUSE_DELTA_X, top - MOUSE_DELTA_Y); in testMoveWindow() 127 mPositioner.notifyMoveLocked(left, top); in testMoveWindow() 139 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing() 144 r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testBasicFreeWindowResizing() 158 mPositioner.resizeDrag(2000.0f, r.top); in testBasicFreeWindowResizing() 160 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing() 175 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing() [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() 38 (top > other.top) ? top : other.top, in intersect() 49 float top = 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; 61 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo() 72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
|
D | Rect.h | 57 left = top = 0; in Rect() 64 top = t; in Rect() 71 top = lt.y; in Rect() 80 top = static_cast<int32_t>(floatRect.top + 0.5f); in Rect() 87 top = 0; 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() 129 top = lt.y; in setLeftTop() 139 return Point(left, top); in leftTop() [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() 38 (top > other.top) ? top : other.top, in intersect() 49 float top = 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; 61 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo() 72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
|
D | Rect.h | 57 left = top = 0; in Rect() 64 top = t; in Rect() 71 top = lt.y; in Rect() 80 top = static_cast<int32_t>(floatRect.top + 0.5f); in Rect() 87 top = 0; 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() 129 top = lt.y; in setLeftTop() 139 return Point(left, top); in leftTop() [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() 38 (top > other.top) ? top : other.top, in intersect() 49 float top = 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; 61 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo() 72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
|
D | Rect.h | 57 left = top = 0; in Rect() 64 top = t; in Rect() 71 top = lt.y; in Rect() 80 top = static_cast<int32_t>(floatRect.top + 0.5f); in Rect() 87 top = 0; 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() 129 top = lt.y; in setLeftTop() 139 return Point(left, top); in leftTop() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | FloatingContentCoordinatorTest.kt | 54 assertEquals(rect100px.top, 0) in testOnContentAdded() 60 assertEquals(rect200px.top, 0) in testOnContentAdded() 61 assertEquals(rect100px.top, 200) in testOnContentAdded() 74 assertEquals(rect100px.top, 0) in testOnContentRemoved() 75 assertEquals(rect200px.top, 0) in testOnContentRemoved() 95 assertEquals(rect200px.top, 0) in testOnContentMoved_twoRects() 96 assertEquals(rect100px.top, 200) in testOnContentMoved_twoRects() 105 assertEquals(rect200px.top, 275) in testOnContentMoved_twoRects() 106 assertEquals(rect100px.top, 175) in testOnContentMoved_twoRects() 115 assertEquals(rect200px.top, 110) in testOnContentMoved_twoRects() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilter.java | 85 int top = (tempRect.top+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE; in drawBoxes() local 90 if (top < 0) { in drawBoxes() 91 top = 0; in drawBoxes() 92 } else if (top > dims[1]) { in drawBoxes() 93 top = dims[1]; in drawBoxes() 111 for (int j = 0; j < (bottom - top); j++) { in drawBoxes() 113 if (left > 0 && top > 0) { in drawBoxes() 114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() 118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes() [all …]
|
/frameworks/base/core/java/android/view/ |
D | Gravity.java | 263 outRect.top = container.top in apply() 264 + ((container.bottom - container.top - h)/2) + yAdj; in apply() 265 outRect.bottom = outRect.top + h; in apply() 268 if (outRect.top < container.top) { in apply() 269 outRect.top = container.top; in apply() 277 outRect.top = container.top + yAdj; in apply() 278 outRect.bottom = outRect.top + h; in apply() 288 outRect.top = outRect.bottom - h; in apply() 291 if (outRect.top < container.top) { in apply() 292 outRect.top = container.top; in apply() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | LayoutBidiCursorPathTest.java | 67 final int top = 0; in testGetCursorPathSegments() local 73 expectedPath.moveTo(h1, top); in testGetCursorPathSegments() 94 final int top = 0; in testGetCursorPath_whenShiftIsPressed() local 99 final int dist = (bottom - top) / 4; in testGetCursorPath_whenShiftIsPressed() 104 expectedPath.moveTo(h1, top); in testGetCursorPath_whenShiftIsPressed() 134 int top = 0; in testGetCursorPath_whenAltIsPressed() local 138 final int dist = (bottom - top) / 4; in testGetCursorPath_whenAltIsPressed() 139 top += dist; in testGetCursorPath_whenAltIsPressed() 143 expectedPath.moveTo(h1, top); in testGetCursorPath_whenAltIsPressed() 146 expectedPath.moveTo(h1, top); in testGetCursorPath_whenAltIsPressed() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipSnapAlgorithm.java | 63 final float heightFraction = (float) (tmpBounds.top - movementBounds.top) in getSnapFraction() 65 if (tmpBounds.top == movementBounds.top) { in getSnapFraction() 69 } else if (tmpBounds.top == movementBounds.bottom) { in getSnapFraction() 91 stackBounds.offsetTo(offset, movementBounds.top); in applySnapFraction() 94 int offset = movementBounds.top + (int) (snapFraction * movementBounds.height()); in applySnapFraction() 102 int offset = movementBounds.top + (int) ((1f - snapFraction) * movementBounds.height()); in applySnapFraction() 120 stackBounds.top); in applySnapFraction() 139 final int boundedTop = Math.max(movementBounds.top, Math.min(movementBounds.bottom, in snapRectToClosestEdge() 140 stackBounds.top)); in snapRectToClosestEdge() 145 final int fromTop = Math.abs(stackBounds.top - movementBounds.top); in snapRectToClosestEdge() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/scroll/ |
D | FakeSessionTest.java | 88 assertEquals("requested top", 0, result.requested.top); in testCaptureAtZero() 90 assertEquals("captured top", 0, result.captured.top); in testCaptureAtZero() 108 assertEquals("requested top", 90, result.requested.top); in testCaptureAtPageBottom() 110 assertEquals("captured top", 90, result.captured.top); in testCaptureAtPageBottom() 128 assertEquals("requested top", -100, result.requested.top); in testCaptureFromPreviousPage() 130 assertEquals("captured top", -100, result.captured.top); in testCaptureFromPreviousPage() 148 assertEquals("requested top", 150, result.requested.top); in testCaptureFromNextPage() 150 assertEquals("captured top", 150, result.captured.top); in testCaptureFromNextPage() 168 assertEquals("requested top", -125, result.requested.top); in testCaptureTopPartiallyUnavailable() 170 assertEquals("captured top", -100, result.captured.top); in testCaptureTopPartiallyUnavailable() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilterTest.java | 87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE; in testFaceSquareFilter() local 92 if (top < 0) { in testFaceSquareFilter() 93 top = 0; in testFaceSquareFilter() 94 } else if (top > bitmap.getHeight()) { in testFaceSquareFilter() 95 top = bitmap.getHeight(); in testFaceSquareFilter() 113 for (int j = 0; j < (bottom - top); j++) { in testFaceSquareFilter() 115 if (left > 0 && top > 0) { in testFaceSquareFilter() 116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() 120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter() [all …]
|
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/ |
D | Padding.kt | 46 top: Density.() -> Int = PaddingUnspecified, in padding() 53 top, in padding() 61 properties["top"] = top in padding() 76 top = vertical, in padding() 94 val top: Density.() -> Int, constant in com.android.compose.modifiers.PaddingModifier 105 val top = top() in measure() constant 110 val vertical = top + bottom in measure() 118 placeable.placeRelative(start, top) in measure() 120 placeable.place(start, top) in measure() 127 result = 31 * result + top.hashCode() in hashCode() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DragPositioningCallbackUtilityTest.kt | 96 val startingPoint = PointF(STARTING_BOUNDS.right.toFloat(), STARTING_BOUNDS.top.toFloat()) in <lambda>() 101 val newY = STARTING_BOUNDS.top.toFloat() + 95 in <lambda>() 109 assertThat(repositionTaskBounds.top).isEqualTo(STARTING_BOUNDS.top) in <lambda>() 116 val startingPoint = PointF(STARTING_BOUNDS.right.toFloat(), STARTING_BOUNDS.top.toFloat()) in <lambda>() 121 val newY = STARTING_BOUNDS.top.toFloat() + 5 in <lambda>() 129 assertThat(repositionTaskBounds.top).isEqualTo(STARTING_BOUNDS.top + 5) in <lambda>() 136 val startingPoint = PointF(STARTING_BOUNDS.right.toFloat(), STARTING_BOUNDS.top.toFloat()) in <lambda>() 141 val newY = STARTING_BOUNDS.top.toFloat() + 105 in <lambda>() 149 assertThat(repositionTaskBounds.top).isEqualTo(STARTING_BOUNDS.top) in <lambda>() 156 val startingPoint = PointF(STARTING_BOUNDS.right.toFloat(), STARTING_BOUNDS.top.toFloat()) in <lambda>() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | StyledCornersBitmapDrawable.java | 250 float top = bounds.top + mBorderWidth / 2; in draw() local 258 flapCornerRectF.offsetTo(left, top); in draw() 263 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); in draw() 305 float top = bounds.top; in drawFakeCornersForCompatibilityMode() local 313 fakeCornerRectF.offsetTo(left, top); in drawFakeCornersForCompatibilityMode() 315 mCompatibilityModePath.moveTo(left, top); in drawFakeCornersForCompatibilityMode() 316 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); in drawFakeCornersForCompatibilityMode() 322 fakeCornerRectF.offsetTo(right - fakeCornerRectF.width(), top); in drawFakeCornersForCompatibilityMode() 324 mCompatibilityModePath.moveTo(right, top); in drawFakeCornersForCompatibilityMode() 325 mCompatibilityModePath.lineTo(right, top + mCornerRoundRadius); in drawFakeCornersForCompatibilityMode() [all …]
|
/frameworks/compile/mclinker/lib/Script/ |
D | RpnEvaluator.cpp | 46 Operand* opd = operandStack.top(); in eval() 53 Operand* opd2 = operandStack.top(); in eval() 55 Operand* opd1 = operandStack.top(); in eval() 63 Operand* opd3 = operandStack.top(); in eval() 65 Operand* opd2 = operandStack.top(); in eval() 67 Operand* opd1 = operandStack.top(); in eval() 108 assert(operandStack.top()->type() == Operand::SYMBOL || in eval() 109 operandStack.top()->type() == Operand::INTEGER || in eval() 110 operandStack.top()->type() == Operand::FRAGMENT); in eval() 111 pResult = operandStack.top()->value(); in eval()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | SaveLayerInterleaveActivity.java | 63 int top = bounds.top; in onCreate() 70 for (int i = 0; i < regions; i++, top += smallRectHeight) { in onCreate() 71 canvas.saveLayer(bounds.left, top, bounds.right, top + padding, in onCreate() 74 canvas.drawText("offscreen line "+ i, bounds.left, top + padding, in onCreate() 78 Rect partX = new Rect(bounds.left, top + padding, in onCreate() 79 bounds.right,top + smallRectHeight - padding); in onCreate() 82 top + smallRectHeight - padding, mGreenPaint); in onCreate()
|