/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 37 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 …]
|
D | Rect.java | 49 public int top; field in Rect 83 public Rect(int left, int top, int right, int bottom) { in Rect() argument 85 this.top = top; in Rect() 99 left = top = right = bottom = 0; in Rect() 102 top = r.top; in Rect() 113 left = top = right = bottom = 0; in Rect() 116 top = r.top; in Rect() 138 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 144 result = 31 * result + top; in hashCode() 154 sb.append(top); sb.append(" - "); sb.append(right); in toString() [all …]
|
D | Insets.java | 36 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 …]
|
D | Outline.java | 175 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 …]
|
D | Path.java | 471 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 …]
|
/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() 78 inline void clear() { left = top = right = bottom = 0.0f; } in clear() [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 35 top = 0; in makeInvalid() 41 if (top < rhs.top) { in operator <() 43 } else if (top == rhs.top) { in operator <() 61 bottom -= top - y; in offsetTo() 63 top = y; in offsetTo() 69 top += y; in offsetBy() 77 this->top += _top; 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 -() 95 result->top = max(top, with.top); in intersect() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSection.java | 86 int previousEndValue = mEndAnimationRect.top; in startTopAnimation() 87 int newEndValue = mBounds.top; in startTopAnimation() 97 int previousStartValue = mStartAnimationRect.top; in startTopAnimation() 100 mStartAnimationRect.top = previousStartValue; in startTopAnimation() 101 mEndAnimationRect.top = newEndValue; in startTopAnimation() 114 mCurrentBounds.top, newEndValue); in startTopAnimation() 122 mStartAnimationRect.top = -1; in startTopAnimation() 123 mEndAnimationRect.top = -1; in startTopAnimation() 128 mStartAnimationRect.top = mCurrentBounds.top; in startTopAnimation() 129 mEndAnimationRect.top = newEndValue; in startTopAnimation() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 120 final int midY = (r.top + r.bottom) / 2; in testBasicFreeWindowResizing() 125 false /* preserveOrientation */, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testBasicFreeWindowResizing() 139 mPositioner.resizeDrag(2000.0f, r.top); in testBasicFreeWindowResizing() 141 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, 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() 187 false /* preserveOrientation */, r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testFreeWindowResizingTestAllEdges() [all …]
|
/frameworks/base/core/java/android/view/ |
D | Gravity.java | 231 outRect.top = container.top in apply() 232 + ((container.bottom - container.top - h)/2) + yAdj; in apply() 233 outRect.bottom = outRect.top + h; in apply() 236 if (outRect.top < container.top) { in apply() 237 outRect.top = container.top; in apply() 245 outRect.top = container.top + yAdj; in apply() 246 outRect.bottom = outRect.top + h; in apply() 256 outRect.top = outRect.bottom - h; in apply() 259 if (outRect.top < container.top) { in apply() 260 outRect.top = container.top; in apply() [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/native/libs/ui/include/ui/ |
D | Rect.h | 54 left = top = 0; in Rect() 61 top = t; in Rect() 68 top = lt.y; in Rect() 77 top = static_cast<int32_t>(floatRect.top + 0.5f); in Rect() 84 top = 0; 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() 126 top = lt.y; in setLeftTop() 136 return Point(left, top); in leftTop() [all …]
|
D | FloatRect.h | 25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect() 28 float getHeight() const { return bottom - top; } in getHeight() 35 (top > other.top) ? top : other.top, in intersect() 46 float top = 0.0f; variable 52 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Rect.h | 54 left = top = 0; in Rect() 61 top = t; in Rect() 68 top = lt.y; in Rect() 77 top = static_cast<int32_t>(floatRect.top + 0.5f); in Rect() 84 top = 0; 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() 126 top = lt.y; in setLeftTop() 136 return Point(left, top); in leftTop() [all …]
|
D | FloatRect.h | 25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect() 28 float getHeight() const { return bottom - top; } in getHeight() 35 (top > other.top) ? top : other.top, in intersect() 46 float top = 0.0f; variable 52 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
|
/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/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ExpandableOutlineView.java | 89 int top = mClipTopAmount + mBackgroundTop; 91 int bottom = Math.max(getActualHeight() - mClipBottomAmount, top); 92 outline.setRect(left, top, right, bottom); 107 int top; in getClipPath() local 118 top = mClipTopAmount + mBackgroundTop; in getClipPath() 123 Math.max(getActualHeight() - mClipBottomAmount, (int) (top + topRoundness))); in getClipPath() 126 top = mOutlineRect.top; 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 [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/core/java/com/android/internal/policy/ |
D | PipSnapAlgorithm.java | 126 final int y = stackBounds.top; in getEdgeIntersect() 143 horizPoint.y = velY > 0 ? movementBounds.bottom : movementBounds.top; in getEdgeIntersect() 156 ? movementBounds.bottom - stackBounds.top in getEdgeIntersect() 157 : stackBounds.top - movementBounds.top; in getEdgeIntersect() 175 horizPoint.y = stackBounds.top + (velY > 0 ? distance : -distance); in getEdgeIntersect() 207 final Rect pipBounds = new Rect(movementBounds.left, movementBounds.top, in findClosestSnapBounds() 218 snapTargets[i] = new Point(tmpBounds.left, tmpBounds.top); in findClosestSnapBounds() 220 Point snapTarget = findClosestPoint(stackBounds.left, stackBounds.top, snapTargets); in findClosestSnapBounds() 221 float distance = distanceToPoint(snapTarget, stackBounds.left, stackBounds.top); in findClosestSnapBounds() 239 snapTargets[i] = new Point(tmpBounds.left, tmpBounds.top); in findClosestSnapBounds() [all …]
|
/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()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | BackgroundFallback.java | 71 int top = height; in draw() local 93 top = Math.min(top, rootOffsetY + child.getTop()); in draw() 120 if (v.getTop() <= 0 && v.getBottom() >= top in draw() 122 top = 0; in draw() 130 eachBarCoversTopInY &= v.getTop() <= 0 && v.getBottom() >= top; in draw() 137 top = 0; in draw() 140 if (left >= right || top >= bottom) { in draw() 145 if (top > 0) { in draw() 146 mBackgroundFallback.setBounds(0, 0, width, top); in draw() 150 mBackgroundFallback.setBounds(0, top, left, height); in draw() [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | SaveLayer2Animation.cpp | 41 int top = bounds.fTop; in createContent() local 49 for (int i = 0; i < regions; i++, top += smallRectHeight) { in createContent() 50 canvas.saveLayer(bounds.fLeft, top, bounds.fRight, top + padding, &mBluePaint, in createContent() 56 top + padding); in createContent() 59 canvas.drawRect(bounds.fLeft, top + padding, bounds.fRight, in createContent() 60 top + smallRectHeight - padding, mBluePaint); in createContent() 63 top + smallRectHeight - padding); in createContent()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | BatteryMeterDrawableBase.java | 243 public void setBounds(int left, int top, int right, int bottom) { in setBounds() argument 244 super.setBounds(left, top, right, bottom); in setBounds() 251 mHeight = (bounds.bottom - mPadding.bottom) - (bounds.top + mPadding.top); in updateSize() 260 && mPadding.top == 0 in getPadding() 270 public void setPadding(int left, int top, int right, int bottom) { in setPadding() argument 272 mPadding.top = top; in setPadding() 324 final int top = bounds.bottom - mPadding.bottom - height; in draw() local 326 mFrame.set(left, top, width + left, height + top); in draw() 332 mFrame.top, in draw() 334 mFrame.top + buttonHeight); in draw() [all …]
|