Searched refs:points (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java141 float[] strokepoints = stroke.points;
262 * points.
265 * @param numPoints the number of points
266 * @return the sampled points in the form of [x1, y1, x2, y2, ..., xn, yn]
273 float[] pts = stroke.points;
325 * Calculates the centroid of a set of points.
327 * @param points the points in the form of [x1, y1, x2, y2, ..., xn, yn]
330 static float[] computeCentroid(float[] points) { argument
333 int count = points
352 computeCoVariance(float[] points) argument
376 computeTotalLength(float[] points) argument
387 computeStraightness(float[] points) argument
394 computeStraightness(float[] points, float totalLen) argument
499 computeOrientedBoundingBox(float[] points, float[] centroid) argument
563 rotate(float[] points, float angle) argument
576 translate(float[] points, float dx, float dy) argument
585 scale(float[] points, float sx, float sy) argument
[all...]
H A DGestureStroke.java31 * consists of a sequence of timed points. One or multiple strokes form a gesture.
39 public final float[] points; field in class:GestureStroke
45 * A constructor that constructs a gesture stroke from a list of gesture points.
47 * @param points
49 public GestureStroke(ArrayList<GesturePoint> points) { argument
50 final int count = points.size();
59 final GesturePoint p = points.get(i);
80 this.points = tmpPoints;
91 points = pts.clone();
97 return new GestureStroke(boundingBox, length, points, timestamp
[all...]
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
H A DFountainRS.java41 ScriptField_Point points = new ScriptField_Point(mRS, PART_COUNT);//
45 smb.addVertexAllocation(points.getAllocation());
51 mScript.bind_point(points);
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
H A DFountainRS.java41 ScriptField_Point points = new ScriptField_Point(mRS, PART_COUNT);//
45 smb.addVertexAllocation(points.getAllocation());
51 mScript.bind_point(points);
/frameworks/base/libs/hwui/
H A DSpotShadow.h75 static void computeLightPolygon(int points, const Vector3& lightCenter,
82 static void xsort(Vector2* points, int pointsLength);
83 static int hull(Vector2* points, int pointsLength, Vector2* retPoly);
88 static void swap(Vector2* points, int i, int j);
89 static void quicksortCirc(Vector2* points, int low, int high, const Vector2& center);
90 static void quicksortX(Vector2* points, int low, int high);
H A DPathTessellator.h57 * Populates a VertexBuffer with a tessellated approximation of points as a single triangle
60 * @param points The center vertices of the points to be drawn
62 * @param paint The paint the points will be drawn with indicating AA, stroke width & cap
63 * @param transform The transform the points will be drawn with, used to drive stretch-aware path
67 static void tessellatePoints(const float* points, int count, const SkPaint* paint,
74 * @param points Pairs of endpoints defining the lines to be drawn
77 * @param transform The transform the points will be drawn with, used to drive stretch-aware path
81 static void tessellateLines(const float* points, int count, const SkPaint* paint,
H A DSpotShadow.cpp104 * Calculate the intersection of a ray with the line segment defined by two points.
138 * Sort points by their X coordinates
140 * @param points the points as a Vector2 array.
143 void SpotShadow::xsort(Vector2* points, int pointsLength) { argument
144 quicksortX(points, 0, pointsLength - 1);
150 * @param points the points as a Vector2 array.
153 * @return the number of points in the polygon 0 if no intersection
155 int SpotShadow::hull(Vector2* points, in argument
373 swap(Vector2* points, int i, int j) argument
382 quicksortCirc(Vector2* points, int low, int high, const Vector2& center) argument
412 quicksortX(Vector2* points, int low, int high) argument
541 computeLightPolygon(int points, const Vector3& lightCenter, float size, Vector3* ret) argument
[all...]
H A DPathTessellator.cpp165 * Outset the bounds of point data (for line endpoints or points) to account for stroke
187 // zig zag between all previous points on the inside of the hull to create a
351 // generate alpha points - fill Alpha vertex gaps in between each point with
385 // zig zag between all previous points on the inside of the hull to create a
488 //copy most recent two points to first two points
552 * 'middlePts' is (number of points in the unclosed input vertex list, minus 2) times two
794 const float* points, int count, Rect& bounds) {
795 bounds.set(points[0], points[
793 instanceVertices(VertexBuffer& srcBuffer, VertexBuffer& dstBuffer, const float* points, int count, Rect& bounds) argument
808 tessellatePoints(const float* points, int count, const SkPaint* paint, const mat4& transform, VertexBuffer& vertexBuffer) argument
850 tessellateLines(const float* points, int count, const SkPaint* paint, const mat4& transform, VertexBuffer& vertexBuffer) argument
[all...]
H A DDisplayListRenderer.cpp339 status_t DisplayListRenderer::drawLines(const float* points, int count, const SkPaint* paint) { argument
340 points = refBuffer<float>(points, count);
343 addDrawOp(new (alloc()) DrawLinesOp(points, count, paint));
347 status_t DisplayListRenderer::drawPoints(const float* points, int count, const SkPaint* paint) { argument
348 points = refBuffer<float>(points, count);
351 addDrawOp(new (alloc()) DrawPointsOp(points, count, paint));
H A DRenderer.h199 virtual status_t drawLines(const float* points, int count, const SkPaint* paint) = 0;
200 virtual status_t drawPoints(const float* points, int count, const SkPaint* paint) = 0;
H A DDisplayListOp.h243 // Calculates bounds as smallest rect encompassing all points
246 DrawBoundedOp(const float* points, int count, const SkPaint* paint) argument
247 : DrawOp(paint), mLocalBounds(points[0], points[1], points[0], points[1]) {
249 mLocalBounds.left = fminf(mLocalBounds.left, points[i]);
250 mLocalBounds.right = fmaxf(mLocalBounds.right, points[i]);
251 mLocalBounds.top = fminf(mLocalBounds.top, points[i + 1]);
252 mLocalBounds.bottom = fmaxf(mLocalBounds.bottom, points[
1258 DrawLinesOp(const float* points, int count, const SkPaint* paint) argument
1288 DrawPointsOp(const float* points, int count, const SkPaint* paint) argument
[all...]
H A DDisplayListRenderer.h138 virtual status_t drawLines(const float* points, int count, const SkPaint* paint);
139 virtual status_t drawPoints(const float* points, int count, const SkPaint* paint);
H A DOpenGLRenderer.cpp2473 status_t OpenGLRenderer::drawLines(const float* points, int count, const SkPaint* paint) { argument
2479 PathTessellator::tessellateLines(points, count, paint, *currentTransform(), buffer);
2490 status_t OpenGLRenderer::drawPoints(const float* points, int count, const SkPaint* paint) { argument
2496 PathTessellator::tessellatePoints(points, count, paint, *currentTransform(), buffer);
3151 float points[pointsCount]; local
3156 points[currentPoint++] = left;
3157 points[currentPoint++] = top;
3158 points[currentPoint++] = left + underlineWidth;
3159 points[currentPoint++] = top;
3164 points[currentPoin
[all...]
H A DOpenGLRenderer.h196 virtual status_t drawLines(const float* points, int count, const SkPaint* paint);
197 virtual status_t drawPoints(const float* points, int count, const SkPaint* paint);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java27 * A Quad instance holds 4 points that define its shape. The points may represent any rectangle that
84 * Return a Quad that spans the specified points and height.
86 * The returned Quad has the specified top-left and top-right points, and the specified height
92 * @return Quad that spans the specified points and height.
137 // We only use the first 3 points as they sufficiently specify the transform
205 float[] points = asCoords();
206 matrix.mapPoints(points);
207 return new Quad(points);
241 * This method moves the corner points o
333 Quad(float[] points) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp274 typedef SkPoint (*bezierCalculation)(float t, const SkPoint* points);
309 static SkPoint cubicBezierCalculation(float t, const SkPoint* points) { argument
310 float x = cubicCoordinateCalculation(t, points[0].x(), points[1].x(),
311 points[2].x(), points[3].x());
312 float y = cubicCoordinateCalculation(t, points[0].y(), points[1].y(),
313 points[2].y(), points[
322 quadraticBezierCalculation(float t, const SkPoint* points) argument
330 subdividePoints(const SkPoint* points, bezierCalculation bezierFunction, float t0, const SkPoint &p0, float t1, const SkPoint &p1, float& midT, SkPoint &midPoint, float errorSquared) argument
351 addBezier(const SkPoint* points, bezierCalculation bezierFunction, std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, float errorSquared, bool doubleCheckDivision) argument
394 createVerbSegments(SkPath::Verb verb, const SkPoint* points, std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, float errorSquared) argument
433 SkPoint points[4]; local
[all...]
H A DSkiaCanvas.cpp95 virtual void drawPoints(const float* points, int count, const SkPaint& paint);
98 virtual void drawLines(const float* points, int count, const SkPaint& paint);
139 void drawPoints(const float* points, int count, const SkPaint& paint,
483 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint, argument
486 count >>= 1; // now it is the number of points
490 pts[i].set(points[0], points[1]);
491 points += 2;
501 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint) { argument
502 this->drawPoints(points, coun
510 drawLines(const float* points, int count, const SkPaint& paint) argument
[all...]
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
H A DFountainFboRS.java44 ScriptField_Point points = new ScriptField_Point(mRS, PART_COUNT);
47 smb.addVertexAllocation(points.getAllocation());
53 mScript.bind_point(points);
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.h64 const std::vector<Point>& points() const { return points_; } function in class:android::filterfw::Quad
/frameworks/base/include/private/graphics/
H A DCanvas.h94 virtual void drawPoints(const float* points, int count, const SkPaint& paint) = 0;
97 virtual void drawLines(const float* points, int count, const SkPaint& paint) = 0;
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.h64 const std::vector<Point>& points() const { return points_; } function in class:android::filterfw::Quad
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DPointCloud.java203 ArrayList<Point> points = mPointCloud;
206 for (int i = 0; i < points.size(); i++) {
207 Point point = points.get(i);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
H A DomxVCM4P2_DecodePadMV_PVOP_s.s45 ; * so that it points to the current byte in the bit
47 ; * [out] pBitOffset *pBitOffset is updated so that it points to the
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p2/src/
H A DomxVCM4P2_DecodePadMV_PVOP_s.s45 ; * so that it points to the current byte in the bit
47 ; * [out] pBitOffset *pBitOffset is updated so that it points to the
/frameworks/base/core/jni/
H A Dandroid_view_GLES20Canvas.cpp561 jlong rendererPtr, jfloatArray points, jint offset, jint count, jlong paintPtr) {
563 jfloat* storage = env->GetFloatArrayElements(points, NULL);
566 env->ReleaseFloatArrayElements(points, storage, 0);
578 jlong rendererPtr, jfloatArray points, jint offset, jint count, jlong paintPtr) {
580 jfloat* storage = env->GetFloatArrayElements(points, NULL);
583 env->ReleaseFloatArrayElements(points, storage, 0);
560 android_view_GLES20Canvas_drawPoints(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloatArray points, jint offset, jint count, jlong paintPtr) argument
577 android_view_GLES20Canvas_drawLines(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloatArray points, jint offset, jint count, jlong paintPtr) argument

Completed in 700 milliseconds

12