Home
last modified time | relevance | path

Searched refs:Point (Results 1 – 25 of 225) sorted by relevance

123456789

/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java26 public class Point { class
34 public Point() { in Point() method in Point
38 public Point(float x, float y) { in Point() method in Point
53 public Point plus(float x, float y) { in plus()
54 return new Point(this.x + x, this.y + y); in plus()
57 public Point plus(Point point) { in plus()
61 public Point minus(float x, float y) { in minus()
62 return new Point(this.x - x, this.y - y); in minus()
65 public Point minus(Point point) { in minus()
69 public Point times(float s) { in times()
[all …]
DRectangle.java20 import android.filterfw.geometry.Point;
32 super(new Point(x, y), in Rectangle()
33 new Point(x + width, y), in Rectangle()
34 new Point(x, y + height), in Rectangle()
35 new Point(x + width, y + height)); in Rectangle()
38 public Rectangle(Point origin, Point size) { in Rectangle()
45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { in fromRotatedRect()
46 Point p0 = new Point(center.x - size.x/2f, center.y - size.y/2f); in fromRotatedRect()
47 Point p1 = new Point(center.x + size.x/2f, center.y - size.y/2f); in fromRotatedRect()
48 Point p2 = new Point(center.x - size.x/2f, center.y + size.y/2f); in fromRotatedRect()
[all …]
DQuad.java21 import android.filterfw.geometry.Point;
34 public Point p0;
36 public Point p1;
38 public Point p2;
40 public Point p3;
47 public Quad(Point p0, Point p1, Point p2, Point p3) { in Quad()
61 public Quad translated(Point t) { in translated()
/frameworks/native/libs/ui/include_vndk/ui/
DPoint.h25 class Point : public LightFlattenablePod<Point>
35 inline Point() { in Point() function
37 inline Point(int _x, int _y) : x(_x), y(_y) { in Point() function
40 inline bool operator == (const Point& rhs) const {
43 inline bool operator != (const Point& rhs) const {
53 bool operator < (const Point& rhs) const {
57 inline Point& operator - () {
63 inline Point& operator += (const Point& rhs) {
68 inline Point& operator -= (const Point& rhs) {
74 const Point operator + (const Point& rhs) const {
[all …]
DRect.h66 inline Rect(const Point& lt, const Point& rb) { in Rect()
124 void setLeftTop(const Point& lt) { in setLeftTop()
129 void setRightBottom(const Point& rb) { in setRightBottom()
135 Point leftTop() const { in leftTop()
136 return Point(left, top); in leftTop()
138 Point rightBottom() const { in rightBottom()
139 return Point(right, bottom); in rightBottom()
141 Point rightTop() const { in rightTop()
142 return Point(right, top); in rightTop()
144 Point leftBottom() const { in leftBottom()
[all …]
/frameworks/native/libs/ui/include/ui/
DPoint.h25 class Point : public LightFlattenablePod<Point>
35 inline Point() { in Point() function
37 inline Point(int _x, int _y) : x(_x), y(_y) { in Point() function
40 inline bool operator == (const Point& rhs) const {
43 inline bool operator != (const Point& rhs) const {
53 bool operator < (const Point& rhs) const {
57 inline Point& operator - () {
63 inline Point& operator += (const Point& rhs) {
68 inline Point& operator -= (const Point& rhs) {
74 const Point operator + (const Point& rhs) const {
[all …]
DRect.h66 inline Rect(const Point& lt, const Point& rb) { in Rect()
124 void setLeftTop(const Point& lt) { in setLeftTop()
129 void setRightBottom(const Point& rb) { in setRightBottom()
135 Point leftTop() const { in leftTop()
136 return Point(left, top); in leftTop()
138 Point rightBottom() const { in rightBottom()
139 return Point(right, bottom); in rightBottom()
141 Point rightTop() const { in rightTop()
142 return Point(right, top); in rightTop()
144 Point leftBottom() const { in leftBottom()
[all …]
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.h28 class Point {
30 Point() : x_(0.0f), y_(0.0f) {} in Point() function
31 Point(float x, float y) : x_(x), y_(y) {} in Point() function
38 static float Distance(const Point& p0, const Point& p1);
41 Point operator+(const Point& other) const;
42 Point operator-(const Point& other) const;
43 Point operator*(float factor) const;
56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) in Quad()
64 const std::vector<Point>& points() const { return points_; } in points()
65 const Point& point(int ix) const;
[all …]
Dgeometry.cpp27 float Point::Length() const { in Length()
31 bool Point::ScaleTo(float new_length) { in ScaleTo()
41 float Point::Distance(const Point& p0, const Point& p1) { in Distance()
42 Point diff = p1 - p0; in Distance()
46 Point Point::operator+(const Point& other) const { in operator +()
47 Point out; in operator +()
53 Point Point::operator-(const Point& other) const { in operator -()
54 Point out; in operator -()
60 Point Point::operator*(float factor) const { in operator *()
61 Point out; in operator *()
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.h28 class Point {
30 Point() : x_(0.0f), y_(0.0f) {} in Point() function
31 Point(float x, float y) : x_(x), y_(y) {} in Point() function
38 static float Distance(const Point& p0, const Point& p1);
41 Point operator+(const Point& other) const;
42 Point operator-(const Point& other) const;
43 Point operator*(float factor) const;
56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) in Quad()
64 const std::vector<Point>& points() const { return points_; } in points()
65 const Point& point(int ix) const;
[all …]
Dgeometry.cpp26 float Point::Length() const { in Length()
30 bool Point::ScaleTo(float new_length) { in ScaleTo()
40 float Point::Distance(const Point& p0, const Point& p1) { in Distance()
41 Point diff = p1 - p0; in Distance()
45 Point Point::operator+(const Point& other) const { in operator +()
46 Point out; in operator +()
52 Point Point::operator-(const Point& other) const { in operator -()
53 Point out; in operator -()
59 Point Point::operator*(float factor) const { in operator *()
60 Point out; in operator *()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPoint.java31 public class Point implements Parcelable { class
35 public Point() {} in Point() method in Point
37 public Point(int x, int y) { in Point() method in Point
42 public Point(@NonNull Point src) { in Point() method in Point
83 Point point = (Point) o; in equals()
142 … final @android.annotation.NonNull Parcelable.Creator<Point> CREATOR = new Parcelable.Creator<Poin…
147 public Point createFromParcel(Parcel in) {
148 Point r = new Point();
157 public Point[] newArray(int size) {
158 return new Point[size];
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DPoint.java19 public class Point { class
24 public Point(float x, float y) { in Point() method in Point
30 public Point(float x, float y, long timeOffsetNano) { in Point() method in Point
36 public boolean equals(Point p) { in equals()
40 public float dist(Point a) { in dist()
48 public float crossProduct(Point a, Point b) { in crossProduct()
56 public float dotProduct(Point a, Point b) { in dotProduct()
66 public float getAngle(Point a, Point b) { in getAngle()
/frameworks/base/core/java/android/hardware/camera2/params/
DFace.java20 import android.graphics.Point;
55 private final Point mLeftEye;
56 private final Point mRightEye;
57 private final Point mMouth;
88 Point leftEyePosition, Point rightEyePosition, Point mouthPosition) { in Face()
206 public Point getLeftEyePosition() { in getLeftEyePosition()
222 public Point getRightEyePosition() { in getRightEyePosition()
239 public Point getMouthPosition() { in getMouthPosition()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DSize.java19 import android.graphics.Point;
93 private final Point val;
99 val = new Point(width, height); in Size()
107 val = new Point(0, 0); in Size()
109 val = new Point(other.width(), other.height()); in Size()
120 val = new Point(0, 0); in Size()
122 val = new Point(other.width, other.height); in Size()
133 val = new Point(0, 0); in Size()
135 val = new Point(other.getWidth(), other.getHeight()); in Size()
144 public Size(Point p) { in Size()
[all …]
/frameworks/minikin/include/minikin/
DLayoutCore.h36 struct Point { struct
37 Point() : x(0), y(0) {} in Point() function
38 Point(float x, float y) : x(x), y(y) {} in Point() function
39 bool operator==(const Point& o) const { return x == o.x && y == o.y; }
53 const std::vector<Point> points() const { return mPoints; } in points() argument
64 const Point& pointAt(int glyphPos) const { return mPoints[glyphPos]; } in pointAt()
68 sizeof(Point) * mPoints.size() + sizeof(float) * mAdvances.size() + sizeof(float) + in getMemoryUsage()
77 std::vector<Point> mPoints; // per glyph
89 inline std::ostream& operator<<(std::ostream& os, const Point& p) {
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DFixedRotationFilter.java27 import android.filterfw.geometry.Point;
74 Point p1 = new Point(0.0f, 0.0f); in process()
75 Point p2 = new Point(1.0f, 0.0f); in process()
76 Point p3 = new Point(0.0f, 1.0f); in process()
77 Point p4 = new Point(1.0f, 1.0f); in process()
DRotateFilter.java29 import android.filterfw.geometry.Point;
140 Point x0 = new Point(0.5f * (-cosTheta + sinTheta + 1f), in updateParameters()
142 Point x1 = new Point(0.5f * (cosTheta + sinTheta + 1f), in updateParameters()
144 Point x2 = new Point(0.5f * (-cosTheta - sinTheta + 1f), in updateParameters()
146 Point x3 = new Point(0.5f * (cosTheta - sinTheta + 1f), in updateParameters()
DStraightenFilter.java29 import android.filterfw.geometry.Point;
123 Point p0 = new Point(-cosTheta * mWidth + sinTheta * mHeight, in updateParameters()
126 Point p1 = new Point(cosTheta * mWidth + sinTheta * mHeight, in updateParameters()
129 Point p2 = new Point(-cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
132 Point p3 = new Point(cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
/frameworks/base/core/java/android/app/contentsuggestions/
DSelectionsRequest.java22 import android.graphics.Point;
40 private final Point mInterestPoint;
44 private SelectionsRequest(int taskId, @Nullable Point interestPoint, @Nullable Bundle extras) { in SelectionsRequest()
61 public @Nullable Point getInterestPoint() { in getInterestPoint()
89 source.readInt(), source.readTypedObject(Point.CREATOR), source.readBundle());
106 private Point mInterestPoint;
129 public @NonNull Builder setInterestPoint(@NonNull Point interestPoint) { in setInterestPoint()
/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java22 import android.graphics.Point;
109 float velocityY, Point dragStartPosition) { in findClosestSnapBounds()
111 final Point intersect = getEdgeIntersect(stackBounds, movementBounds, velocityX, velocityY, in findClosestSnapBounds()
122 public Point getEdgeIntersect(Rect stackBounds, Rect movementBounds, float velX, float velY, in getEdgeIntersect()
123 Point dragStartPosition) { in getEdgeIntersect()
133 Point vertPoint = new Point(); in getEdgeIntersect()
135 Point horizPoint = new Point(); in getEdgeIntersect()
214 final Point[] snapTargets = new Point[mSnapGravities.size()]; in findClosestSnapBounds()
218 snapTargets[i] = new Point(tmpBounds.left, tmpBounds.top); in findClosestSnapBounds()
220 Point snapTarget = findClosestPoint(stackBounds.left, stackBounds.top, snapTargets); in findClosestSnapBounds()
[all …]
/frameworks/minikin/tests/unittest/
DLayoutCoreTest.cpp76 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST()
88 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST()
89 EXPECT_EQ(Point(10.0f, 0), layout.pointAt(1)); in TEST()
104 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST()
105 EXPECT_EQ(Point(10.0f, 0), layout.pointAt(1)); in TEST()
131 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST()
132 EXPECT_EQ(Point(10.0f, 0), layout.pointAt(1)); in TEST()
147 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST()
148 EXPECT_EQ(Point(20.0f, 0), layout.pointAt(1)); in TEST()
170 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DZigZagClassifier.java24 import android.graphics.Point;
91 List<Point> rotatedPoints; in isFalseTouch()
108 for (Point point : rotatedPoints) { in isFalseTouch()
156 private List<Point> rotateVertical() { in rotateVertical()
163 private List<Point> rotateHorizontal() { in rotateHorizontal()
170 private List<Point> rotateMotionEvents(List<MotionEvent> motionEvents, double angle) { in rotateMotionEvents()
171 List<Point> points = new ArrayList<>(); in rotateMotionEvents()
182 points.add(new Point((int) rotatedX, (int) rotatedY)); in rotateMotionEvents()
186 Point firstPoint = points.get(0); in rotateMotionEvents()
187 Point lastPoint = points.get(points.size() - 1); in rotateMotionEvents()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java19 import android.graphics.Point;
942 Point startPoint1 = new Point(rect.centerX() - FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchOut()
943 Point startPoint2 = new Point(rect.centerX() + FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchOut()
946 Point endPoint1 = new Point(rect.centerX() - (int)((rect.width()/2) * percentage), in pinchOut()
948 Point endPoint2 = new Point(rect.centerX() + (int)((rect.width()/2) * percentage), in pinchOut()
979 Point startPoint1 = new Point(rect.centerX() - (int)((rect.width()/2) * percentage), in pinchIn()
981 Point startPoint2 = new Point(rect.centerX() + (int)((rect.width()/2) * percentage), in pinchIn()
984 Point endPoint1 = new Point(rect.centerX() - FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchIn()
985 Point endPoint2 = new Point(rect.centerX() + FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchIn()
1003 public boolean performTwoPointerGesture(Point startPoint1, Point startPoint2, Point endPoint1, in performTwoPointerGesture()
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/ui/dragndrop/
DDragStartEvent.java19 import android.graphics.Point;
32 public final Point tlOffset;
35 public DragStartEvent(Task task, TaskView taskView, Point tlOffset) { in DragStartEvent()
39 public DragStartEvent(Task task, TaskView taskView, Point tlOffset, in DragStartEvent()

123456789