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

123

/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...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DAccelerationClassifier.java53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1);
55 mStrokeMap.put(stroke, new Data(point));
57 mStrokeMap.get(stroke).addPoint(point);
76 public Data(Point point) { argument
77 previousPoint = point;
80 public void addPoint(Point point) { argument
81 float distance = previousPoint.dist(point);
82 float duration = (float) (point.timeOffsetNano - previousPoint.timeOffsetNano + 1);
88 previousPoint = point;
96 previousPoint = point;
[all...]
H A DStroke.java41 Point point = new Point(x / mDpi, y / mDpi, eventTimeNano - mStartTimeNano);
43 mLength += mPoints.get(mPoints.size() - 1).dist(point);
45 mPoints.add(point);
H A DAnglesClassifier.java31 * ignores the repetitions. If a new point is added, the classifier calculates the angle between
125 public void addPoint(Point point) { argument
126 // Checking if the added point is different than the previously added point
129 || !mLastThreePoints.get(mLastThreePoints.size() - 1).equals(point)) {
131 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point);
133 mLastThreePoints.add(point);
H A DSpeedAnglesClassifier.java28 * A classifier which for each point from a stroke, it creates a point on plane with coordinates
32 * the last point of a stroke because the UP event comes in with some delay and this ruins the
109 public void addPoint(Point point) { argument
111 mDist += mPreviousPoint.dist(point);
114 mPreviousPoint = point;
115 Point speedPoint = new Point((float) point.timeOffsetNano / DURATION_SCALE,
118 // Checking if the added point is different than the previously added 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/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java50 final PointF point = new PointF(); field in class:OctopusDrawable
122 if (point.y - BASE_SCALE/2 > scaledBounds[1]) {
124 } else if (point.y + BASE_SCALE < 0) {
128 point.x = clamp(point.x + dt_sec * vx, 0, scaledBounds[0]);
129 point.y = point.y + dt_sec * vy;
158 point.x = x;
159 point.y = y;
160 mapPointF(M_inv, point);
273 mapPointF(Matrix m, PointF point) argument
[all...]
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
H A DCustomScrollView.java75 final Point point = new Point();
77 context.getDisplay().getSize(point);
82 final int maxHeight = (int) typedValue.getFraction(point.y, point.y);
84 mWidth = point.x;
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
H A DLocation.java205 int[] point = new int[]{-1, -1};
207 parsePoint(start, point);
208 location.startLine = point[0];
209 location.startOffset = point[1];
210 point[0] = point[1] = -1;
211 parsePoint(end, point);
212 location.endLine = point[0];
213 location.endOffset = point[1];
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DCachedPathIteratorFactory.java58 int nPoints = getNumberOfPoints(type) * 2; // 2 coordinates per point
129 // Calculate X and Y at 0.5 (We'll use this to reconstruct the control point later)
146 // estimated control point at t'=0.5
183 * Returns the end point of a given segment
187 * @param point the return array where the point will be stored
190 point) {
191 // start index of the end point for the segment type
193 point[0] = coords[pointIndex];
194 point[
189 getShapeEndPoint(int type, @NonNull float[] coords, @NonNull float[] point) argument
247 getPointAtLength(int type, @NonNull float[] coords, float lastX, float lastY, float t, @NonNull float[] point) argument
391 getCurrentSegmentEnd(float[] point) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPoint.java46 * Set the point's x and y coordinates
54 * Negate the point's coordinates
62 * Offset the point's coordinates by dx, dy
70 * Returns true if the point's coordinates equal (x,y)
81 Point point = (Point) o;
83 if (x != point.x) return false;
84 if (y != point.y) return false;
115 * Write this point to the specified parcel. To restore a point from
117 * @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/support/compat/src/main/java/androidx/core/view/
H A DDragStartHelper.java175 * @param point The position of the touch event that started the drag operation.
177 public void getTouchPosition(Point point) { argument
178 point.set(mLastTouchX, mLastTouchY);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java228 // Determine focal point
272 float[] point = mTempPoint;
273 point[0] = (mLastX - x) / mRenderer.scale;
274 point[1] = (mLastY - y) / mRenderer.scale;
275 mInverseRotateMatrix.mapPoints(point);
276 mCenterX += point[0];
277 mCenterY += point[1];
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DStreamDescriptor.h49 void setVolumeCurvePoint(device_category deviceCategory, const VolumeCurvePoint *point);
103 const VolumeCurvePoint *point);
H A DGains.h32 static float volIndexToDb(const VolumeCurvePoint *point, int indexMin, int indexMax,
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DHardwareBgDrawable.java68 public void setCutPoint(int point) { argument
69 mPoint = point;
H A DHardwareUiLayout.java368 private void setCutPoint(int point) { argument
370 if (curPoint == point) return;
372 mBackground.setCutPoint(point);
376 if (mEndPoint == point) {
381 mEndPoint = point;
382 mAnimator = ObjectAnimator.ofInt(mBackground, "cutPoint", curPoint, point);
/frameworks/native/services/surfaceflinger/
H A DBufferLayer.cpp403 // a composition step, we have to skip this layer at this point
588 auto point = mLocalSyncPoints.begin(); local
589 while (point != mLocalSyncPoints.end()) {
590 if (!(*point)->frameIsAvailable() || !(*point)->transactionIsApplied()) {
591 // This sync point must have been added since we started
593 ++point;
597 if ((*point)->getFrameNumber() <= mCurrentFrameNumber) {
598 point = mLocalSyncPoints.erase(point);
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DStreamDescriptor.cpp77 const VolumeCurvePoint *point)
79 mVolumeCurve[deviceCategory] = point;
127 const VolumeCurvePoint *point)
129 editValueAt(stream).setVolumeCurvePoint(deviceCategory, point);
76 setVolumeCurvePoint(device_category deviceCategory, const VolumeCurvePoint *point) argument
125 setVolumeCurvePoint(audio_stream_type_t stream, device_category deviceCategory, const VolumeCurvePoint *point) argument
/frameworks/base/core/jni/android/graphics/
H A DGraphicsJNI.h58 static SkIPoint* jpoint_to_ipoint(JNIEnv*, jobject jpoint, SkIPoint* point);
59 static void ipoint_to_jpoint(const SkIPoint& point, JNIEnv*, jobject jpoint);
61 static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point);
62 static void point_to_jpointf(const SkPoint& point, JNIEnv*, jobject jpointf);
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.h65 const Point& point(int ix) const;
/frameworks/base/core/tests/coretests/src/android/widget/
H A DSelectionActionModeHelperTest.java109 final PointF point = new PointF(pointX, pointY);
111 SelectionActionModeHelper.movePointInsideNearestRectangle(point,
/frameworks/base/libs/hwui/
H A DSpotShadow.h44 static float rayIntersectPoly(const Vector2* poly, int polyLength, const Vector2& point,
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.h65 const Point& point(int ix) const;

Completed in 551 milliseconds

123