Searched refs:point (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java57 float[] point = new float[2];
58 point[0] = -width / 2;
59 point[1] = height / 2;
63 matrix.mapPoints(point);
64 path.moveTo(point[0], point[1]);
66 point[0] = -width / 2;
67 point[1] = -height / 2;
68 matrix.mapPoints(point);
69 path.lineTo(point[
[all...]
H A DGestureUtils.java474 GesturePoint point = originalPoints.get(i);
476 points[index] = point.x;
477 points[index + 1] = point.y;
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A DPoint.java52 public Point plus(Point point) { argument
53 return this.plus(point.x, point.y);
60 public Point minus(Point point) { argument
61 return this.minus(point.x, point.y);
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DPointCloud.java178 public int getAlphaForPoint(Point point) { argument
180 float glowDistance = hypot(glowManager.x - point.x, glowManager.y - point.y);
188 float radius = hypot(point.x, point.y);
208 Point point = points.get(i);
210 point.radius / mOuterRadius);
211 final float px = point.x + mCenterX;
212 final float py = point.y + mCenterY;
213 int alpha = getAlphaForPoint(point);
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPoint.java43 * Set the point's x and y coordinates
51 * Negate the point's coordinates
59 * Offset the point's coordinates by dx, dy
67 * Returns true if the point's coordinates equal (x,y)
78 Point point = (Point) o;
80 if (x != point.x) return false;
81 if (y != point.y) return false;
107 * Write this point to the specified parcel. To restore a point from
109 * @param out The parcel to write the point'
[all...]
/frameworks/compile/mclinker/
H A Dmcld-host-build.mk10 -Werror=sequence-point \
H A Dmcld-device-build.mk19 -Werror=sequence-point \
/frameworks/base/media/java/android/media/
H A DFaceDetector.java54 * Sets the position of the mid-point between the eyes.
55 * @param point the PointF coordinates (float values) of the
56 * face's mid-point
58 public void getMidPoint(PointF point) { argument
60 point.set(mMidPointX, mMidPointY);
/frameworks/base/core/jni/android/graphics/
H A DHarfbuzzSkia.cpp84 // in Chromium. However, Harfbuzz wants them in 26.6 fixed point format.
114 static HB_Error getOutlinePoint(HB_Font hbFont, HB_Glyph glyph, int flags, hb_uint32 point, argument
128 if (point >= numPoints)
130 SkPoint* points = static_cast<SkPoint*>(malloc(sizeof(SkPoint) * (point + 1)));
133 // Skia does let us get a single point from the path.
134 path.getPoints(points, point + 1);
135 *xPos = SkScalarToHBFixed(points[point].fX);
136 *yPos = SkScalarToHBFixed(points[point].fY);
H A DGraphicsJNI.h35 static SkIPoint* jpoint_to_ipoint(JNIEnv*, jobject jpoint, SkIPoint* point);
36 static void ipoint_to_jpoint(const SkIPoint& point, JNIEnv*, jobject jpoint);
38 static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point);
39 static void point_to_jpointf(const SkPoint& point, JNIEnv*, jobject jpointf);
H A DGraphics.cpp250 SkIPoint* GraphicsJNI::jpoint_to_ipoint(JNIEnv* env, jobject obj, SkIPoint* point) argument
254 point->set(env->GetIntField(obj, gPoint_xFieldID),
256 return point;
267 SkPoint* GraphicsJNI::jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) argument
271 point->set(SkFloatToScalar(env->GetIntField(obj, gPointF_xFieldID)),
273 return point;
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.h65 const Point& point(int ix) const;
H A Dgeometry.cpp131 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
H A Dshader_program.cpp241 source_coords_[index] = quad.point(i).x();
242 source_coords_[index+1] = quad.point(i).y();
257 target_coords_[index] = (quad.point(i).x() * 2.0) - 1.0;
258 target_coords_[index+1] = (quad.point(i).y() * 2.0) - 1.0;
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.h65 const Point& point(int ix) const;
H A Dgeometry.cpp130 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
/frameworks/base/libs/androidfw/
H A DInput.cpp444 // rawX and rawY. So we apply the transformation to the first point
446 SkPoint point; local
450 & point);
451 float newX = SkScalarToFloat(point.fX);
452 float newY = SkScalarToFloat(point.fY);
465 matrix->mapXY(SkFloatToScalar(x), SkFloatToScalar(y), &point); local
466 c.setAxisValue(AMOTION_EVENT_AXIS_X, SkScalarToFloat(point.fX) - newXOffset);
467 c.setAxisValue(AMOTION_EVENT_AXIS_Y, SkScalarToFloat(point.fY) - newYOffset);
/frameworks/native/services/surfaceflinger/
H A DTransform.cpp193 void Transform::transform(float* point, int x, int y) const argument
197 point[0] = v[0];
198 point[1] = v[1];
H A DTransform.h78 void transform(float* point, int x, int y) const;
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DEventSenderImpl.java88 public TouchPoint(int id, Point point) { argument
90 mPoint = point;
109 public void move(Point point) { argument
110 mPoint = point;
252 * the first touch point. In future this method will need rewriting.
276 * the first touch point. In future this method will need rewriting.
297 * the first touch point. In future this method will need rewriting.
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java379 public void translatePointInScreenToAppWindow(PointF point) { argument
382 point.x *= scale;
383 point.y *= scale;
/frameworks/native/opengl/libagl/
H A Dstate.cpp92 c->point.size = TRI_ONE;
147 c->point.smooth = enabled;
492 c->point.size = TRI_FROM_FIXED(gglFloatToFixed(size));
502 c->point.size = TRI_FROM_FIXED(size);
/frameworks/compile/libbcc/runtime/make/platform/
H A Ddarwin_fat.mk8 # software floating point).
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A Dcarousel.rs49 float3 point;
146 static const int DRAG_MODEL_PLANE = 1; // Drag relative to projected point on plane of carousel
147 static const int DRAG_MODEL_CYLINDER_INSIDE = 2; // Drag relative to point on inside of cylinder
148 static const int DRAG_MODEL_CYLINDER_OUTSIDE = 3; // Drag relative to point on outside of cylinder
246 { 0.0f, 0.0f, 0.0f }, // point
468 // Construct a matrix based on eye point, center and up direction. Based on the
1069 // Computes a hit angle from the center of the carousel to a point on either a plane
1077 const float3 point = (ray.position + t*ray.direction);
1078 const float3 direction = point - carouselPlane.point;
[all...]
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c177 static void superShapeMap(VECTOR3 *point, float r1, float r2, float t, float p) argument
180 point->x = (float)(cos(t) * cos(p) / r1 / r2);
181 point->y = (float)(sin(t) * cos(p) / r1 / r2);
182 point->z = (float)(sin(p) / r2);

Completed in 417 milliseconds

12