/frameworks/base/libs/hwui/utils/ |
D | VectorDrawableUtils.cpp | 36 char cmd, const std::vector<float>* points, size_t start, size_t end); 72 resolver.addCommand(outPath, previousCommand, data.verbs[i], &data.points, start, in verbsToPath() 90 outData->points.resize(from.points.size()); in interpolatePaths() 94 for (size_t i = 0; i < from.points.size(); i++) { in interpolatePaths() 95 outData->points[i] = from.points[i] * (1 - fraction) + to.points[i] * fraction; in interpolatePaths() 251 char cmd, const std::vector<float>* points, size_t start, size_t end) { in addCommand() argument 303 currentX += points->at(k + 0); in addCommand() 304 currentY += points->at(k + 1); in addCommand() 309 outPath->rLineTo(points->at(k + 0), points->at(k + 1)); in addCommand() 311 outPath->rMoveTo(points->at(k + 0), points->at(k + 1)); in addCommand() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 141 float[] strokepoints = stroke.points; in spatialSampling() 273 float[] pts = stroke.points; in temporalSampling() 330 static float[] computeCentroid(float[] points) { in computeCentroid() argument 333 int count = points.length; in computeCentroid() 335 centerX += points[i]; in computeCentroid() 337 centerY += points[i]; in computeCentroid() 352 private static float[][] computeCoVariance(float[] points) { in computeCoVariance() argument 358 int count = points.length; in computeCoVariance() 360 float x = points[i]; in computeCoVariance() 362 float y = points[i]; in computeCoVariance() [all …]
|
D | GestureStroke.java | 39 public final float[] points; field in GestureStroke 49 public GestureStroke(ArrayList<GesturePoint> points) { in GestureStroke() argument 50 final int count = points.size(); in GestureStroke() 59 final GesturePoint p = points.get(i); in GestureStroke() 79 this.points = tmpPoints; in GestureStroke() 90 points = pts.clone(); in GestureStroke() 96 return new GestureStroke(boundingBox, length, points, timestamps); in clone() 121 final float[] localPoints = points; in makePath() 201 final float[] pts = points; in serialize() 203 final int count = points.length; in serialize() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | PathMeasure_Delegate.java | 172 float[] points = new float[6]; in native_getSegment() local 176 int type = iterator.currentSegment(points, stopD - accLength); in native_getSegment() 194 Path_Delegate.native_moveTo(native_dst_path, points[0], points[1]); in native_getSegment() 197 Path_Delegate.native_lineTo(native_dst_path, points[0], points[1]); in native_getSegment() 203 Path_Delegate.native_cubicTo(native_dst_path, points[0], points[1], in native_getSegment() 204 points[2], points[3], in native_getSegment() 205 points[4], points[5]); in native_getSegment() 208 Path_Delegate.native_quadTo(native_dst_path, points[0], points[1], in native_getSegment() 209 points[2], in native_getSegment() 210 points[3]); in native_getSegment()
|
/frameworks/base/core/jni/android/graphics/ |
D | Path.cpp | 266 typedef SkPoint (*bezierCalculation)(float t, const SkPoint* points); 301 static SkPoint cubicBezierCalculation(float t, const SkPoint* points) { in cubicBezierCalculation() argument 302 float x = cubicCoordinateCalculation(t, points[0].x(), points[1].x(), in cubicBezierCalculation() 303 points[2].x(), points[3].x()); in cubicBezierCalculation() 304 float y = cubicCoordinateCalculation(t, points[0].y(), points[1].y(), in cubicBezierCalculation() 305 points[2].y(), points[3].y()); in cubicBezierCalculation() 314 static SkPoint quadraticBezierCalculation(float t, const SkPoint* points) { in quadraticBezierCalculation() argument 315 float x = quadraticCoordinateCalculation(t, points[0].x(), points[1].x(), points[2].x()); in quadraticBezierCalculation() 316 float y = quadraticCoordinateCalculation(t, points[0].y(), points[1].y(), points[2].y()); in quadraticBezierCalculation() 322 static bool subdividePoints(const SkPoint* points, bezierCalculation bezierFunction, in subdividePoints() argument [all …]
|
/frameworks/base/libs/hwui/ |
D | PathParser.cpp | 187 std::vector<float> points; in getPathDataFromAsciiString() local 188 getFloats(&points, result, pathStr, start, end); in getPathDataFromAsciiString() 199 data->verbSizes.push_back(points.size()); in getPathDataFromAsciiString() 200 data->points.insert(data->points.end(), points.begin(), points.end()); in getPathDataFromAsciiString() 225 os << " " << data.points[start + j]; in dump() 232 for (size_t i = 0; i < data.points.size(); i++) { in dump() 233 os << data.points[i] << ", "; in dump()
|
D | SpotShadow.h | 40 static void computeLightPolygon(int points, const Vector3& lightCenter, 47 static void xsort(Vector2* points, int pointsLength); 48 static int hull(Vector2* points, int pointsLength, Vector2* retPoly); 52 static void swap(Vector2* points, int i, int j); 53 static void quicksortCirc(Vector2* points, int low, int high, const Vector2& center); 54 static void quicksortX(Vector2* points, int low, int high);
|
D | SpotShadow.cpp | 146 void SpotShadow::xsort(Vector2* points, int pointsLength) { in xsort() argument 150 std::sort(points, points + pointsLength, cmp); in xsort() 161 int SpotShadow::hull(Vector2* points, int pointsLength, Vector2* retPoly) { in hull() argument 162 xsort(points, pointsLength); in hull() 165 lUpper[0] = points[0]; in hull() 166 lUpper[1] = points[1]; in hull() 171 lUpper[lUpperSize] = points[i]; in hull() 186 lLower[0] = points[n - 1]; in hull() 187 lLower[1] = points[n - 2]; in hull() 192 lLower[lLowerSize] = points[i]; in hull() [all …]
|
D | PathTessellator.cpp | 794 const float* points, int count, Rect& bounds) { in instanceVertices() argument 795 bounds.set(points[0], points[1], points[0], points[1]); in instanceVertices() 802 bounds.expandToCover(points[i + 0], points[i + 1]); in instanceVertices() 803 dstBuffer.copyInto<TYPE>(srcBuffer, points[i + 0], points[i + 1]); in instanceVertices() 808 void PathTessellator::tessellatePoints(const float* points, int count, const SkPaint* paint, in tessellatePoints() argument 836 instanceVertices<Vertex>(tempBuffer, vertexBuffer, points, count, bounds); in tessellatePoints() 840 instanceVertices<AlphaVertex>(tempBuffer, vertexBuffer, points, count, bounds); in tessellatePoints() 849 void PathTessellator::tessellateLines(const float* points, int count, const SkPaint* paint, in tessellateLines() argument 869 bounds.set(points[0], points[1], points[0], points[1]); in tessellateLines() 871 Vertex::set(&(tempVerticesData[0]), points[i + 0], points[i + 1]); in tessellateLines() [all …]
|
D | RecordedOp.h | 280 LinesOp(BASE_PARAMS, const float* points, const int floatCount) in LinesOp() 282 , points(points) in LinesOp() 284 const float* points; member 310 PointsOp(BASE_PARAMS, const float* points, const int floatCount) in PointsOp() 312 , points(points) in PointsOp() 314 const float* points; member
|
D | RecordingCanvas.cpp | 264 static Rect calcBoundsOfPoints(const float* points, int floatCount) { in calcBoundsOfPoints() argument 265 Rect unmappedBounds(points[0], points[1], points[0], points[1]); in calcBoundsOfPoints() 267 unmappedBounds.expandToCover(points[i], points[i + 1]); in calcBoundsOfPoints() 273 void RecordingCanvas::drawPoints(const float* points, int floatCount, const SkPaint& paint) { in drawPoints() argument 278 calcBoundsOfPoints(points, floatCount), in drawPoints() 281 refPaint(&paint), refBuffer<float>(points, floatCount), floatCount)); in drawPoints() 284 void RecordingCanvas::drawLines(const float* points, int floatCount, const SkPaint& paint) { in drawLines() argument 289 calcBoundsOfPoints(points, floatCount), in drawLines() 292 refPaint(&paint), refBuffer<float>(points, floatCount), floatCount)); in drawLines()
|
D | RecordingCanvas.h | 152 float points[2] = { x, y }; in drawPoint() local 153 drawPoints(points, 2, paint); in drawPoint() 155 virtual void drawPoints(const float* points, int floatCount, const SkPaint& paint) override; 158 float points[4] = { startX, startY, stopX, stopY }; in drawLine() local 159 drawLines(points, 4, paint); in drawLine() 161 virtual void drawLines(const float* points, int floatCount, const SkPaint& paint) override;
|
D | DisplayListCanvas.h | 173 float points[2] = { x, y }; in drawPoint() local 174 drawPoints(points, 2, paint); in drawPoint() 176 virtual void drawPoints(const float* points, int count, const SkPaint& paint) override; 179 float points[4] = { startX, startY, stopX, stopY }; in drawLine() local 180 drawLines(points, 4, paint); in drawLine() 182 virtual void drawLines(const float* points, int count, const SkPaint& paint) override;
|
D | PathTessellator.h | 91 static void tessellatePoints(const float* points, int count, const SkPaint* paint, 105 static void tessellateLines(const float* points, int count, const SkPaint* paint,
|
D | SkiaCanvas.cpp | 118 virtual void drawPoints(const float* points, int count, const SkPaint& paint) override; 121 virtual void drawLines(const float* points, int count, const SkPaint& paint) override; 186 void drawPoints(const float* points, int count, const SkPaint& paint, 545 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint, in drawPoints() argument 551 pts[i].set(points[0], points[1]); in drawPoints() 552 points += 2; in drawPoints() 562 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint) { in drawPoints() argument 563 this->drawPoints(points, count, paint, SkCanvas::kPoints_PointMode); in drawPoints() 571 void SkiaCanvas::drawLines(const float* points, int count, const SkPaint& paint) { in drawLines() argument 572 this->drawPoints(points, count, paint, SkCanvas::kLines_PointMode); in drawLines()
|
D | DisplayListCanvas.cpp | 406 void DisplayListCanvas::drawLines(const float* points, int count, const SkPaint& paint) { in drawLines() argument 407 points = refBuffer<float>(points, count); in drawLines() 409 addDrawOp(new (alloc()) DrawLinesOp(points, count, refPaint(&paint))); in drawLines() 412 void DisplayListCanvas::drawPoints(const float* points, int count, const SkPaint& paint) { in drawPoints() argument 413 points = refBuffer<float>(points, count); in drawPoints() 415 addDrawOp(new (alloc()) DrawPointsOp(points, count, refPaint(&paint))); in drawPoints()
|
D | DisplayListOp.h | 236 DrawBoundedOp(const float* points, int count, const SkPaint* paint) in DrawBoundedOp() argument 237 : DrawOp(paint), mLocalBounds(points[0], points[1], points[0], points[1]) { in DrawBoundedOp() 239 mLocalBounds.left = std::min(mLocalBounds.left, points[i]); in DrawBoundedOp() 240 mLocalBounds.right = std::max(mLocalBounds.right, points[i]); in DrawBoundedOp() 241 mLocalBounds.top = std::min(mLocalBounds.top, points[i + 1]); in DrawBoundedOp() 242 mLocalBounds.bottom = std::max(mLocalBounds.bottom, points[i + 1]); in DrawBoundedOp() 1213 DrawLinesOp(const float* points, int count, const SkPaint* paint) in DrawLinesOp() argument 1214 : DrawBoundedOp(points, count, paint), in DrawLinesOp() 1215 mPoints(points), mCount(count) { in DrawLinesOp() 1243 DrawPointsOp(const float* points, int count, const SkPaint* paint) in DrawPointsOp() argument [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 205 float[] points = asCoords(); in transformed() local 206 matrix.mapPoints(points); in transformed() 207 return new Quad(points); in transformed() 333 private Quad(float[] points) { in Quad() argument 334 mTopLeft = new PointF(points[0], points[1]); in Quad() 335 mTopRight = new PointF(points[2], points[3]); in Quad() 336 mBottomLeft = new PointF(points[4], points[5]); in Quad() 337 mBottomRight = new PointF(points[6], points[7]); in Quad()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | CachedPathIteratorFactory.java | 55 float[] points = new float[6]; in CachedPathIteratorFactory() local 57 int type = iterator.currentSegment(points); in CachedPathIteratorFactory() 62 System.arraycopy(points, 0, itemPoints, 0, nPoints); in CachedPathIteratorFactory() 350 float[] points = new float[8]; in next() local 353 points[0] = points[1] = 0f; in next() 355 getShapeEndPoint(mTypes[mNextIndex - 1], mCoordinates[mNextIndex - 1], points); in next() 358 System.arraycopy(mCoordinates[mNextIndex], 0, points, 2, in next() 363 cubicCurveSegment(points, t0, 1f); in next() 365 quadCurveSegment(points, t0, 1f); in next() 367 System.arraycopy(points, 2, mCurrentCoords, 0, mCoordinates[mNextIndex].length); in next()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | BatteryInfo.java | 51 SparseIntArray points = new SparseIntArray(); in bindHistory() 63 points.put((int) time, record.batteryLevel); in bindHistory() 68 if (points.size() > 1) { in bindHistory() 69 view.addPath(points); in bindHistory() 71 points.clear(); in bindHistory() 76 if (points.size() > 1) { in bindHistory() 77 view.addPath(points); in bindHistory()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | VectorDrawableTests.cpp | 331 for (size_t i = 0; i < toPathData.points.size(); i++) { in TEST() 332 toPathData.points[i]++; in TEST() 341 for (size_t i = 0; i < outData.points.size(); i++) { in TEST() 342 float expectedResult = fromPathData.points[i] * (1.0 - fraction) + in TEST() 343 toPathData.points[i] * fraction; in TEST() 344 EXPECT_TRUE(MathUtils::areEqual(expectedResult, outData.points[i])); in TEST()
|
D | BakedOpDispatcherTests.cpp | 145 const float points[4] = {0.5, 0.5, 1.0, 1.0}; in RENDERTHREAD_TEST() local 146 PointsOp antiAliasedPointsOp(bounds, Matrix4::identity(), nullptr, &aaPaint, points, 4); in RENDERTHREAD_TEST() 149 PointsOp pointsOp(bounds, Matrix4::identity(), nullptr, &paint, points, 4); in RENDERTHREAD_TEST() 153 LinesOp antiAliasedLinesOp(bounds, Matrix4::identity(), nullptr, &aaPaint, points, 4); in RENDERTHREAD_TEST() 156 LinesOp linesOp(bounds, Matrix4::identity(), nullptr, &paint, points, 4); in RENDERTHREAD_TEST()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | UsageGraph.java | 117 public void addPath(SparseIntArray points) { in addPath() argument 118 for (int i = 0; i < points.size(); i++) { in addPath() 119 mPaths.put(points.keyAt(i), points.valueAt(i)); in addPath() 121 mPaths.put(points.keyAt(points.size() - 1) + 1, PATH_DELIM); in addPath()
|
/frameworks/rs/api/ |
D | rs_vector_math.spec | 70 summary: Distance between two points 72 Compute the distance between two points. 122 summary: Approximate distance between two points 124 Computes the approximate distance between two points. 205 summary: Approximate distance between two points 207 Computes the approximate distance between two points.
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | DiagSymbolResolutions.inc | 27 "indirect symbol %0 points to a common symbol", 28 "indirect symbol %0 points to a common symbol") 31 "indirect symbol %0 points to a undefined symbol",
|