/frameworks/base/core/java/android/gesture/ |
GestureStroke.java | 31 * 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) { 50 final int count = points.size(); 59 final GesturePoint p = points.get(i); 79 this.points = tmpPoints; 90 points = pts.clone(); 96 return new GestureStroke(boundingBox, length, points, timestamps) 222 final ArrayList<GesturePoint> points = new ArrayList<GesturePoint>(count); local [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
Quad.java | 27 * 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(); local 206 matrix.mapPoints(points); 207 return new Quad(points); 241 * This method moves the corner points of the Quad outward along the diagonals that connec [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
GestureBot.java | 62 Point[] points = new Point[LONGPRESS_STEPS + TRAVELING_STEPS]; local 66 points[i] = new Point(startCoord.centerX(), startCoord.centerY()); 73 points[i + LONGPRESS_STEPS] = new Point(newX, newY); 75 mDevice.swipe(points, STEPS_INBETWEEN_POINTS);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
SplineMath.java | 19 double[][] points = new double[mPoints.length][2]; local 22 points[i][0] = mPoints[i][0]; 23 points[i][1] = mPoints[i][1]; 26 double[] derivatives = solveSystem(points); 27 float start = (float) points[0][0]; 28 float end = (float) (points[points.length - 1][0]); 30 curve[0][0] = (float) (points[0][0]); 31 curve[0][1] = (float) (points[0][1]); 33 curve[last][0] = (float) (points[points.length - 1][0]) [all...] |
/packages/apps/Settings/src/com/android/settings/datausage/ |
ChartDataUsagePreference.java | 95 SparseIntArray points = new SparseIntArray(); local 104 points.put(0, 0); 115 points.put(toInt(startTime - mStart) - 1, -1); 117 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); 118 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); 120 if (points.size() > 1) { 121 chart.addPath(points);
|
/external/freetype/src/base/ |
ftoutln.c | 97 limit = outline->points + last; 99 v_start = outline->points[first]; 103 v_last = outline->points[last]; 109 point = outline->points + first; 129 /* if both first and last points are conic, */ 319 if ( FT_NEW_ARRAY( anoutline->points, numPoints ) || 420 FT_ARRAY_COPY( target->points, source->points, source->n_points ); 450 FT_FREE( outline->points ); 495 FT_Vector* vec = outline->points; 913 FT_Vector* points; local 1048 FT_Vector* points; local [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-layout-gdef-table.hh | 62 const AttachPoint &points = this+attachPoint[index]; local 65 const UINT16 *array = points.sub_array (start_offset, point_count); 71 return points.len; 431 * attachment points--from beginning 434 ligCaretList; /* Offset to list of positioning points
|
/external/opencv/cv/src/ |
cvrotcalipers.cpp | 65 // points - convex hull vertices ( any orientation ) 70 // left, bottom, right, top - indexes of extremal points 72 // In case CV_CALIPERS_MAXDIST it points to float value - 93 icvRotatingCalipers( CvPoint2D32f* points, int n, int mode, float* out ) 113 CvPoint2D32f pt0 = points[0]; 134 CvPoint2D32f pt = points[(i+1) & (i+1 < n ? -1 : 0)]; 250 float dx = points[seq[opposite_el]].x - points[seq[main_element]].x; 251 float dy = points[seq[opposite_el]].y - points[seq[main_element]].y 352 CvPoint2D32f* points = 0; local [all...] |
/external/opencv/cvaux/src/ |
cv3dtracker.cpp | 82 CvPoint3D32f *object_points = NULL; // real-world coordinates of checkerboard points 83 CvPoint2D32f *points = NULL; // 2d coordinates of checkerboard points as seen by a camera local 128 CV_CALL(points = (CvPoint2D32f *)cvAlloc(num_points * sizeof(CvPoint2D32f))); 130 // fill in the real-world coordinates of the checkerboard points 172 etalon_size, points, &count) != 0; 176 // If found is true, it means all the points were found (count = num_points). 177 // If found is false but count is non-zero, it means that not all points were found. 179 cvFindCornerSubPix(img, points, count, cvSize(5,5), cvSize(-1,-1), 187 points[i].y = samples[c]->height - 1 - points[i].y [all...] |
/external/pdfium/core/fxcrt/ |
fx_coordinates.cpp | 337 CFX_PointF points[] = { local 340 points[i] = Transform(points[i]); 342 float new_right = points[0].x; 343 float new_left = points[0].x; 344 float new_top = points[0].y; 345 float new_bottom = points[0].y; 347 new_right = std::max(new_right, points[i].x); 348 new_left = std::min(new_left, points[i].x); 349 new_top = std::max(new_top, points[i].y) [all...] |
/external/skia/experimental/svg/model/ |
SkSVGDOM.cpp | 183 SkSVGPointsType points; local 185 if (!parser.parsePoints(&points)) { 189 node->setAttribute(attr, SkSVGPointsValue(points)); 323 { "points" , { SkSVGAttribute::kPoints , SetPointsAttribute }},
|
/external/skia/gm/ |
reveal.cpp | 260 SkPoint points[5] = { local 271 fPath.moveTo(r.centerX() + points[0].fX * width, r.centerY() + points[0].fY * height); 272 fPath.lineTo(r.centerX() + points[1].fX * width, r.centerY() + points[1].fY * height); 273 fPath.lineTo(r.centerX() + points[2].fX * width, r.centerY() + points[2].fY * height); 274 fPath.lineTo(r.centerX() + points[3].fX * width, r.centerY() + points[3].fY * height); 275 fPath.lineTo(r.centerX() + points[4].fX * width, r.centerY() + points[4].fY * height) [all...] |
/external/skia/include/private/ |
SkPathRef.h | 25 * Holds the path verbs and points. It is versioned by a generation ID. None of its public methods 26 * modify the contents. To modify or append to the verbs/points wrap the SkPathRef in an 32 * The points and verbs are stored in a single allocation. The points are at the begining of the 33 * allocation while the verbs are stored at end of the allocation, in reverse order. Thus the points 50 * Returns the array of points. 52 SkPoint* points() { return fPathRef->getPoints(); } function in class:final::Editor 53 const SkPoint* points() const { return fPathRef->points(); } function in class:final::Editor 56 * Gets the ith point. Shortcut for this->points() + 266 const SkPoint* points() const { return fPoints; } function in class:final [all...] |
/external/skqp/experimental/svg/model/ |
SkSVGDOM.cpp | 183 SkSVGPointsType points; local 185 if (!parser.parsePoints(&points)) { 189 node->setAttribute(attr, SkSVGPointsValue(points)); 323 { "points" , { SkSVGAttribute::kPoints , SetPointsAttribute }},
|
/external/skqp/gm/ |
reveal.cpp | 260 SkPoint points[5] = { local 271 fPath.moveTo(r.centerX() + points[0].fX * width, r.centerY() + points[0].fY * height); 272 fPath.lineTo(r.centerX() + points[1].fX * width, r.centerY() + points[1].fY * height); 273 fPath.lineTo(r.centerX() + points[2].fX * width, r.centerY() + points[2].fY * height); 274 fPath.lineTo(r.centerX() + points[3].fX * width, r.centerY() + points[3].fY * height); 275 fPath.lineTo(r.centerX() + points[4].fX * width, r.centerY() + points[4].fY * height) [all...] |
/external/skqp/include/private/ |
SkPathRef.h | 25 * Holds the path verbs and points. It is versioned by a generation ID. None of its public methods 26 * modify the contents. To modify or append to the verbs/points wrap the SkPathRef in an 32 * The points and verbs are stored in a single allocation. The points are at the begining of the 33 * allocation while the verbs are stored at end of the allocation, in reverse order. Thus the points 50 * Returns the array of points. 52 SkPoint* points() { return fPathRef->getPoints(); } function in class:final::Editor 53 const SkPoint* points() const { return fPathRef->points(); } function in class:final::Editor 56 * Gets the ith point. Shortcut for this->points() + 266 const SkPoint* points() const { return fPoints; } function in class:final [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
CachedPathIteratorFactory.java | 38 * float arrays store always points where the first element is X and the second is Y. 55 float[] points = new float[6]; local 57 int type = iterator.currentSegment(points); 62 System.arraycopy(points, 0, itemPoints, 0, nPoints); 156 // Calculate the points at t0 and t1 for the quadratic curves formed by (P0, P1, P2) and 198 * Returns the number of points stored in a coordinates array for the given segment type. 290 * Stores the coordinates array of the current segment. The number of points stored depends 350 float[] points = new float[8]; local 353 points[0] = points[1] = 0f [all...] |
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
FitDistanceWatchFaceService.java | 525 List<DataPoint> points = dailyTotalResult.getTotal().getDataPoints(); local 527 if (!points.isEmpty()) { 528 mDistanceTotal = points.get(0).getValue(Field.FIELD_DISTANCE).asFloat();
|
FitStepsWatchFaceService.java | 531 List<DataPoint> points = dailyTotalResult.getTotal().getDataPoints();; local 533 if (!points.isEmpty()) { 534 mStepsTotal = points.get(0).getValue(Field.FIELD_STEPS).asInt();
|
/external/deqp/modules/gles2/functional/ |
es2fRasterizationTests.cpp | 443 std::vector<PointSceneSpec::ScenePoint> points; local 456 generatePoints(m_iteration, drawBuffer, points); 473 scene.points.swap(points); [all...] |
/external/freetype/src/autofit/ |
afhints.c | 247 AF_Point point = hints->points + point_idx; 307 AF_Point points = hints->points; local 308 AF_Point limit = points + hints->num_points; 314 AF_DUMP(( "Table of points:\n" )); 326 for ( point = points; point < limit; point++ ) 328 int point_idx = AF_INDEX_NUM( point, points ); 414 AF_Point points = hints->points; local 446 AF_INDEX_NUM( seg->first, points ), 736 AF_Point points; local 1259 AF_Point points = hints->points; local 1510 AF_Point points = hints->points; local 1640 AF_Point points = hints->points; local [all...] |
afhints.h | 75 * A segment is a series of at least two consecutive points that are 158 * Touched points 168 * Segments are `round' or `flat', depending on the series of points 171 * points) are both conic or cubic control points. Otherwise, a 175 * Strong Points 177 * Experience has shown that points not part of an edge need to be 179 * are not part of the contour of those particular points. Typical 182 * - angle points (i.e., points where the `in' and `out' directio 346 AF_Point points; \/* points array *\/ member in struct:AF_GlyphHintsRec_ 367 AF_PointRec points[AF_POINTS_EMBEDDED]; member in struct:AF_GlyphHintsRec_::__anon20669 [all...] |
/external/libxcam/tests/ |
test-soft-image.cpp | 342 BowlModel::PointMap points; local 350 model.get_topview_rect_map (points, lut_w, lut_h); 354 mapper->set_lookup_table (points.data (), lut_w, lut_h);
|
/external/pdfium/core/fxge/ |
cfx_font.cpp | 85 std::vector<FX_PATHPOINT>& points = param->m_pPath->GetPoints(); local 86 size_t size = points.size(); 88 if (size >= 2 && points[size - 2].IsTypeAndOpen(FXPT_TYPE::MoveTo) && 89 points[size - 2].m_Point == points[size - 1].m_Point) { 92 if (size >= 4 && points[size - 4].IsTypeAndOpen(FXPT_TYPE::MoveTo) && 93 points[size - 3].IsTypeAndOpen(FXPT_TYPE::BezierTo) && 94 points[size - 3].m_Point == points[size - 4].m_Point && 95 points[size - 2].m_Point == points[size - 4].m_Point & [all...] |
/external/skia/src/core/ |
SkLiteDL.cpp | 362 auto points = pod<SkPoint>(this); local 364 c->drawPosText(text, bytes, points, paint); 670 void SkLiteDL::drawPatch(const SkPoint points[12], const SkColor colors[4], const SkPoint texs[4], 672 this->push<DrawPatch>(0, points, colors, texs, bmode, paint); 674 void SkLiteDL::drawPoints(SkCanvas::PointMode mode, size_t count, const SkPoint points[], 677 copy_v(pod, points,count);
|