/external/libchrome/ui/gfx/geometry/ |
D | rect_f.h | 26 class GFX_EXPORT RectF { 28 constexpr RectF() = default; 29 constexpr RectF(float width, float height) : size_(width, height) {} in RectF() function 30 constexpr RectF(float x, float y, float width, float height) in RectF() function 32 constexpr explicit RectF(const SizeF& size) : size_(size) {} in RectF() function 33 constexpr RectF(const PointF& origin, const SizeF& size) in RectF() function 36 constexpr explicit RectF(const Rect& r) in RectF() function 37 : RectF(static_cast<float>(r.x()), in RectF() 43 explicit RectF(const CGRect& r); 97 InsetsF InsetsFrom(const RectF& inner) const; [all …]
|
D | rect_f.cc | 36 RectF::RectF(const CGRect& r) in RectF() function in gfx::RectF 40 CGRect RectF::ToCGRect() const { in ToCGRect() 45 void RectF::Inset(const InsetsF& insets) { in Inset() 49 void RectF::Inset(float left, float top, float right, float bottom) { in Inset() 55 void RectF::Offset(float horizontal, float vertical) { in Offset() 59 void RectF::operator+=(const Vector2dF& offset) { in operator +=() 63 void RectF::operator-=(const Vector2dF& offset) { in operator -=() 67 InsetsF RectF::InsetsFrom(const RectF& inner) const { in InsetsFrom() 74 bool RectF::operator<(const RectF& other) const { in operator <() 83 bool RectF::Contains(float point_x, float point_y) const { in Contains() [all …]
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
D | DisplayDimensions.java | 19 import android.graphics.RectF; 26 public final RectF canvasRect; 27 public final RectF marginatedRect; 28 public final RectF paddedRect; 31 private static final RectF initRect; 34 initRect = new RectF(1, 1, 1, 1); 40 public DisplayDimensions(RectF canvasRect, RectF marginatedRect, RectF paddedRect) { in DisplayDimensions()
|
D | PixelUtils.java | 22 import android.graphics.RectF; 83 public static RectF sink(RectF in) { in sink() 87 public static RectF nearestPixRect(float left, float top, float right, float bottom) { in nearestPixRect() 88 return new RectF( in nearestPixRect()
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/ui/ |
D | DynamicTableModelTest.java | 19 import android.graphics.RectF; 49 RectF tableRect = new RectF(0, 0, 1000, 2000); in testGetCellRect() 50 RectF cellRect = model.getCellRect(tableRect, 10); in testGetCellRect() 67 RectF tableRect = new RectF(0, 0, 1000, 2000); in testIterator() 70 Iterator<RectF> it = model.getIterator(tableRect, 10); in testIterator() 97 RectF tableRect = new RectF(0, 0, 1000, 2000); in testRowMajorIteration() 99 Iterator<RectF> it = model.getIterator(tableRect, createdCells); in testRowMajorIteration() 104 RectF cellRect = it.next(); in testRowMajorIteration() 155 RectF tableRect = new RectF(0, 0, 1000, 2000); in testColumnMajorIteration() 157 Iterator<RectF> it = model.getIterator(tableRect, createdCells); in testColumnMajorIteration() [all …]
|
D | FixedTableModelTest.java | 19 import android.graphics.RectF; 47 RectF tableRect = new RectF(0, 0, 1000, 2000); in testIterator() 49 Iterator<RectF> it = model.getIterator(tableRect, 5); in testIterator() 52 RectF cellRect = it.next(); in testIterator() 79 RectF tableRect = new RectF(0, 0, 1000, 2000); in testColumnMajor() 82 Iterator<RectF> it = model.getIterator(tableRect, 5); in testColumnMajor() 84 RectF cellRect = it.next(); in testColumnMajor() 214 RectF tableRect = new RectF(0, 0, 1000, 2000); in testRowMajor() 217 Iterator<RectF> it = model.getIterator(tableRect, 5); in testRowMajor() 219 RectF cellRect = it.next(); in testRowMajor()
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/ |
D | DynamicTableModel.java | 19 import android.graphics.RectF; 91 public TableModelIterator getIterator(RectF tableRect, int totalElements) { in getIterator() 102 public RectF getCellRect(RectF tableRect, int numElements) { in getCellRect() 103 RectF cellRect = new RectF(); in getCellRect() 120 private float calculateCellSize(RectF tableRect, in calculateCellSize() 182 private class TableModelIterator implements Iterator<RectF> { 188 private RectF tableRect; 189 private RectF lastElementRect; 197 …public TableModelIterator(DynamicTableModel dynamicTableModel, RectF tableRect, int totalElements)… in TableModelIterator() 232 public RectF next() { in next() [all …]
|
D | FixedTableModel.java | 19 import android.graphics.RectF; 33 public Iterator<RectF> getIterator(RectF tableRect, int totalElements) { in getIterator() 53 private class FixedTableModelIterator implements Iterator<RectF> { 56 private RectF tableRect; 57 private RectF lastRect; 60 protected FixedTableModelIterator(FixedTableModel model, RectF tableRect, int numElements) { in FixedTableModelIterator() 64 lastRect = new RectF( in FixedTableModelIterator() 86 public RectF next() { in next()
|
D | SizeMetrics.java | 19 import android.graphics.RectF; 69 public RectF getRectF(RectF canvasRect) { in getRectF() 70 return new RectF( in getRectF() 82 public RectF getRoundedRect(RectF canvasRect) { in getRoundedRect()
|
D | BoxModel.java | 19 import android.graphics.RectF; 62 public RectF getMarginatedRect(RectF boundsRect) { in getMarginatedRect() 63 return new RectF( boundsRect.left + getMarginLeft(), in getMarginatedRect() 74 public RectF getPaddedRect(RectF marginRect) { in getPaddedRect() 75 return new RectF(marginRect.left + getPaddingLeft(), in getPaddedRect()
|
D | BoxModelable.java | 19 import android.graphics.RectF; 32 public RectF getMarginatedRect(RectF boundsRect); in getMarginatedRect() 39 public RectF getPaddedRect(RectF marginRect); in getPaddedRect()
|
D | SeriesRenderer.java | 20 import android.graphics.RectF; 50 public void render(Canvas canvas, RectF plotArea) throws PlotRenderException { in render() 53 public abstract void onRender(Canvas canvas, RectF plotArea) throws PlotRenderException; in onRender() 60 …protected abstract void doDrawLegendIcon(Canvas canvas, RectF rect, SeriesFormatterType formatter); in doDrawLegendIcon() 62 public void drawSeriesLegendIcon(Canvas canvas, RectF rect, SeriesFormatterType formatter) { in drawSeriesLegendIcon()
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/ |
D | XYLegendWidget.java | 83 private RectF getIconRect(RectF cellRect) { in getIconRect() 85 RectF iconRect = iconSizeMetrics.getRectF(cellRect); in getIconRect() 93 private static float getRectCenterY(RectF cellRect) { in getRectCenterY() 97 private void beginDrawingCell(Canvas canvas, RectF iconRect) { in beginDrawingCell() 105 private void finishDrawingCell(Canvas canvas, RectF cellRect, RectF iconRect, String text) { in finishDrawingCell() 117 protected void drawRegionLegendIcon(Canvas canvas, RectF rect, XYRegionFormatter formatter) { in drawRegionLegendIcon() 121 …private void drawRegionLegendCell(Canvas canvas, XYRegionFormatter formatter, RectF cellRect, Stri… in drawRegionLegendCell() 122 RectF iconRect = getIconRect(cellRect); in drawRegionLegendCell() 133 …ll(Canvas canvas, XYSeriesRenderer renderer, XYSeriesFormatter formatter, RectF cellRect, String s… in drawSeriesLegendCell() 134 RectF iconRect = getIconRect(cellRect); in drawSeriesLegendCell() [all …]
|
D | RectRegion.java | 20 import android.graphics.RectF; 93 …public boolean intersects(RectF region, Number visMinX, Number visMaxX, Number visMinY, Number vis… in intersects() 95 RectF thisRegion = getRectF(region, visMinX.doubleValue(), visMaxX.doubleValue(), in intersects() 97 return RectF.intersects(thisRegion, region); in intersects() 100 …public RectF getRectF(RectF plotRect, Number visMinX, Number visMaxX, Number visMinY, Number visMa… in getRectF() 118 return new RectF(topLeftPoint.x, topLeftPoint.y, bottomRightPoint.x, bottomRightPoint.y); in getRectF()
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/tracking/ |
D | ObjectTracker.java | 23 import android.graphics.RectF; 390 final RectF currPosition = getCurrentPosition(timestamp, in getAccumulatedDelta() 391 new RectF(positionX - radius, positionY - radius, positionX + radius, positionY + radius)); in getAccumulatedDelta() 395 private synchronized RectF getCurrentPosition(final long timestamp, final RectF in getCurrentPosition() 397 final RectF downscaledFrameRect = downscaleRect(oldPosition); in getCurrentPosition() 403 final RectF newPosition = new RectF(delta[0], delta[1], delta[2], delta[3]); in getCurrentPosition() 465 private RectF downscaleRect(final RectF fullFrameRect) { in downscaleRect() 466 return new RectF( in downscaleRect() 473 private RectF upscaleRect(final RectF downsampledFrameRect) { in upscaleRect() 474 return new RectF( in upscaleRect() [all …]
|
D | MultiBoxTracker.java | 26 import android.graphics.RectF; 72 final List<Pair<Float, RectF>> screenRects = new LinkedList<Pair<Float, RectF>>(); 76 RectF location; 130 for (final Pair<Float, RectF> detection : screenRects) { in drawDebug() 131 final RectF rect = detection.second; in drawDebug() 145 final RectF trackedPos = trackedObject.getTrackedPositionInPreviewFrame(); in drawDebug() 177 final RectF trackedPos = in draw() 180 : new RectF(recognition.location); in draw() 257 final RectF detectionFrameRect = new RectF(result.getLocation()); in processResults() 259 final RectF detectionScreenRect = new RectF(); in processResults() [all …]
|
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/ |
D | ObjectTracker.java | 23 import android.graphics.RectF; 390 final RectF currPosition = getCurrentPosition(timestamp, in getAccumulatedDelta() 391 new RectF(positionX - radius, positionY - radius, positionX + radius, positionY + radius)); in getAccumulatedDelta() 395 private synchronized RectF getCurrentPosition(final long timestamp, final RectF in getCurrentPosition() 397 final RectF downscaledFrameRect = downscaleRect(oldPosition); in getCurrentPosition() 403 final RectF newPosition = new RectF(delta[0], delta[1], delta[2], delta[3]); in getCurrentPosition() 465 private RectF downscaleRect(final RectF fullFrameRect) { in downscaleRect() 466 return new RectF( in downscaleRect() 473 private RectF upscaleRect(final RectF downsampledFrameRect) { in upscaleRect() 474 return new RectF( in upscaleRect() [all …]
|
D | MultiBoxTracker.java | 26 import android.graphics.RectF; 72 final List<Pair<Float, RectF>> screenRects = new LinkedList<Pair<Float, RectF>>(); 76 RectF location; 130 for (final Pair<Float, RectF> detection : screenRects) { in drawDebug() 131 final RectF rect = detection.second; in drawDebug() 145 final RectF trackedPos = trackedObject.getTrackedPositionInPreviewFrame(); in drawDebug() 177 final RectF trackedPos = in draw() 180 : new RectF(recognition.location); in draw() 257 final RectF detectionFrameRect = new RectF(result.getLocation()); in processResults() 259 final RectF detectionScreenRect = new RectF(); in processResults() [all …]
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/widget/ |
D | Widget.java | 157 public RectF getMarginatedRect(RectF widgetRect) { in getMarginatedRect() 161 public RectF getPaddedRect(RectF widgetMarginRect) { in getPaddedRect() 263 RectF widgetRect = new RectF(coords.x, coords.y, in refreshLayout() 265 RectF marginatedWidgetRect = getMarginatedRect(widgetRect); in refreshLayout() 266 RectF paddedWidgetRect = getPaddedRect(marginatedWidgetRect); in refreshLayout() 277 …public PointF getElementCoordinates(float height, float width, RectF viewRect, PositionMetrics met… in getElementCoordinates() 319 public static PointF getAnchorCoordinates(RectF widgetRect, AnchorPosition anchorPosition) { in getAnchorCoordinates() 325 return getAnchorCoordinates(new RectF(x, y, x+width, y+height), anchorPosition); in getAnchorCoordinates() 328 public void draw(Canvas canvas, RectF widgetRect) throws PlotRenderException { in draw() 350 protected void drawBorder(Canvas canvas, RectF paddedRect) { in drawBorder() [all …]
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/ |
D | Classifier.java | 19 import android.graphics.RectF; 47 private RectF location; 50 final String id, final String title, final Float confidence, final RectF location) { in Recognition() 69 public RectF getLocation() { in getLocation() 70 return new RectF(location); in getLocation() 73 public void setLocation(RectF location) { in setLocation()
|
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/ |
D | Classifier.java | 19 import android.graphics.RectF; 47 private RectF location; 50 final String id, final String title, final Float confidence, final RectF location) { in Recognition() 69 public RectF getLocation() { in getLocation() 70 return new RectF(location); in getLocation() 73 public void setLocation(RectF location) { in setLocation()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowCanvasTest.java | 16 import android.graphics.RectF; 58 canvas.drawBitmap(imageBitmap, new Rect(1,2,3,4), new RectF(5.0f,6.0f,7.5f,8.5f), new Paint()); in shouldDescribeBitmapDrawing_withDestinationRectF() 288 RectF oval0 = new RectF(); in drawArc_shouldRecordArcHistoryEvents() 289 RectF oval1 = new RectF(); in drawArc_shouldRecordArcHistoryEvents() 312 canvas.drawArc(new RectF(), 0f, 0f, true, new Paint()); in getArcHistoryCount_shouldReturnTotalNumberOfDrawArcEvents() 313 canvas.drawArc(new RectF(), 0f, 0f, true, new Paint()); in getArcHistoryCount_shouldReturnTotalNumberOfDrawArcEvents() 330 canvas.drawOval(new RectF(), new Paint()); in getOvalHistoryCount_shouldReturnTotalNumberOfDrawOvalEvents() 331 canvas.drawOval(new RectF(), new Paint()); in getOvalHistoryCount_shouldReturnTotalNumberOfDrawOvalEvents() 377 RectF oval0 = new RectF(); in drawOval_shouldRecordOvalHistoryEvents() 378 RectF oval1 = new RectF(); in drawOval_shouldRecordOvalHistoryEvents() [all …]
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/ |
D | PieRenderer.java | 47 public float getRadius(RectF rect) { in getRadius() 52 public void onRender(Canvas canvas, RectF plotArea) throws PlotRenderException { in onRender() 64 … RectF rec = new RectF(origin.x - radius, origin.y - radius, origin.x + radius, origin.y + radius); in onRender() 79 protected void drawSegment(Canvas canvas, RectF bounds, Segment seg, SegmentFormatter f, in drawSegment() 115 clip.arcTo(new RectF(bounds.left - rad, in drawSegment() 129 p.arcTo(new RectF( in drawSegment() 168 protected void doDrawLegendIcon(Canvas canvas, RectF rect, SegmentFormatter formatter) { in doDrawLegendIcon()
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/ |
D | MockRectF.java | 19 import android.graphics.RectF; 24 @MockClass(realClass = RectF.class, stubs="", inverse=true) 31 public RectF it; 39 public void $init(RectF rhs) { in $init()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowCanvas.java | 12 import android.graphics.RectF; 157 protected void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { in drawBitmap() 196 RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint) { in drawArc() 211 protected void drawOval(RectF oval, Paint paint) { in drawOval() 386 public final RectF oval; 389 private OvalPaintHistoryEvent(RectF oval, Paint paint) { in OvalPaintHistoryEvent() 390 this.oval = new RectF(oval); in OvalPaintHistoryEvent() 399 public final RectF rect; 407 this.rect = new RectF(left, top, right, bottom); in RectPaintHistoryEvent() 445 public final RectF oval; [all …]
|