/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 37 public float bottom; field in RectF 54 public RectF(float left, float top, float right, float bottom) { in RectF() argument 58 this.bottom = bottom; in RectF() 70 left = top = right = bottom = 0.0f; in RectF() 75 bottom = r.bottom; in RectF() 81 left = top = right = bottom = 0.0f; in RectF() 86 bottom = r.bottom; in RectF() 96 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 104 result = 31 * result + (bottom != +0.0f ? Float.floatToIntBits(bottom) : 0); in hashCode() 110 + right + ", " + bottom + ")"; in toString() [all …]
|
D | Rect.java | 37 public int bottom; field in Rect 69 public Rect(int left, int top, int right, int bottom) { in Rect() argument 73 this.bottom = bottom; in Rect() 85 left = top = right = bottom = 0; in Rect() 90 bottom = r.bottom; in Rect() 100 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals() 108 result = 31 * result + bottom; in hashCode() 117 sb.append(", "); sb.append(bottom); sb.append(")"); in toString() 136 sb.append(','); sb.append(bottom); sb.append(']'); in toShortString() 158 sb.append(bottom); in flattenToString() [all …]
|
D | Insets.java | 34 public final int bottom; field in Insets 36 private Insets(int left, int top, int right, int bottom) { in Insets() argument 40 this.bottom = bottom; in Insets() 55 public static Insets of(int left, int top, int right, int bottom) { in of() argument 56 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of() 59 return new Insets(left, top, right, bottom); in of() 70 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of() 88 if (bottom != insets.bottom) return false; in equals() 101 result = 31 * result + bottom; in hashCode() 111 ", bottom=" + bottom + in toString()
|
D | Outline.java | 142 public void setRect(int left, int top, int right, int bottom) { in setRect() argument 143 setRoundRect(left, top, right, bottom, 0.0f); in setRect() 150 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect() 158 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument 159 if (left >= right || top >= bottom) { in setRoundRect() 165 mRect.set(left, top, right, bottom); in setRoundRect() 174 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect() 180 public void setOval(int left, int top, int right, int bottom) { in setOval() argument 181 if (left >= right || top >= bottom) { in setOval() 186 if ((bottom - top) == (right - left)) { in setOval() [all …]
|
D | Path.java | 438 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo() 468 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument 471 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo() 499 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument 507 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath() 518 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect() 530 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument 531 detectSimplePath(left, top, right, bottom, dir); in addRect() 532 native_addRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect() [all …]
|
D | Region.java | 71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region() 76 public Region(int left, int top, int right, int bottom) { in Region() argument 78 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region() 97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set() 102 public boolean set(int left, int top, int right, int bottom) { in set() argument 103 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set() 182 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains() 192 int bottom); in quickContains() argument 200 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject() 208 public native boolean quickReject(int left, int top, int right, int bottom); in quickReject() argument [all …]
|
D | Canvas.java | 417 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); in saveLayer() 430 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer() argument 432 return native_saveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer() 440 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer() argument 441 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer() 464 … return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); in saveLayerAlpha() 477 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, in saveLayerAlpha() argument 480 return native_saveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, in saveLayerAlpha() 487 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { in saveLayerAlpha() argument 488 return saveLayerAlpha(left, top, right, bottom, alpha, ALL_SAVE_FLAG); in saveLayerAlpha() [all …]
|
/frameworks/base/libs/hwui/ |
D | Rect.h | 32 (r).left, (r).top, (r).right, (r).bottom 34 (r).left(), (r).top(), (r).right(), (r).bottom() 45 float bottom; variable 57 bottom(0) { in Rect() 60 inline Rect(float left, float top, float right, float bottom): in Rect() argument 64 bottom(bottom) { in Rect() 71 bottom(height) { in Rect() 78 bottom(rect.fBottom) { in Rect() 90 left = top = right = bottom = 0.0f; in clear() 96 return !((left < right) && (top < bottom)); in isEmpty() [all …]
|
D | Snapshot.cpp | 93 clipRegion->setRect(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom); in ensureClipRegion() 110 bool Snapshot::clipRegionOp(float left, float top, float right, float bottom, SkRegion::Op op) { in clipRegionOp() argument 112 tmp.set(left, top, right, bottom); in clipRegionOp() 126 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { in clip() argument 127 Rect r(left, top, right, bottom); in clip() 139 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, SkRegion::kIntersect_Op); in clipTransformed() 150 setClip(r.left, r.top, r.right, r.bottom); in clipTransformed() 156 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, op); in clipTransformed() 168 void Snapshot::setClip(float left, float top, float right, float bottom) { in setClip() argument 169 clipRect->set(left, top, right, bottom); in setClip() [all …]
|
D | OpenGLRenderer.h | 136 virtual status_t prepareDirty(float left, float top, float right, float bottom, bool opaque); 155 virtual int saveLayer(float left, float top, float right, float bottom, in saveLayer() argument 157 return saveLayer(left, top, right, bottom, paint, flags, NULL); in saveLayer() 162 int saveLayer(float left, float top, float right, float bottom, 165 int saveLayerDeferred(float left, float top, float right, float bottom, 182 float left, float top, float right, float bottom, const SkPaint* paint); 184 float left, float top, float right, float bottom, const SkPaint* paint); 186 virtual status_t drawRect(float left, float top, float right, float bottom, 188 virtual status_t drawRoundRect(float left, float top, float right, float bottom, 191 virtual status_t drawOval(float left, float top, float right, float bottom, [all …]
|
D | Renderer.h | 121 virtual status_t prepareDirty(float left, float top, float right, float bottom, 139 virtual int saveLayer(float left, float top, float right, float bottom, 142 int saveLayerAlpha(float left, float top, float right, float bottom, in saveLayerAlpha() argument 146 return saveLayer(left, top, right, bottom, &paint, flags); in saveLayerAlpha() 162 float right, float bottom) const = 0; 163 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op) = 0; 185 float left, float top, float right, float bottom, const SkPaint* paint) = 0; 188 virtual status_t drawRect(float left, float top, float right, float bottom, 191 virtual status_t drawRoundRect(float left, float top, float right, float bottom, 194 virtual status_t drawOval(float left, float top, float right, float bottom, [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 34 bottom = -1; in makeInvalid() 44 if (bottom < rhs.bottom) { in operator <() 46 } else if (bottom == rhs.bottom) { in operator <() 58 bottom -= top - y; in offsetTo() 68 bottom += y; in offsetBy() 73 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() 78 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() 86 result->bottom = min(bottom, with.bottom); in intersect() 94 result.bottom); in transform() 97 result = Rect(result.left, height - result.bottom, result.right, in transform() [all …]
|
D | Region.cpp | 108 int bottom = -1; in reverseRectsResolvingJunctions() local 114 if ((spanDirection == direction_RTL && current->bottom != (current + 1)->top) || in reverseRectsResolvingJunctions() 115 (spanDirection == direction_LTR && current->top != (current + 1)->bottom)) { in reverseRectsResolvingJunctions() 124 bottom = current->bottom; in reverseRectsResolvingJunctions() 136 dst.add(Rect(prev->right, top, right, bottom)); in reverseRectsResolvingJunctions() 141 dst.add(Rect(prev->left, top, right, bottom)); in reverseRectsResolvingJunctions() 155 dst.add(Rect(left, top, prev->left, bottom)); in reverseRectsResolvingJunctions() 160 dst.add(Rect(left, top, prev->right, bottom)); in reverseRectsResolvingJunctions() 172 dst.add(Rect(left, top, right, bottom)); in reverseRectsResolvingJunctions() 233 if (y >= cur->top && y < cur->bottom && x >= cur->left && x < cur->right) { in contains() [all …]
|
/frameworks/base/core/java/android/view/ |
D | Gravity.java | 232 + ((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 …]
|
D | WindowInsets.java | 160 return mSystemWindowInsets.bottom; in getSystemWindowInsetBottom() 216 return mWindowDecorInsets.bottom; in getWindowDecorInsetBottom() 230 mSystemWindowInsets.right != 0 || mSystemWindowInsets.bottom != 0; in hasSystemWindowInsets() 245 mWindowDecorInsets.right != 0 || mWindowDecorInsets.bottom != 0; in hasWindowDecorInsets() 311 boolean right, boolean bottom) { in consumeSystemWindowInsets() argument 312 if (left || top || right || bottom) { in consumeSystemWindowInsets() 318 bottom ? 0 : mSystemWindowInsets.bottom); in consumeSystemWindowInsets() 335 int right, int bottom) { in replaceSystemWindowInsets() argument 337 result.mSystemWindowInsets = new Rect(left, top, right, bottom); in replaceSystemWindowInsets() 369 boolean right, boolean bottom) { in consumeWindowDecorInsets() argument [all …]
|
D | GLES20Canvas.java | 196 return nPrepareDirty(mRenderer, dirty.left, dirty.top, dirty.right, dirty.bottom, in onPreDraw() 204 private static native int nPrepareDirty(long renderer, int left, int top, int right, int bottom, in nPrepareDirty() argument 292 public boolean clipRect(float left, float top, float right, float bottom) { in clipRect() argument 293 return nClipRect(mRenderer, left, top, right, bottom, Region.Op.INTERSECT.nativeInt); in clipRect() 297 float right, float bottom, int op); in nClipRect() argument 300 public boolean clipRect(float left, float top, float right, float bottom, Region.Op op) { in clipRect() argument 301 return nClipRect(mRenderer, left, top, right, bottom, op.nativeInt); in clipRect() 305 public boolean clipRect(int left, int top, int right, int bottom) { in clipRect() argument 306 return nClipRect(mRenderer, left, top, right, bottom, Region.Op.INTERSECT.nativeInt); in clipRect() 310 int right, int bottom, int op); in nClipRect() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | AnimateableViewBounds.java | 62 mSourceView.getHeight() - Math.max(mClipRect.bottom, mOutlineClipRect.bottom), in getOutline() 130 void animateClipBottom(int bottom, int duration) { in animateClipBottom() argument 135 mClipBottomAnimator = ObjectAnimator.ofInt(this, "clipBottom", bottom); in animateClipBottom() 142 public void setClipBottom(int bottom) { in setClipBottom() argument 143 if (bottom != mClipRect.bottom) { in setClipBottom() 144 mClipRect.bottom = bottom; in setClipBottom() 149 bottom - mSourceView.getPaddingBottom()); in setClipBottom() 156 return mClipRect.bottom; in getClipBottom() 160 public void setOutlineClipBottom(int bottom) { in setOutlineClipBottom() argument 161 if (bottom != mOutlineClipRect.bottom) { in setOutlineClipBottom() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | StyledCornersBitmapDrawable.java | 243 float bottom = bounds.bottom - mBorderWidth / 2; in draw() local 259 flapCornerRectF.offsetTo(right - mCornerFlapSide, bottom - mCornerFlapSide); in draw() 264 flapCornerRectF.offsetTo(left, bottom - mCornerFlapSide); in draw() 287 float bottom = bounds.bottom; in drawFakeCornersForCompatibilityMode() local 312 .offsetTo(right - fakeCornerRectF.width(), bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode() 314 mCompatibilityModePath.moveTo(right, bottom); in drawFakeCornersForCompatibilityMode() 315 mCompatibilityModePath.lineTo(right - mCornerRoundRadius, bottom); in drawFakeCornersForCompatibilityMode() 321 fakeCornerRectF.offsetTo(left, bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode() 323 mCompatibilityModePath.moveTo(left, bottom); in drawFakeCornersForCompatibilityMode() 324 mCompatibilityModePath.lineTo(left, bottom - mCornerRoundRadius); in drawFakeCornersForCompatibilityMode() [all …]
|
/frameworks/native/include/ui/ |
D | Rect.h | 42 bottom = h; in Rect() 49 bottom = b; in Rect() 56 bottom = rb.y; in Rect() 62 left = top = right = bottom = 0; in clear() 82 return bottom - top; in getHeight() 86 return Rect(right - left, bottom - top); in getBounds() 96 bottom = rb.y; in setRightBottom() 104 return Point(right, bottom); in rightBottom() 110 return Point(left, bottom); in leftBottom() 116 (right == rhs.right) && (bottom == rhs.bottom); [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | ReplacementDrawableSpan.java | 35 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin; in setupFontMetrics() 36 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2) in setupFontMetrics() 39 fm.bottom = fm.descent; in setupFontMetrics() 51 int y, int bottom, Paint paint) { in draw() argument 53 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/base/policy/src/com/android/internal/policy/impl/ |
D | RecentApplicationsBackground.java | 60 protected boolean setFrame(int left, int top, int right, int bottom) { in setFrame() argument 62 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { in setFrame() 65 return super.setFrame(left, top, right, bottom); in setFrame() 101 final int bottom = chld.bottom + bkg.bottom; in draw() local 115 background.setBounds(left, top, right, bottom); in draw() 145 r.bottom = r.right = Integer.MIN_VALUE; in getChildBounds() 153 r.bottom = Math.max(r.bottom, v.getBottom()); in getChildBounds()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2() 75 fmi.top, fmi.bottom); in testGetters2() 90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3() 92 fmi.ascent, fmi.bottom); in testGetters3() 108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters4() 111 fmi.ascent, fmi.bottom); in testGetters4() 136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters5() 139 fmi.ascent, fmi.bottom); in testGetters5() 157 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters6() 160 fmi.ascent, fmi.bottom + spacingAdd); in testGetters6() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | FaceSquareFilter.java | 86 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()
|
/frameworks/support/v4/java/android/support/v4/view/ |
D | PagerTabStrip.java | 153 public void setPadding(int left, int top, int right, int bottom) { in setPadding() argument 154 if (bottom < mMinPaddingBottom) { in setPadding() 155 bottom = mMinPaddingBottom; in setPadding() 157 super.setPadding(left, top, right, bottom); in setPadding() 262 final int bottom = height; in onDraw() local 265 final int top = bottom - mIndicatorHeight; in onDraw() 268 canvas.drawRect(left, top, right, bottom, mTabPaint); in onDraw() 280 int bottom = getHeight(); in updateTextPositions() local 283 int top = bottom - mIndicatorHeight; in updateTextPositions() 285 r.set(left, top, right, bottom); in updateTextPositions() [all …]
|