Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 1019) sorted by relevance

12345678910>>...41

/frameworks/base/graphics/java/android/graphics/
DRectF.java37 public float top; field in RectF
56 public RectF(float left, float top, float right, float bottom) { in RectF() argument
58 this.top = top; in RectF()
72 left = top = right = bottom = 0.0f; in RectF()
75 top = r.top; in RectF()
83 left = top = right = bottom = 0.0f; in RectF()
86 top = r.top; in RectF()
98 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
104 result = 31 * result + (top != +0.0f ? Float.floatToIntBits(top) : 0); in hashCode()
112 return "RectF(" + left + ", " + top + ", " in toString()
[all …]
DRect.java50 public int top; field in Rect
84 public Rect(int left, int top, int right, int bottom) { in Rect() argument
86 this.top = top; in Rect()
100 left = top = right = bottom = 0; in Rect()
103 top = r.top; in Rect()
114 left = top = right = bottom = 0; in Rect()
117 top = r.top; in Rect()
139 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
145 result = 31 * result + top; in hashCode()
155 sb.append(top); sb.append(" - "); sb.append(right); in toString()
[all …]
DInsets.java36 public final int top; field in Insets
40 private Insets(int left, int top, int right, int bottom) { in Insets() argument
42 this.top = top; 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 …]
/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()
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()
78 inline void clear() { left = top = right = bottom = 0.0f; } in clear()
[all …]
/frameworks/native/libs/ui/
DRect.cpp36 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/
DTaskPositionerTests.java116 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/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSection.java95 int previousEndValue = mEndAnimationRect.top; in startTopAnimation()
96 int newEndValue = mBounds.top; in startTopAnimation()
106 int previousStartValue = mStartAnimationRect.top; in startTopAnimation()
109 mStartAnimationRect.top = previousStartValue; in startTopAnimation()
110 mEndAnimationRect.top = newEndValue; in startTopAnimation()
123 mCurrentBounds.top, newEndValue); in startTopAnimation()
131 mStartAnimationRect.top = -1; in startTopAnimation()
132 mEndAnimationRect.top = -1; in startTopAnimation()
137 mStartAnimationRect.top = mCurrentBounds.top; in startTopAnimation()
138 mEndAnimationRect.top = newEndValue; in startTopAnimation()
[all …]
/frameworks/native/libs/ui/include/ui/
DFloatRect.h28 : 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);
DRect.h57 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/
DFloatRect.h28 : 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);
DRect.h57 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/
DFloatRect.h28 : 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);
DRect.h57 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/
DFloatingContentCoordinatorTest.kt54 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/
DFaceSquareFilter.java85 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/
DGravity.java262 outRect.top = container.top in apply()
263 + ((container.bottom - container.top - h)/2) + yAdj; in apply()
264 outRect.bottom = outRect.top + h; in apply()
267 if (outRect.top < container.top) { in apply()
268 outRect.top = container.top; in apply()
276 outRect.top = container.top + yAdj; in apply()
277 outRect.bottom = outRect.top + h; in apply()
287 outRect.top = outRect.bottom - h; in apply()
290 if (outRect.top < container.top) { in apply()
291 outRect.top = container.top; in apply()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipSnapAlgorithm.java63 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/core/tests/coretests/src/android/text/
DLayoutBidiCursorPathTest.java67 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/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DFakeSessionTest.java88 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/
DFaceSquareFilterTest.java87 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/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java250 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/
DRpnEvaluator.cpp46 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/
DSaveLayerInterleaveActivity.java63 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DQuickswitchOrientedNavHandle.java48 int top; in computeHomeHandleBounds() local
60 top = (getHeight() - mBottom - height); in computeHomeHandleBounds()
62 bottom = top + height; in computeHomeHandleBounds()
67 top = getHeight() / 2 - (mWidth / 2) - (topStart / 2); in computeHomeHandleBounds()
68 bottom = top + mWidth; in computeHomeHandleBounds()
73 top = getHeight() / 2 - (mWidth / 2) - (topStart / 2); in computeHomeHandleBounds()
74 bottom = top + mWidth; in computeHomeHandleBounds()
77 mTmpBoundsRectF.set(left, top, right, bottom); in computeHomeHandleBounds()

12345678910>>...41