/frameworks/base/core/tests/coretests/src/android/widget/ |
D | SelectionActionModeHelperTest.java | 24 import android.graphics.RectF; 48 private final List<RectF> mRectFList = Arrays.asList( 49 new RectF(0, 0, 1, 1), 50 new RectF(100000, 0, 100001, 1), 51 new RectF(1, 1, 2, 2)); 122 new RectF[] { in testMergeRectangleIntoList_addThreeDisjointRectangles() 123 new RectF(0, 0, 1, 1), in testMergeRectangleIntoList_addThreeDisjointRectangles() 124 new RectF(10, 10, 11, 11), in testMergeRectangleIntoList_addThreeDisjointRectangles() 125 new RectF(20, 20, 21, 21) in testMergeRectangleIntoList_addThreeDisjointRectangles() 127 new RectF[] { in testMergeRectangleIntoList_addThreeDisjointRectangles() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | SparseRectFArrayTest.java | 24 import android.graphics.RectF; 40 private static final RectF[] MANY_RECTS = new RectF[] { 42 new RectF(102.0f, 202.0f, 302.0f, 402.0f), 43 new RectF(103.0f, 203.0f, 303.0f, 403.0f), 44 new RectF(104.0f, 204.0f, 304.0f, 404.0f), 45 new RectF(105.0f, 205.0f, 305.0f, 405.0f), 46 new RectF(106.0f, 206.0f, 306.0f, 406.0f), 48 new RectF(108.0f, 208.0f, 308.0f, 408.0f), 49 new RectF(109.0f, 209.0f, 309.0f, 409.0f), 50 new RectF(110.0f, 210.0f, 310.0f, 410.0f), [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
D | RectFEvaluator.java | 19 import android.graphics.RectF; 24 public class RectFEvaluator implements TypeEvaluator<RectF> { 26 private final RectF mRect = new RectF(); 44 public RectF evaluate(float fraction, RectF startValue, RectF endValue) { in evaluate()
|
/frameworks/base/graphics/java/android/graphics/ |
D | RectF.java | 35 public class RectF implements Parcelable { class 44 public RectF() {} in RectF() method in RectF 56 public RectF(float left, float top, float right, float bottom) { in RectF() method in RectF 70 public RectF(@Nullable RectF r) { in RectF() method in RectF 81 public RectF(@Nullable Rect r) { in RectF() method in RectF 97 RectF r = (RectF) o; in equals() 216 public void set(@NonNull RectF src) { in set() 324 public boolean contains(@NonNull RectF r) { in contains() 381 public boolean intersect(@NonNull RectF r) { in intersect() 397 public boolean setIntersect(@NonNull RectF a, @NonNull RectF b) { in setIntersect() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | RectUtils.java | 21 import android.graphics.RectF; 43 final RectF fullRectF = new RectF(fullRect); in rotateRectForOrientation() 44 final RectF partialRectF = new RectF(partialRect); in rotateRectForOrientation() 60 final RectF rectF = new RectF(rect); in rotateRect()
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
D | RectShape.java | 22 import android.graphics.RectF; 34 private RectF mRect = new RectF(); 45 final RectF rect = rect(); in getOutline() 58 protected final RectF rect() { in rect() 65 shape.mRect = new RectF(mRect); in clone()
|
D | RoundRectShape.java | 24 import android.graphics.RectF; 39 private RectF mInset; 42 private RectF mInnerRect; 64 public RoundRectShape(@Nullable float[] outerRadii, @Nullable RectF inset, in RoundRectShape() 77 mInnerRect = new RectF(); in RoundRectShape() 103 final RectF rect = rect(); in getOutline() 112 RectF r = rect(); in onResize() 138 shape.mInset = new RectF(mInset); in clone() 139 shape.mInnerRect = new RectF(mInnerRect); in clone()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | FloatProperties.kt | 20 import android.graphics.RectF 112 val RECTF_X = object : FloatPropertyCompat<RectF>("RectFX") { 113 override fun setValue(rect: RectF?, value: Float) { in setValue() 117 override fun getValue(rect: RectF?): Float { in getValue() 131 val RECTF_Y = object : FloatPropertyCompat<RectF>("RectFY") { 132 override fun setValue(rect: RectF?, value: Float) { in setValue() 136 override fun getValue(rect: RectF?): Float { in getValue()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | CornerDrawable.kt | 22 import android.graphics.RectF 35 updatePath(RectF(b)) 44 updatePath(RectF(l.toFloat(), t.toFloat(), r.toFloat(), b.toFloat())) in setBounds() 49 updatePath(RectF(r)) in setBounds() 53 private fun updatePath(r: RectF) { in updatePath()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
D | NopCanvas.java | 28 import android.graphics.RectF; 59 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { in saveLayer() 64 public int saveLayer(RectF bounds, Paint paint) { in saveLayer() 80 public int saveLayerAlpha(RectF bounds, int alpha, int saveFlags) { in saveLayerAlpha() 85 public int saveLayerAlpha(RectF bounds, int alpha) { in saveLayerAlpha() 158 public void drawRect(RectF rect, Paint paint) { in drawRect() 170 public void drawOval(RectF oval, Paint paint) { in drawOval() 182 public void drawArc(RectF oval, float startAngle, float sweepAngle, boolean useCenter, in drawArc() 192 public void drawRoundRect(RectF rect, float rx, float ry, Paint paint) { in drawRoundRect() 213 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { in drawPatch() [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | CircularImageView.java | 10 import android.graphics.RectF; 26 private final RectF source; 27 private final RectF destination; 43 source = new RectF(); in CircularImageView() 44 destination = new RectF(); in CircularImageView() 96 RectF source, RectF dest) { in drawBitmapWithCircleOnCanvas()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraDeviceInfo.java | 20 import android.graphics.RectF; 157 public Matrix getPreviewTransform(int currentDisplayOrientation, RectF surfaceDimensions) { in getPreviewTransform() 159 new RectF(surfaceDimensions)); in getPreviewTransform() 181 public Matrix getPreviewTransform(int currentDisplayOrientation, RectF surfaceDimensions, in getPreviewTransform() 182 RectF desiredBounds) { in getPreviewTransform()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ShapesActivity.java | 24 import android.graphics.RectF; 41 private final RectF mRect; 42 private final RectF mOval; 43 private final RectF mArc; 49 mRect = new RectF(0.0f, 0.0f, 160.0f, 90.0f); in ShapesView() 68 mOval = new RectF(0.0f, 0.0f, 80.0f, 45.0f); in ShapesView() 69 mArc = new RectF(0.0f, 0.0f, 100.0f, 120.0f); in ShapesView()
|
D | BitmapsRectActivity.java | 26 import android.graphics.RectF; 44 private final RectF mDstRect; 45 private final RectF mDstRect2; 60 mDstRect = new RectF(fourth, half - half / 2.0f, fourth + fourth, half + half / 2.0f); in BitmapsView() 61 mDstRect2 = new RectF(fourth, half - half / 2.0f, in BitmapsView()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameImage2D.java | 23 import android.graphics.RectF; 95 public void copyToFrame(FrameImage2D target, RectF sourceRect, RectF targetRect) { in copyToFrame() 145 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { in gpuImageCopy() 158 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { in cpuImageCopy()
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | RectShadowPainter.java | 34 import android.graphics.RectF; 94 RectF shadowRect = new RectF(outline); in paintShadow() 97 RectF inset = new RectF(outline); in paintShadow() 100 RectF edgeShadowRect = new RectF(); in paintShadow() 161 RectF edgeShadowRect, float dx, float dy, int rotations) { in sideShadow() 202 private static boolean isRectEmpty(RectF rect) { in isRectEmpty()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | GLCanvas.java | 21 import android.graphics.RectF; 100 public abstract void drawTexture(BasicTexture texture, RectF source, RectF target); in drawTexture() 117 float ratio, RectF src, RectF target); in drawMixed()
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | ParamsUtils.java | 21 import android.graphics.RectF; 64 public static Rect createRect(RectF rect) { in createRect() 90 RectF rectF = new RectF(rect); in mapRect() 169 public static void convertRectF(Rect source, RectF destination) { in convertRectF()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | LayoutTest.java | 32 import android.graphics.RectF; 318 final List<RectF> rectangles = new ArrayList<>(); in testGetSelectionWithASingleLineSelection() 322 new RectF(left, top, right, bottom))); in testGetSelectionWithASingleLineSelection() 335 final RectF rectangle = rectangles.get(0); in testGetSelectionWithASingleLineSelection() 349 final List<RectF> rectangles = new ArrayList<>(); in testGetSelectionWithMultilineSelection_secondLineSelectionEndsBeforeFirstCharacter() 353 new RectF(left, top, right, bottom))); in testGetSelectionWithMultilineSelection_secondLineSelectionEndsBeforeFirstCharacter() 372 final RectF topRectangle = rectangles.get(0); in testGetSelectionWithMultilineSelection_secondLineSelectionEndsBeforeFirstCharacter() 373 final RectF topToEndOfLineRectangle = rectangles.get(1); in testGetSelectionWithMultilineSelection_secondLineSelectionEndsBeforeFirstCharacter() 374 final RectF bottomLineStartRectangle = rectangles.get(2); in testGetSelectionWithMultilineSelection_secondLineSelectionEndsBeforeFirstCharacter() 395 final List<RectF> rectangles = new ArrayList<>(); [all …]
|
/frameworks/base/core/java/android/widget/ |
D | SmartSelectSprite.java | 33 import android.graphics.RectF; 64 static final Comparator<RectF> RECTANGLE_COMPARATOR = Comparator 65 .<RectF>comparingDouble(e -> e.bottom) 72 private final RectF mRectangle; 76 RectangleWithTextSelectionLayout(RectF rectangle, int textSelectionLayout) { in RectangleWithTextSelectionLayout() 81 public RectF getRectangle() { in getRectangle() 118 private final RectF mBoundingRectangle; 122 private final RectF mDrawRect = new RectF(); 136 final RectF boundingRectangle, in RoundedRectangleShape() 139 mBoundingRectangle = new RectF(boundingRectangle); in RoundedRectangleShape() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | QuickswitchOrientedNavHandle.java | 21 import android.graphics.RectF; 29 private final RectF mTmpBoundsRectF = new RectF(); 46 RectF computeHomeHandleBounds() { in computeHomeHandleBounds()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureStroke.java | 22 import android.graphics.RectF; 36 public final RectF boundingBox; 54 RectF bx = null; in GestureStroke() 65 bx = new RectF(); in GestureStroke() 87 private GestureStroke(RectF bbx, float len, float[] pts, long[] times) { in GestureStroke() 88 boundingBox = new RectF(bbx.left, bbx.top, bbx.right, bbx.bottom); in GestureStroke() 162 final RectF rect = boundingBox; in toPath()
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | FindRegion.java | 21 import android.graphics.RectF; 104 RectF mRect = calcBounds(xy); in getBoundingRect() 112 private static RectF calcBounds(float[] xy) { in calcBounds() 121 RectF rect = new RectF(); in calcBounds()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/ |
D | PipSurfaceTransactionHelper.java | 23 import android.graphics.RectF; 45 private final RectF mTmpSourceRectF = new RectF(); 46 private final RectF mTmpDestinationRectF = new RectF();
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | CropView.java | 22 import android.graphics.RectF; 43 private RectF mTempEdges = new RectF(); 82 private void getEdgesHelper(RectF edgesOut) { in getEdgesHelper() 119 public RectF getCrop() { in getCrop() 120 final RectF edges = mTempEdges; in getCrop() 129 return new RectF(cropLeft, cropTop, cropRight, cropBottom); in getCrop() 202 final RectF edges = mTempEdges; in moveToLeft() 285 final RectF edges = mTempEdges; in onTouchEvent()
|