Searched refs:point (Results 1 - 25 of 38) 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/android/view/accessibility/
H A DIAccessibilityInteractionConnectionCallback.aidl57 * Sets the result of a request to compute a point for clicking in a view.
59 * @param point The point of null if no such point.
62 void setComputeClickPointInScreenActionResult(in Point point, int interactionId);
/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);
207 Point point = points.get(i);
209 point.radius / mOuterRadius);
210 final float px = point.x + mCenterX;
211 final float py = point.y + mCenterY;
212 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/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/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java229 // Determine focal point
273 float[] point = mTempPoint;
274 point[0] = (mLastX - x) / mRenderer.scale;
275 point[1] = (mLastY - y) / mRenderer.scale;
276 mInverseRotateMatrix.mapPoints(point);
277 mCenterX += point[0];
278 mCenterY += point[1];
/frameworks/base/core/jni/android/graphics/
H A DGraphicsJNI.h44 static SkIPoint* jpoint_to_ipoint(JNIEnv*, jobject jpoint, SkIPoint* point);
45 static void ipoint_to_jpoint(const SkIPoint& point, JNIEnv*, jobject jpoint);
47 static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point);
48 static void point_to_jpointf(const SkPoint& point, JNIEnv*, jobject jpointf);
H A DGraphics.cpp261 SkIPoint* GraphicsJNI::jpoint_to_ipoint(JNIEnv* env, jobject obj, SkIPoint* point) argument
265 point->set(env->GetIntField(obj, gPoint_xFieldID),
267 return point;
278 SkPoint* GraphicsJNI::jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) argument
282 point->set(env->GetIntField(obj, gPointF_xFieldID),
284 return point;
H A DPath.cpp277 const SkPoint& point) {
282 segmentPoints.push_back(point);
328 // Subdivide a section of the Bezier curve, set the mid-point and the mid-t value.
345 // errorSquared as a metric. Cubic Bezier curves can have an inflection point that improperly
348 // the point. It is clearly not the case that we can linearly interpolate at that point.
376 // Found an inflection point. No need to double-check.
420 // Returns a float[] with each point along the path represented by 3 floats
421 // * fractional length along the path that the point resides
424 // Note that more than one point ma
276 addMove(std::vector<SkPoint>& segmentPoints, std::vector<float>& lengths, const SkPoint& point) argument
467 const SkPoint& point = segmentPoints[i]; local
[all...]
/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/core/java/android/view/
H A DAccessibilityInteractionController.java680 Point point = mTempPoint;
706 point.set(boundsInScreen.centerX(), boundsInScreen.centerY());
709 // For a real view, ask the view to compute the click point.
711 interactiveRegion, point);
718 applyAppScaleAndMagnificationSpecIfNeeded(point, spec);
719 result = point;
779 private void applyAppScaleAndMagnificationSpecIfNeeded(Point point, argument
787 point.x *= applicationScale;
788 point.y *= applicationScale;
792 point
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java48 /** Upper/left minimal point of a normalized rectangle */
50 /** Lower/right maximal point of a normalized rectangle */
938 Rect activeArray, ZoomData zoomData, Point point, boolean usePreviewCrop) {
939 Rect pointedRect = new Rect(point.x, point.y, point.x, point.y);
973 // Move the rect so that the [-1000,-1000] point ends up at the preview [left, top]
937 convertCameraPointToActiveArrayPoint( Rect activeArray, ZoomData zoomData, Point point, boolean usePreviewCrop) argument
/frameworks/base/libs/hwui/
H A DTessellationCache.cpp202 static void mapPointFakeZ(Vector3& point, const mat4* transformXY, const mat4* transformZ) { argument
204 point.z = transformZ->mapZ(point);
207 transformXY->mapPoint(point.x, point.y);
H A DSpotShadow.h80 const Vector2& point, float dx, float dy);
/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/native/include/ui/
H A DRegion.h53 bool contains(const Point& point) const;
/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);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityManagerService.java755 * Gets a point within the accessibility focused node where we can send down
758 * @param outPoint The click point to populate.
759 * @return Whether accessibility a click point was found and set.
3213 Point point = mClient.computeClickPointInScreen(mConnectionId,
3216 if (point == null) {
3222 point.offset((int) -spec.offsetX, (int) -spec.offsetY);
3223 point.x = (int) (point.x * (1 / spec.scale));
3224 point.y = (int) (point
[all...]

Completed in 581 milliseconds

12