/frameworks/base/libs/hwui/utils/ |
D | VectorDrawableUtils.cpp | 35 void addCommand(SkPath* outPath, char previousCmd, char cmd, const std::vector<float>* points, 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() 101 const std::vector<float>* points, size_t start, size_t end) { in addCommand() argument 152 currentX += points->at(k + 0); in addCommand() 153 currentY += points->at(k + 1); in addCommand() 158 outPath->rLineTo(points->at(k + 0), points->at(k + 1)); in addCommand() 160 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/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.nMoveTo(native_dst_path, points[0], points[1]); in native_getSegment() 197 Path_Delegate.nLineTo(native_dst_path, points[0], points[1]); in native_getSegment() 203 Path_Delegate.nCubicTo(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.nQuadTo(native_dst_path, points[0], points[1], in native_getSegment() 209 points[2], in native_getSegment() 210 points[3]); in native_getSegment()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | CornerPathRenderer.java | 61 List<PointF> points = shiftBy(getApproximatePoints(input), delta); in approximateInnerPath() local 62 return toPath(points); in approximateInnerPath() 90 private Path toPath(List<PointF> points) { in toPath() argument 92 if (points.size() > 0) { in toPath() 93 path.moveTo(points.get(0).x, points.get(0).y); in toPath() 94 for (PointF point : points.subList(1, points.size())) { in toPath() 101 private PointF normalAt(List<PointF> points, int index) { in normalAt() argument 106 PointF point = points.get(index); in normalAt() 107 PointF previousPoint = points.get(index - 1); in normalAt() 112 if (index == (points.size() - 1)) { in normalAt() [all …]
|
/frameworks/layoutlib/bridge/src/android/view/math/ |
D | Math3DHelper.java | 115 private static void xsort(float[] points, int pointsLength) { in xsort() argument 116 quicksortX(points, 0, pointsLength - 1); in xsort() 119 public static int hull(float[] points, int pointsLength, float[] retPoly) { in hull() argument 120 xsort(points, pointsLength); in hull() 123 lUpper[0] = points[0]; in hull() 124 lUpper[1] = points[1]; in hull() 125 lUpper[2] = points[2]; in hull() 126 lUpper[3] = points[3]; in hull() 131 lUpper[lUpperSize * 2 + 0] = points[i * 2 + 0]; in hull() 132 lUpper[lUpperSize * 2 + 1] = points[i * 2 + 1]; in hull() [all …]
|
/frameworks/base/libs/hwui/ |
D | PathParser.cpp | 157 void PathParser::validateVerbAndPoints(char verb, size_t points, PathParser::ParseResult* result) { in validateVerbAndPoints() argument 198 if (numberOfPointsExpected == 0 && points == 0) { in validateVerbAndPoints() 201 if (numberOfPointsExpected > 0 && points % numberOfPointsExpected == 0) { in validateVerbAndPoints() 212 std::to_string(points) + " float(s) are found. "; in validateVerbAndPoints() 237 std::vector<float> points; in getPathDataFromAsciiString() local 238 getFloats(&points, result, pathStr, start, end); in getPathDataFromAsciiString() 239 validateVerbAndPoints(pathStr[start], points.size(), result); in getPathDataFromAsciiString() 247 data->verbSizes.push_back(points.size()); in getPathDataFromAsciiString() 248 data->points.insert(data->points.end(), points.begin(), points.end()); in getPathDataFromAsciiString() 274 os << " " << data.points[start + j]; in dump() [all …]
|
D | SkiaCanvas.cpp | 457 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint, in drawPoints() argument 464 pts[i].set(points[0], points[1]); in drawPoints() 465 points += 2; in drawPoints() 474 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint) { in drawPoints() argument 475 this->drawPoints(points, count, *filterPaint(paint), SkCanvas::kPoints_PointMode); in drawPoints() 483 void SkiaCanvas::drawLines(const float* points, int count, const SkPaint& paint) { in drawLines() argument 485 this->drawPoints(points, count, *filterPaint(paint), SkCanvas::kLines_PointMode); in drawLines()
|
D | PathParser.h | 45 static void validateVerbAndPoints(char verb, size_t points, ParseResult* result);
|
/frameworks/base/core/jni/android/graphics/ |
D | Path.cpp | 237 typedef SkPoint (*bezierCalculation)(float t, const SkPoint* points); 272 static SkPoint cubicBezierCalculation(float t, const SkPoint* points) { in cubicBezierCalculation() argument 273 float x = cubicCoordinateCalculation(t, points[0].x(), points[1].x(), in cubicBezierCalculation() 274 points[2].x(), points[3].x()); in cubicBezierCalculation() 275 float y = cubicCoordinateCalculation(t, points[0].y(), points[1].y(), in cubicBezierCalculation() 276 points[2].y(), points[3].y()); in cubicBezierCalculation() 285 static SkPoint quadraticBezierCalculation(float t, const SkPoint* points) { in quadraticBezierCalculation() argument 286 float x = quadraticCoordinateCalculation(t, points[0].x(), points[1].x(), points[2].x()); in quadraticBezierCalculation() 287 float y = quadraticCoordinateCalculation(t, points[0].y(), points[1].y(), points[2].y()); in quadraticBezierCalculation() 293 static bool subdividePoints(const SkPoint* points, bezierCalculation bezierFunction, in subdividePoints() argument [all …]
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | DepthPhotoProcessor.cpp | 238 inline void unpackDepth16(uint16_t value, std::vector<float> *points /*out*/, in unpackDepth16() argument 247 points->push_back(point); in unpackDepth16() 265 void rotate0AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate0AndUnpack() argument 269 unpackDepth16(inputFrame.mDepthMapBuffer[i*inputFrame.mDepthMapStride + j], points, in rotate0AndUnpack() 277 void rotate90AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate90AndUnpack() argument 281 unpackDepth16(inputFrame.mDepthMapBuffer[j*inputFrame.mDepthMapStride + i], points, in rotate90AndUnpack() 288 void rotate180AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate180AndUnpack() argument 292 unpackDepth16(inputFrame.mDepthMapBuffer[i*inputFrame.mDepthMapStride + j], points, in rotate180AndUnpack() 300 void rotate270AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate270AndUnpack() argument 304 unpackDepth16(inputFrame.mDepthMapBuffer[j*inputFrame.mDepthMapStride + i], points, in rotate270AndUnpack() [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/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/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | ZigZagClassifier.java | 171 List<Point> points = new ArrayList<>(); in rotateMotionEvents() local 182 points.add(new Point((int) rotatedX, (int) rotatedY)); in rotateMotionEvents() 186 Point firstPoint = points.get(0); in rotateMotionEvents() 187 Point lastPoint = points.get(points.size() - 1); in rotateMotionEvents() 197 return points; in rotateMotionEvents()
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | SpotShadowVertexCalculator.java | 39 public static float[] calculateLight(float radius, int points, float x, float y, float height) { in calculateLight() argument 40 float[] ret = new float[points * 3]; in calculateLight() 41 for (int i = 0; i < points; i++) { in calculateLight() 42 double angle = 2 * i * Math.PI / points; in calculateLight()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | VectorDrawableTests.cpp | 339 for (size_t i = 0; i < toPathData.points.size(); i++) { in TEST() 340 toPathData.points[i]++; in TEST() 349 for (size_t i = 0; i < outData.points.size(); i++) { in TEST() 351 fromPathData.points[i] * (1.0 - fraction) + toPathData.points[i] * fraction; in TEST() 352 EXPECT_TRUE(MathUtils::areEqual(expectedResult, outData.points[i])); in TEST()
|
/frameworks/rs/script_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/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | TouchExplorerTest.java | 284 private void moveEachPointers(MotionEvent event, PointF... points) { in moveEachPointers() argument 285 final float[] x = new float[points.length]; in moveEachPointers() 286 final float[] y = new float[points.length]; in moveEachPointers() 287 for (int i = 0; i < points.length; i++) { in moveEachPointers() 288 x[i] = event.getX(i) + points[i].x; in moveEachPointers() 289 y[i] = event.getY(i) + points[i].y; in moveEachPointers()
|
D | MotionEventInjectorTest.java | 719 boolean continued, long interval, Point... points) { in createSimpleGestureFromPoints() argument 720 List<GestureStep> gesture = new ArrayList<>(points.length); in createSimpleGestureFromPoints() 723 for (int i = 0; i < points.length; i++) { in createSimpleGestureFromPoints() 724 touchPoints[0].mX = points[i].x; in createSimpleGestureFromPoints() 725 touchPoints[0].mY = points[i].y; in createSimpleGestureFromPoints() 729 touchPoints[0].mIsEndOfPath = ((i == points.length - 1) && !continued); in createSimpleGestureFromPoints() 845 private static TypeSafeMatcher<MotionEvent> containsPoints(final Point... points) { 850 for (int i = 0; i < points.length; i++) { 852 for (int j = 0; j < points.length; j++) { 854 if ((points[i].x == coords.x) && (points[i].y == coords.y)) { [all …]
|
/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",
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 233 ArrayList<AccessPoint> points = new ArrayList<AccessPoint>(); 234 points.add(lastname); 235 points.add(firstName); 236 points.add(highLevelAndReachable); 237 points.add(saved); 238 points.add(reachableAndMinLevel); 239 points.add(active); 241 Collections.sort(points); 242 assertThat(points.indexOf(active)).isLessThan(points.indexOf(reachableAndMinLevel)); 243 assertThat(points.indexOf(reachableAndMinLevel)).isLessThan(points.indexOf(saved)); [all …]
|
/frameworks/ml/nn/runtime/ |
D | libneuralnetworks.map.txt | 17 # This lists the entry points visible to applications that use the 18 # Neural Networks lib. Other entry points present in the library won't be
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaDisplayList.cpp | 56 Vector3 points[] = { Vector3 {bounds.fLeft, bounds.fTop, 0}, in intersects() local 62 for (auto& point : points) { in intersects()
|
/frameworks/opt/net/wifi/service/proto/src/ |
D | scorecard.proto | 31 // Describes a network, consisting of a collection of access points that share 34 // the access points of a network together in dumpsys output or similar. 81 // Records statistics gathered at various points in the life-cycle of
|
/frameworks/av/media/libmediametrics/ |
D | Android.bp | 33 // enumerate stable entry points, for apex use
|