Home
last modified time | relevance | path

Searched refs:points (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/libs/hwui/utils/
DVectorDrawableUtils.cpp35 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/
DGestureUtils.java141 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 …]
DGestureStroke.java39 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/packages/SystemUI/src/com/android/systemui/assist/ui/
DCornerPathRenderer.java61 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/base/libs/hwui/
DPathParser.cpp157 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 …]
DPathParser.h45 static void validateVerbAndPoints(char verb, size_t points, ParseResult* result);
DSkiaCanvas.cpp472 void SkiaCanvas::drawPoints(const float* points, int count, const Paint& paint, in drawPoints() argument
479 pts[i].set(points[0], points[1]); in drawPoints()
480 points += 2; in drawPoints()
490 void SkiaCanvas::drawPoints(const float* points, int count, const Paint& paint) { in drawPoints() argument
491 this->drawPoints(points, count, paint, SkCanvas::kPoints_PointMode); in drawPoints()
500 void SkiaCanvas::drawLines(const float* points, int count, const Paint& paint) { in drawLines() argument
502 this->drawPoints(points, count, paint, SkCanvas::kLines_PointMode); in drawLines()
DSkiaCanvas.h110 virtual void drawPoints(const float* points, int count, const Paint& paint) override;
113 virtual void drawLines(const float* points, int count, const Paint& paint) override;
218 void drawPoints(const float* points, int count, const Paint& paint, SkCanvas::PointMode mode);
/frameworks/base/libs/hwui/jni/
DPath.cpp235 typedef SkPoint (*bezierCalculation)(float t, const SkPoint* points);
270 static SkPoint cubicBezierCalculation(float t, const SkPoint* points) { in cubicBezierCalculation() argument
271 float x = cubicCoordinateCalculation(t, points[0].x(), points[1].x(), in cubicBezierCalculation()
272 points[2].x(), points[3].x()); in cubicBezierCalculation()
273 float y = cubicCoordinateCalculation(t, points[0].y(), points[1].y(), in cubicBezierCalculation()
274 points[2].y(), points[3].y()); in cubicBezierCalculation()
283 static SkPoint quadraticBezierCalculation(float t, const SkPoint* points) { in quadraticBezierCalculation() argument
284 float x = quadraticCoordinateCalculation(t, points[0].x(), points[1].x(), points[2].x()); in quadraticBezierCalculation()
285 float y = quadraticCoordinateCalculation(t, points[0].y(), points[1].y(), points[2].y()); in quadraticBezierCalculation()
291 static bool subdividePoints(const SkPoint* points, bezierCalculation bezierFunction, in subdividePoints() argument
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DDepthPhotoProcessor.cpp242 inline void unpackDepth16(uint16_t value, std::vector<float> *points /*out*/, in unpackDepth16() argument
251 points->push_back(point); in unpackDepth16()
269 void rotate0AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate0AndUnpack() argument
273 unpackDepth16(inputFrame.mDepthMapBuffer[i*inputFrame.mDepthMapStride + j], points, in rotate0AndUnpack()
281 void rotate90AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate90AndUnpack() argument
285 unpackDepth16(inputFrame.mDepthMapBuffer[j*inputFrame.mDepthMapStride + i], points, in rotate90AndUnpack()
292 void rotate180AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate180AndUnpack() argument
296 unpackDepth16(inputFrame.mDepthMapBuffer[i*inputFrame.mDepthMapStride + j], points, in rotate180AndUnpack()
304 void rotate270AndUnpack(DepthPhotoInputFrame inputFrame, std::vector<float> *points /*out*/, in rotate270AndUnpack() argument
308 unpackDepth16(inputFrame.mDepthMapBuffer[j*inputFrame.mDepthMapStride + i], points, in rotate270AndUnpack()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java205 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/packages/SystemUI/src/com/android/systemui/classifier/
DZigZagClassifier.java208 List<Point> points = new ArrayList<>(); in rotateMotionEvents() local
219 points.add(new Point((int) rotatedX, (int) rotatedY)); in rotateMotionEvents()
223 Point firstPoint = points.get(0); in rotateMotionEvents()
224 Point lastPoint = points.get(points.size() - 1); in rotateMotionEvents()
234 return points; in rotateMotionEvents()
/frameworks/base/libs/hwui/tests/unit/
DVectorDrawableTests.cpp339 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/
Drs_vector_math.spec70 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/
DDiagSymbolResolutions.inc27 "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/
DAccessPointTest.java245 ArrayList<AccessPoint> points = new ArrayList<AccessPoint>();
246 points.add(lastname);
247 points.add(firstName);
248 points.add(highLevelAndReachable);
249 points.add(saved);
250 points.add(reachableAndMinLevel);
251 points.add(active);
253 Collections.sort(points);
254 assertThat(points.indexOf(active)).isLessThan(points.indexOf(reachableAndMinLevel));
255 assertThat(points.indexOf(reachableAndMinLevel)).isLessThan(points.indexOf(saved));
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DEllipseOverlapDetector.kt35 val points = calculateSensorPoints(nativeSensorBounds) in isGoodOverlap() constant
36 return points.count { checkPoint(it, touchData) } >= neededPoints in isGoodOverlap()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java742 boolean continued, long interval, Point... points) { in createSimpleGestureFromPoints() argument
743 List<GestureStep> gesture = new ArrayList<>(points.length); in createSimpleGestureFromPoints()
746 for (int i = 0; i < points.length; i++) { in createSimpleGestureFromPoints()
747 touchPoints[0].mX = points[i].x; in createSimpleGestureFromPoints()
748 touchPoints[0].mY = points[i].y; in createSimpleGestureFromPoints()
752 touchPoints[0].mIsEndOfPath = ((i == points.length - 1) && !continued); in createSimpleGestureFromPoints()
818 private static TypeSafeMatcher<MotionEvent> containsPoints(final Point... points) {
823 for (int i = 0; i < points.length; i++) {
825 for (int j = 0; j < points.length; j++) {
827 if ((points[i].x == coords.x) && (points[i].y == coords.y)) {
[all …]
/frameworks/base/libs/hwui/canvas/
DCanvasOps.h186 sk_sp<Points> points;
191 points->data(),
300 sk_sp<Points> points;
305 points->data(),
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java659 private void moveEachPointers(MotionEvent event, PointF... points) { in moveEachPointers() argument
660 final float[] x = new float[points.length]; in moveEachPointers()
661 final float[] y = new float[points.length]; in moveEachPointers()
662 for (int i = 0; i < points.length; i++) { in moveEachPointers()
663 x[i] = event.getX(i) + points[i].x; in moveEachPointers()
664 y[i] = event.getY(i) + points[i].y; in moveEachPointers()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.cpp69 Vector3 points[] = { Vector3 {bounds.fLeft, bounds.fTop, 0}, in intersects() local
75 for (auto& point : points) { in intersects()
/frameworks/native/services/inputflinger/tests/
DPreferStylusOverTouch_test.cpp42 const std::vector<PointerData>& points, in generateMotionArgs() argument
44 size_t pointerCount = points.size(); in generateMotionArgs()
61 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, points[i].x); in generateMotionArgs()
62 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, points[i].y); in generateMotionArgs()
/frameworks/rs/script_api/include/
Drs_vector_math.rsh63 * distance: Distance between two points
65 * Compute the distance between two points.
139 * fast_distance: Approximate distance between two points
141 * Computes the approximate distance between two points.
271 * native_distance: Approximate distance between two points
273 * Computes the approximate distance between two points.
/frameworks/wilhelm/src/
DREADME.txt6 * Initial entry points
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.h64 const std::vector<Point>& points() const { return points_; } in points() function

123