/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/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 …]
|
D | Canvas.java | 515 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { in saveLayer() 517 bounds = new RectF(getClipBounds()); in saveLayer() 550 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint) { in saveLayer() 625 public int saveLayerAlpha(@Nullable RectF bounds, int alpha, @Saveflags int saveFlags) { in saveLayerAlpha() 627 bounds = new RectF(getClipBounds()); in saveLayerAlpha() 643 public int saveLayerAlpha(@Nullable RectF bounds, int alpha) { in saveLayerAlpha() 875 public boolean clipRect(@NonNull RectF rect, @NonNull Region.Op op) { in clipRect() 923 public boolean clipRect(@NonNull RectF rect) { in clipRect() 935 public boolean clipOutRect(@NonNull RectF rect) { in clipOutRect() 1201 public boolean quickReject(@NonNull RectF rect, @NonNull EdgeType type) { in quickReject() [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/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/ |
D | DockState.java | 40 import android.graphics.RectF; 75 new RectF(0, 0, 0.125f, 1), new RectF(0, 0, 0.125f, 1), 76 new RectF(0, 0, 0.5f, 1)); 79 new RectF(0, 0, 1, 0.125f), new RectF(0, 0, 1, 0.125f), 80 new RectF(0, 0, 1, 0.5f)); 83 new RectF(0.875f, 0, 1, 1), new RectF(0.875f, 0, 1, 1), 84 new RectF(0.5f, 0, 1, 1)); 87 new RectF(0, 0.875f, 1, 1), new RectF(0, 0.875f, 1, 1), 88 new RectF(0, 0.5f, 1, 1)); 243 private final RectF touchArea; [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/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/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/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/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; 65 static final Comparator<RectF> RECTANGLE_COMPARATOR = Comparator 66 .<RectF>comparingDouble(e -> e.bottom) 73 private final RectF mRectangle; 77 RectangleWithTextSelectionLayout(RectF rectangle, int textSelectionLayout) { in RectangleWithTextSelectionLayout() 82 public RectF getRectangle() { in getRectangle() 119 private final RectF mBoundingRectangle; 123 private final RectF mDrawRect = new RectF(); 137 final RectF boundingRectangle, in RoundedRectangleShape() 140 mBoundingRectangle = new RectF(boundingRectangle); in RoundedRectangleShape() [all …]
|
/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/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
D | CircleFramedDrawable.java | 31 import android.graphics.RectF; 48 private RectF mDstRect; 70 final RectF circleRect = new RectF(0f, 0f, mSize, mSize); in CircleFramedDrawable() 94 mDstRect = new RectF(0, 0, mSize, mSize); in CircleFramedDrawable()
|
/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/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()
|
/frameworks/base/core/java/android/view/animation/ |
D | Animation.java | 25 import android.graphics.RectF; 216 RectF mPreviousRegion = new RectF(); 218 RectF mRegion = new RectF(); 284 animation.mPreviousRegion = new RectF(); in clone() 285 animation.mRegion = new RectF(); in clone() 1101 RectF invalidate, Transformation transformation) { in getInvalidateRegion() 1103 final RectF tempRegion = mRegion; in getInvalidateRegion() 1104 final RectF previousRegion = mPreviousRegion; in getInvalidateRegion() 1133 final RectF region = mPreviousRegion; in initializeInvalidateRegion()
|