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

12

/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/base/core/java/android/gesture/
H A DGestureUtils.java474 GesturePoint point = originalPoints.get(i);
476 points[index] = point.x;
477 points[index + 1] = point.y;
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...]
/frameworks/base/core/java/android/text/
H A DLayout.java473 // Adjust the point at which to start rendering depending on the
1265 public void getCursorPath(int point, Path dest, argument
1269 int line = getLineForOffset(point);
1273 float h1 = getPrimaryHorizontal(point) - 0.5f;
1274 float h2 = isLevelBoundary(point) ? getSecondaryHorizontal(point) - 0.5f : h1;
/frameworks/base/core/java/android/view/
H A DViewRootImpl.java1174 // is attached to the window. Note that at this point the surface
1491 // point of drawing it we will hold off and schedule
1713 // By this point all views have been sized and positionned
2197 // rendering at this point would lock it forever and prevent hardware renderer
2684 // At this point the resources have been updated to
4188 PointF point = new PointF(newX, newY);
4189 mTranslator.translatePointInScreenToAppWindow(point);
4190 newX = (int) (point.x + 0.5);
4191 newY = (int) (point.y + 0.5);
/frameworks/base/core/java/android/webkit/
H A DWebViewClassic.java1353 // Determine focal point
4437 * Select the word at the last click point.
4614 private void drawHandle(Point point, int handleId, Rect bounds, argument
4634 int x = contentToViewDimension(point.x);
4635 int y = contentToViewDimension(point.y);
5211 * Given segment AB, this finds the point C along AB that is closest to
5212 * point and then returns it scale along AB. The scale factor is AC/AB.
5214 * @param x The x coordinate of the point near segment AB that determines
5216 * @param y The y coordinate of the point near segment AB that determines
5218 * @param a The first point o
[all...]
/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/core/jni/android/graphics/
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;
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 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);
/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/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/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/media/libdrm/mobile1/src/objmng/
H A Ddrm_api.c1272 int32_t point = DRM_MAX_MALLOC_LEN - aesStart; local
1283 memcpy(buf, s->rawContent + aesStart, point);
1284 res = s->readInputDataFunc(s->inputHandle, buf + point, bufLen - point);
1288 res += point;
/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/media/mca/filterfw/native/core/
H A Dgeometry.cpp131 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
H A Dgeometry.h65 const Point& point(int ix) const;
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.cpp130 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
H A Dgeometry.h65 const Point& point(int ix) 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/compile/libbcc/runtime/make/platform/
H A Ddarwin_fat.mk8 # software floating point).
/frameworks/compile/mclinker/
H A Dmcld-device-build.mk19 -Werror=sequence-point \
H A Dmcld-host-build.mk10 -Werror=sequence-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...]

Completed in 1864 milliseconds

12