Searched refs:point (Results 1 - 25 of 55) 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 DSpeedAnglesClassifier.java26 * A classifier which for each point from a stroke, it creates a point on plane with coordinates
30 * the last point of a stroke because the UP event comes in with some delay and this ruins the
103 public void addPoint(Point point) { argument
105 mDist += mPreviousPoint.dist(point);
108 mPreviousPoint = point;
109 Point speedPoint = new Point((float) point.timeOffsetNano / DURATION_SCALE,
112 // Checking if the added point is different than the previously added point
H A DAnglesClassifier.java28 * ignores the repetitions. If a new point is added, the classifier calculates the angle between
117 public void addPoint(Point point) { argument
118 // Checking if the added point is different than the previously added point
121 || !mLastThreePoints.get(mLastThreePoints.size() - 1).equals(point)) {
123 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point);
125 mLastThreePoints.add(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/graphics/java/android/graphics/
H A DPoint.java45 * Set the point's x and y coordinates
53 * Negate the point's coordinates
61 * Offset the point's coordinates by dx, dy
69 * Returns true if the point's coordinates equal (x,y)
80 Point point = (Point) o;
82 if (x != point.x) return false;
83 if (y != point.y) return false;
114 * Write this point to the specified parcel. To restore a point from
116 * @param out The parcel to write the point'
[all...]
/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/base/tools/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/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/v13/java/android/support/v13/view/
H A DDragStartHelper.java154 * @param point The position of the touch event that started the drag operation.
156 public void getTouchPosition(Point point) { argument
157 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,
H A DVolumeCurve.h59 void add(const CurvePoint &point) { mCurvePoints.add(point); } argument
/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.h48 static SkIPoint* jpoint_to_ipoint(JNIEnv*, jobject jpoint, SkIPoint* point);
49 static void ipoint_to_jpoint(const SkIPoint& point, JNIEnv*, jobject jpoint);
51 static SkPoint* jpointf_to_point(JNIEnv*, jobject jpointf, SkPoint* point);
52 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;
H A Dgeometry.cpp131 const Point& Quad::point(int ix) const { function in class:android::filterfw::Quad
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp182 for (auto& point : mRemoteSyncPoints) {
183 point->setTransactionApplied();
185 for (auto& point : mLocalSyncPoints) {
186 point->setFrameAvailable();
409 // a viewport clipping and a window transform. we should use floating point to fix this.
1173 bool Layer::addSyncPoint(const std::shared_ptr<SyncPoint>& point) { argument
1174 if (point->getFrameNumber() <= mCurrentFrameNumber) {
1181 mLocalSyncPoints.push_back(point);
1217 static void boundPoint(vec2* point, const Rect& crop) { argument
1218 if (point
2129 auto point = mLocalSyncPoints.begin(); local
[all...]
/frameworks/base/libs/hwui/
H A DSpotShadow.h45 const Vector2& point, float dx, float dy);
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.h65 const Point& point(int ix) const;
/frameworks/rs/api/
H A Drs_vector_math.spec127 point values.
145 point values.
166 point values.
H A Drs_convert.spec39 Converting floating point values to integer types truncates.
104 Packs three or four floating point RGBA values into a uchar4.
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java46 /** Upper/left minimal point of a normalized rectangle */
48 /** Lower/right maximal point of a normalized rectangle */
943 Rect activeArray, ZoomData zoomData, Point point, boolean usePreviewCrop) {
944 Rect pointedRect = new Rect(point.x, point.y, point.x, point.y);
978 // Move the rect so that the [-1000,-1000] point ends up at the preview [left, top]
942 convertCameraPointToActiveArrayPoint( Rect activeArray, ZoomData zoomData, Point point, boolean usePreviewCrop) argument

Completed in 565 milliseconds

123